/* ===========================================
   GALLERY HERO
=========================================== */

.gallery-hero{

	position:relative;

    height:200px;

    overflow:hidden;

    display:flex;

    align-items:center;

}

.gallery-hero img{

    position:absolute;

    inset:0;

    width:100%;

    height:100%;

    object-fit:cover;

    z-index:1;

}

.hero-overlay{

  position:absolute;

    inset:0;

    background:linear-gradient(
        rgba(15,35,28,.68),
        rgba(15,35,28,.62)
    );

    z-index:2;

}

.hero-content{

    position:relative;

    z-index:3;

    height:100%;

    display:flex;

    flex-direction:column;

    justify-content:flex-start;

    padding-top:0px;
    height:100%;

}

.hero-content p{

    max-width:620px;

}

.hero-content h1{

    font-size:72px;

    margin:15px 0;

    font-family:"Cormorant Garamond",serif;

}

.hero-content p{

    max-width:700px;

    line-height:1.8;

    font-size:18px;

}

.section-tag{

    color:#D4A63A;

    letter-spacing:3px;

    text-transform:uppercase;

    font-size:14px;

}


/* ===========================================
   FILTERS
=========================================== */

.gallery-filters{

    background:#F8F5EE;

    padding:45px 0;

}

.gallery-filters .container{

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:18px;

}

.gallery-filters button{

    border:none;

    background:#fff;

    color:#143F34;

    padding:16px 34px;

    border-radius:999px;

    font-size:16px;

    font-weight:600;

    cursor:pointer;

    transition:.35s;

    box-shadow:
    0 10px 30px rgba(0,0,0,.06);

}

.gallery-filters button:hover{

    transform:translateY(-3px);

}

.gallery-filters button.active{

    background:#0E5A43;

    color:#fff;

}
/*==========================================
    GALLERY GRID
==========================================*/

/*==================================
    MASONRY LAYOUT
==================================*/

.gallery-wrapper{

    padding:90px 0;
    background:#F8F5EE;

}

.hero-left{

    grid-column:1 / span 4;
    grid-row:span 6;

}

.hero-right{

    grid-column:9 / span 4;
    grid-row:span 6;

}

.tall{

    grid-column:5 / span 2;
    grid-row:span 6;

}

.wide{

    grid-column:7 / span 5;
    grid-row:span 3;

}

.medium{

    grid-column:span 3;
    grid-row:span 3;

}

.small{

    grid-column:span 2;
    grid-row:span 2;

}

.panorama{

    grid-column:1 / span 8;
    grid-row:span 4;

}

.gallery-item{

    position:relative;

    overflow:hidden;

    border-radius:24px;

    cursor:pointer;

    background:#ddd;

    box-shadow:0 18px 40px rgba(0,0,0,.08);
	
	margin:0px 0px 10px 0px;

}

.gallery-item img{

    width:100%;
    height:100%;

    display:block;

    object-fit:cover;

    transition:
        transform .7s ease,
        filter .5s ease;

}

.gallery-item::after{

   content:"";

    position:absolute;

    left:0;
    right:0;
    bottom:0;

    height:48%;

    background:linear-gradient(

        transparent 0%,

        rgba(0,0,0,.20) 35%,

        rgba(0,0,0,.82) 100%

    );

    transition:all .45s ease;

}

.gallery-item:hover::after{

    height:58%;

    background:linear-gradient(

        transparent,

        rgba(0,0,0,.88)

    );

}

.gallery-item:hover{

    transform:translateY(-8px);

    box-shadow:
        0 28px 60px rgba(0,0,0,.18);

}

.gallery-item:hover img{

    transform:scale(1.08);

    filter:brightness(.92);

}

.gallery-info{

   position:absolute;

    left:0;

    right:0;

    bottom:0;

    padding:24px;

    background:linear-gradient(
        to top,
        rgba(0,0,0,.82),
        rgba(0,0,0,.45),
        transparent
    );

    z-index:5;

}

