/* =========================================================
   SAI'DU'A GALLERY PAGE
   assets/css/gallery.css
========================================================= */


/* =========================================================
   ROOT
========================================================= */

.gallery-page {
    --gallery-primary: #087a49;
    --gallery-primary-dark: #055b37;
    --gallery-primary-light: #eaf7f1;
    --gallery-secondary: #198754;
    --gallery-dark: #17352a;
    --gallery-text: #344054;
    --gallery-muted: #667085;
    --gallery-border: #e4ebe7;
    --gallery-bg: #f7faf8;
    --gallery-white: #ffffff;

    color: var(--gallery-text);
}


/* =========================================================
   GENERAL
========================================================= */

.gallery-page *,
.gallery-page *::before,
.gallery-page *::after {
    box-sizing: border-box;
}


.gallery-page img {
    max-width: 100%;
}


.gallery-page a {
    text-decoration: none;
}


.gallery-page button,
.gallery-page a {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   HERO
========================================================= */

.gallery-hero {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(255,255,255,.12),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #055b37 0%,
            #087a49 48%,
            #0b8b55 100%
        );
}


.gallery-hero::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255,255,255,.055);
    top: -180px;
    right: -100px;
    pointer-events: none;
}


.gallery-hero::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.08);
    bottom: -160px;
    left: -100px;
    pointer-events: none;
}


.gallery-hero .container {
    position: relative;
    z-index: 2;
}


.gallery-hero .executive-hero-content {
    max-width: 720px;
}


.gallery-hero .executive-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px;
    margin-bottom: 22px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 100px;
    background: rgba(255,255,255,.08);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;
}


.gallery-hero h1 {
    margin: 0 0 22px;
    color: #ffffff;
    font-size: clamp(40px, 5vw, 68px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -1.8px;
}


.gallery-hero h1 span {
    display: block;
    color: #c9f2dd;
}


.gallery-hero p {
    max-width: 650px;
    margin: 0;
    color: rgba(255,255,255,.86);
    font-size: 17px;
    line-height: 1.85;
}


/* =========================================================
   HERO ACTIONS
========================================================= */

.gallery-hero .executive-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 32px;
}


.gallery-hero .executive-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 13px 21px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}


.gallery-hero .executive-btn:hover {
    transform: translateY(-3px);
}


.gallery-hero .executive-btn-primary {
    background: #ffffff;
    color: var(--gallery-primary-dark);
    box-shadow: 0 12px 28px rgba(0,0,0,.12);
}


.gallery-hero .executive-btn-primary:hover {
    background: #f2fff8;
    box-shadow: 0 16px 34px rgba(0,0,0,.18);
}


.gallery-hero .executive-btn-outline {
    border: 1px solid rgba(255,255,255,.4);
    color: #ffffff;
    background: rgba(255,255,255,.06);
}


.gallery-hero .executive-btn-outline:hover {
    background: rgba(255,255,255,.14);
}


/* =========================================================
   HERO CARD
========================================================= */

.gallery-hero-card {
    position: relative;
    padding: 38px 34px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 24px;
    background: rgba(255,255,255,.10);
    box-shadow: 0 25px 70px rgba(0,0,0,.16);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #ffffff;
}


.gallery-hero-card::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    pointer-events: none;
}


.gallery-hero-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 24px;
    border-radius: 18px;
    background: rgba(255,255,255,.14);
    color: #ffffff;
    font-size: 30px;
}


.gallery-hero-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 13px;
    color: #ffffff;
    font-size: 25px;
    font-weight: 800;
}


.gallery-hero-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: 14px;
    line-height: 1.75;
}


.gallery-hero-divider {
    position: relative;
    z-index: 1;
    height: 1px;
    margin: 25px 0;
    background: rgba(255,255,255,.15);
}


.gallery-hero-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}


.gallery-hero-stats div {
    padding: 12px 7px;
    text-align: center;
    border-radius: 12px;
    background: rgba(255,255,255,.07);
}


.gallery-hero-stats strong {
    display: block;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}


.gallery-hero-stats span {
    display: block;
    margin-top: 4px;
    color: rgba(255,255,255,.62);
    font-size: 10px;
}


/* =========================================================
   INTRO
========================================================= */

.gallery-intro {
    padding: 82px 0 30px;
    background: #ffffff;
}


.gallery-intro .executive-section-heading {
    max-width: 760px;
    margin: 0 auto;
}


.gallery-page .executive-section-label {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--gallery-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}


.gallery-intro h2 {
    margin: 0 0 15px;
    color: var(--gallery-dark);
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.2;
    font-weight: 800;
}


.gallery-intro p {
    max-width: 700px;
    margin: auto;
    color: var(--gallery-muted);
    font-size: 15px;
    line-height: 1.8;
}


/* =========================================================
   GALLERY SECTION
========================================================= */

.gallery-section {
    padding: 35px 0 95px;
    background: var(--gallery-bg);
}


