/* =============================================
   Art Portfolio — Styles
   ============================================= */

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

:root {
    --bg: #0a0a0a;
    --surface: #111111;
    --surface-hover: #161412;
    --text: #ccc8c0;
    --text-dim: #6b6860;
    --text-faded: #3a3836;
    --accent: #8b2020;
    --accent-dim: rgba(139, 32, 32, 0.25);
    --border: #222220;
}

body {
    font-family: 'EB Garamond', Georgia, serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding: 80px 24px 120px;
}

.hidden {
    display: none !important;
}

/* ─── Age Gate ─── */

.age-gate {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(6px);
}

.age-gate-box {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 50px 40px;
    max-width: 520px;
    width: 100%;
    text-align: center;
}

.age-gate-icon {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--accent);
    opacity: 0.7;
}

.age-gate-box h1 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 400;
    margin-bottom: 16px;
    color: var(--text);
}

.age-gate-box p {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-dim);
    margin-bottom: 12px;
    line-height: 1.7;
}

.age-gate-box p strong {
    color: var(--text);
    font-weight: 400;
}

.age-gate-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 28px 0 20px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    text-align: center;
}

.btn-enter {
    background: var(--accent);
    color: var(--text);
    border-color: var(--accent);
}

.btn-enter:hover {
    background: #a02525;
    border-color: #a02525;
}

.btn-leave {
    background: transparent;
    color: var(--text-dim);
    border-color: var(--border);
}

.btn-leave:hover {
    border-color: var(--text-dim);
    color: var(--text);
}

.age-gate-disclaimer {
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem !important;
    font-weight: 300;
    color: var(--text-faded) !important;
    margin-top: 10px;
    letter-spacing: 0.02em;
}

/* ─── Container ─── */

.container {
    max-width: 1160px;
    margin: 0 auto;
}

/* ─── Back Link ─── */

.back-link {
    display: inline-block;
    margin-bottom: 40px;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--text);
}

/* ─── Header ─── */

header {
    text-align: center;
    margin-bottom: 80px;
}

h1 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.2;
}

.subtitle {
    font-style: italic;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-dim);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

.header-rule {
    width: 40px;
    height: 1px;
    background: var(--accent);
    opacity: 0.5;
    margin: 32px auto 0;
}

.content-warning {
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.75;
    margin-top: 20px;
}

/* ─── Gallery Section ─── */

.gallery-section {
    margin-bottom: 80px;
}

.gallery-placeholder {
    text-align: center;
    color: var(--text-dim);
    padding: 80px 20px;
    border: 1px solid var(--border);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 2.2;
}

.gallery-placeholder code {
    background: var(--bg);
    padding: 2px 8px;
    font-size: 0.8rem;
    color: var(--text);
    border: 1px solid var(--border);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2px;
}

/* ─── Gallery Item ─── */

.gallery-item {
    background: var(--surface);
    overflow: hidden;
    cursor: pointer;
    transition: background 0.3s ease;
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.35s ease;
}

.gallery-item:hover {
    background: var(--surface-hover);
}

.gallery-item:hover::after {
    transform: scaleY(1);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    display: block;
    aspect-ratio: 1;
    object-fit: cover;
}

.gallery-caption {
    padding: 20px 24px;
}

.gallery-caption h3 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.3;
}

.gallery-caption p {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--text-dim);
    line-height: 1.6;
}

.gallery-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.gallery-tag {
    font-family: 'Inter', sans-serif;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-faded);
    border: 1px solid var(--text-faded);
    padding: 2px 7px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.gallery-item:hover .gallery-tag {
    color: var(--text-dim);
    border-color: var(--text-dim);
}

/* ─── Lightbox ─── */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgba(0, 0, 0, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-media img,
.lightbox-media video {
    max-width: 90vw;
    max-height: 78vh;
    object-fit: contain;
}

.lightbox-info {
    text-align: center;
    padding: 16px 0 0;
    max-width: 600px;
}

.lightbox-info h3 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 6px;
}

.lightbox-info p {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--text-dim);
}

.lightbox-info .gallery-tags {
    justify-content: center;
    margin-top: 12px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 5001;
    font-family: 'Inter', sans-serif;
}

.lightbox-close {
    top: 20px;
    right: 24px;
    font-size: 2rem;
    line-height: 1;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    padding: 8px 14px;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--text);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    transform: translateY(-50%);
}

body.lightbox-open {
    overflow: hidden;
}

/* ─── Footer ─── */

footer {
    text-align: center;
    padding: 40px 0 20px;
    border-top: 1px solid var(--border);
}

footer a {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-faded);
    text-decoration: none;
    margin: 0 16px;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent);
}

/* ─── Responsive ─── */

@media (max-width: 768px) {
    body {
        padding: 48px 16px 80px;
    }

    header {
        margin-bottom: 48px;
    }

    .age-gate-box {
        padding: 30px 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
