/* =========================================================
   RAMAAS GALLERY PAGE
   FULL IMAGE - RESPONSIVE
   ========================================================= */

.gallery-page-section {
    background: #faf8f5;
    padding: 90px 0 100px;
}


/* =========================================================
   HEADING
   ========================================================= */

.gallery-page-heading {
    max-width: 750px;
    margin: 0 auto 50px;
    text-align: center;
}

.gallery-page-heading h2 {
    font-family: 'Playfair Display', serif;
    font-size: 44px;
    font-weight: 700;
    color: #1f1f1f;
    margin-bottom: 15px;
}

.gallery-page-heading h3 {
    margin-bottom: 10px;
}

.gallery-page-heading p {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 0;
}


/* =========================================================
   GALLERY GRID
   ========================================================= */

.gallery-page-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}


/* =========================================================
   GALLERY CARD
   IMPORTANT:
   NO FIXED HEIGHT
   ========================================================= */

.gallery-page-card {
    position: relative;
    overflow: hidden;

    width: 100%;
    height: auto;

    border-radius: 18px;
    background: #fff;

    cursor: pointer;

    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);

    transition:
        transform .35s ease,
        box-shadow .35s ease;
}

.gallery-page-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.14);
}


/* =========================================================
   IMAGE
   IMPORTANT:
   HEIGHT AUTO = FULL IMAGE
   NO CROPPING
   ========================================================= */

.gallery-page-card img {
    display: block;

    width: 100%;
    height: auto;

    max-width: 100%;

    object-fit: contain;

    object-position: center;

    border-radius: 18px;

    transition:
        transform .7s cubic-bezier(.2, .8, .2, 1);
}


/* Desktop hover zoom */
.gallery-page-card:hover img {
    transform: scale(1.04);
}


/* =========================================================
   OVERLAY
   ========================================================= */

.gallery-page-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, .65),
            rgba(0, 0, 0, .08)
        );

    opacity: 0;

    transition: opacity .35s ease;
}

.gallery-page-card:hover .gallery-page-overlay {
    opacity: 1;
}


/* =========================================================
   VIEW BUTTON
   ========================================================= */

.gallery-page-view {
    width: 65px;
    height: 65px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #EAA636;
    color: #fff;

    font-size: 21px;

    transform:
        translateY(20px)
        scale(.8);

    transition:
        transform .35s ease,
        background .25s ease,
        color .25s ease;
}

.gallery-page-card:hover .gallery-page-view {
    transform:
        translateY(0)
        scale(1);
}

.gallery-page-view:hover {
    background: #fff;
    color: #EAA636;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.gallery-page-empty {
    text-align: center;
    padding: 90px 20px;
}

.gallery-page-empty i {
    font-size: 60px;
    color: #EAA636;
    margin-bottom: 20px;
}

.gallery-page-empty h3 {
    font-family: 'Playfair Display', serif;
    color: #1E1916;
    margin-bottom: 10px;
}

.gallery-page-empty p {
    color: #777;
}


/* =========================================================
   LIGHTBOX
   ========================================================= */

.gallery-lightbox {
    position: fixed;
    inset: 0;

    z-index: 999999;

    display: none;

    align-items: center;
    justify-content: center;

    background: rgba(8, 7, 6, .97);

    padding: 70px 90px;
}

.gallery-lightbox.show {
    display: flex;
}


/* =========================================================
   LIGHTBOX STAGE
   ========================================================= */

.gallery-lightbox-stage {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    cursor: grab;
}

.gallery-lightbox-stage.dragging {
    cursor: grabbing;
}


/* =========================================================
   LIGHTBOX IMAGE
   FULL IMAGE
   ========================================================= */

.gallery-lightbox-image {
    display: block;

    max-width: 90vw;
    max-height: 84vh;

    width: auto;
    height: auto;

    object-fit: contain;
    object-position: center;

    user-select: none;
    -webkit-user-drag: none;

    border-radius: 8px;

    transform:
        translate(0, 0)
        scale(1);

    transition:
        transform .2s ease;

    box-shadow:
        0 30px 100px rgba(0, 0, 0, .55);
}

.gallery-lightbox-image.no-transition {
    transition: none;
}


/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.gallery-lightbox-close {
    position: absolute;

    top: 20px;
    right: 25px;

    width: 48px;
    height: 48px;

    border: none;
    border-radius: 50%;

    background: rgba(255,255,255,.12);

    color: #fff;

    font-size: 18px;

    cursor: pointer;

    z-index: 20;

    transition: .25s;
}

.gallery-lightbox-close:hover {
    background: #EAA636;
}


/* =========================================================
   TOOLBAR
   ========================================================= */

.gallery-lightbox-toolbar {
    position: absolute;

    top: 20px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;
    gap: 8px;

    z-index: 20;
}

.gallery-lightbox-toolbar button {
    width: 44px;
    height: 44px;

    border: none;
    border-radius: 50%;

    background: rgba(255,255,255,.12);

    color: #fff;

    cursor: pointer;

    transition: .25s;
}

.gallery-lightbox-toolbar button:hover {
    background: #EAA636;
}


/* =========================================================
   PREVIOUS / NEXT
   ========================================================= */

.gallery-lightbox-prev,
.gallery-lightbox-next {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 50px;
    height: 50px;

    border: none;
    border-radius: 50%;

    background: rgba(255,255,255,.12);

    color: #fff;

    cursor: pointer;

    z-index: 20;

    transition: .25s;
}

