/* Anna + Johnny — Wedding Video Delivery (mobile-first) */

:root {
    --color-bg: #faf7f2;
    --color-bg-warm: #f3ebe3;
    --color-surface: #ffffff;
    --color-text: #3d3632;
    --color-text-muted: #7a6f68;
    --color-accent: #b8956a;
    --color-accent-dark: #9a7a52;
    --color-accent-soft: #e8ddd0;
    --color-border: #e5dcd3;
    --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow-soft: 0 4px 24px rgba(61, 54, 50, 0.06);
    --shadow-card: 0 8px 32px rgba(61, 54, 50, 0.08);
    --radius: 12px;
    --radius-lg: 20px;
    --max-width: 880px;
    --touch-min: 48px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-top: env(safe-area-inset-top, 0px);
    --mobile-bar-height: calc(4.5rem + var(--safe-bottom));
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.65;
    color: var(--color-text);
    background-color: var(--color-bg);
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(232, 221, 208, 0.5) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 100%, rgba(243, 235, 227, 0.8) 0%, transparent 50%);
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

.page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: calc(1rem + var(--safe-top)) 1rem calc(1.5rem + var(--mobile-bar-height));
}

/* Hero */

.hero {
    text-align: center;
    padding: 0.5rem 0 1.25rem;
}

.hero-eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.hero-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 11vw, 4.25rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: 0.02em;
    color: var(--color-text);
}

.hero-subtitle {
    margin: 0.5rem 0 0;
    font-family: var(--font-display);
    font-size: clamp(1rem, 4.5vw, 1.5rem);
    font-weight: 400;
    font-style: italic;
    color: var(--color-text-muted);
}

.hero-divider {
    width: 40px;
    height: 1px;
    margin: 1.25rem auto 0;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

/* Important notice */

.notice-banner {
    max-width: 36rem;
    margin: 0 auto 1rem;
    padding: 1rem 1.125rem;
    text-align: center;
    background: linear-gradient(135deg, #fff9f3 0%, var(--color-accent-soft) 100%);
    border: 1px solid var(--color-accent);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.notice-banner-title {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-text);
}

.notice-banner p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--color-text-muted);
}

.notice-banner-expiry {
    margin-top: 0.625rem !important;
    padding-top: 0.625rem;
    border-top: 1px solid rgba(184, 149, 106, 0.35);
    color: var(--color-text) !important;
}

.notice-banner strong {
    font-weight: 500;
    color: var(--color-accent-dark);
}

/* Note */

.note {
    margin: 0 auto 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.note-collapsible {
    max-width: 36rem;
}

.note-summary {
    padding: 1rem 1.125rem;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent-dark);
    cursor: pointer;
    list-style: none;
    touch-action: manipulation;
    user-select: none;
}

.note-summary::-webkit-details-marker {
    display: none;
}

.note-summary::after {
    content: '+';
    float: right;
    font-size: 1.125rem;
    line-height: 1;
    color: var(--color-accent);
}

.note-collapsible[open] .note-summary::after {
    content: '−';
}

.note-body {
    padding: 0 1.125rem 1.125rem;
    text-align: center;
}

.note-from {
    display: none;
    margin: 0 0 0.75rem !important;
    font-size: 0.8125rem !important;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent-dark) !important;
}

.note-body p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

.note-signature {
    margin-top: 0.75rem !important;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-style: italic;
    color: var(--color-accent-dark);
}

/* Download All (desktop / tablet) */

.download-all {
    margin-bottom: 1rem;
}

.download-all-desktop {
    display: none;
}

.download-all-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.125rem;
    text-align: center;
    background: linear-gradient(135deg, var(--color-bg-warm) 0%, var(--color-accent-soft) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.download-all-text h2 {
    margin: 0 0 0.25rem;
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--color-text);
}

.download-all-text p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.download-all-note {
    margin-top: 0.35rem !important;
    font-size: 0.75rem !important;
}

