/*=========================================Wrapper=========================================*/

.ma-gallery-grid{
    opacity:0;
    transition:opacity .3s ease;
}

.ma-gallery-grid.ma-gallery-ready{
    opacity:1;
}

.ma-gallery-wrapper{
    width:100%;
}


/*=========================================Filters=========================================*/

.ma-gallery-filters{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-bottom:40px;
	justify-content: center;
}

.ma-gallery-filters button{
    background:transparent;
    color:#2B2B2B;
    border:1px solid #000000;
    padding:12px 20px;
    cursor:pointer;
    font-family:"DM Sans", sans-serif;
    font-weight:600;
    font-size:14px;
    line-height:150%;

    transition:all .3s ease;
}

.ma-gallery-filters button.active{
    background:#BCF6D0;
    color:#017729;
    border:1px solid #017729;
}


/*=========================================Grid=========================================*/

.ma-gallery-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:24px;
}


/*=========================================Card=========================================*/

.ma-gallery-item{
    transition:.3s ease;
}

.ma-gallery-hidden{
    display:none;
}

.ma-gallery-filter-hidden{
    opacity:0;
    visibility:hidden;
    transform:scale(.95);
}


/*=========================================Thumbnail=========================================*/

.ma-gallery-thumbnail{
    position:relative;
    overflow:hidden;
    border-radius: 10px;
    cursor:pointer;
}

.ma-gallery-thumbnail img{
    width:100%;
    display:block;
    aspect-ratio:4/3;
    object-fit:cover;
    transition:.4s ease;
}

.ma-gallery-item:hover .ma-gallery-thumbnail img{
    transform:scale(1.05);
}


/*=========================================Load More=========================================*/

.ma-gallery-load-more-wrapper{
    margin-top:48px;
    text-align:center;
}

.ma-gallery-load-more{
    border:none;
    background:transparent;
    color:#101010;
    border-radius:0px;
    padding:14px 32px;
    cursor:pointer;
    border: 2px solid #F8BE00;
    font-family:"Bricolage Grotesque", sans-serif;
    font-size:16px;
    font-weight:500;

    transition: transform .6s ease-in-out;
}

.ma-gallery-load-more:hover{
    background: #E5AE00;
	color:#101010 !important;
	transform: translatey(-5px);
}


/*=========================================Lightbox=========================================*/

.ma-lightbox{
    position:fixed;
    inset:0;
    z-index:9999;

    opacity:0;
    visibility:hidden;

    transition:.3s ease;
}

.ma-lightbox.active {
    opacity: 1;
    visibility: visible;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
}

.ma-lightbox-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.85);
}

.ma-lightbox-inner{
    position:relative;
    max-width:1000px;
    width:90%;
    margin:60px auto;
    z-index:2;
}

.ma-lightbox-close{
    width:44px;
    height:44px;
    border:none;
    border-radius:50%;
    cursor:pointer;
    position:absolute;
    right:-20px;
    top:-20px;
    background:#fff;
    font-size:24px;
	display: flex;
    align-content: center;
    align-items: center;
    color: #101010;
}

.ma-lightbox-close:hover{
	background:#fff !important;
	color: #101010 !important;
}

.ma-lightbox-content img,
.ma-lightbox-content video,
.ma-lightbox-content iframe{
    width:100%;
    display:block;
    border-radius:20px;
}

.ma-lightbox-content iframe{
    aspect-ratio:16/9;
}

body.ma-lightbox-open{
    overflow:hidden;
}

/*=========================================Play Button=========================================*/
.ma-gallery-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: .3s ease;
}

.ma-gallery-item:hover .ma-gallery-play-button {
    transform: translate(-50%, -50%) scale(1.1);
}


/*========================================= Tablet=========================================*/

@media (max-width:1024px){

    .ma-gallery-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }

}


/*=========================================Mobile=========================================*/

@media (max-width:767px){

    .ma-gallery-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));;
    }

    .ma-gallery-filters{
        gap:8px;
        margin-bottom:24px;
    }

    .ma-gallery-filters button{
        padding:10px 16px;
        font-size:13px;
    }

    .ma-lightbox-close{
        right:0;
        top:-50px;
    }
	.ma-gallery-item svg {
    width: 40px;
}

}

@media (max-width:600px){

    .ma-gallery-grid{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    }

    .ma-gallery-filters{
        gap:5px;
        margin-bottom:20px;
    }

    .ma-gallery-filters button{
        padding:10px 20px;
        font-size:14px;
    }

    .ma-lightbox-close{
        right:0;
        top:-50px;
    }

}


