/* =====================================================
   GAURI KRISHNA HOMES
   GALLERY PAGE
====================================================== */

.gallery-page {
    width: 100%;
    background: #f7f5ef;
    color: #10243b;
}


/* =====================================================
   GALLERY SECTION
====================================================== */

.gallery-hero {
    width: 100%;
    padding: 92px 0 110px;
}

.gallery-section-inner {
    width: min(100% - 64px, 1180px);
    max-width: 1180px;
    margin: 0 auto;
}


/* =====================================================
   HEADING
====================================================== */

.gallery-kicker {
    margin: 0 0 14px;

    font-family: "Inter", sans-serif;
    font-size: 11px;
    line-height: 1.6;
    font-weight: 600;

    letter-spacing: 0.16em;
    text-transform: uppercase;

    color: #b08b4f;
}

.gallery-page h1 {
    margin: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(46px, 5vw, 68px);
    line-height: 1.05;
    font-weight: 400;

    letter-spacing: -0.025em;

    color: #b08b4f;
}

.gallery-intro {
    max-width: 650px;

    margin: 18px 0 0;

    font-family: "Inter", sans-serif;
    font-size: 15px;
    line-height: 1.7;
    font-weight: 400;

    color: #66717d;
}


/* =====================================================
   VIEWER
====================================================== */

.gallery-viewer {
    width: 100%;

    margin: 52px auto 0;

    display: grid;

    grid-template-columns:
        64px
        minmax(0, 1fr)
        64px;

    align-items: center;

    gap: 28px;
}


/* =====================================================
   FRAME
====================================================== */

.gallery-frame {
    position: relative;

    width: 100%;
    max-width: 900px;

    margin: 0 auto;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #0b1d33;

    border: 1px solid rgba(176, 139, 79, 0.45);

    /* Rounded corners */
    border-radius: 14px;

    box-shadow:
        0 24px 55px rgba(9, 33, 59, 0.13);
}


/* =====================================================
   IMAGE WRAPPER
====================================================== */

.gallery-image-wrap {
    position: absolute;

    inset: 0;

    overflow: hidden;

    /* Keep image clipped to rounded frame */
    border-radius: 14px;
}


/* =====================================================
   GALLERY IMAGE
====================================================== */

.gallery-image {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    /* Rounded image corners */
    border-radius: 14px;

    opacity: 0;

    transform: scale(1.015);

    transition:
        opacity 380ms ease,
        transform 500ms ease;
}

.gallery-image.is-active {
    opacity: 1;

    transform: scale(1);
}


/* =====================================================
   ARROWS
====================================================== */

.gallery-arrow {
    width: 54px;
    height: 54px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 0;

    border: 1px solid rgba(176, 139, 79, 0.65);

    border-radius: 50%;

    background: transparent;

    color: #b08b4f;

    cursor: pointer;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 38px;

    font-weight: 400;

    line-height: 1;

    transition:
        background 180ms ease,
        color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.gallery-arrow:hover {
    background: #b08b4f;

    border-color: #b08b4f;

    color: #ffffff;

    transform: translateY(-2px);
}

.gallery-arrow:focus-visible {
    outline: 1px solid rgba(176, 139, 79, 0.8);

    outline-offset: 5px;
}

.gallery-arrow span {
    display: block;

    margin-top: -4px;
}


/* =====================================================
   COUNTER
====================================================== */

.gallery-counter {
    position: absolute;

    right: 22px;
    bottom: 18px;

    z-index: 3;

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 8px 12px;

    background: rgba(9, 33, 59, 0.78);

    color: #ffffff;

    font-family: "Inter", sans-serif;

    font-size: 11px;

    line-height: 1;

    font-weight: 600;

    letter-spacing: 0.08em;

    border-radius: 5px;
}

.gallery-counter-divider {
    color: #b08b4f;
}


/* =====================================================
   TABLET
====================================================== */

@media (max-width: 1100px) {

    .gallery-hero {
        padding: 82px 0 95px;
    }

    .gallery-section-inner {
        width: min(100% - 64px, 100%);
    }

    .gallery-viewer {
        grid-template-columns:
            52px
            minmax(0, 1fr)
            52px;

        gap: 20px;
    }

    .gallery-arrow {
        width: 48px;

        height: 48px;

        font-size: 34px;
    }

}


/* =====================================================
   MOBILE
====================================================== */

@media (max-width: 767px) {

    .gallery-hero {
        padding: 68px 0 76px;
    }

    .gallery-section-inner {
        width: calc(100% - 44px);
    }

    .gallery-kicker {
        font-size: 9px;

        letter-spacing: 0.14em;
    }

    .gallery-page h1 {
        font-size: 42px;
    }

    .gallery-intro {
        margin-top: 14px;

        font-size: 13px;

        line-height: 1.7;
    }

    .gallery-viewer {
        position: relative;

        display: block;

        margin-top: 36px;

        padding: 0 34px;
    }

    .gallery-frame {
        width: 100%;

        aspect-ratio: 4 / 3;

        /* Slightly smaller radius on mobile */
        border-radius: 10px;
    }

    .gallery-image-wrap {
        border-radius: 10px;
    }

    .gallery-image {
        border-radius: 10px;
    }

    .gallery-arrow {
        position: absolute;

        top: 50%;

        z-index: 5;

        width: 42px;
        height: 42px;

        font-size: 30px;

        transform: translateY(-50%);
    }

    .gallery-arrow:hover {
        transform: translateY(-50%);
    }

    .gallery-arrow-prev {
        left: 0;
    }

    .gallery-arrow-next {
        right: 0;
    }

    .gallery-counter {
        right: 12px;

        bottom: 12px;

        padding: 7px 10px;

        font-size: 10px;

        border-radius: 4px;
    }

}


/* =====================================================
   VERY SMALL MOBILE
====================================================== */

@media (max-width: 400px) {

    .gallery-section-inner {
        width: calc(100% - 36px);
    }

    .gallery-viewer {
        padding: 0 30px;
    }

    .gallery-arrow {
        width: 38px;

        height: 38px;

        font-size: 27px;
    }

    .gallery-page h1 {
        font-size: 38px;
    }

}