/* === POV — Gallery — Dark Glass 2026 === */

/* Inter — self-hosted (latin + latin-ext) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 200 700;
    font-display: swap;
    src: url('/static/fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 200 700;
    font-display: swap;
    src: url('/static/fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg: #0C0A09;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-hover: rgba(255, 255, 255, 0.07);
    --surface-border: rgba(255, 255, 255, 0.07);
    --text: #FAF7F2;
    --text-muted: #8A8279;
    --accent: #D4A574;
    --accent-light: #E8D5B7;
    --gold: #C9A96E;
    --glow: rgba(212, 165, 116, 0.15);
}

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

body {
    font-family: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

.gallery-header {
    text-align: center;
    padding: 3rem 1rem 2rem;
    position: relative;
}

.gallery-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
}

.gallery-header h1 {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
    font-weight: 200;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gallery-header .subtitle {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 3px;
    padding: 1.5rem 3px 3px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 4px;
        padding: 1.5rem 4px 4px;
    }
}

.photo-card {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    background: var(--surface);
    border-radius: 4px;
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-card:hover img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.photo-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 0.8rem 0.8rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.3s;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.photo-card:hover .photo-info {
    opacity: 1;
}

.reveal-message {
    text-align: center;
    padding: 5rem 2rem;
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-message h2 {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
    font-weight: 300;
    color: var(--accent);
}

.reveal-message p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 300;
}

.load-more {
    text-align: center;
    padding: 2.5rem;
}

.btn-load-more {
    padding: 0.85rem 2.5rem;
    background: var(--surface);
    color: var(--accent);
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: 14px;
    font-size: 0.85rem;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.btn-load-more:hover {
    background: var(--surface-hover);
    border-color: rgba(212, 165, 116, 0.4);
    transform: translateY(-2px);
}

.btn-load-more:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 300;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 10, 9, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 101;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.lightbox-close:hover {
    color: var(--text);
    background: var(--surface-hover);
}

.lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-loading {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 300;
}

.lightbox-info {
    color: var(--text-muted);
    margin-top: 1.2rem;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.03em;
}