/* Gallery toolbar */

.gallery-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    position: sticky;
    top: var(--safe-top);
    z-index: 20;
    padding: 0.5rem 0;
    background: linear-gradient(to bottom, var(--color-bg) 70%, transparent);
}

.gallery-toolbar-label {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.view-switcher {
    display: flex;
    gap: 0.25rem;
    padding: 0.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
}

.view-switcher-btn {
    min-width: var(--touch-min);
    min-height: 2.5rem;
    padding: 0.5rem 0.875rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    background: transparent;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    touch-action: manipulation;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.view-switcher-btn.is-active {
    color: #fff;
    background: var(--color-accent);
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: var(--touch-min);
    padding: 0.75rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    touch-action: manipulation;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    color: #fff;
    background-color: var(--color-accent);
    box-shadow: 0 4px 14px rgba(184, 149, 106, 0.35);
}

.btn-primary:active {
    background-color: var(--color-accent-dark);
}

.btn-primary.is-loading {
    pointer-events: none;
    opacity: 0.75;
}

.btn-secondary {
    color: var(--color-accent-dark);
    background-color: var(--color-surface);
    border: 1px solid var(--color-accent);
}

.btn-secondary:active {
    background-color: var(--color-accent-soft);
}

.btn-compact {
    min-height: 2.75rem;
    padding: 0.625rem 1rem;
    font-size: 0.75rem;
}

/* Mobile download bar */

.mobile-download-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    padding: 0.625rem 1rem calc(0.625rem + var(--safe-bottom));
    background: rgba(250, 247, 242, 0.92);
    border-top: 1px solid var(--color-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.mobile-download-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.mobile-download-bar-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.mobile-download-bar-text strong {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
}

.mobile-download-bar-text span {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Video gallery — shared */

.videos {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.video-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.video-card-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    min-height: var(--touch-min);
    padding: 0.875rem 1rem;
    font: inherit;
    text-align: left;
    color: inherit;
    background: transparent;
    border: none;
    cursor: pointer;
    touch-action: manipulation;
}

.video-card-trigger-main {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    min-width: 0;
    flex: 1;
}

.video-thumb-wrap {
    position: relative;
    flex-shrink: 0;
    width: 7rem;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background: #1a1715;
}

.video-thumb,
.video-thumb-video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

.video-thumb-video {
    display: none;
    background: #1a1715;
}

.video-thumb-wrap.has-video-preview .video-thumb {
    display: none;
}

.video-thumb-wrap.has-video-preview .video-thumb-video {
    display: block;
}

.video-thumb-wrap.has-server-thumb .video-thumb {
    display: block;
}

.video-thumb-wrap.has-server-thumb .video-thumb-video {
    display: none;
}

.video-thumb-wrap.is-fallback .video-thumb,
.video-thumb-wrap.is-fallback .video-thumb-video {
    display: none;
}

.video-thumb-wrap .video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2rem;
    height: 2rem;
    margin: 0;
    transform: translate(-50%, -50%);
    background: rgba(250, 247, 242, 0.92);
}

.video-play-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--color-accent-soft);
    position: relative;
}

.video-play-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 7px 0 7px 11px;
    border-color: transparent transparent transparent var(--color-accent-dark);
}

.video-card-trigger-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.video-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-text);
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-text-muted);
    letter-spacing: 0.03em;
}

.video-meta time {
    font-style: normal;
}

.video-meta-sep {
    opacity: 0.7;
}

.video-size {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    letter-spacing: inherit;
}

.video-card-chevron {
    flex-shrink: 0;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.video-card.is-expanded .video-card-chevron {
    transform: rotate(-135deg) translateY(2px);
}

.video-card-body {
    border-top: 1px solid var(--color-border);
}

.video-player-wrap {
    padding: 0.75rem 1rem 0;
}

.video-player {
    display: block;
    width: 100%;
    max-height: 56vh;
    max-height: 56dvh;
    border-radius: var(--radius);
    background: #1a1715;
    outline: none;
}

.video-format-note {
    margin: 0.625rem 0 0;
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--color-text-muted);
    text-align: center;
}