.gallery-lightbox-prev {
    left: 25px;
}

.gallery-lightbox-next {
    right: 25px;
}

.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
    background: #EAA636;
}


/* =========================================================
   COUNTER
   ========================================================= */

.gallery-lightbox-counter {
    position: absolute;

    bottom: 22px;
    left: 50%;

    transform: translateX(-50%);

    color: #fff;

    background: rgba(0,0,0,.45);

    padding: 7px 16px;

    border-radius: 25px;

    font-size: 14px;

    letter-spacing: 2px;

    z-index: 20;
}


/* =========================================================
   LARGE DESKTOP
   ========================================================= */

@media (min-width: 1400px) {

    .gallery-page-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 28px;
    }

    .gallery-page-card img {
        width: 100%;
        height: auto;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .gallery-page-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    .gallery-page-section {
        padding: 70px 0 80px;
    }

    .gallery-page-heading h2 {
        font-size: 38px;
    }

    .gallery-page-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    /* IMPORTANT */
    .gallery-page-card {
        height: auto;
        aspect-ratio: auto;
    }

    .gallery-page-card img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .gallery-lightbox {
        padding: 70px 65px;
    }

    .gallery-lightbox-image {
        max-width: 88vw;
        max-height: 80vh;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 576px) {

    .gallery-page-section {
        padding: 45px 0 60px;
    }


    /* -----------------------------------------
       HEADING
       ----------------------------------------- */

    .gallery-page-heading {
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .gallery-page-heading h3 {
        font-size: 14px;
    }

    .gallery-page-heading h2 {
        font-size: 30px;
        line-height: 1.2;
    }

    .gallery-page-heading p {
        font-size: 14px;
        line-height: 1.7;
    }


    /* -----------------------------------------
       GALLERY
       ----------------------------------------- */

    .gallery-page-grid {
        grid-template-columns: 1fr;

        gap: 18px;

        width: 100%;
    }


    /* -----------------------------------------
       CARD
       NO FIXED HEIGHT
       NO ASPECT RATIO
       ----------------------------------------- */

    .gallery-page-card {
        width: 100%;
        height: auto;

        aspect-ratio: auto;

        border-radius: 18px;
    }


    /* -----------------------------------------
       IMAGE
       FULL IMAGE WITHOUT CROP
       ----------------------------------------- */

    .gallery-page-card img {
        display: block;

        width: 100%;
        height: auto;

        max-width: 100%;

        object-fit: contain;
        object-position: center;

        border-radius: 18px;

        transform: none;
    }


    /* Disable desktop zoom on mobile */
    .gallery-page-card:hover img {
        transform: none;
    }


    /* -----------------------------------------
       OVERLAY
       ----------------------------------------- */

    .gallery-page-overlay {
        opacity: 1;

        background:
            linear-gradient(
                to top,
                rgba(0, 0, 0, .45),
                rgba(0, 0, 0, .02)
            );
    }


    /* -----------------------------------------
       VIEW BUTTON
       ----------------------------------------- */

    .gallery-page-view {
        width: 58px;
        height: 58px;

        font-size: 19px;

        transform:
            translateY(0)
            scale(1);
    }


    /* -----------------------------------------
       LIGHTBOX
       ----------------------------------------- */

    .gallery-lightbox {
        padding: 65px 10px 55px;
    }


    .gallery-lightbox-stage {
        width: 100%;
        height: 100%;
    }


    /* FULL IMAGE ON PHONE */
    .gallery-lightbox-image {
        width: auto;
        height: auto;

        max-width: 96vw;
        max-height: 75vh;

        object-fit: contain;

        border-radius: 6px;
    }


    /* -----------------------------------------
       CLOSE
       ----------------------------------------- */

    .gallery-lightbox-close {
        top: 12px;
        right: 12px;

        width: 44px;
        height: 44px;
    }


    /* -----------------------------------------
       TOOLBAR
       ----------------------------------------- */

    .gallery-lightbox-toolbar {
        top: 12px;

        gap: 5px;
    }

    .gallery-lightbox-toolbar button {
        width: 38px;
        height: 38px;

        font-size: 13px;
    }


    /* -----------------------------------------
       PREVIOUS / NEXT
       ----------------------------------------- */

    .gallery-lightbox-prev,
    .gallery-lightbox-next {
        width: 40px;
        height: 40px;
    }

    .gallery-lightbox-prev {
        left: 5px;
    }

    .gallery-lightbox-next {
        right: 5px;
    }


    /* -----------------------------------------
       COUNTER
       ----------------------------------------- */

    .gallery-lightbox-counter {
        bottom: 12px;

        font-size: 12px;

        padding: 6px 13px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .gallery-page-section {
        padding: 40px 0 50px;
    }

    .gallery-page-heading h2 {
        font-size: 27px;
    }

    .gallery-page-grid {
        gap: 15px;
    }

    .gallery-page-card {
        border-radius: 14px;
    }

    .gallery-page-card img {
        border-radius: 14px;
    }

    .gallery-page-view {
        width: 52px;
        height: 52px;
    }

    .gallery-lightbox {
        padding-left: 5px;
        padding-right: 5px;
    }

    .gallery-lightbox-image {
        max-width: 98vw;
        max-height: 72vh;
    }
}