/* =========================================================
   FILTERS
========================================================= */

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 42px;
}


.gallery-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 17px;
    border: 1px solid var(--gallery-border);
    border-radius: 100px;
    background: #ffffff;
    color: var(--gallery-text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition:
        color .25s ease,
        background .25s ease,
        border-color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}


.gallery-filter:hover {
    transform: translateY(-2px);
    border-color: #a9d6bf;
    color: var(--gallery-primary);
    box-shadow: 0 8px 22px rgba(8,122,73,.08);
}


.gallery-filter.active {
    border-color: var(--gallery-primary);
    background: var(--gallery-primary);
    color: #ffffff;
    box-shadow: 0 9px 22px rgba(8,122,73,.18);
}


.gallery-filter i {
    font-size: 13px;
}


/* =========================================================
   GALLERY GRID
========================================================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}


.gallery-item {
    min-width: 0;
}


.gallery-item.is-hidden {
    display: none;
}


/* =========================================================
   GALLERY CARD
========================================================= */

.gallery-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--gallery-border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(16,24,40,.055);
    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}


.gallery-card:hover {
    transform: translateY(-7px);
    border-color: #c9ded3;
    box-shadow: 0 18px 45px rgba(16,24,40,.11);
}


/* =========================================================
   IMAGE
========================================================= */

.gallery-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #eaf0ed;
}


.gallery-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform .55s ease,
        filter .35s ease;
}


.gallery-card:hover .gallery-image {
    transform: scale(1.06);
}


/* =========================================================
   IMAGE OVERLAY
========================================================= */

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(3,46,29,.52);
    opacity: 0;
    transition: opacity .3s ease;
}


.gallery-card:hover .gallery-overlay {
    opacity: 1;
}


.gallery-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition:
        transform .25s ease,
        background .25s ease;
}


.gallery-view-btn:hover {
    transform: scale(1.1);
    background: rgba(255,255,255,.28);
}


/* =========================================================
   CATEGORY BADGE
========================================================= */

.gallery-category {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 100px;
    background: rgba(8,122,73,.9);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}


/* =========================================================
   CARD CONTENT
========================================================= */

.gallery-card-content {
    padding: 21px 21px 23px;
}


.gallery-card-content h3 {
    margin: 0 0 8px;
    color: var(--gallery-dark);
    font-size: 19px;
    line-height: 1.35;
    font-weight: 800;
}


.gallery-card-content p {
    margin: 0;
    color: var(--gallery-muted);
    font-size: 13px;
    line-height: 1.75;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.gallery-empty {
    padding: 70px 20px;
    text-align: center;
}


.gallery-empty[hidden] {
    display: none !important;
}


.gallery-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 20px;
    background: var(--gallery-primary-light);
    color: var(--gallery-primary);
    font-size: 28px;
}


.gallery-empty h3 {
    margin: 0 0 8px;
    color: var(--gallery-dark);
    font-size: 23px;
    font-weight: 800;
}


.gallery-empty p {
    margin: 0;
    color: var(--gallery-muted);
}


/* =========================================================
   LIGHTBOX
========================================================= */

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 25px;
}


.gallery-lightbox.active {
    display: flex;
}


.gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3,12,8,.91);
    cursor: pointer;
}


.gallery-lightbox-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(1100px, 100%);
    height: min(90vh, 800px);
}


.gallery-lightbox-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(900px, 82%);
    height: 100%;
}


.gallery-lightbox-image-wrapper img {
    display: block;
    max-width: 100%;
    max-height: 82vh;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 25px 70px rgba(0,0,0,.4);
}


.gallery-lightbox-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 15px 20px;
    border-radius: 0 0 12px 12px;
    background: linear-gradient(
        transparent,
        rgba(0,0,0,.72)
    );
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}


/* =========================================================
   LIGHTBOX BUTTONS
========================================================= */

.gallery-lightbox-close,
.gallery-lightbox-prev,
.gallery-lightbox-next {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    background: rgba(255,255,255,.10);
    color: #ffffff;
    font-size: 17px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition:
        background .25s ease,
        transform .25s ease;
}


.gallery-lightbox-close:hover,
.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
    background: rgba(255,255,255,.2);
    transform: scale(1.06);
}


.gallery-lightbox-close {
    top: 12px;
    right: 12px;
}


.gallery-lightbox-prev {
    left: 0;
}


.gallery-lightbox-next {
    right: 0;
}


/* =========================================================
   BODY LOCK WHEN LIGHTBOX OPEN
========================================================= */

body.gallery-lightbox-open {
    overflow: hidden;
}


/* =========================================================
   CTA
========================================================= */

.gallery-cta {
    padding: 80px 0;
    background: #ffffff;
}


.gallery-cta-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 42px;
    border: 1px solid #dcebe3;
    border-radius: 24px;
    background:
        linear-gradient(
            135deg,
            #f0faf5 0%,
            #ffffff 100%
        );
    box-shadow: 0 15px 45px rgba(16,24,40,.06);
}


