/* =========================================================
   SATYA — GALLERY PAGE
========================================================= */


/* =========================================================
   HERO
========================================================= */

.gallery-hero {

    position: relative;

    min-height: 62vh;

    display: flex;

    align-items: center;

    background:
        linear-gradient(
            90deg,
            rgba(7, 45, 20, .88),
            rgba(7, 45, 20, .58),
            rgba(0, 0, 0, .18)
        ),
        url("../images/projects/hero/projects-hero.jpg")
        center / cover no-repeat;

    overflow: hidden;
}


.gallery-hero-overlay {

    position: absolute;

    inset: 0;

    pointer-events: none;
}


.gallery-hero .container {

    position: relative;

    z-index: 2;

    width: 100%;
}


.gallery-hero-content {

    max-width: 720px;

    color: #ffffff;
}


.gallery-hero .section-tag {

    display: inline-block;

    margin-bottom: 20px;

    color: #9EE37D;

    font-size: 14px;

    font-weight: 700;

    letter-spacing: 3px;

    text-transform: uppercase;
}


.gallery-hero h1 {

    font-family: var(--heading-font);

    color: #ffffff;

    font-size: 64px;

    line-height: 1.1;

    margin: 0 0 25px;
}


.gallery-hero p {

    max-width: 650px;

    color: rgba(255,255,255,.90);

    font-size: 20px;

    line-height: 1.8;

    margin: 0 0 35px;
}


.gallery-hero .breadcrumb {

    display: flex;

    align-items: center;

    gap: 12px;

    color: rgba(255,255,255,.75);

    font-size: 15px;
}


.gallery-hero .breadcrumb a {

    color: #ffffff;

    transition: color .3s ease;
}


.gallery-hero .breadcrumb a:hover {

    color: #9EE37D;
}


.gallery-hero .breadcrumb span:last-child {

    color: #9EE37D;
}


/* =========================================================
   INTRO
========================================================= */

.gallery-intro {

    padding: 110px 0 90px;

    background: var(--white);

    text-align: center;
}


.gallery-intro-content {

    max-width: 850px;

    margin: 0 auto;
}


.gallery-intro .section-tag {

    display: inline-block;

    margin-bottom: 18px;

    color: var(--primary-green);

    font-size: 14px;

    font-weight: 700;

    letter-spacing: 3px;

    text-transform: uppercase;
}


.gallery-intro h2 {

    font-family: var(--heading-font);

    color: var(--dark);

    font-size: 50px;

    line-height: 1.2;

    margin: 0 0 25px;
}


.gallery-intro p {

    max-width: 760px;

    margin: 0 auto 18px;

    color: var(--text);

    font-size: 17px;

    line-height: 1.9;
}


/* =========================================================
   COLLECTION
========================================================= */

.gallery-collection {

    padding: 110px 0 120px;

    background: #f7faf8;
}


.gallery-collection-header {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 40px;

    margin-bottom: 30px;
}


.gallery-collection-header .section-tag {

    display: inline-block;

    margin-bottom: 15px;

    color: var(--primary-green);

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 2.5px;

    text-transform: uppercase;
}


.gallery-collection-header h2 {

    font-family: var(--heading-font);

    color: var(--dark);

    font-size: 50px;

    line-height: 1.15;

    margin: 0 0 8px;
}


.gallery-collection-header p {

    color: var(--primary-green);

    font-size: 18px;

    font-weight: 600;

    margin: 0;
}


/* =========================================================
   COLLECTION META
========================================================= */

.collection-meta {

    display: flex;

    flex-direction: column;

    align-items: flex-end;

    gap: 10px;

    flex-shrink: 0;
}


.collection-meta span {

    display: flex;

    align-items: center;

    gap: 9px;

    color: var(--text);

    font-size: 14px;
}


.collection-meta i {

    color: var(--primary-green);
}


.gallery-collection-description {

    max-width: 850px;

    margin-bottom: 50px;
}


.gallery-collection-description p {

    color: var(--text);

    font-size: 16px;

    line-height: 1.85;

    margin: 0;
}


/* =========================================================
   GALLERY GRID
========================================================= */

.gallery-grid {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    grid-auto-flow: dense;

    gap: 18px;
}


/* =========================================================
   GALLERY ITEM
========================================================= */

.gallery-item {

    position: relative;

    aspect-ratio: 4 / 3;

    margin: 0;

    overflow: hidden;

    background: #e9efeb;

    border-radius: 16px;

    box-shadow:
        0 8px 25px rgba(0,0,0,.06);
}


.gallery-item-large {

    grid-column: span 2;

    grid-row: span 2;

    aspect-ratio: 1 / 1;
}


/* Image Button */

.gallery-image-button {

    position: relative;

    display: block;

    width: 100%;

    height: 100%;

    padding: 0;

    border: 0;

    background: transparent;

    cursor: pointer;

    overflow: hidden;
}


/* Image */

.gallery-image-button img {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:
        transform .55s ease;
}


/* Overlay */

.gallery-item-overlay {

    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(5,35,16,.38);

    color: #ffffff;

    font-size: 25px;

    opacity: 0;

    transition:
        opacity .35s ease;
}


.gallery-image-button:hover img {

    transform: scale(1.06);
}


.gallery-image-button:hover
.gallery-item-overlay {

    opacity: 1;
}


.gallery-image-button:focus-visible {

    outline: 3px solid #9EE37D;

    outline-offset: -3px;
}


/* =========================================================
   GALLERY COUNT
========================================================= */

.gallery-count {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    margin-top: 45px;

    color: var(--text);

    font-size: 15px;
}


.gallery-count-number {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 38px;

    height: 38px;

    padding: 0 10px;

    border-radius: 50%;

    background: var(--primary-green);

    color: #ffffff;

    font-size: 13px;

    font-weight: 800;
}


