/* =====================================================
   ADK GALLERY
   Anglican Diocese of Kiteto
===================================================== */


/* =====================================================
   ROOT
===================================================== */

:root {

    --navy: #06152d;
    --navy-2: #0d2850;
    --navy-3: #102f5d;

    --gold: #c8a43a;
    --gold-light: #e2c766;

    --cream: #faf8f2;
    --white: #ffffff;

    --text: #182438;
    --muted: #667085;

    --border: #e7e3d8;

    --shadow:
        0 20px 60px rgba(6, 21, 45, 0.10);

    --shadow-soft:
        0 12px 35px rgba(6, 21, 45, 0.08);

    --radius: 18px;

}


/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    font-family: "DM Sans", sans-serif;

    color: var(--text);

    background: var(--cream);

    line-height: 1.7;

}


body.lightbox-open {
    overflow: hidden;
}


img {
    max-width: 100%;
    display: block;
}


a {
    text-decoration: none;
    color: inherit;
}


button,
input {
    font-family: inherit;
}


/* =====================================================
   CONTAINER
===================================================== */

.container {

    width: min(1180px, calc(100% - 40px));

    margin: 0 auto;

}


/* =====================================================
   TOP BAR
===================================================== */

.top-bar {

    background: var(--navy);

    color: rgba(255,255,255,.78);

    font-size: 13px;

    border-bottom: 1px solid rgba(255,255,255,.08);

}


.top-bar-inner {

    min-height: 40px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

}


.top-left {

    display: flex;

    align-items: center;

    gap: 24px;

}


.top-left span {

    display: flex;

    align-items: center;

    gap: 8px;

}


.top-left i {

    color: var(--gold-light);

}


.top-right {

    display: flex;

    align-items: center;

    gap: 12px;

}


.top-right a {

    width: 28px;

    height: 28px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    transition: .25s ease;

}


.top-right a:hover {

    background: rgba(255,255,255,.1);

    color: var(--gold-light);

}


/* =====================================================
   HEADER
===================================================== */

.site-header {

    background: var(--navy);

    position: sticky;

    top: 0;

    z-index: 1000;

    box-shadow:
        0 8px 30px rgba(0,0,0,.12);

}


.nav-container {

    min-height: 78px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

}


/* =====================================================
   LOGO
===================================================== */

.logo {

    display: flex;

    align-items: center;

    gap: 11px;

    flex-shrink: 0;

}


.logo-symbol {

    width: 45px;

    height: 45px;

    display: flex;

    align-items: center;

    justify-content: center;

}


.logo-symbol img {

    width: 42px;

    height: 42px;

    object-fit: contain;

}


.logo-text {

    display: flex;

    flex-direction: column;

    line-height: 1.05;

}


.logo-text span {

    font-size: 10px;

    letter-spacing: 1.5px;

    font-weight: 700;

    color: #ffffff !important;

}


.logo-text strong {

    margin-top: 4px;

    font-size: 15px;

    letter-spacing: 1px;

    color: #ffffff !important;

}


/* =====================================================
   NAVIGATION
===================================================== */

.main-nav {

    display: flex;

    align-items: center;

    gap: 3px;

}


.main-nav > a:not(.nav-button) {

    color: rgba(255,255,255,.78);

    font-size: 13px;

    font-weight: 600;

    padding: 10px 9px;

    border-radius: 7px;

    transition: .25s ease;

}


.main-nav > a:not(.nav-button):hover,
.main-nav > a.active {

    color: #ffffff;

    background: rgba(255,255,255,.07);

}


.main-nav > a.active {

    color: var(--gold-light);

}


.nav-button {

    margin-left: 9px;

    padding: 11px 18px;

    background: var(--gold);

    color: var(--navy);

    border-radius: 7px;

    font-size: 13px;

    font-weight: 700;

    transition: .25s ease;

}


.nav-button:hover {

    background: var(--gold-light);

    transform: translateY(-1px);

}


/* =====================================================
   MOBILE TOGGLE
===================================================== */

.mobile-toggle {

    display: none;

    width: 44px;

    height: 44px;

    border: 1px solid rgba(255,255,255,.15);

    background: transparent;

    border-radius: 8px;

    cursor: pointer;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 5px;

}


.mobile-toggle span {

    width: 20px;

    height: 2px;

    background: #ffffff;

    transition: .25s ease;

}


/* =====================================================
   HERO
===================================================== */

