/* =========================================================
   LAMiC GALLERY PAGE
========================================================= */


/* =========================================================
   GALLERY HERO
========================================================= */

.gallery-hero {

    position: relative;

    min-height: 520px;

    display: flex;

    align-items: center;

    background:
        linear-gradient(
            90deg,
            rgba(18, 39, 71, .96),
            rgba(18, 39, 71, .72),
            rgba(18, 39, 71, .42)
        ),
        url("../images/gallery/gallery-hero.jpg")
        center / cover no-repeat;

    overflow: hidden;

}


.gallery-hero-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(18,39,71,.92),
            rgba(18,39,71,.45)
        );

}


.gallery-hero-content {

    position: relative;

    z-index: 2;

    max-width: 850px;

    padding: 100px 0;

    color: #ffffff;

}


.gallery-breadcrumb {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 30px;

    font-size: 14px;

}


.gallery-breadcrumb a {

    color: rgba(255,255,255,.75);

    text-decoration: none;

    transition: .3s ease;

}


.gallery-breadcrumb a:hover {

    color: #ffffff;

}


.gallery-breadcrumb i {

    font-size: 10px;

    color: #00a651;

}


.gallery-breadcrumb span {

    color: #ffffff;

    font-weight: 600;

}


.gallery-hero-label {

    display: inline-block;

    margin-bottom: 18px;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 2px;

    color: #00a651;

}


.gallery-hero h1 {

    margin: 0;

    max-width: 800px;

    font-size: clamp(42px, 5vw, 68px);

    line-height: 1.08;

    font-weight: 700;

    letter-spacing: -1.5px;

}


.gallery-hero h1 strong {

    display: block;

    color: #00a651;

    font-weight: 700;

}


.gallery-hero p {

    max-width: 720px;

    margin-top: 25px;

    margin-bottom: 0;

    font-size: 18px;

    line-height: 1.8;

    color: rgba(255,255,255,.88);

}



/* =========================================================
   GALLERY INTRO
========================================================= */

.gallery-intro {

    padding-bottom: 35px;

}


.gallery-intro .section-heading {

    max-width: 750px;

    margin-left: auto;

    margin-right: auto;

}


.gallery-intro .section-heading p {

    max-width: 680px;

    margin-left: auto;

    margin-right: auto;

}



/* =========================================================
   GALLERY SECTION
========================================================= */

.gallery-section {

    padding: 30px 0 100px;

    background: #f7f9fb;

}



/* =========================================================
   FILTER BUTTONS
========================================================= */

.gallery-filter {

    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 12px;

    margin-bottom: 45px;

}


.gallery-filter-btn {

    border: 1px solid #dce3e9;

    background: #ffffff;

    color: #18325b;

    padding: 12px 24px;

    border-radius: 50px;

    font-family: inherit;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background .3s ease,
        color .3s ease,
        border-color .3s ease,
        transform .3s ease;

}


.gallery-filter-btn:hover {

    transform: translateY(-2px);

    border-color: #00a651;

    color: #00a651;

}


.gallery-filter-btn.active {

    background: #18325b;

    border-color: #18325b;

    color: #ffffff;

}



/* =========================================================
   GALLERY GRID
========================================================= */

.gallery-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;

}


.gallery-item {

    transition:
        opacity .35s ease,
        transform .35s ease;

}


.gallery-item.hidden {

    display: none;

}



/* =========================================================
   GALLERY CARD
========================================================= */

.gallery-card {

    position: relative;

    height: 330px;

    overflow: hidden;

    background: #ffffff;

    border-radius: 10px;

    box-shadow:
        0 10px 35px rgba(18,39,71,.08);

}


.gallery-card::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(18,39,71,.9),
            rgba(18,39,71,.05) 65%
        );

    opacity: .9;

    pointer-events: none;

}


.gallery-card img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    transition:
        transform .6s ease;

}


.gallery-card:hover img {

    transform: scale(1.08);

}



/* =========================================================
   IMAGE OVERLAY
========================================================= */

.gallery-overlay {

    position: absolute;

    left: 0;

    right: 0;

    bottom: 0;

    z-index: 3;

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

    padding: 28px;

    color: #ffffff;

}


.gallery-overlay span {

    display: block;

    margin-bottom: 8px;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.5px;

    color: #00a651;

}


.gallery-overlay h3 {

    margin: 0;

    font-size: 20px;

    line-height: 1.3;

    font-weight: 600;

    color: #ffffff;

}


.gallery-view {

    flex: 0 0 46px;

    width: 46px;

    height: 46px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid rgba(255,255,255,.45);

    border-radius: 50%;

    background: rgba(255,255,255,.12);

    backdrop-filter: blur(8px);

    color: #ffffff;

    cursor: pointer;

    transition: .3s ease;

}