/* =========================================================
   CLOSING
========================================================= */

.gallery-closing {

    padding: 110px 0;

    background: var(--white);
}


.gallery-closing-content {

    max-width: 850px;

    margin: 0 auto;

    padding: 70px 50px;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f3faf6
        );

    border: 1px solid #e2ebe5;

    border-radius: 28px;

    box-shadow:
        0 15px 45px rgba(0,0,0,.06);
}


.gallery-closing .section-tag {

    display: inline-block;

    margin-bottom: 18px;

    color: var(--primary-green);

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 2.5px;

    text-transform: uppercase;
}


.gallery-closing h2 {

    font-family: var(--heading-font);

    color: var(--dark);

    font-size: 46px;

    line-height: 1.2;

    margin: 0 0 22px;
}


.gallery-closing p {

    max-width: 700px;

    margin: 0 auto 30px;

    color: var(--text);

    font-size: 16px;

    line-height: 1.9;
}


.gallery-closing-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    padding: 14px 24px;

    border-radius: 8px;

    background: var(--primary-green);

    color: #ffffff;

    font-size: 15px;

    font-weight: 600;

    text-decoration: none;

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}


.gallery-closing-btn:hover {

    transform: translateY(-3px);

    box-shadow:
        0 12px 30px rgba(0,0,0,.12);
}


/* =========================================================
   LIGHTBOX
========================================================= */

.gallery-lightbox {

    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 40px;

    background:
        rgba(0,0,0,.94);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .3s ease,
        visibility .3s ease;
}


.gallery-lightbox.active {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}


.lightbox-content {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    width: min(1200px,90vw);

    height: min(85vh,850px);
}


.lightbox-content img {

    display: block;

    max-width: 100%;

    max-height: 100%;

    width: auto;

    height: auto;

    object-fit: contain;

    border-radius: 6px;
}


/* Buttons */

.lightbox-close,
.lightbox-prev,
.lightbox-next {

    position: fixed;

    z-index: 2;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 48px;

    height: 48px;

    padding: 0;

    border: 1px solid rgba(255,255,255,.20);

    border-radius: 50%;

    background:
        rgba(255,255,255,.10);

    color: #ffffff;

    font-size: 18px;

    cursor: pointer;

    transition:
        background .25s ease,
        transform .25s ease;
}


.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {

    background:
        rgba(255,255,255,.20);
}


.lightbox-close {

    top: 25px;

    right: 25px;
}


.lightbox-prev {

    left: 25px;

    top: 50%;

    transform: translateY(-50%);
}


.lightbox-next {

    right: 25px;

    top: 50%;

    transform: translateY(-50%);
}


.lightbox-counter {

    position: absolute;

    left: 50%;

    bottom: -35px;

    transform: translateX(-50%);

    color: rgba(255,255,255,.80);

    font-size: 13px;

    font-weight: 600;

    white-space: nowrap;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 992px) {

    .gallery-hero h1 {

        font-size: 52px;
    }


    .gallery-intro h2 {

        font-size: 42px;
    }


    .gallery-collection-header h2 {

        font-size: 42px;
    }


    .gallery-grid {

        grid-template-columns:
            repeat(3,minmax(0,1fr));
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .gallery-hero {

        min-height: 50vh;

        background-position: 65% center;
    }


    .gallery-hero-content {

        text-align: center;

        margin: auto;
    }


    .gallery-hero h1 {

        font-size: 38px;
    }


    .gallery-hero p {

        font-size: 17px;
    }


    .gallery-hero .breadcrumb {

        justify-content: center;
    }


    .gallery-intro {

        padding: 80px 0 70px;
    }


    .gallery-intro h2 {

        font-size: 35px;
    }


    .gallery-intro p {

        font-size: 16px;
    }


    .gallery-collection {

        padding: 80px 0;
    }


    .gallery-collection-header {

        display: block;

        margin-bottom: 25px;
    }


    .gallery-collection-header h2 {

        font-size: 36px;
    }


    .collection-meta {

        align-items: flex-start;

        margin-top: 25px;
    }


    .gallery-collection-description {

        margin-bottom: 35px;
    }


    .gallery-grid {

        grid-template-columns:
            repeat(2,minmax(0,1fr));

        gap: 12px;
    }


    .gallery-item-large {

        grid-column: span 2;

        grid-row: span 1;

        aspect-ratio: 16 / 9;
    }


    .gallery-item-overlay {

        display: none;
    }


    .gallery-count {

        margin-top: 35px;
    }


    .gallery-closing {

        padding: 80px 0;
    }


    .gallery-closing-content {

        padding: 50px 28px;

        border-radius: 20px;
    }


    .gallery-closing h2 {

        font-size: 34px;
    }


    .gallery-lightbox {

        padding: 25px 15px;
    }


    .lightbox-content {

        width: 100%;

        height: 78vh;
    }


    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {

        width: 42px;

        height: 42px;

        font-size: 15px;
    }


    .lightbox-close {

        top: 15px;

        right: 15px;
    }


    .lightbox-prev {

        left: 12px;
    }


    .lightbox-next {

        right: 12px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .gallery-hero h1 {

        font-size: 33px;
    }


    .gallery-hero p {

        font-size: 16px;
    }


    .gallery-intro h2 {

        font-size: 31px;
    }


    .gallery-collection-header h2 {

        font-size: 31px;
    }


    .gallery-grid {

        gap: 9px;
    }


    .gallery-item {

        border-radius: 9px;
    }


    .gallery-closing-content {

        padding: 40px 22px;
    }


    .gallery-closing h2 {

        font-size: 30px;
    }

}