/* =========================================================
   BIIO ENERGY
   GALLERY PAGE
========================================================= */


/* =========================================================
   HERO
========================================================= */

.gallery-hero {
    position: relative;

    min-height: 500px;

    overflow: hidden;

    display: flex;

    align-items: center;

    background: #06344d;

    color: #fff;
}


.gallery-hero-bg {
    position: absolute;

    inset: 0;

    z-index: 0;

    background:
        radial-gradient(
            circle at 80% 35%,
            rgba(57, 207, 74, 0.20),
            transparent 24%
        ),
        radial-gradient(
            circle at 95% 100%,
            rgba(57, 207, 74, 0.12),
            transparent 30%
        ),
        linear-gradient(
            115deg,
            #042d44 0%,
            #063f55 55%,
            #075063 100%
        );
}


.gallery-hero-bg::before {
    content: "";

    position: absolute;

    width: 650px;
    height: 650px;

    right: -230px;
    top: -300px;

    border:
        1px solid rgba(72, 233, 91, 0.18);

    border-radius: 50%;
}


.gallery-hero-bg::after {
    content: "";

    position: absolute;

    width: 430px;
    height: 430px;

    right: 100px;
    bottom: -320px;

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius: 50%;
}


.gallery-hero-grid {
    position: absolute;

    inset: 0;

    z-index: 1;

    opacity: 0.22;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.05) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.05) 1px,
            transparent 1px
        );

    background-size: 60px 60px;

    mask-image:
        linear-gradient(
            90deg,
            #000 0%,
            rgba(0, 0, 0, 0.65) 55%,
            transparent 100%
        );

    -webkit-mask-image:
        linear-gradient(
            90deg,
            #000 0%,
            rgba(0, 0, 0, 0.65) 55%,
            transparent 100%
        );
}


.gallery-hero-container {
    position: relative;

    z-index: 2;

    width: 100%;

    max-width: 1370px;

    margin: 0 auto;

    padding: 100px 5%;
}


.gallery-hero-content {
    max-width: 850px;
}


.gallery-eyebrow,
.gallery-section-label {
    display: flex;

    align-items: center;

    gap: 11px;

    color: #42d451;

    font-size: 11px;

    line-height: 1;

    font-weight: 800;

    letter-spacing: 2.5px;
}


.gallery-eyebrow span,
.gallery-section-label span {
    width: 38px;
    height: 2px;

    flex: 0 0 38px;

    border-radius: 10px;

    background: #42d451;
}


.gallery-hero h1 {
    margin: 24px 0 0;

    color: #fff;

    font-size: clamp(
        48px,
        6vw,
        78px
    );

    line-height: 1.02;

    font-weight: 800;

    letter-spacing: -3px;
}


.gallery-hero h1 span {
    display: block;

    color: #42d451;
}


.gallery-hero p {
    max-width: 680px;

    margin: 27px 0 0;

    color: rgba(255, 255, 255, 0.84);

    font-size: 16px;

    line-height: 1.8;
}



/* =========================================================
   GALLERY SECTION
========================================================= */

.gallery-section {
    padding: 100px 5%;

    background: #f5faf8;
}


.gallery-container {
    width: 100%;

    max-width: 1300px;

    margin: 0 auto;
}


.gallery-top {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 40px;

    margin-bottom: 50px;
}


.gallery-top h2 {
    margin: 20px 0 0;

    color: #06344d;

    font-size: clamp(
        40px,
        4.5vw,
        60px
    );

    line-height: 1.05;

    font-weight: 800;

    letter-spacing: -2.5px;
}


.gallery-top h2 span {
    color: #20b83d;
}



/* =========================================================
   FILTER
========================================================= */

.gallery-filters {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    flex-wrap: wrap;

    gap: 8px;
}


.gallery-filter {
    min-height: 39px;

    padding: 0 15px;

    border:
        1px solid rgba(6, 52, 77, 0.10);

    border-radius: 20px;

    background: #fff;

    color: #627683;

    font-family: inherit;

    font-size: 11px;

    font-weight: 800;

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}


.gallery-filter:hover,
.gallery-filter.active {
    border-color: #20b83d;

    background: #20b83d;

    color: #fff;
}



/* =========================================================
   GRID
========================================================= */

.gallery-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    grid-auto-rows: 260px;

    gap: 18px;
}


.gallery-item {
    min-width: 0;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}


.gallery-item.gallery-large {
    grid-row: span 2;
}


.gallery-item.gallery-wide {
    grid-column: span 2;
}


.gallery-item.gallery-hidden {
    display: none;
}



/* =========================================================
   IMAGE
========================================================= */

.gallery-image {
    position: relative;

    width: 100%;
    height: 100%;

    overflow: hidden;

    border-radius: 18px;

    background: #dfeee5;
}


.gallery-image::after {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            180deg,
            transparent 35%,
            rgba(3, 30, 43, 0.85) 100%
        );

    pointer-events: none;
}


.gallery-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.6s ease;
}


.gallery-item:hover .gallery-image img {
    transform: scale(1.07);
}



/* =========================================================
   OVERLAY
========================================================= */

.gallery-overlay {
    position: absolute;

    inset: 0;

    z-index: 2;

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 15px;

    padding: 25px;
}