.video-card-footer {
    padding: 0.75rem 1rem 1rem;
}

.video-card-footer .btn {
    width: 100%;
}

/* LIST view (default, mobile-optimized) */

.gallery-view-list .video-card-trigger {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
}

.gallery-view-list .video-card-trigger-main {
    flex-direction: row;
    align-items: center;
    width: auto;
    flex: 1;
    min-width: 0;
}

.gallery-view-list .video-thumb-wrap {
    width: 7rem;
    border-radius: var(--radius);
}

.gallery-view-list .video-card-trigger-text {
    padding: 0;
}

.gallery-view-list .video-card-chevron {
    position: static;
}

.gallery-view-list .video-card-body[hidden] {
    display: none;
}

/* THEATER view — all players open */

.gallery-view-theater {
    gap: 1.25rem;
}

.gallery-view-theater .video-card-trigger {
    pointer-events: none;
    cursor: default;
    padding-bottom: 0.25rem;
}

.gallery-view-theater .video-card-chevron {
    display: none;
}

.gallery-view-theater .video-card-body {
    display: block !important;
    border-top: none;
}

.gallery-view-theater .video-player-wrap {
    padding-top: 0;
}

.gallery-view-theater .video-player {
    max-height: 70vh;
    max-height: 70dvh;
}

/* GRID view */

.gallery-view-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.gallery-view-grid .video-card {
    display: flex;
    flex-direction: column;
}

.gallery-view-grid .video-card-trigger {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 0;
    text-align: left;
}

.gallery-view-grid .video-card-trigger-main {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

.gallery-view-grid .video-thumb-wrap {
    width: 100%;
    border-radius: 0;
    margin-bottom: 0;
}

.gallery-view-grid .video-card-trigger-text {
    padding: 0.875rem 1rem;
}

.gallery-view-grid .video-thumb-wrap .video-play-icon {
    width: 3rem;
    height: 3rem;
}

.gallery-view-grid .video-card-chevron {
    display: none;
}

.gallery-view-grid .video-title {
    font-size: 1rem;
}

.gallery-view-grid .video-card-body[hidden] {
    display: none;
}

.gallery-view-grid .video-card.is-expanded {
    grid-column: 1 / -1;
}

.gallery-view-grid .video-card.is-expanded .video-card-trigger {
    display: none;
}

.gallery-view-grid .video-card.is-expanded .video-card-body {
    display: block;
}

/* Empty state */

.empty-state {
    text-align: center;
    padding: 2.5rem 1.25rem;
    background: var(--color-surface);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-lg);
}

.empty-state p {
    margin: 0;
    color: var(--color-text-muted);
}

.empty-hint {
    margin-top: 0.75rem !important;
    font-size: 0.875rem;
}

.empty-debug {
    margin-top: 1rem !important;
    padding: 0.75rem;
    font-size: 0.75rem !important;
    text-align: left;
    background: var(--color-bg-warm);
    border-radius: var(--radius);
}

.empty-state code {
    font-size: 0.8125rem;
    padding: 0.15em 0.4em;
    background: var(--color-bg-warm);
    border-radius: 4px;
}

/* Footer */

.site-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.site-footer p {
    margin: 0;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-style: italic;
    color: var(--color-text-muted);
}

