@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --bg-dark: #070707;
    --text-main: #f4f4f4;
    --text-muted: #666666;
    --accent: #ffffff;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --card-bg: #0d0d0d;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   INTERIOR HEADER: Sticky / Blur / Hide on Scroll Down, Reveal on Scroll Up
   ========================================================================== */
.interior-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 76px;
    padding: 0 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(7, 7, 7, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 500;
    transform: translateY(0);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s;
}

.interior-header.header-hidden {
    transform: translateY(-100%);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.25s ease;
}

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

.breadcrumbs .sep {
    color: rgba(255, 255, 255, 0.25);
}

.breadcrumbs .current {
    color: var(--accent);
    font-weight: 500;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.25s ease, transform 0.25s ease;
}

.back-link:hover {
    color: var(--accent);
    transform: translateX(-4px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-contact-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.25s ease;
}

.header-contact-link:hover {
    color: var(--accent);
}

/* ==========================================================================
   HERO / INTRO SECTION
   ========================================================================== */
.gallery-hero {
    padding: 10rem 4rem 3.5rem;
    max-width: 1600px;
    margin: 0 auto;
}

.hero-meta {
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-meta::after {
    content: '';
    display: block;
    height: 1px;
    width: 48px;
    background: rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.hero-curation {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #a0a0a0;
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    max-width: 820px;
    line-height: 1.6;
}

/* ==========================================================================
   MASONRY GRID: Natural Aspect Ratios (NO CROPPING)
   ========================================================================== */
.gallery-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 4rem 7rem;
}

.masonry-grid {
    columns: 3 340px;
    column-gap: 2.25rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 2.25rem;
    cursor: pointer;
    position: relative;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.04);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.masonry-item:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.7);
}

.image-frame {
    position: relative;
    overflow: hidden;
    background: #000000;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.masonry-item:hover img {
    transform: scale(1.025);
}

.item-info {
    padding: 1.1rem 1rem 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    background: #090909;
}

.item-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-main);
    letter-spacing: 0.2px;
}

.item-date {
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ==========================================================================
   MINIMALIST LIGHTBOX: 100% Black Background & Keyboard Controls
   ========================================================================== */
.lightbox {
    position: fixed;
    inset: 0;
    background-color: #000000;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 3rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-topbar {
    width: 100%;
    max-width: 1500px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.lightbox-counter {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.lightbox-close {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 2.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.75rem;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.lightbox-close:hover {
    transform: scale(1.15);
    opacity: 0.7;
}

.lightbox-viewport {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    user-select: none;
    padding: 1rem 0;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 72vh;
    object-fit: contain;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.9);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.25s, transform 0.25s, border-color 0.25s;
    z-index: 10;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.08);
}

.lightbox-prev {
    left: 1.5rem;
}

.lightbox-next {
    right: 1.5rem;
}

.lightbox-details {
    width: 100%;
    max-width: 950px;
    text-align: center;
    padding-top: 1rem;
    z-index: 10;
}

.lightbox-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    margin-bottom: 0.4rem;
    color: var(--text-main);
}

.lightbox-caption {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
    max-width: 800px;
    margin: 0 auto;
}

/* ==========================================================================
   GALLERY CONTACT STRIP: Fine Art Acquisitions & Editorial Contact
   ========================================================================== */
.gallery-contact-strip {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 4rem 4rem;
}

.contact-strip-card {
    background: radial-gradient(circle at 75% 30%, #151515 0%, #0a0a0a 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.contact-strip-info {
    max-width: 680px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.strip-meta {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.strip-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.85rem;
    color: var(--text-main);
    font-weight: 400;
}

.strip-desc {
    font-size: 0.85rem;
    color: #888888;
    line-height: 1.6;
}

.strip-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.85rem;
    white-space: nowrap;
}

.strip-btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    background: var(--text-main);
    color: var(--bg-dark);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
    transition: opacity 0.3s, transform 0.25s;
}

.strip-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.strip-email-link {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.25s;
}

.strip-email-link:hover {
    color: var(--accent);
}

/* ==========================================================================
   SERIES NAVIGATION FOOTER: Switch Between Galleries
   ========================================================================== */
.series-nav-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 5rem 4rem 6rem;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.series-nav-item {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.series-nav-item:hover {
    transform: translateY(-4px);
}

.series-nav-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.series-nav-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.series-nav-item:hover .series-nav-title {
    color: var(--accent);
}

/* ==========================================================================
   RESPONSIVE DESIGN: Tablet (< 992px) & Mobile (< 600px)
   ========================================================================== */
@media (max-width: 992px) {
    .interior-header {
        padding: 0 2rem;
        height: 68px;
    }
    .gallery-hero {
        padding: 8rem 2rem 3rem;
    }
    .gallery-container {
        padding: 0 2rem 5rem;
    }
    .gallery-contact-strip {
        padding: 0 2rem 3rem;
    }
    .contact-strip-card {
        padding: 2.5rem 2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    .strip-actions {
        align-items: flex-start;
    }
    .masonry-grid {
        columns: 2 260px;
        column-gap: 1.5rem;
    }
    .masonry-item {
        margin-bottom: 1.5rem;
    }
    .lightbox {
        padding: 1.5rem;
    }
    .lightbox-prev {
        left: 0.5rem;
    }
    .lightbox-next {
        right: 0.5rem;
    }
    .lightbox-nav {
        width: 46px;
        height: 46px;
        font-size: 1.25rem;
    }
    .series-nav-footer {
        padding: 4rem 2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 3rem;
    }
}

@media (max-width: 600px) {
    .interior-header {
        padding: 0 1.25rem;
        height: 60px;
    }
    .breadcrumbs {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }
    .breadcrumbs .breadcrumb-parent {
        display: none;
    }
    .gallery-hero {
        padding: 6rem 1.25rem 2rem;
    }
    .hero-meta {
        font-size: 0.75rem;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .gallery-container {
        padding: 0 1.25rem 4rem;
    }
    .gallery-contact-strip {
        padding: 0 1.25rem 2.5rem;
    }
    .contact-strip-card {
        padding: 2rem 1.25rem;
        gap: 1.5rem;
    }
    .strip-title {
        font-size: 1.4rem;
    }
    .masonry-grid {
        columns: 1;
        column-gap: 0;
    }
    .masonry-item {
        margin-bottom: 1.5rem;
    }
    .item-info {
        padding: 0.9rem 0.75rem;
    }
    .lightbox {
        padding: 1.25rem 1rem;
    }
    .lightbox-img {
        max-height: 60vh;
        max-width: 96vw;
    }
    .lightbox-prev, .lightbox-next {
        display: none; /* Swipe navigation enabled on mobile */
    }
    .lightbox-caption {
        font-size: 0.8rem;
    }
}
