:root {
    --we-ivory: #f7f1e8;
    --we-paper: #fffaf1;
    --we-ink: #211712;
    --we-brown: #4b3528;
    --we-muted: #8a7463;
    --we-gold: #b98b45;
    --we-gold-soft: rgba(185, 139, 69, 0.18);
    --we-line: rgba(75, 53, 40, 0.13);
    --we-shadow: 0 28px 90px rgba(57, 37, 24, 0.16);
}

* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    color: var(--we-ink);
    background: radial-gradient(circle at top left, rgba(185, 139, 69, 0.16), transparent 34rem),
        linear-gradient(180deg, #fbf7ef 0%, var(--we-ivory) 48%, #f3eadf 100%);
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}
body.we-lightbox-open {
    overflow: hidden;
}
.hidden {
    display: none !important;
}

.wisdom-exhibition {
    width: min(1380px, calc(100% - 32px));
    margin: 0 auto;
}

.we-hero {
    min-height: 86vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 96px 0 72px;
}
.we-hero-inner {
    max-width: 980px;
}
.we-eyebrow,
.we-label {
    display: inline-flex;
    color: var(--we-gold);
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font:
        800 11px/1 Manrope,
        sans-serif;
}
.we-hero h1 {
    margin: 22px 0 16px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(54px, 10vw, 148px);
    line-height: 0.86;
    letter-spacing: 0.075em;
    text-transform: uppercase;
    font-weight: 600;
}
.we-hero p {
    width: min(720px, 100%);
    margin: 0 auto;
    color: var(--we-muted);
    font-size: clamp(16px, 2vw, 21px);
    line-height: 1.75;
}
.we-hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 34px;
}
.we-btn {
    min-height: 46px;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font:
        800 12px/1 Manrope,
        sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}
.we-btn-primary {
    background: var(--we-ink);
    color: #fff;
}
.we-btn-soft {
    background: rgba(255, 255, 255, 0.58);
    color: var(--we-brown);
    border-color: var(--we-line);
}

.we-intro {
    display: grid;
    grid-template-columns: 1.1fr 0.55fr;
    gap: 40px;
    align-items: stretch;
    padding: 42px 0 58px;
    border-top: 1px solid var(--we-line);
    border-bottom: 1px solid var(--we-line);
}
.we-intro h2 {
    margin: 16px 0 12px;
    max-width: 720px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(34px, 4vw, 62px);
    line-height: 1;
    font-weight: 600;
}
.we-intro p {
    max-width: 800px;
    color: var(--we-muted);
    font-size: 16px;
    line-height: 1.85;
}
.we-stats-card {
    border: 1px solid var(--we-line);
    border-radius: 30px;
    background: rgba(255, 250, 241, 0.66);
    box-shadow: 0 18px 50px rgba(57, 37, 24, 0.08);
    padding: 30px;
    display: grid;
    align-content: center;
}
.we-stats-card span {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 78px;
    line-height: 0.85;
    color: var(--we-gold);
}
.we-stats-card small {
    margin-top: 10px;
    color: var(--we-brown);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.we-mini-line {
    width: 70px;
    height: 1px;
    background: var(--we-gold);
    margin: 24px 0;
}
.we-stats-card p {
    margin: 0;
    color: var(--we-muted);
}

.we-toolbar-wrap {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 18px 0;
    backdrop-filter: blur(18px);
}
.we-toolbar {
    display: grid;
    grid-template-columns: 1fr 230px 190px;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--we-line);
    border-radius: 24px;
    background: rgba(255, 250, 241, 0.82);
    box-shadow: 0 16px 40px rgba(57, 37, 24, 0.08);
}
.we-field {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    border: 1px solid var(--we-line);
    border-radius: 18px;
    background: #fffaf4;
    color: var(--we-gold);
}
.we-field input,
.we-field select {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--we-ink);
    font:
        700 14px/1 Inter,
        sans-serif;
}

