/*=========================================
        GALLERY SECTION
=========================================*/

.gallery{

    position:relative;

    padding:120px 0;

    overflow:hidden;

    background:#F8FAFC;

}

.gallery .container{

    position:relative;

    z-index:2;

}

/* =========================
   Title
========================= */

.gallery-title{

    width:min(760px,100%);

    margin:0 auto 55px;

    text-align:center;

}

.gallery-title h2{

    margin:22px 0;

    color:#131B29;

    font-size:clamp(2.6rem,4vw,3.5rem);

    font-weight:800;

    line-height:1.15;

    letter-spacing:-1px;

}

.gallery-title p{

    max-width:680px;

    margin:auto;

    color:#6B7280;

    font-size:1.05rem;

    line-height:1.9;

}
/* =========================
   Filter
========================= */

.gallery-filter{

    display:flex;

    justify-content:center;

    align-items:center;

    flex-wrap:wrap;

    gap:15px;

    margin-bottom:60px;

}

.gallery-filter button{

    border:none;

    background:#fff;

    border-radius:50px;

    padding:14px 28px;

    font-size:15px;

    font-weight:600;

    color:#131B29;

    box-shadow:0 10px 25px rgba(19,27,41,.06);

    transition:.35s;

    cursor:pointer;

}

.gallery-filter button:hover,

.gallery-filter button.active{

    background:#966A30;

    color:#fff;

}
/* =========================
   Masonry Grid
========================= */

.gallery-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    grid-auto-rows:280px;

    gap:24px;

}

/* =========================
   Gallery Item
========================= */

.gallery-item img,
.gallery-item video{

    position:absolute;
    inset:0;

    width:100%;
    height:100%;

    object-fit:cover;
    object-position:center;

    display:block;

    background:transparent;

    border:none;
    outline:none;

    z-index:1;

    transition:
        transform .8s cubic-bezier(.22,.61,.36,1),
        filter .8s ease;

}

.gallery-item{

    position:relative;

    overflow:hidden;

    border-radius:28px;

    height:100%;

    min-height:220px;

    cursor:pointer;

    box-shadow:0 18px 45px rgba(19,27,41,.10);

}
/*=========================================
        GALLERY MAGAZINE LAYOUT
=========================================*/

.gallery-grid:not(.simple-grid) .gallery-item:nth-child(2){

    grid-row:span 1;

}

.gallery-grid:not(.simple-grid) .gallery-item:nth-child(3){

    grid-row:span 1;

}

.gallery-grid:not(.simple-grid) .gallery-item:nth-child(4){

    grid-column:span 1;

    grid-row:span 2;

}

.gallery-grid:not(.simple-grid) .gallery-item:nth-child(5){

    grid-column:span 2;

    grid-row:span 1;

}

.gallery-grid:not(.simple-grid) .gallery-item:nth-child(6){

    grid-column:span 1;

}

/* Hover */

.gallery-item{

    transition:
        transform .45s ease,
        box-shadow .45s ease;

}

.gallery-item:hover{

    transform:translateY(-8px);

    box-shadow:0 35px 70px rgba(19,27,41,.18);

}

.gallery-item:hover img,
.gallery-item:hover video{

    transform:scale(1.08);

    filter:brightness(1.1);

}

/* =========================
   Overlay
========================= */

.gallery-overlay{

    position:absolute;

    inset:0;

    z-index:2;

    display:flex;

    flex-direction:column;

    justify-content:flex-end;

    padding:30px;

    background:linear-gradient(

        transparent 15%,

        rgba(19,27,41,.88)

    );

    color:#fff;

    transition:.35s;

}

.gallery-item:hover .gallery-overlay{

    background:linear-gradient(

        transparent,

        rgba(19,27,41,.95)

    );

}

/* =========================
   Icon
========================= */

.gallery-overlay i{

    font-size:22px;

}