.gallery-overlay span {
    display: block;

    margin-bottom: 8px;

    color: #42d451;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


.gallery-overlay h3 {
    margin: 0;

    color: #fff;

    font-size: 18px;

    line-height: 1.3;

    font-weight: 800;
}


.gallery-view {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 0;

    border-radius: 50%;

    background: #20c541;

    color: #fff;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}


.gallery-view:hover {
    background: #06344d;

    transform: rotate(45deg);
}


.gallery-view i {
    font-size: 15px;
}



/* =========================================================
   CTA
========================================================= */

.gallery-cta {
    position: relative;

    overflow: hidden;

    padding: 95px 5%;

    background:
        linear-gradient(
            115deg,
            #06344d 0%,
            #06465a 65%,
            #075064 100%
        );

    color: #fff;
}


.gallery-cta-circle {
    position: absolute;

    width: 620px;
    height: 620px;

    right: -260px;
    top: -360px;

    border:
        1px solid rgba(57, 207, 74, 0.2);

    border-radius: 50%;
}


.gallery-cta-circle::after {
    content: "";

    position: absolute;

    width: 410px;
    height: 410px;

    right: 105px;
    top: 105px;

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius: 50%;
}


.gallery-cta-container {
    position: relative;

    z-index: 2;

    max-width: 900px;

    margin: 0 auto;

    text-align: center;
}


.gallery-light-label {
    justify-content: center;
}


.gallery-cta-container h2 {
    margin: 22px 0 0;

    color: #fff;

    font-size: clamp(
        38px,
        4.5vw,
        60px
    );

    line-height: 1.08;

    font-weight: 800;

    letter-spacing: -2px;
}


.gallery-cta-container h2 span {
    color: #42d451;
}


.gallery-cta-container p {
    max-width: 650px;

    margin: 20px auto 0;

    color: rgba(255, 255, 255, 0.82);

    font-size: 15px;

    line-height: 1.7;
}


.gallery-cta-btn {
    min-height: 52px;

    margin-top: 30px;

    padding: 0 25px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    border-radius: 28px;

    background: #27c542;

    color: #fff;

    font-size: 14px;

    font-weight: 800;

    text-decoration: none;

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}


.gallery-cta-btn:hover {
    background: #1fb239;

    color: #fff;

    transform: translateY(-2px);
}



/* =========================================================
   LIGHTBOX
========================================================= */

.gallery-lightbox {
    position: fixed;

    inset: 0;

    z-index: 99999;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 40px;

    background:
        rgba(2, 18, 27, 0.94);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}


.gallery-lightbox.active {
    opacity: 1;

    visibility: visible;
}


.gallery-lightbox-content {
    position: relative;

    max-width: 1100px;

    width: 100%;

    text-align: center;
}


.gallery-lightbox-content img {
    max-width: 100%;

    max-height: 78vh;

    display: block;

    margin: 0 auto;

    border-radius: 12px;

    object-fit: contain;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.4);
}


.gallery-lightbox-title {
    margin-top: 16px;

    color: #fff;

    font-size: 14px;

    font-weight: 800;
}


.gallery-lightbox-close {
    position: absolute;

    top: 25px;
    right: 25px;

    z-index: 5;

    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 0;

    border-radius: 50%;

    background: #20c541;

    color: #fff;

    cursor: pointer;
}


.gallery-lightbox-close i {
    font-size: 15px;
}


body.gallery-lightbox-open {
    overflow: hidden;
}



/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1050px) {

    .gallery-top {
        align-items: flex-start;

        flex-direction: column;
    }


    .gallery-filters {
        justify-content: flex-start;
    }


    .gallery-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 700px) {

    .gallery-hero {
        min-height: 540px;
    }


    .gallery-hero-container {
        padding: 75px 7%;
    }


    .gallery-hero h1 {
        font-size: 48px;

        letter-spacing: -2px;
    }


    .gallery-hero p {
        font-size: 14px;
    }


    .gallery-section {
        padding: 70px 6%;
    }


    .gallery-top h2 {
        font-size: 42px;

        letter-spacing: -1.8px;
    }


    .gallery-grid {
        grid-template-columns: 1fr;

        grid-auto-rows: 280px;
    }


    .gallery-item.gallery-large,
    .gallery-item.gallery-wide {
        grid-column: auto;

        grid-row: span 1;
    }


    .gallery-overlay {
        padding: 20px;
    }


    .gallery-cta {
        padding: 75px 6%;
    }

}


@media (max-width: 480px) {

    .gallery-hero {
        min-height: 500px;
    }


    .gallery-hero-container {
        padding: 60px 6%;
    }


    .gallery-hero h1 {
        font-size: 39px;

        line-height: 1.06;

        letter-spacing: -1.5px;
    }


    .gallery-eyebrow,
    .gallery-section-label {
        font-size: 9px;

        letter-spacing: 1.8px;
    }


    .gallery-top h2 {
        font-size: 36px;
    }


    .gallery-filters {
        width: 100%;

        gap: 6px;
    }


    .gallery-filter {
        padding: 0 12px;

        font-size: 10px;
    }


    .gallery-grid {
        grid-auto-rows: 250px;
    }


    .gallery-cta-container h2 {
        font-size: 36px;

        letter-spacing: -1.5px;
    }


    .gallery-cta-container p {
        font-size: 13px;
    }


    .gallery-cta-btn {
        width: 100%;
    }


    .gallery-lightbox {
        padding: 20px;
    }


    .gallery-lightbox-close {
        top: 15px;
        right: 15px;
    }

}