/*=========================================
GALLERY HERO
=========================================*/

.gallery-hero {

    padding: 170px 0 90px;

}

.gallery-hero-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 70px;

    align-items: center;

}

.gallery-badge {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding: 10px 18px;

    border-radius: 40px;

    background: #eef4ff;

    color: var(--blue);

    font-weight: 700;

}

.gallery-hero-content h1 {

    font-family: "Poppins", sans-serif;

    font-size: 60px;

    line-height: 1.1;

    margin: 25px 0;

}

.gallery-hero-content h1 span {

    color: var(--blue);

}

.gallery-hero-content p {

    color: var(--gray);

    line-height: 1.9;

    font-size: 17px;

}

.gallery-hero-image img {

    width: 100%;

    border-radius: 26px;

}

/*=========================================
FILTER
=========================================*/

.gallery-filter-section {

    padding-bottom: 70px;

}

.gallery-filter {

    display: flex;

    justify-content: center;

    gap: 18px;

    flex-wrap: wrap;

}

.gallery-filter button {

    border: none;

    background: #f3f5fb;

    color: var(--dark);

    padding: 14px 28px;

    border-radius: 40px;

    cursor: pointer;

    font-weight: 700;

    transition: .35s;

}

.gallery-filter button.active,
.gallery-filter button:hover {

    background: var(--blue);

    color: #fff;

}

/*=========================================
FEATURED STORY
=========================================*/

.featured-gallery {

    padding-bottom: 100px;

}

.featured-gallery-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 60px;

    align-items: center;

}

.featured-image img {

    width: 100%;

    border-radius: 26px;

}

.featured-content h2 {

    font-size: 42px;

    margin: 20px 0;

}

.featured-content p {

    color: var(--gray);

    line-height: 1.9;

}

/*=========================================
MASONRY GALLERY
=========================================*/

.gallery-section {

    padding-bottom: 100px;

}

.gallery-grid {

    column-count: 3;

    column-gap: 25px;

}

.gallery-card {

    position: relative;

    overflow: hidden;

    border-radius: 22px;

    margin-bottom: 25px;

    cursor: pointer;

    break-inside: avoid;

    opacity: 1;

    transform: scale(1);

    transition: opacity .3s ease, transform .3s ease;

}

.gallery-card.hidden {

    display: none;

}

.gallery-card img {

    width: 100%;

    display: block;

    transition: transform .5s ease;

}

.gallery-overlay {

    position: absolute;

    inset: 0;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    gap: 15px;

    padding: 30px;

    background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, .05));

    opacity: 0;

    transition: opacity .35s ease;

}

.gallery-overlay-icon {

    width: 60px;

    height: 60px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, .18);

    border: 1px solid rgba(255, 255, 255, .25);

    backdrop-filter: blur(8px);

    color: #fff;

    font-size: 22px;

}

.gallery-overlay span {

    display: block;

    margin-bottom: 7px;

    color: rgba(255, 255, 255, .75);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.5px;

}

.gallery-overlay h3 {

    margin: 0;

    color: #fff;

    font-family: "Poppins", sans-serif;

    font-size: 25px;

    line-height: 1.2;

}

.gallery-card:hover img {

    transform: scale(1.08);

}

.gallery-card:hover .gallery-overlay {

    opacity: 1;

}

.play-icon {

    background: var(--blue);

    border-color: var(--blue);

}

/*=========================================
QUOTE
=========================================*/