.gallery-view:hover {

    background: #00a651;

    border-color: #00a651;

    transform: translateY(-3px);

}



/* =========================================================
   LIGHTBOX
========================================================= */

.gallery-lightbox {

    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 40px;

    background: rgba(8,18,32,.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;

    max-width: 1000px;

    width: 100%;

    text-align: center;

}


.lightbox-content img {

    display: block;

    width: auto;

    max-width: 100%;

    max-height: 75vh;

    margin: auto;

    border-radius: 8px;

    box-shadow:
        0 25px 80px rgba(0,0,0,.45);

}


.lightbox-caption {

    margin-top: 20px;

    color: #ffffff;

}


.lightbox-caption span {

    display: block;

    margin-bottom: 6px;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.5px;

    color: #00a651;

}


.lightbox-caption h3 {

    margin: 0;

    font-size: 22px;

    font-weight: 600;

}


.lightbox-close,
.lightbox-prev,
.lightbox-next {

    position: absolute;

    z-index: 5;

    width: 50px;

    height: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid rgba(255,255,255,.25);

    border-radius: 50%;

    background: rgba(255,255,255,.08);

    color: #ffffff;

    cursor: pointer;

    transition: .3s ease;

}


.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {

    background: #00a651;

    border-color: #00a651;

}


.lightbox-close {

    top: 25px;

    right: 30px;

}


.lightbox-prev {

    left: 30px;

    top: 50%;

    transform: translateY(-50%);

}


.lightbox-next {

    right: 30px;

    top: 50%;

    transform: translateY(-50%);

}



/* =========================================================
   CTA
========================================================= */

.gallery-cta {

    padding: 80px 0;

    background:
        linear-gradient(
            135deg,
            #18325b,
            #122747
        );

    color: #ffffff;

}


.gallery-cta-inner {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 50px;

}


.gallery-cta-inner > div {

    max-width: 750px;

}


.gallery-cta-inner > div > span {

    display: inline-block;

    margin-bottom: 12px;

    color: #00a651;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 2px;

}


.gallery-cta h2 {

    margin: 0 0 15px;

    font-size: clamp(30px, 4vw, 46px);

    line-height: 1.15;

    color: #ffffff;

}


.gallery-cta p {

    margin: 0;

    max-width: 650px;

    color: rgba(255,255,255,.78);

    line-height: 1.8;

    font-size: 16px;

}


.gallery-cta .btn {

    flex-shrink: 0;

}



/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {


    .gallery-hero {

        min-height: 470px;

    }


    .gallery-hero-content {

        padding: 90px 0;

    }


    .gallery-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }


    .gallery-card {

        height: 310px;

    }


    .gallery-cta-inner {

        align-items: flex-start;

        flex-direction: column;

    }

}



/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {


    .gallery-hero {

        min-height: 450px;

    }


    .gallery-hero-content {

        padding: 75px 0;

    }


    .gallery-hero h1 {

        font-size: 42px;

        letter-spacing: -.8px;

    }


    .gallery-hero p {

        font-size: 16px;

        line-height: 1.7;

    }


    .gallery-breadcrumb {

        margin-bottom: 25px;

    }


    .gallery-section {

        padding-bottom: 70px;

    }


    .gallery-filter {

        gap: 8px;

        margin-bottom: 30px;

    }


    .gallery-filter-btn {

        padding: 10px 17px;

        font-size: 13px;

    }


    .gallery-grid {

        grid-template-columns: 1fr;

        gap: 18px;

    }


    .gallery-card {

        height: 330px;

    }


    .gallery-overlay {

        padding: 22px;

    }


    .gallery-overlay h3 {

        font-size: 18px;

    }


    .gallery-lightbox {

        padding: 20px;

    }


    .lightbox-close {

        top: 15px;

        right: 15px;

    }


    .lightbox-prev {

        left: 12px;

    }


    .lightbox-next {

        right: 12px;

    }


    .lightbox-content img {

        max-height: 65vh;

    }


    .gallery-cta {

        padding: 65px 0;

    }

}



/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {


    .gallery-hero h1 {

        font-size: 36px;

    }


    .gallery-hero-label {

        font-size: 11px;

        letter-spacing: 1.5px;

    }


    .gallery-card {

        height: 290px;

    }


    .gallery-overlay {

        padding: 18px;

    }


    .gallery-view {

        width: 40px;

        height: 40px;

        flex-basis: 40px;

    }


    .lightbox-prev,
    .lightbox-next {

        width: 42px;

        height: 42px;

    }

}