/* ─── Photography Layout ────────────────────────────────────────────────────── */
:root {
    --photo-bg: #0a0b0d;
    --photo-surface: #141519;
    --photo-border: #252830;
    --photo-text: #e8eaf0;
    --photo-muted: #8b919f;
    --photo-accent: #6eb5ff;
}

.photo-body { background: var(--photo-bg); color: var(--photo-text); margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }

/* ─── Header ────────────────────────────────────────────────────────────────── */
.photo-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10,11,13,.92); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--photo-border);
}
.photo-header-inner {
    max-width: 1400px; margin: 0 auto; padding: 0 32px; height: 60px;
    display: flex; align-items: center; justify-content: space-between;
}
.photo-brand { font-size: 1.1rem; font-weight: 700; letter-spacing: .5px; color: var(--photo-text); }
.photo-brand:hover { color: white; }
.photo-nav { display: flex; gap: 24px; }
.photo-nav-link { font-size: .875rem; color: var(--photo-muted); font-weight: 500; transition: color .2s; }
.photo-nav-link:hover { color: var(--photo-text); }

/* ─── Main ──────────────────────────────────────────────────────────────────── */
.photo-main { min-height: calc(100vh - 60px - 56px); }

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.photo-footer { text-align: center; padding: 24px; color: var(--photo-muted); font-size: .8rem; border-top: 1px solid var(--photo-border); }

/* ─── Gallery ───────────────────────────────────────────────────────────────── */
.gallery-page { max-width: 1400px; margin: 0 auto; padding: 48px 24px; }
.gallery-empty { text-align: center; padding: 80px; color: var(--photo-muted); font-size: 1.1rem; }

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

.album-card { text-decoration: none; color: var(--photo-text); display: block; }
.album-cover { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; background: var(--photo-surface); }
.album-cover-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; display: block; }
.album-card:hover .album-cover-img { transform: scale(1.04); }
.album-cover-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 3rem; color: var(--photo-muted); }
.album-cover-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 50%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 20px;
    opacity: 0; transition: opacity .3s;
}
.album-card:hover .album-cover-overlay { opacity: 1; }
.album-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 4px; }
.album-count { font-size: .8rem; color: rgba(255,255,255,.7); }
.album-desc { font-size: .85rem; color: var(--photo-muted); margin: 10px 0 0; line-height: 1.5; }

/* ─── Album Detail ──────────────────────────────────────────────────────────── */
.album-page { max-width: 1400px; margin: 0 auto; padding: 32px 24px 64px; }
.album-page-header { margin-bottom: 40px; }
.album-back { font-size: .875rem; color: var(--photo-muted); display: inline-block; margin-bottom: 16px; }
.album-back:hover { color: var(--photo-text); }
.album-page-title { font-size: 2rem; font-weight: 800; margin: 0 0 8px; letter-spacing: -.5px; }
.album-page-desc { font-size: .95rem; color: var(--photo-muted); margin: 0; }

/* ─── Photo Grid ────────────────────────────────────────────────────────────── */
.photo-grid {
    columns: 4; column-gap: 12px;
}
@media (max-width: 1200px) { .photo-grid { columns: 3; } }
@media (max-width: 768px) { .photo-grid { columns: 2; } }
@media (max-width: 480px) { .photo-grid { columns: 1; } }

.photo-grid-item {
    break-inside: avoid; margin-bottom: 12px;
    position: relative; overflow: hidden; border-radius: 6px;
    cursor: pointer; display: block;
}
.photo-thumb { width: 100%; display: block; transition: transform .3s ease; border-radius: 6px; }
.photo-grid-item:hover .photo-thumb { transform: scale(1.02); }

.photo-hover-overlay {
    position: absolute; inset: 0; border-radius: 6px;
    background: rgba(0,0,0,.5);
    display: flex; align-items: flex-end; padding: 16px;
    opacity: 0; transition: opacity .25s;
}
.photo-grid-item:hover .photo-hover-overlay { opacity: 1; }
.photo-hover-title { color: white; font-size: .9rem; font-weight: 600; }

/* ─── Lightbox ──────────────────────────────────────────────────────────────── */
.lightbox-overlay {
    display: none; position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,.95); align-items: center; justify-content: center;
    flex-direction: column; padding: 24px;
}
.lightbox-overlay.active { display: flex; }
#lightbox-img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 4px; }
.lightbox-caption { color: rgba(255,255,255,.7); font-size: .875rem; margin-top: 16px; text-align: center; }
.lightbox-close {
    position: absolute; top: 20px; right: 24px;
    background: none; border: none; color: white; font-size: 2rem; cursor: pointer;
    line-height: 1; opacity: .7;
}
.lightbox-close:hover { opacity: 1; }
