/* ============================================================
   JAYRR MUSIC — EXHIBITION GALLERY STYLESHEET (NOIR SEPIA)
   ============================================================ */

:root {
    --bg-dark: #12100e;
    --bg-card: #1a1714;
    --border-copper: rgba(223, 128, 64, 0.25);
    --border-gold: rgba(212, 175, 55, 0.3);
    --copper-accent: #df8040;
    --gold-accent: #d4af37;
    --text-main: #f0e6df;
    --text-sub: #b8a69f;
    --text-muted: #7e6e67;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-code: 'Fira Code', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body.gallery-body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(223, 128, 64, 0.08) 0%, transparent 60%),
        linear-gradient(180deg, #0e0c0a 0%, #161310 100%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HEADER */
.gallery-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(18, 16, 14, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-copper);
    padding: 1.1rem 2rem;
}

.header-inner {
    max-width: 1240px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
}

.brand-group {
    display: flex; align-items: center; gap: 14px; text-decoration: none;
}

.brand-mark {
    width: 40px; height: 40px; border-radius: 8px;
    background: linear-gradient(135deg, var(--copper-accent), var(--gold-accent));
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 15px rgba(223, 128, 64, 0.3);
}

.brand-initial {
    font-family: var(--font-serif); font-weight: 900; color: #0e0c0a; font-size: 1.3rem;
}

.brand-text { display: flex; flex-direction: column; }
.brand-title { font-family: var(--font-serif); font-weight: 700; color: #fff; font-size: 1.15rem; letter-spacing: 2px; }
.brand-subtitle { font-family: var(--font-code); font-size: 0.65rem; color: var(--copper-accent); letter-spacing: 1px; }

.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-item {
    color: var(--text-sub); text-decoration: none; font-family: var(--font-sans);
    font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    padding: 6px 12px; border-radius: 4px; transition: all 0.25s ease;
}
.nav-item:hover, .nav-item.active {
    color: var(--copper-accent); background: rgba(223, 128, 64, 0.12);
}

/* HERO SECTION */
.gallery-hero {
    text-align: center; padding: 3.5rem 1.5rem 2rem;
    max-width: 900px; margin: 0 auto;
}

.hero-tag {
    font-family: var(--font-code); font-size: 0.75rem; color: var(--copper-accent);
    letter-spacing: 2px; text-transform: uppercase; margin-bottom: 0.8rem; display: inline-block;
    padding: 4px 14px; border: 1px solid var(--border-copper); border-radius: 20px;
    background: rgba(223, 128, 64, 0.08);
}

.hero-title {
    font-family: var(--font-serif); font-size: 2.6rem; color: #fff;
    letter-spacing: 1.5px; margin-bottom: 1rem; line-height: 1.25;
}

.hero-description {
    font-family: var(--font-sans); font-size: 1.05rem; color: var(--text-sub);
    line-height: 1.7; max-width: 750px; margin: 0 auto;
}

/* FILTER CONTROLS */
.gallery-controls {
    max-width: 1240px; margin: 1.5rem auto 2.5rem; padding: 0 1.5rem; text-align: center;
}

.filter-bar {
    display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center;
    background: var(--bg-card); padding: 8px 12px; border-radius: 30px;
    border: 1px solid var(--border-copper);
}

.filter-btn {
    background: transparent; border: none; color: var(--text-sub);
    font-family: var(--font-code); font-size: 0.78rem; font-weight: 600;
    padding: 8px 18px; border-radius: 20px; cursor: pointer; transition: all 0.25s ease;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--copper-accent); color: #0e0c0a; box-shadow: 0 0 12px rgba(223, 128, 64, 0.4);
}

/* BENTO MASONRY GRID */
.gallery-container {
    max-width: 1240px; margin: 0 auto 4rem; padding: 0 1.5rem; flex: 1; width: 100%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    grid-auto-rows: 320px;
    gap: 1.8rem;
}

.gallery-card {
    background: var(--bg-card);
    border: 1px solid var(--border-copper);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card.card-large {
    grid-column: span 2;
}

@media (max-width: 850px) {
    .gallery-card.card-large { grid-column: span 1; }
    .gallery-grid { grid-auto-rows: 280px; }
}

.card-image-wrap {
    width: 100%; height: 100%; position: relative; cursor: pointer; overflow: hidden;
}

.gallery-img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.5s ease;
}

.card-image-wrap:hover .gallery-img {
    transform: scale(1.06);
}

.card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(14, 12, 10, 0.95) 0%, rgba(14, 12, 10, 0.4) 50%, transparent 100%);
    padding: 1.8rem; display: flex; flex-direction: column; justify-content: flex-end;
    opacity: 0.9; transition: opacity 0.3s ease;
}

.card-image-wrap:hover .card-overlay { opacity: 1; }

.card-cat {
    font-family: var(--font-code); font-size: 0.68rem; color: var(--copper-accent);
    letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 0.4rem;
}

.card-title {
    font-family: var(--font-serif); font-size: 1.35rem; color: #fff;
    margin-bottom: 0.4rem; line-height: 1.3;
}

.card-caption {
    font-family: var(--font-sans); font-size: 0.88rem; color: var(--text-sub);
    margin-bottom: 0.8rem;
}

.expand-btn {
    font-family: var(--font-code); font-size: 0.75rem; color: var(--gold-accent);
    font-weight: 600; letter-spacing: 1px; transition: color 0.2s;
}

.card-image-wrap:hover .expand-btn { color: #fff; }

/* LIGHTBOX MODAL */
.lightbox-modal {
    display: none; position: fixed; inset: 0; z-index: 2000;
    background: rgba(10, 8, 6, 0.92); backdrop-filter: blur(16px);
    align-items: center; justify-content: center; padding: 2rem;
    opacity: 0; transition: opacity 0.3s ease;
}

.lightbox-modal.show { opacity: 1; }

.lightbox-content {
    background: var(--bg-card); border: 1px solid var(--border-gold);
    border-radius: 16px; max-width: 900px; width: 100%; overflow: hidden;
    position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    display: flex; flex-direction: column;
}

.lightbox-close {
    position: absolute; top: 15px; right: 20px; z-index: 10;
    background: rgba(0,0,0,0.6); border: 1px solid var(--border-copper);
    color: #fff; font-size: 1.8rem; width: 40px; height: 40px;
    border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
}

.lightbox-image-container {
    width: 100%; max-height: 520px; overflow: hidden; background: #000;
    display: flex; align-items: center; justify-content: center;
}

.lightbox-image-container img {
    max-width: 100%; max-height: 520px; object-fit: contain; display: block;
}

.lightbox-details {
    padding: 1.8rem 2rem; border-top: 1px solid var(--border-copper);
}

.lightbox-title {
    font-family: var(--font-serif); font-size: 1.6rem; color: var(--gold-accent);
    margin-bottom: 0.5rem;
}

.lightbox-description {
    font-family: var(--font-sans); font-size: 0.98rem; color: var(--text-sub);
    line-height: 1.6;
}

/* FOOTER */
.gallery-footer {
    border-top: 1px solid var(--border-copper); padding: 2.2rem 1.5rem;
    text-align: center; font-family: var(--font-code); font-size: 0.75rem;
    color: var(--text-muted); background: #0c0a08; margin-top: auto;
}

.footer-copy { margin-bottom: 0.4rem; }
.footer-tagline { color: var(--copper-accent); letter-spacing: 1px; }
