/* =========================================================
   GALERI
   ========================================================= */

.gallery-page {
    width: 100%;
    overflow: hidden;
}


/* =========================================================
   HERO
   ========================================================= */

.gallery-hero {
    position: relative;

    padding: 75px 18px 80px;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(37, 99, 235, .10),
            transparent 30%
        ),
        radial-gradient(
            circle at 10% 80%,
            rgba(16, 185, 129, .08),
            transparent 30%
        ),
        #f8fafc;

    overflow: hidden;
}


.gallery-hero::before {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    right: -170px;
    top: -180px;

    border-radius: 50%;

    border:
        70px solid
        rgba(37, 99, 235, .04);

    pointer-events: none;
}


.gallery-hero::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    left: -160px;
    bottom: -170px;

    border-radius: 50%;

    border:
        60px solid
        rgba(16, 185, 129, .04);

    pointer-events: none;
}


.gallery-hero-inner {
    position: relative;

    z-index: 2;

    max-width: 900px;

    margin: 0 auto;

    text-align: center;
}


.gallery-label {
    display: inline-block;

    margin-bottom: 12px;

    color: #2563eb;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;
}


.gallery-hero h1 {
    margin: 0 0 18px;

    color: #0f172a;

    font-size: 50px;

    line-height: 1.12;

    letter-spacing: -1px;

    font-weight: 800;
}


.gallery-hero h1 span {
    color: #2563eb;

    display: block;
}


.gallery-hero p {
    max-width: 650px;

    margin: 0 auto;

    color: #64748b;

    font-size: 15px;

    line-height: 1.8;
}


/* =========================================================
   GALLERY SECTION
   ========================================================= */

.gallery-section {
    padding: 65px 18px 90px;

    background: #fff;
}


.gallery-container {
    max-width: 1200px;

    margin: 0 auto;
}


/* =========================================================
   PINTEREST / MASONRY
   ========================================================= */

.gallery-masonry {
    columns: 4 250px;

    column-gap: 18px;
}


.gallery-item {
    position: relative;

    width: 100%;

    margin: 0 0 18px;

    display: inline-block;

    vertical-align: top;

    overflow: hidden;

    border-radius: 18px;

    background: #f1f5f9;

    cursor: pointer;

    break-inside: avoid;

    box-shadow:
        0 10px 30px
        rgba(15, 23, 42, .07);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}


.gallery-item:hover {
    transform: translateY(-4px);

    box-shadow:
        0 18px 40px
        rgba(15, 23, 42, .13);
}


.gallery-item img {
    display: block;

    width: 100%;

    height: auto;

    max-width: 100%;

    transition:
        transform .45s ease;
}


.gallery-item:hover img {
    transform: scale(1.035);
}


/* =========================================================
   OVERLAY
   ========================================================= */

.gallery-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(15, 23, 42, .28);

    opacity: 0;

    transition:
        opacity .25s ease;
}


.gallery-item:hover .gallery-overlay {
    opacity: 1;
}


.gallery-overlay span {
    width: 48px;

    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, .94);

    color: #2563eb;

    font-size: 28px;

    font-weight: 400;

    line-height: 1;

    box-shadow:
        0 10px 25px
        rgba(0, 0, 0, .15);
}


/* =========================================================
   LIGHTBOX
   ========================================================= */

.gallery-lightbox {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 30px;

    background:
        rgba(2, 6, 23, .92);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .25s ease,
        visibility .25s ease;
}


.gallery-lightbox.is-open {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}


.gallery-lightbox-image {
    display: block;

    max-width: min(90vw, 1200px);

    max-height: 88vh;

    width: auto;

    height: auto;

    object-fit: contain;

    border-radius: 10px;

    box-shadow:
        0 25px 80px
        rgba(0, 0, 0, .45);

    transform: scale(.96);

    transition:
        transform .25s ease;
}


.gallery-lightbox.is-open
.gallery-lightbox-image {
    transform: scale(1);
}


/* =========================================================
   LIGHTBOX BUTTON
   ========================================================= */

.gallery-lightbox-close,
.gallery-lightbox-prev,
.gallery-lightbox-next {
    position: absolute;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 0;

    cursor: pointer;

    color: #fff;

    background:
        rgba(255, 255, 255, .12);

    backdrop-filter: blur(8px);

    transition:
        background .2s ease,
        transform .2s ease;
}


.gallery-lightbox-close:hover,
.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
    background:
        rgba(255, 255, 255, .22);
}


/* CLOSE */

.gallery-lightbox-close {
    top: 25px;

    right: 30px;

    width: 48px;

    height: 48px;

    border-radius: 50%;

    font-size: 30px;

    line-height: 1;

    z-index: 5;
}


/* PREVIOUS */

.gallery-lightbox-prev,
.gallery-lightbox-next {
    top: 50%;

    width: 52px;

    height: 52px;

    margin-top: -26px;

    border-radius: 50%;

    font-size: 24px;
}


.gallery-lightbox-prev {
    left: 25px;
}


.gallery-lightbox-next {
    right: 25px;
}


/* =========================================================
   BODY LOCK
   ========================================================= */

body.gallery-lock {
    overflow: hidden;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .gallery-masonry {
        columns: 3 220px;
    }


    .gallery-hero h1 {
        font-size: 44px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .gallery-hero {
        padding: 60px 15px 65px;
    }


    .gallery-hero h1 {
        font-size: 36px;

        letter-spacing: -.7px;
    }


    .gallery-hero p {
        font-size: 13px;

        line-height: 1.75;
    }


    .gallery-section {
        padding: 45px 12px 60px;
    }


    .gallery-masonry {
        columns: 2 150px;

        column-gap: 12px;
    }


    .gallery-item {
        margin-bottom: 12px;

        border-radius: 13px;
    }


    .gallery-overlay {
        display: none;
    }


    .gallery-lightbox {
        padding: 15px;
    }


    .gallery-lightbox-image {
        max-width: 94vw;

        max-height: 82vh;

        border-radius: 7px;
    }


    .gallery-lightbox-close {
        top: 15px;

        right: 15px;

        width: 42px;

        height: 42px;

        font-size: 25px;
    }


    .gallery-lightbox-prev,
    .gallery-lightbox-next {
        width: 42px;

        height: 42px;

        margin-top: -21px;

        font-size: 19px;
    }


    .gallery-lightbox-prev {
        left: 10px;
    }


    .gallery-lightbox-next {
        right: 10px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .gallery-hero {
        padding: 50px 12px 55px;
    }


    .gallery-hero h1 {
        font-size: 31px;
    }


    .gallery-label {
        font-size: 9px;

        letter-spacing: 1.5px;
    }


    .gallery-masonry {
        columns: 2 130px;

        column-gap: 8px;
    }


    .gallery-item {
        margin-bottom: 8px;

        border-radius: 10px;
    }

}