.site-footer-logout {
    margin-top: 0.75rem !important;
    font-family: var(--font-body) !important;
    font-size: 0.75rem !important;
    font-style: normal !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer-logout a {
    display: inline-block;
    min-height: var(--touch-min);
    line-height: var(--touch-min);
    color: var(--color-text-muted);
    text-decoration: none;
}

/* Login */

.page-login {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: calc(1.5rem + var(--safe-bottom));
}

.login-card {
    max-width: 24rem;
    margin: 0 auto;
    padding: 1.5rem 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.login-title {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: 1.625rem;
    font-weight: 500;
    text-align: center;
    color: var(--color-text);
}

.login-hint {
    margin: 0 0 1.25rem;
    font-size: 0.9375rem;
    text-align: center;
    color: var(--color-text-muted);
}

.login-error {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    text-align: center;
    color: #8b3a3a;
    background: #fdf0f0;
    border: 1px solid #ecd0d0;
    border-radius: var(--radius);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.login-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.login-input {
    width: 100%;
    margin-bottom: 0.75rem;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(184, 149, 106, 0.15);
}

.login-submit {
    width: 100%;
    margin-top: 0.25rem;
}

/* Tablet and desktop enhancements */

@media (min-width: 640px) {
    .page {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .gallery-view-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .note-collapsible {
        padding: 0;
    }

    .note-summary {
        display: none;
    }

    .note-from {
        display: block;
    }

    .note-collapsible .note-body {
        display: block !important;
    }

    .note-body {
        padding: 1.5rem 1.75rem;
    }

    .note-body p {
        font-size: 1rem;
    }

    .notice-banner {
        padding: 1.25rem 1.5rem;
    }

    .notice-banner-title {
        font-size: 1.375rem;
    }

    .notice-banner p {
        font-size: 0.9375rem;
    }
}

@media (min-width: 768px) {
    .page {
        padding: calc(2rem + var(--safe-top)) 1.5rem 3rem;
    }

    .mobile-download-bar {
        display: none;
    }

    .download-all-desktop {
        display: block;
        margin-bottom: 1.5rem;
    }

    .download-all-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        padding: 1.5rem 1.75rem;
    }

    .download-all-inner .btn {
        width: auto;
    }

    .gallery-toolbar {
        position: static;
        padding: 0;
        margin-bottom: 1.25rem;
    }

    .gallery-view-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .video-card-footer .btn {
        width: auto;
    }

    .view-switcher-btn:hover {
        color: var(--color-accent-dark);
    }

    .view-switcher-btn.is-active:hover {
        color: #fff;
    }

    .btn-primary:hover {
        background-color: var(--color-accent-dark);
    }

    .btn-secondary:hover {
        background-color: var(--color-accent-soft);
    }
}

/* Content Portal — client additions */

.top-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(250, 247, 242, 0.95);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.625rem 1rem;
}

.top-bar-brand {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    user-select: none;
    -webkit-user-select: none;
}

.hero-title-portal {
    user-select: none;
    -webkit-user-select: none;
}

.top-bar-link {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-text-muted);
    min-height: 2.5rem;
    line-height: 2.5rem;
}

.top-bar-brand-end {
    margin-left: auto;
}

.portal-easter-egg {
    cursor: default;
}

.code-card {
    margin-top: 0.5rem;
}

.code-input {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-align: center;
    font-size: 1.25rem !important;
}

.content-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.content-tab {
    flex: 1;
    min-height: var(--touch-min);
    padding: 0.625rem 1rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    cursor: pointer;
}

.content-tab.is-active {
    color: #fff;
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.content-section {
    margin-bottom: 1.5rem;
}

.photos {
    display: grid;
    gap: 0.75rem;
}

.photos.gallery-view-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.photo-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.photo-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: #1a1715;
    cursor: pointer;
}

.photo-trigger img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.photo-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem;
}

.photo-title {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    color: var(--color-text);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(26, 23, 21, 0.92);
}

.lightbox[hidden] {
    display: none !important;
}

body.lightbox-open {
    overflow: hidden;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-caption {
    margin: 1rem 0 0;
    color: #fff;
    font-size: 0.875rem;
    text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
}

.lightbox-close {
    top: 1rem;
    right: 1rem;
}

.lightbox-prev {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

@media (min-width: 768px) {
    .photos.gallery-view-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .hero {
        padding: 1rem 0 2rem;
    }
}
