﻿/* =========================================================
   RAMAAS GALLERY PAGE
   ========================================================= */

.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 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, 1fr);
    gap: 24px;
}


/* =========================================================
   GALLERY CARD
   ========================================================= */

.gallery-page-card {
    position: relative;
    overflow: hidden;
    height: 430px;
    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
   ========================================================= */

    .gallery-page-card img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transition: transform .7s cubic-bezier(.2, .8, .2, 1);
    }

    .gallery-page-card:hover img {
        transform: scale(1.08);
    }


/* =========================================================
   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;
}

.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: 80px 100px;
}

    .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
   ========================================================= */

.gallery-lightbox-image {
    max-width: 86vw;
    max-height: 82vh;
    object-fit: contain;
    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
   ========================================================= */

.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;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .gallery-page-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* =========================================================
   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, 1fr);
    }

    .gallery-page-card {
        height: 400px;
    }

    .gallery-lightbox {
        padding: 70px 65px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 576px) {

    .gallery-page-section {
        padding: 55px 0 65px;
    }

    .gallery-page-heading {
        margin-bottom: 35px;
    }

        .gallery-page-heading h2 {
            font-size: 31px;
        }

        .gallery-page-heading p {
            font-size: 14px;
        }

    .gallery-page-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .gallery-page-card {
        height: 420px;
    }

    .gallery-page-overlay {
        opacity: 1;
    }

    .gallery-page-view {
        transform: translateY(0) scale(1);
    }

    .gallery-lightbox {
        padding: 70px 15px;
    }

    .gallery-lightbox-image {
        max-width: 94vw;
        max-height: 72vh;
    }

    .gallery-lightbox-prev {
        left: 8px;
    }

    .gallery-lightbox-next {
        right: 8px;
    }

    .gallery-lightbox-prev,
    .gallery-lightbox-next {
        width: 42px;
        height: 42px;
    }

    .gallery-lightbox-toolbar {
        top: 70px;
    }

        .gallery-lightbox-toolbar button {
            width: 40px;
            height: 40px;
        }
}