.gallery-cta-icon {
    flex: 0 0 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: var(--gallery-primary);
    color: #ffffff;
    font-size: 28px;
    box-shadow: 0 12px 25px rgba(8,122,73,.2);
}


.gallery-cta-content {
    flex: 1;
}


.gallery-cta-content h2 {
    margin: 0 0 10px;
    color: var(--gallery-dark);
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.25;
    font-weight: 800;
}


.gallery-cta-content p {
    max-width: 700px;
    margin: 0;
    color: var(--gallery-muted);
    font-size: 14px;
    line-height: 1.75;
}


.gallery-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-shrink: 0;
}


.gallery-cta .executive-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 11px 17px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    transition:
        transform .25s ease,
        box-shadow .25s ease;
}


.gallery-cta .executive-btn:hover {
    transform: translateY(-2px);
}


.gallery-cta .executive-btn-primary {
    background: var(--gallery-primary);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(8,122,73,.18);
}


.gallery-cta .executive-btn-primary:hover {
    background: var(--gallery-primary-dark);
}


.gallery-cta .executive-btn-outline {
    border: 1px solid #b8d7c7;
    background: #ffffff;
    color: var(--gallery-primary);
}


.gallery-cta .executive-btn-outline:hover {
    background: var(--gallery-primary-light);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991.98px) {

    .gallery-hero {
        padding: 80px 0;
    }


    .gallery-hero-card {
        max-width: 560px;
        margin: 0 auto;
    }


    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 21px;
    }


    .gallery-cta-inner {
        align-items: flex-start;
        flex-wrap: wrap;
    }


    .gallery-cta-content {
        min-width: calc(100% - 105px);
    }


    .gallery-cta-actions {
        width: 100%;
        margin-left: 100px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767.98px) {

    .gallery-hero {
        padding: 65px 0;
    }


    .gallery-hero h1 {
        font-size: 40px;
        letter-spacing: -1px;
    }


    .gallery-hero p {
        font-size: 15px;
        line-height: 1.75;
    }


    .gallery-hero .executive-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }


    .gallery-hero .executive-btn {
        width: 100%;
    }


    .gallery-hero-card {
        padding: 30px 25px;
        border-radius: 20px;
    }


    .gallery-hero-stats {
        gap: 7px;
    }


    .gallery-hero-stats div {
        padding: 10px 5px;
    }


    .gallery-intro {
        padding: 65px 0 25px;
    }


    .gallery-section {
        padding: 30px 0 70px;
    }


    .gallery-filters {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 3px 2px 12px;
        margin-right: -12px;
        margin-left: -12px;
        padding-left: 12px;
        padding-right: 12px;
        scrollbar-width: none;
    }


    .gallery-filters::-webkit-scrollbar {
        display: none;
    }


    .gallery-filter {
        flex: 0 0 auto;
        white-space: nowrap;
    }


    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }


    .gallery-card-content {
        padding: 19px 18px 21px;
    }


    .gallery-card-content h3 {
        font-size: 18px;
    }


    .gallery-lightbox {
        padding: 15px;
    }


    .gallery-lightbox-content {
        width: 100%;
        height: 85vh;
    }


    .gallery-lightbox-image-wrapper {
        width: 82%;
    }


    .gallery-lightbox-close,
    .gallery-lightbox-prev,
    .gallery-lightbox-next {
        width: 42px;
        height: 42px;
    }


    .gallery-lightbox-close {
        top: 8px;
        right: 0;
    }


    .gallery-lightbox-prev {
        left: 0;
    }


    .gallery-lightbox-next {
        right: 0;
    }


    .gallery-cta {
        padding: 65px 0;
    }


    .gallery-cta-inner {
        padding: 30px 23px;
        gap: 20px;
    }


    .gallery-cta-icon {
        flex-basis: 58px;
        width: 58px;
        height: 58px;
        border-radius: 16px;
        font-size: 22px;
    }


    .gallery-cta-content {
        min-width: calc(100% - 78px);
    }


    .gallery-cta-actions {
        margin-left: 0;
        flex-direction: column;
        width: 100%;
    }


    .gallery-cta .executive-btn {
        width: 100%;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .gallery-hero h1 {
        font-size: 34px;
    }


    .gallery-hero-card {
        padding: 25px 20px;
    }


    .gallery-hero-icon {
        width: 62px;
        height: 62px;
        font-size: 25px;
    }


    .gallery-hero-stats strong {
        font-size: 11px;
    }


    .gallery-hero-stats span {
        font-size: 9px;
    }


    .gallery-filter {
        min-height: 41px;
        padding: 9px 13px;
        font-size: 12px;
    }


    .gallery-card {
        border-radius: 15px;
    }


    .gallery-image-wrapper {
        aspect-ratio: 16 / 10;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .gallery-page *,
    .gallery-page *::before,
    .gallery-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }

}