/*==============================================
    Gallery — Hernia Center Tijuana
===============================================*/
.gallery-hct {
    position: relative;
    display: block;
    padding: 100px 0 90px;
    overflow: hidden;
    z-index: 1;
}

.gallery-hct__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 12% 20%, rgba(16, 121, 179, 0.10) 0%, transparent 58%),
        radial-gradient(ellipse 55% 45% at 88% 78%, rgba(12, 95, 143, 0.08) 0%, transparent 55%),
        linear-gradient(180deg, #f4fafc 0%, #ffffff 48%, #eef7fb 100%);
    z-index: -1;
}

.gallery-hct__header {
    max-width: 720px;
    margin: 0 auto 48px;
}

.gallery-hct__eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 14px;
    border: 1px solid rgba(16, 121, 179, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--careon-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.2;
}

.gallery-hct__title {
    margin-bottom: 12px;
}

.gallery-hct__subtitle {
    margin-bottom: 14px;
}

.gallery-hct__intro {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--careon-gray);
}

.gallery-hct__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: stretch;
}

.gallery-hct__item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 22px;
    text-decoration: none;
    color: inherit;
    box-shadow:
        0 18px 42px rgba(12, 95, 143, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.05);
    isolation: isolate;
}

.gallery-hct__media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #0c5f8f;
}

.gallery-hct__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.04);
    transition: transform 0.7s ease;
}

.gallery-hct__item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(8, 42, 68, 0) 35%,
        rgba(8, 42, 68, 0.72) 100%
    );
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.gallery-hct__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 28px 26px 24px;
    color: #ffffff;
}

.gallery-hct__label {
    display: block;
    margin-bottom: 6px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.gallery-hct__caption p {
    margin: 0;
    max-width: 34ch;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
}

.gallery-hct__zoom {
    position: absolute;
    top: auto;
    right: 22px;
    bottom: 24px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 14px;
    transition: background 0.35s ease, transform 0.35s ease;
}

.gallery-hct__item:hover .gallery-hct__media img {
    transform: scale(1.1);
}

.gallery-hct__item:hover .gallery-hct__zoom {
    background: rgba(16, 121, 179, 0.92);
    transform: scale(1.06);
}

@media (max-width: 991px) {
    .gallery-hct {
        padding: 80px 0 70px;
    }

    .gallery-hct__header {
        margin-bottom: 36px;
    }

    .gallery-hct__grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .gallery-hct__media {
        aspect-ratio: 4 / 3;
    }

    .gallery-hct__label {
        font-size: 18px;
    }

    .gallery-hct__caption {
        padding: 20px 18px 18px;
    }

    .gallery-hct__caption p {
        display: none;
    }

    .gallery-hct__zoom {
        right: 14px;
        bottom: 16px;
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
}

@media (max-width: 767px) {
    .gallery-hct {
        padding: 70px 0 60px;
    }

    .gallery-hct__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .gallery-hct__media {
        aspect-ratio: 16 / 11;
    }

    .gallery-hct__caption p {
        display: block;
        font-size: 13px;
    }

    .gallery-hct__label {
        font-size: 20px;
    }

    .gallery-hct__intro {
        font-size: 15px;
        padding: 0 6px;
    }
}