.gallery-item:hover .gallery-info{

    transform:translateY(-8px);

}

.gallery-category{

     display:inline-block;

    font-size:12px;

    letter-spacing:3px;

    text-transform:uppercase;

    color:#D4A63A;

    margin-bottom:10px;

    opacity:.85;

    transition:.35s;

}

.gallery-item:hover .gallery-category{

    opacity:1;

    letter-spacing:4px;

}

.gallery-title{

     font-family:"Cormorant Garamond",serif;

    font-size:30px;

    font-weight:600;

    line-height:1.1;

    color:#fff;

    margin:0;

    transition:.35s;


}

.gallery-item:hover .gallery-title{

    transform:translateY(-2px);

}

/*======== GRID SIZES ========*/

.gallery-item.small img{

    height:210px;

}

.gallery-item.medium img{

    height:320px;

}

.gallery-item.large img{

    height:520px;

}

.gallery-item.tall img{

    height:620px;

}

.gallery-item.wide img{

    height:260px;

}

.gallery-item.panorama img{

    height:340px;

}

.gallery-load{

    padding:30px 0 100px;

    text-align:center;

    background:#F8F5EE;

}

.gallery-load button{

    background:#0E5A43;

    color:#fff;

    border:none;

    padding:18px 42px;

    border-radius:50px;

    font-size:17px;

    cursor:pointer;

}

/*======== GRID SIZES ========*/

@media(max-width:1200px){

.gallery-grid{

column-count:3;

}

}

@media(max-width:768px){

.gallery-grid{

column-count:2;

}

}

@media(max-width:576px){

.gallery-grid{

column-count:1;

}

}

@media (min-width:769px){

.gallery-mobile{

display:none;

}

}

/*======== MOBILE SIZES ========*/
@media (max-width:768px){

.hero-content{

    position:relative;

    z-index:3;

    height:100%;

    display:flex;

    flex-direction:column;

    justify-content:flex-start;

    padding-top:15px;
    height:100%;

}

.gallery-wrapper{

display:none;

}

.gallery-mobile{

display:flex;
justify-content:center;
align-items:center;

padding:40px 0 60px;

overflow:hidden;

}

.mobile-gallery-track{

position:relative;

width:100%;

height:500px;

perspective:1400px;

}

.mobile-card{

position:absolute;

left:50%;

top:50%;

width:280px;

height:500px;

border-radius:28px;

overflow:hidden;

transform-style:preserve-3d;

transition:.55s cubic-bezier(.22,.61,.36,1);

box-shadow:0 25px 50px rgba(0,0,0,.18);

}

.mobile-card img{

width:100%;
height:100%;
object-fit:cover;

}

/* Hide category filters on mobile */

.gallery-filters{

    display:none;

}

}

/* ==========================================
   LIGHTBOX
========================================== */

.gallery-lightbox{

    position:fixed;

    inset:0;

    display:none;

    justify-content:center;

    align-items:center;

    background:rgba(0,0,0,.92);

    z-index:9999;

}

.gallery-lightbox.active{

    display:flex;

}

.lightbox-overlay{

    position:absolute;

    inset:0;

}

.lb-close,
.lb-prev,
.lb-next{

    position:absolute;

    background:none;

    border:none;

    color:#fff;

    font-size:34px;

    cursor:pointer;

    z-index:2;

}

.lb-close{

    top:30px;

    right:40px;

}

.lb-prev{

    left:40px;

    top:50%;

    transform:translateY(-50%);

}

.lb-next{

    right:40px;

    top:50%;

    transform:translateY(-50%);

}

.lightbox-content{

    position:relative;

    z-index:2;

}   

.lightbox-image img{

    transition:opacity .35s ease,
               transform .45s ease;

}

.gallery-lightbox.active .lightbox-image img{

    transform:scale(1);

}

.lightbox-image img{

    transform:scale(.96);

}