.gallery-hero {

    position: relative;

    overflow: hidden;

    background:

        linear-gradient(
            120deg,
            #06152d 0%,
            #0d2850 65%,
            #102f5d 100%
        );

    color: #ffffff;

    min-height: 440px;

    display: flex;

    align-items: center;

}


.gallery-hero-pattern {

    position: absolute;

    width: 600px;

    height: 600px;

    border-radius: 50%;

    border: 1px solid rgba(226,199,102,.14);

    right: -160px;

    top: -220px;

}


.gallery-hero-pattern::before {

    content: "";

    position: absolute;

    inset: 70px;

    border-radius: 50%;

    border: 1px solid rgba(226,199,102,.10);

}


.gallery-hero-pattern::after {

    content: "";

    position: absolute;

    inset: 145px;

    border-radius: 50%;

    border: 1px solid rgba(226,199,102,.08);

}


.gallery-hero .container {

    position: relative;

    z-index: 2;

}


.hero-content {

    max-width: 720px;

    padding: 75px 0;

}


.eyebrow {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    color: var(--gold-light);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2px;

}


.eyebrow::before {

    content: "";

    width: 28px;

    height: 2px;

    background: var(--gold);

}


.hero-content h1 {

    margin-top: 15px;

    font-family: "Playfair Display", serif;

    font-size: clamp(48px, 7vw, 76px);

    line-height: 1.05;

    letter-spacing: -2px;

}


.hero-content p {

    max-width: 650px;

    margin-top: 22px;

    color: rgba(255,255,255,.76);

    font-size: 16px;

}


.breadcrumb {

    margin-top: 30px;

    display: flex;

    align-items: center;

    gap: 11px;

    color: rgba(255,255,255,.55);

    font-size: 13px;

}


.breadcrumb a {

    color: var(--gold-light);

}


.breadcrumb span:nth-child(2) {

    opacity: .5;

}


/* =====================================================
   SECTION
===================================================== */

.section {

    padding: 90px 0;

}


.section-heading {

    max-width: 700px;

}


.section-heading.centered {

    margin: 0 auto;

    text-align: center;

}


.section-label {

    color: var(--gold);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;

}


.section-heading h2 {

    margin-top: 10px;

    font-family: "Playfair Display", serif;

    color: var(--navy);

    font-size: clamp(34px, 5vw, 48px);

    line-height: 1.15;

}


.section-heading p {

    margin-top: 15px;

    color: var(--muted);

    font-size: 15px;

}


/* =====================================================
   INTRO
===================================================== */

.gallery-intro {

    padding-bottom: 40px;

}


/* =====================================================
   GALLERY SECTION
===================================================== */

.gallery-section {

    padding: 20px 0 100px;

}


/* =====================================================
   FILTERS
===================================================== */

.gallery-filters {

    display: flex;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 9px;

    margin-bottom: 45px;

}


.gallery-filter {

    border: 1px solid var(--border);

    background: #ffffff;

    color: #596274;

    padding: 10px 18px;

    border-radius: 999px;

    cursor: pointer;

    font-size: 13px;

    font-weight: 700;

    transition: .25s ease;

}


.gallery-filter:hover {

    border-color: var(--gold);

    color: var(--navy);

}


.gallery-filter.active {

    background: var(--navy);

    color: #ffffff;

    border-color: var(--navy);

}


/* =====================================================
   GALLERY GRID
===================================================== */

.gallery-grid {

    display: grid;

    grid-template-columns:
        repeat(12, 1fr);

    gap: 18px;

}


/* =====================================================
   EMPTY STATE
===================================================== */

.gallery-empty {

    grid-column: 1 / -1;

    min-height: 390px;

    border: 1px solid var(--border);

    background: #ffffff;

    border-radius: 24px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    text-align: center;

    padding: 55px 30px;

    box-shadow: var(--shadow-soft);

}


.empty-icon {

    width: 76px;

    height: 76px;

    border-radius: 50%;

    display: grid;

    place-items: center;

    background: rgba(200,164,58,.10);

    color: var(--gold);

    font-size: 29px;

    margin-bottom: 22px;

}


.empty-label {

    color: var(--gold);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;

}


.gallery-empty h3 {

    margin-top: 10px;

    font-family: "Playfair Display", serif;

    color: var(--navy);

    font-size: 29px;

}


.gallery-empty p {

    max-width: 600px;

    margin-top: 12px;

    color: var(--muted);

    font-size: 14px;

}