.we-loader,
.we-empty {
    margin: 38px auto;
    text-align: center;
    color: var(--we-muted);
}
.we-loader span {
    width: 22px;
    height: 22px;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
    border: 3px solid var(--we-gold-soft);
    border-top-color: var(--we-gold);
    border-radius: 999px;
    animation: weSpin 0.8s linear infinite;
}
@keyframes weSpin {
    to {
        transform: rotate(360deg);
    }
}
.we-empty {
    padding: 60px 20px 100px;
}
.we-empty i {
    font-size: 38px;
    color: var(--we-gold);
}
.we-empty h3 {
    margin: 14px 0 6px;
    font-family: "Cormorant Garamond", serif;
    font-size: 38px;
}
.we-empty p {
    margin: 0;
}

.we-collection {
    padding: 26px 0 120px;
}
.we-curated-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(18px, 2.4vw, 34px);
    align-items: start;
}
.we-art-card {
    grid-column: span 3;
}
.we-span-full {
    grid-column: span 12;
}
.we-span-half {
    grid-column: span 6;
}
.we-span-third {
    grid-column: span 4;
}
.we-span-quarter {
    grid-column: span 3;
}
.we-span-small {
    grid-column: span 2;
}

.we-art-button {
    width: 100%;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: inherit;
}
.we-art-frame {
    margin: 0;
    position: relative;
    aspect-ratio: var(--art-ratio, 1 / 1.25);
    overflow: hidden;
    border: clamp(7px, 1vw, 12px) solid #2f241d;
    outline: 1px solid rgba(185, 139, 69, 0.85);
    background: #dccdbb;
    box-shadow: var(--we-shadow);
}
.we-art-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.16),
        inset 0 0 42px rgba(0, 0, 0, 0.14);
    pointer-events: none;
}
.we-art-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #120d0a;
    transition: transform 0.75s ease;
}
.we-art-button:hover .we-art-frame img {
    transform: scale(1.035);
}
.we-size-42x84 {
    grid-column: span 6;
}
.we-size-42x84.we-image-landscape .we-art-frame {
    aspect-ratio: 84 / 42;
}

.we-size-42x84.we-image-portrait .we-art-frame {
    aspect-ratio: 42 / 84;
}

.we-size-42x84.we-image-landscape {
    grid-column: span 6;
}
.we-image-missing {
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--we-muted);
    font-weight: 800;
}
.we-art-copy {
    padding: 18px 4px 0;
}
.we-art-topline,
.we-art-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--we-gold);
    font:
        800 10px/1.4 Manrope,
        sans-serif;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.we-art-copy h3 {
    margin: 10px 0 8px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(24px, 2.5vw, 42px);
    line-height: 0.98;
    font-weight: 600;
}
.we-art-copy p {
    margin: 0 0 14px;
    color: var(--we-muted);
    font-size: 14px;
    line-height: 1.7;
}
.we-art-meta {
    color: var(--we-brown);
    padding-top: 12px;
    border-top: 1px solid var(--we-line);
}
.we-span-full .we-art-copy {
    width: min(900px, 100%);
    margin-inline: auto;
    text-align: center;
}
.we-span-full .we-art-topline,
.we-span-full .we-art-meta {
    justify-content: center;
}
.we-span-full .we-art-copy h3 {
    font-size: clamp(40px, 5.5vw, 84px);
}
.we-span-small .we-art-copy h3 {
    font-size: 24px;
}
.we-span-small .we-art-copy p {
    display: none;
}

.we-compact-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.we-compact-grid .we-art-card {
    grid-column: auto;
}
.we-compact-grid .we-art-copy h3 {
    font-size: 25px;
}

