/* cormorant-garamond-700italic - latin_latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-v21-latin_latin-ext-700italic.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
  size-adjust: 100%;
}



/* barlow-semi-condensed-regular - latin_latin-ext */
@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/barlow-semi-condensed-v16-latin_latin-ext-regular.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
  size-adjust: 100%;
}


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

body {
    font-family: 'Barlow Semi Condensed', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-weight: 300;
    background: #eae9e5;
    color: #333;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > main {
    flex: 1 0 auto;
}

body > footer.legal-footer {
    flex-shrink: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

/* --- Landing page --- */

.landing {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 12% 60px;
}

.landing-hero {
    text-align: center;
    margin-bottom: 48px;
}

.site-logo {
    width: 100%;
    display: block;
}

.site-logo svg {
    width: 100%;
    display: block;
}

.logo-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-weight: 700;
    font-size: 307px;
    letter-spacing: -22px;
    fill: #e2e1dd;
}

.site-title {
    font-size: 26px;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 6px;
    margin-top: 6px;
}

.site-subtitle {
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: #666;
}

.landing .empty {
    text-align: center;
    color: #999;
    padding: 80px 0;
    font-size: 14px;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 64px 40px;
}

.album-card {
    display: block;
}

.album-thumb {
    width: 100%;
    aspect-ratio: 1;
    background: #e8e4de;
    overflow: hidden;
}

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

.album-card:hover .album-thumb img {
    transform: scale(1.03);
}

.album-title {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
    margin-top: 16px;
    color: #333;
}

/* --- User grid (global landing) --- */

.user-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 64px 40px;
}

.user-card {
    display: block;
}

.user-thumb {
    width: 100%;
    aspect-ratio: 1;
    background: #e8e4de;
    overflow: hidden;
}

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

.user-card:hover .user-thumb img {
    transform: scale(1.03);
}

.user-name {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
    margin-top: 16px;
    color: #333;
}

/* --- Global landing overrides --- */

body.global-landing {
    background: #d6d6d6;
}

body.global-landing .site-title {
    margin-top: 48px;
}

body.global-landing .logo-text {
    fill: #dddddd;
}

body.global-landing .user-thumb {
    background: #d6d6d6;
}

/* --- Album page --- */

body.album-bg,
.album-page {
    background: #f5f5f3;
}

.album-page {
    padding: 24px 64px 60px;
}
.viewer-nav {
    margin-bottom: 0;
}
.back-link {
    display: inline-block;
    font-size: 20px;
    color: #aaa;
    padding: 4px 8px;
    transition: color 0.15s;
}

.back-link:hover {
    color: #555;
}

/* --- Album header --- */

.album-header {
    text-align: center;
    padding: 0 0 24px;
}

.album-header h1 {
    font-size: 36px;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #333;
}

/* --- Album dividers --- */

.scene-divider {
    text-align: center;
    padding: 48px 0 28px;
}

.scene-divider:first-of-type {
    padding-top: 0px;
}

.scene-divider h2 {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #666;
}

.scene-divider p {
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: #666;
    margin-top: 6px;
}

/* --- Photo layout (absolute positioning) --- */

.photo-layout {
    width: 100%;
}

.photo-cell {
    overflow: hidden;
}

.photo-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.photo-cell img.upgrade-overlay {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

/* --- Responsive --- */

@media (max-width: 1000px) {
    .album-grid,
    .user-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 28px;
    }

    .album-page {
        padding: 20px 48px 40px;
    }
}

/* --- Lightbox --- */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(26, 26, 26, 0);
    transition: background-color 0.35s ease;
    touch-action: none;
    --chrome-inset: 20px;
}

.lightbox.active {
    background-color: #1a1a1a;
}

.lb-wrap {
    position: relative;
    transition: transform 0.35s ease;
    will-change: transform;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-img {
    display: block;
    width: 100%;
    height: 100%;
    transform-origin: center center;
}

.lb-original {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: center center;
    opacity: 0.001;
    transition: opacity 0.2s ease;
    will-change: opacity, transform;
}

.lb-wrap.zoomed {
    overflow: visible;
    box-shadow: none;
}

.lightbox.chrome-hidden {
    cursor: none;
}

.lb-close, .lb-prev, .lb-next, .lb-bar, .lb-bar-top, .lb-counter {
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.lightbox.chrome-visible .lb-close,
.lightbox.chrome-visible .lb-prev,
.lightbox.chrome-visible .lb-next,
.lightbox.chrome-visible .lb-bar,
.lightbox.chrome-visible .lb-bar-top,
.lightbox.chrome-visible .lb-counter {
    opacity: 1;
    pointer-events: auto;
}

.lb-close {
    position: absolute;
    top: calc(var(--chrome-inset) - 8px);
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    padding: 8px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6), 0 0 10px rgba(0,0,0,0.3);
    z-index: 10;
}

.lb-prev, .lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    padding: 12px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6), 0 0 10px rgba(0,0,0,0.3);
    z-index: 10;
}

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

.lb-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--chrome-inset) 28px;
    text-align: right;
    z-index: 10;
}

.lb-counter {
    position: absolute;
    bottom: var(--chrome-inset);
    left: 24px;
    color: rgba(255, 255, 255, 1);
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-shadow:
    0 0 4px rgba(0, 0, 0, 1),
    0 0 4px rgba(0, 0, 0, 1),
    0 0 16px rgba(0, 0, 0, 0.8);
    z-index: 10;
}

.lb-desc {
    display: inline-block;
    max-width: calc(100% - 120px);
    color: rgba(255, 255, 255, 1);
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-shadow:
    0 0 4px rgba(0, 0, 0, 1),
    0 0 4px rgba(0, 0, 0, 1),
    0 0 16px rgba(0, 0, 0, 0.8);
}

.lb-bar-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: var(--chrome-inset) 28px;
    z-index: 10;
}

.lb-scene-title {
    color: rgba(255, 255, 255, 1);
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-shadow:
    0 0 4px rgba(0, 0, 0, 1),
    0 0 4px rgba(0, 0, 0, 1),
    0 0 16px rgba(0, 0, 0, 0.8);
}

.lightbox.zoomed .lb-close,
.lightbox.zoomed .lb-prev,
.lightbox.zoomed .lb-next,
.lightbox.zoomed .lb-bar,
.lightbox.zoomed .lb-bar-top,
.lightbox.zoomed .lb-counter {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 900px), (max-height: 900px) {
    .lightbox {
        --chrome-inset: 14px;
    }
}

@media (max-width: 600px) {
    .landing {
        padding: 0 20px 40px;
    }

    .landing-hero {
        margin-bottom: 32px;
    }

    .album-grid,
    .user-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
    }

    .album-page {
        padding: 16px 24px 40px;
    }

    .lb-close {
        right: 14px;
        font-size: 28px;
        padding: 8px;
    }

    .lb-scene-title {
        font-size: 13px;
        letter-spacing: 0.08em;
    }

    .lb-counter,
    .lb-desc {
        font-size: 13px;
    }

    .lb-counter {
        bottom: 12px;
        left: 14px;
    }

    .lb-bar,
    .lb-bar-top {
        padding: var(--chrome-inset) 18px;
    }

    .lb-counter {
        left: 18px;
    }
}

/* --- Legal footer --- */

.legal-footer {
    text-align: center;
    padding: 32px 20px 24px;
    font-size: 12px;
    color: #888;
    letter-spacing: 0.05em;
}

.legal-footer a {
    color: #888;
    text-decoration: none;
    margin: 0 4px;
}

.legal-footer a:hover {
    color: #333;
    text-decoration: underline;
}