/* =====================================================
   FUTURE GALLERY ITEM
===================================================== */

.gallery-item {

    position: relative;

    overflow: hidden;

    min-height: 280px;

    border-radius: 17px;

    background: #d9d9d9;

    cursor: pointer;

}


.gallery-item.large {

    grid-column: span 6;

    min-height: 430px;

}


.gallery-item.medium {

    grid-column: span 3;

}


.gallery-item img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform .5s ease;

}


.gallery-item:hover img {

    transform: scale(1.06);

}


.gallery-overlay {

    position: absolute;

    inset: 0;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    padding: 25px;

    background:
        linear-gradient(
            to top,
            rgba(6,21,45,.88),
            rgba(6,21,45,0)
        );

    color: #ffffff;

}


.gallery-overlay span {

    color: var(--gold-light);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.5px;

}


.gallery-overlay h3 {

    margin-top: 5px;

    font-family: "Playfair Display", serif;

    font-size: 22px;

}


/* =====================================================
   MEDIA HIGHLIGHT
===================================================== */

.media-highlight {

    background: #ffffff;

}


.media-card {

    min-height: 390px;

    border-radius: 25px;

    background:
        linear-gradient(
            120deg,
            var(--navy),
            var(--navy-2)
        );

    color: #ffffff;

    padding: 65px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 50px;

    overflow: hidden;

    position: relative;

}


.media-card::after {

    content: "";

    position: absolute;

    width: 400px;

    height: 400px;

    border-radius: 50%;

    border: 1px solid rgba(226,199,102,.12);

    right: -100px;

    bottom: -200px;

}


.media-content {

    position: relative;

    z-index: 2;

    max-width: 650px;

}


.media-content h2 {

    margin-top: 12px;

    font-family: "Playfair Display", serif;

    font-size: clamp(35px, 5vw, 53px);

    line-height: 1.12;

}


.media-content p {

    margin-top: 18px;

    color: rgba(255,255,255,.70);

    max-width: 560px;

}


.gold-button {

    margin-top: 28px;

    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding: 13px 20px;

    background: var(--gold);

    color: var(--navy);

    border-radius: 7px;

    font-size: 13px;

    font-weight: 800;

    transition: .25s ease;

}


.gold-button:hover {

    background: var(--gold-light);

    transform: translateY(-2px);

}


.media-icon {

    position: relative;

    z-index: 2;

    flex-shrink: 0;

}


.media-icon-circle {

    width: 180px;

    height: 180px;

    border-radius: 50%;

    display: grid;

    place-items: center;

    border: 1px solid rgba(226,199,102,.3);

    color: var(--gold-light);

    font-size: 65px;

    background: rgba(255,255,255,.025);

}


/* =====================================================
   CTA
===================================================== */

.gallery-cta {

    background: var(--cream);

    padding: 100px 0;

    text-align: center;

}


.cta-content {

    max-width: 680px;

    margin: auto;

}


.cta-content h2 {

    margin-top: 10px;

    font-family: "Playfair Display", serif;

    color: var(--navy);

    font-size: clamp(35px, 5vw, 50px);

    line-height: 1.15;

}


.cta-content p {

    margin-top: 15px;

    color: var(--muted);

}


.cta-button {

    margin-top: 28px;

    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding: 14px 22px;

    border-radius: 7px;

    background: var(--navy);

    color: #ffffff;

    font-size: 13px;

    font-weight: 700;

    transition: .25s ease;

}


.cta-button:hover {

    background: var(--navy-2);

    transform: translateY(-2px);

}


/* =====================================================
   FOOTER
===================================================== */

.site-footer {

    background: var(--navy);

    color: rgba(255,255,255,.68);

}


.footer-grid {

    padding: 65px 0 50px;

    display: grid;

    grid-template-columns:
        1.6fr
        1fr
        1fr
        1.2fr;

    gap: 45px;

}


.footer-logo {

    display: inline-flex;

    align-items: center;

    gap: 10px;

}


.footer-logo img {

    width: 43px;

    height: 43px;

    object-fit: contain;

}


.footer-logo div {

    display: flex;

    flex-direction: column;

    line-height: 1.05;

}


.footer-logo span {

    color: #ffffff;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1.4px;

}


.footer-logo strong {

    margin-top: 4px;

    color: #ffffff;

    font-size: 14px;

    letter-spacing: 1px;

}


.footer-brand > p {

    margin-top: 17px;

    font-size: 13px;

}