.we-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: clamp(10px, 2vw, 24px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
}
.we-lightbox-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 11, 8, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.we-lightbox-card {
    position: relative;
    z-index: 2;
    width: min(1220px, calc(100vw - 24px));
    max-width: 100%;
    max-height: min(90vh, 920px);
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    overflow: hidden;
    border-radius: 32px;
    background: #120d0a;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.48);
}
.we-lightbox-media {
    min-height: 0;
    height: min(90vh, 820px);
    display: grid;
    place-items: center;
    background: #080604;
}
.we-lightbox-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.we-lightbox-info {
    min-width: 0;
    max-width: 100%;
    min-height: 0;
    max-height: min(90vh, 820px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: clamp(24px, 4vw, 54px);
    color: #fff8ec;
    word-break: normal;
    overflow-wrap: anywhere;
}
.we-lightbox-info::-webkit-scrollbar {
    width: 8px;
}

.we-lightbox-info::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}
.we-lightbox-no {
    color: var(--we-gold);
    font:
        800 10px/1 Manrope,
        sans-serif;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.we-lightbox-info h2 {
    margin: 10px 0 12px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(28px, 3vw, 48px);
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.we-lightbox-info p {
    color: #d7c5ad;
    font-size: 15px;
    line-height: 1.75;
    margin: 0;
}
.we-lightbox-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
}
.we-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
}
.we-lightbox-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 18px;
}

.we-lightbox-meta span,
.we-lightbox-meta strong {
    padding: 8px 12px;
    border-radius: 999px;
    font:
        800 11px/1 Manrope,
        sans-serif;
    letter-spacing: 0.06em;
}

.we-lightbox-meta span {
    color: #e7d7bd;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.we-lightbox-meta strong {
    color: #160f09;
    background: var(--we-gold);
}

.we-icon-action {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #fff8ec;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font:
        800 12px/1 Manrope,
        sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}

.we-icon-action:hover {
    background: rgba(255, 255, 255, 0.14);
}

.we-icon-action.liked {
    color: #ffddd2;
    border-color: rgba(255, 120, 120, 0.35);
}

.we-icon-action.liked i {
    font-weight: 900;
}

.we-icon-action.whatsapp {
    color: #dfffe8;
    border-color: rgba(37, 211, 102, 0.35);
}

@media (max-width: 980px) {
    .wisdom-exhibition {
        width: min(100% - 22px, 720px);
    }
    .we-hero {
        min-height: 68vh;
        padding-top: 72px;
    }
    .we-intro,
    .we-toolbar,
    .we-toolbar-wrap {
        position: static;
    }
    .we-curated-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
    .we-art-card,
    .we-span-small,
    .we-span-quarter,
    .we-span-third,
    .we-span-half,
    .we-span-full {
        grid-column: span 6;
    }
    .we-span-small .we-art-copy p {
        display: block;
    }
    .we-lightbox {
        display: block;
        padding: 10px;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .we-lightbox-card {
        width: 100%;
        max-width: 100%;
        max-height: none;
        grid-template-columns: 1fr;
        overflow: hidden;
    }

    .we-lightbox-media {
        height: auto;
        min-height: 240px;
        max-height: 58vh;
        overflow: hidden;
    }

    .we-lightbox-media img {
        width: 100%;
        height: auto;
        max-width: 100%;
        max-height: 58vh;
        object-fit: contain;
    }

    .we-lightbox-info {
        max-height: none;
        overflow-y: visible;
        overflow-x: hidden;
        padding: 24px 20px;
    }

    .we-lightbox-info h2 {
        font-size: clamp(24px, 7vw, 34px);
    }

    .we-lightbox-info p {
        font-size: 14px;
        line-height: 1.7;
    }
}

@media (max-width: 560px) {
    .we-hero h1 {
        letter-spacing: 0.035em;
    }
    .we-btn {
        width: 100%;
    }
    .we-stats-card {
        padding: 22px;
        border-radius: 24px;
    }
    .we-toolbar {
        border-radius: 20px;
    }
    .we-art-copy {
        padding-top: 14px;
    }
    .we-art-topline,
    .we-art-meta {
        flex-direction: column;
        gap: 4px;
    }
    .we-lightbox {
        padding: 8px;
    }
    .we-lightbox-card {
        border-radius: 22px;
    }

    .we-lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
}