.gallery-quote {

    background: linear-gradient(135deg, #153b88, #0f2d68);

    color: #fff;

    padding: 90px 20px;

    text-align: center;

}

.gallery-quote h2 {

    font-family: "Poppins", sans-serif;

    font-size: 46px;

    max-width: 900px;

    margin: auto;

    line-height: 1.4;

}

/*=========================================
CTA
=========================================*/

.gallery-cta {

    padding: 110px 20px;

    text-align: center;

}

.gallery-cta h2 {

    font-size: 48px;

    margin-bottom: 20px;

}

.gallery-cta p {

    max-width: 700px;

    margin: auto auto 40px;

    color: var(--gray);

    line-height: 1.9;

}

/*=========================================
LIGHTBOX
=========================================*/

.gallery-lightbox {

    position: fixed;

    inset: 0;

    z-index: 999999;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 30px;

    background: rgba(0, 0, 0, .94);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition: opacity .3s ease, visibility .3s ease;

}

.gallery-lightbox.show {

    opacity: 1;
    visibility: visible;
    pointer-events: auto;

}

.gallery-lightbox-content {

    position: relative;

    width: min(1100px, 100%);
    max-height: 90vh;

}

.gallery-body {

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

}

.lightbox-media-wrapper {

    width: 100%;

    text-align: center;

}

.gallery-body img {

    display: block;

    width: auto;

    max-width: 100%;

    max-height: 80vh;

    margin: auto;

    object-fit: contain;

    border-radius: 16px;

}

.gallery-lightbox-video {

    display: block;

    width: 100%;

    max-height: 80vh;

    margin: auto;

    background: #000;

    border-radius: 16px;

}

.lightbox-title {

    margin: 18px 0 0;

    color: #fff;

    font-family: "Poppins", sans-serif;

    font-size: 20px;

    font-weight: 600;

}


.gallery-close {

    position: absolute;

    top: -60px;

    right: 0;

    width: 46px;

    height: 46px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: none;

    border-radius: 50%;

    background: #fff;

    color: #111;

    cursor: pointer;

    font-size: 19px;

    transition: .25s;

    z-index: 5;

}

.gallery-close:hover {

    transform: rotate(90deg);

}

body.gallery-lightbox-open {

    overflow: hidden;

}


/*=========================================
TABLET
=========================================*/

@media (max-width: 992px) {

    .gallery-hero {

        padding: 150px 0 70px;

    }

    .gallery-hero-grid {

        grid-template-columns: 1fr;

        text-align: center;

    }

    .gallery-hero-image {

        max-width: 650px;

        margin: auto;

    }

    .featured-gallery-grid {

        grid-template-columns: 1fr;

        text-align: center;

    }

    .featured-image {

        max-width: 650px;

        margin: auto;

    }

    .gallery-grid {

        column-count: 2;

    }

    .gallery-quote h2 {

        font-size: 38px;

    }

}

/*=========================================
MOBILE
=========================================*/

@media (max-width: 768px) {

    .gallery-hero {

        padding: 130px 0 60px;

    }

    .gallery-badge {

        font-size: 13px;

    }

    .gallery-hero-content h1 {

        font-size: 42px;

    }

    .gallery-hero-content p {

        font-size: 16px;

    }

    .gallery-grid {

        column-count: 1;

    }

    /*
    On mobile the overlay remains visible
    */

    .gallery-overlay {

        opacity: 1;

        padding: 22px;

    }

    .gallery-overlay-icon {

        width: 50px;

        height: 50px;

        font-size: 18px;

    }

    .gallery-overlay h3 {

        font-size: 21px;

    }

    .featured-gallery {
        display: none;
    }

    .featured-content h2 {

        font-size: 32px;

    }

    .gallery-quote {

        padding: 70px 20px;

    }

    .gallery-quote h2 {

        font-size: 30px;

    }

    .gallery-cta {

        padding: 80px 20px;

    }

    .gallery-cta h2 {

        font-size: 34px;

    }


    /* LIGHTBOX */

    .gallery-lightbox {

        padding: 20px;

    }

    .gallery-lightbox-content {

        width: 100%;

    }

    .gallery-body img {

        max-height: 75vh;

        border-radius: 12px;

    }

    .gallery-lightbox-video {

        max-height: 70vh;

        border-radius: 12px;

    }

    .gallery-close {

        top: -55px;

        right: 0;

    }

    .lightbox-title {

        font-size: 18px;

    }

}