.footer-column {

    display: flex;

    flex-direction: column;

    gap: 9px;

}


.footer-column h3 {

    margin-bottom: 10px;

    color: #ffffff;

    font-size: 14px;

}


.footer-column a,
.footer-column span {

    color: rgba(255,255,255,.58);

    font-size: 13px;

    transition: .2s ease;

}


.footer-column a:hover {

    color: var(--gold-light);

}


.footer-column span {

    display: flex;

    align-items: flex-start;

    gap: 8px;

}


.footer-column i {

    color: var(--gold-light);

    margin-top: 5px;

}


/* =====================================================
   FOOTER BOTTOM
===================================================== */

.footer-bottom {

    border-top: 1px solid rgba(255,255,255,.08);

}


.footer-bottom-inner {

    min-height: 65px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    font-size: 11px;

    color: rgba(255,255,255,.43);

}


/* =====================================================
   LIGHTBOX
===================================================== */

.gallery-lightbox {

    position: fixed;

    inset: 0;

    z-index: 3000;

    background: rgba(3,10,22,.94);

    display: none;

    align-items: center;

    justify-content: center;

    padding: 30px;

}


.gallery-lightbox.open {

    display: flex;

}


.lightbox-content {

    max-width: 1100px;

    max-height: 90vh;

    text-align: center;

}


.lightbox-content img {

    max-width: 100%;

    max-height: 78vh;

    object-fit: contain;

    border-radius: 10px;

}


.lightbox-caption {

    margin-top: 14px;

    color: #ffffff;

    font-size: 14px;

}


.lightbox-close {

    position: absolute;

    top: 25px;

    right: 30px;

    width: 45px;

    height: 45px;

    border: 1px solid rgba(255,255,255,.18);

    background: rgba(255,255,255,.06);

    color: #ffffff;

    border-radius: 50%;

    cursor: pointer;

    font-size: 18px;

}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1100px) {

    .main-nav > a:not(.nav-button) {

        padding-left: 6px;

        padding-right: 6px;

        font-size: 12px;

    }


    .nav-button {

        padding: 10px 13px;

    }

}


@media (max-width: 900px) {

    .mobile-toggle {

        display: flex;

    }


    .main-nav {

        position: absolute;

        top: 100%;

        left: 0;

        right: 0;

        display: none;

        flex-direction: column;

        align-items: stretch;

        gap: 3px;

        padding: 15px 20px 20px;

        background: var(--navy);

        border-top: 1px solid rgba(255,255,255,.08);

        box-shadow: 0 20px 30px rgba(0,0,0,.18);

    }


    .main-nav.open {

        display: flex;

    }


    .main-nav > a:not(.nav-button) {

        padding: 13px;

    }


    .nav-button {

        margin-left: 0;

        margin-top: 7px;

        text-align: center;

    }


    .gallery-item.large {

        grid-column: span 12;

    }


    .gallery-item.medium {

        grid-column: span 6;

    }


    .footer-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }

}


@media (max-width: 650px) {

    .container {

        width: min(
            100% - 28px,
            1180px
        );

    }


    .top-bar {

        display: none;

    }


    .nav-container {

        min-height: 70px;

    }


    .hero-content {

        padding: 65px 0;

    }


    .gallery-hero {

        min-height: 390px;

    }


    .gallery-filters {

        justify-content: flex-start;

        overflow-x: auto;

        flex-wrap: nowrap;

        padding-bottom: 5px;

    }


    .gallery-filter {

        flex-shrink: 0;

    }


    .gallery-empty {

        min-height: 350px;

        padding: 40px 20px;

    }


    .gallery-empty h3 {

        font-size: 25px;

    }


    .media-card {

        padding: 45px 28px;

        flex-direction: column;

        align-items: flex-start;

    }


    .media-icon {

        display: none;

    }


    .footer-grid {

        grid-template-columns: 1fr;

        gap: 35px;

        padding: 50px 0 40px;

    }


    .footer-bottom-inner {

        min-height: auto;

        padding: 20px 0;

        flex-direction: column;

        align-items: flex-start;

    }

}


@media (max-width: 480px) {

    .gallery-item.medium,
    .gallery-item.large {

        grid-column: span 12;

    }


    .gallery-hero h1 {

        font-size: 48px;

    }


    .section {

        padding: 70px 0;

    }


    .gallery-section {

        padding-bottom: 70px;

    }

}