.play-btn{

    width:70px;

    height:70px;

    border-radius:50%;

    background:rgba(255,255,255,.22);

	border:1px solid rgba(255,255,255,.25);

    backdrop-filter:blur(8px);

    display:flex;

    justify-content:center;

    align-items:center;

    margin-bottom:22px;

    transition:.35s;

}
.play-btn{

    animation:pulse 2.2s infinite;

}

@keyframes pulse{

    0%{

        box-shadow:0 0 0 0 rgba(150,106,48,.45);

    }

    70%{

        box-shadow:0 0 0 18px rgba(150,106,48,0);

    }

    100%{

        box-shadow:0 0 0 0 rgba(150,106,48,0);

    }

}

.play-btn i{

    color:#fff;

    font-size:22px;

}

.gallery-item:hover .play-btn{

    background:#966A30;

    transform:scale(1.08);

}

/* =========================
   Text
========================= */

.gallery-overlay h3{

    margin-bottom:10px;

    font-size:2rem;

    font-weight:700;

}

.gallery-overlay p{

    color:rgba(255,255,255,.88);

    line-height:1.7;

    margin-bottom:22px;

}

.gallery-overlay .fa-expand{

    width:65px;

    height:65px;

    border-radius:50%;

    background:rgba(255,255,255,.18);

    display:flex;

    justify-content:center;

    align-items:center;

    backdrop-filter:blur(8px);

    margin-bottom:20px;

    transition:.35s;

}

.gallery-item:hover .fa-expand{

    background:#966A30;

    transform:scale(1.08);

}

/* =========================
   Button
========================= */

.gallery-btn{

    text-align:center;

    margin-top:55px;

}
.gallery-item{

    opacity:1;

    transform:scale(1);

    transition:
        opacity .35s ease,
        transform .35s ease;

}

.media-viewer{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.85);

    display:flex;

    justify-content:center;

    align-items:center;

    opacity:0;

    visibility:hidden;

    transition:.35s;

    z-index:99999;

}

.media-viewer.active{

    opacity:1;

    visibility:visible;

}

.media-content{

    width:min(1000px,90vw);

    max-height:90vh;

}

.media-content img,
.media-content video{

    width:100%;

    max-height:90vh;

    object-fit:contain;

    display:none;

    border-radius:18px;

}

.media-content img.active,
.media-content video.active{

    display:block;

}

.media-close{

    position:absolute;

    top:35px;

    right:40px;

    color:#fff;

    font-size:42px;

    cursor:pointer;

}
/*=========================================
        GALLERY CTA
=========================================*/

.gallery-cta{

    max-width:760px;

    margin:90px auto 0;

    padding:65px 55px;

    text-align:center;

    background:#fff;

    border-radius:35px;

    box-shadow:0 20px 60px rgba(19,27,41,.08);

    position:relative;

    overflow:hidden;

}

.gallery-cta::before{

    content:"";

    position:absolute;

    inset:0;

    background:
    radial-gradient(circle at top right,
    rgba(150,106,48,.12),
    transparent 45%);

    pointer-events:none;

}

.gallery-cta h3{

    margin:20px 0;

    font-size:2.3rem;

    font-weight:800;

    color:#131B29;

}

.gallery-cta p{

    max-width:620px;

    margin:0 auto 35px;

    color:#6B7280;

    line-height:1.9;

    font-size:1.08rem;

}

.gallery-cta .btn-primary{

    display:inline-flex;

    align-items:center;

    gap:12px;

}

.gallery-cta .btn-primary i{

    transition:.35s;

}

.gallery-cta .btn-primary:hover i{

    transform:translateX(6px);

}
/*=========================================
        FILTER GRID LAYOUT
=========================================*/

.gallery-grid.simple-grid{

    grid-template-columns:repeat(3,1fr);

    grid-auto-rows:280px;

    gap:24px;

}

.gallery-grid.simple-grid .gallery-item{

    grid-column:auto !important;

    grid-row:auto !important;

}


.gallery-grid.simple-grid .gallery-item{

    grid-column:auto !important;

    grid-row:auto !important;

}
