/* CSS Variables - Georgian Art Direction & Etching Theme */
:root {
    --bg-studio: #f4f0eb;       /* Antique warm paper */
    --bg-card: #fcfbfa;         /* Fine print parchment white */
    --text-dark: #221f1e;       /* Ink black / charcoal */
    --border-color: rgba(34, 31, 30, 0.08); /* Darker fine border */
    --border-gold: #c3ab7d;      /* Muted Georgian gold for key accents */
    --font-serif: 'Cormorant Garamond', serif;
    --font-script: 'Pinyon Script', cursive;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    background-color: var(--bg-studio);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
    font-family: var(--font-sans);
    /* Subtly textured laid paper (papier vergé) background with vignette */
    background-color: var(--bg-studio);
    background-image: 
        radial-gradient(circle, rgba(244, 240, 235, 0.1) 0%, rgba(222, 215, 204, 0.45) 100%),
        repeating-linear-gradient(0deg, rgba(34, 31, 30, 0.007) 0px, rgba(34, 31, 30, 0.007) 1px, transparent 1px, transparent 10px),
        repeating-linear-gradient(90deg, rgba(34, 31, 30, 0.007) 0px, rgba(34, 31, 30, 0.007) 1px, transparent 1px, transparent 10px);
    box-shadow: inset 0 0 120px rgba(34, 31, 30, 0.08);
    min-height: 100vh;
}

/* Main Lookbook Area */
.lookbook-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem 8rem 2rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 4.5rem;
}

/* Georgian Header & Frontispiece Page Title */
.georgian-header {
    text-align: center;
    padding: 7rem 2rem 4rem 2rem;
    background-color: transparent;
    position: relative;
}

.frontispiece-frame {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 4rem;
    border: 1px double var(--border-gold); /* Double line gold border */
    outline: 4px double rgba(34, 31, 30, 0.12); /* Neoclassical dual line outline */
    outline-offset: -12px;
    background-color: rgba(252, 251, 250, 0.45);
    box-shadow: 0 15px 40px rgba(34, 31, 30, 0.02);
    position: relative;
}

.header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-pre-title {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: #8c7853; /* Muted gold-brown */
    margin-bottom: 1.2rem;
}

.header-title {
    font-family: var(--font-serif);
    font-size: 3.8rem;
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: 0.05em;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-transform: uppercase;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.8);
}

.header-sub-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-style: italic;
    color: rgba(34, 31, 30, 0.7);
    margin-bottom: 2.2rem;
}

.header-divider {
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
    position: relative;
    margin-bottom: 2.2rem;
}

.header-divider::before {
    content: "❖";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #f7f6f3;
    padding: 0 12px;
    font-size: 0.9rem;
    color: var(--border-gold);
}

.header-concept-badge {
    font-family: var(--font-serif);
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    border: 1px solid rgba(195, 171, 125, 0.4);
    padding: 0.6rem 2rem;
    border-radius: 0;
    background-color: rgba(252, 251, 250, 0.8);
    color: #8c7853;
    font-weight: 500;
    box-shadow: 3px 3px 0px rgba(195, 171, 125, 0.15);
}

/* Editorial Intro Section */
.editorial-intro {
    max-width: 1100px;
    margin: 0 auto 5rem auto;
    padding: 0 2rem;
}

.editorial-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 4.5rem 0;
}

.editorial-col {
    display: flex;
    flex-direction: column;
}

.editorial-title {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 1.4rem;
    position: relative;
}

.editorial-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 1px;
    background-color: var(--border-gold);
}

.editorial-text {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1.75;
    color: rgba(34, 31, 30, 0.8);
    font-weight: 300;
}

.editorial-text strong {
    font-weight: 500;
    color: var(--text-dark);
}

.editorial-text em {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--text-dark);
}

/* Antique Dropcap (Lettrine) */
.dropcap {
    font-family: var(--font-serif);
    font-size: 4.2rem;
    line-height: 0.75;
    float: left;
    margin-right: 0.8rem;
    margin-top: 0.2rem;
    color: #8c7853;
    font-weight: 600;
    border: 1px solid rgba(140, 120, 83, 0.3);
    padding: 0.4rem 0.6rem 0.2rem 0.6rem;
    background-color: #fdfcfb;
    box-shadow: 3px 3px 0px rgba(140, 120, 83, 0.1);
}

.instruction-script {
    display: block;
    margin-top: 1.5rem;
    font-family: var(--font-script);
    font-size: 2rem;
    color: #8c7853;
    line-height: 1.2;
}

/* Card - Framed Neoclassical Print Style (Passe-partout) */
.card {
    background-color: var(--bg-card);
    padding: 1.8rem 1.8rem 2.2rem 1.8rem;
    border: 1px solid var(--border-color);
    box-shadow: 
        0 12px 35px rgba(34, 31, 30, 0.03),
        0 1px 3px rgba(34, 31, 30, 0.02);
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 2px;
    background-image: radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.6) 0%, transparent 100%);
}

/* Random rotations to simulate a physical editorial collection layout */
.grid .card:nth-child(even) {
    transform: rotate(0.6deg);
}

.grid .card:nth-child(3n) {
    transform: rotate(-0.5deg);
}

.grid .card:nth-child(5n) {
    transform: rotate(0.4deg);
}

.card:hover {
    transform: translateY(-8px) rotate(0deg) !important;
    box-shadow: 
        0 24px 60px rgba(34, 31, 30, 0.08),
        0 2px 8px rgba(34, 31, 30, 0.03);
    border-color: var(--border-gold);
    z-index: 10;
}

/* Physical Copperplate Indentation (Plate Mark / Cuve d'impression) */
.card-plate-mark {
    position: relative;
    width: 100%;
    padding: 1.5rem; /* Margin of the plate border before image */
    background-color: #f7f5f1; /* Flat, pressed paper look inside the plate */
    border: 1px solid rgba(0, 0, 0, 0.035);
    /* Inset shadow simulates the soft depression of the copper plate edge into the paper */
    box-shadow: 
        inset 1px 1px 3px rgba(34, 31, 30, 0.09),
        inset -1px -1px 3px rgba(255, 255, 255, 0.7),
        1px 1px 0px rgba(255, 255, 255, 0.5); 
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.card:hover .card-plate-mark {
    box-shadow: 
        inset 1px 1px 4px rgba(140, 120, 83, 0.15),
        inset -1px -1px 4px rgba(255, 255, 255, 0.8);
    background-color: #f5f2eb;
}

.card-visual-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    border: 1px solid rgba(34, 31, 30, 0.18); /* Ink border around print image */
    box-shadow: 0 4px 12px rgba(34, 31, 30, 0.02);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
    filter: sepia(12%) contrast(0.96) brightness(0.98);
}

.card:hover .card-img {
    transform: scale(1.015);
    filter: sepia(2%) contrast(1) brightness(1);
}

/* Plate number label at bottom */
.card-plate-label {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--text-dark);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

/* Fashion Plate Description */
.card-plate-title {
    text-align: center;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    color: rgba(34, 31, 30, 0.85);
    margin-bottom: 0.25rem;
}

.card-plate-date {
    text-align: center;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(34, 31, 30, 0.5);
    margin-bottom: 1.2rem;
}

/* Authentic Publisher Credit Line */
.card-publication-credit {
    text-align: center;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.65rem;
    color: rgba(34, 31, 30, 0.42);
    border-top: 1px solid rgba(34, 31, 30, 0.06);
    padding-top: 0.8rem;
    margin-top: auto;
    letter-spacing: 0.02em;
}

/* Calligraphic corner tag (e.g. Pl. 1) */
.card-corner-tag {
    position: absolute;
    top: 0.6rem;
    right: 0.8rem;
    font-family: var(--font-script);
    font-size: 1.7rem;
    color: #8c7853;
    line-height: 1;
    pointer-events: none;
    z-index: 5;
}

/* Small elegant stamp seal for video indicators */
.card-tag {
    position: absolute;
    bottom: 0.8rem;
    right: 0.8rem;
    background-color: rgba(140, 120, 83, 0.08);
    border: 1px dashed rgba(140, 120, 83, 0.4);
    color: #8c7853;
    padding: 0.2rem 0.5rem;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-serif);
    font-weight: bold;
    pointer-events: none;
    border-radius: 0;
    z-index: 5;
}

/* Full-Screen Visual Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-studio);
}

.modal-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 10;
    overflow: hidden;
    transform: scale(0.99) translateY(5px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active .modal-wrapper {
    transform: scale(1) translateY(0);
}

.modal-scroll-container {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 0; /* Edge to edge, no padding! */
}

.modal-layout {
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
}

/* Floating Circular Glass Close Button */
.modal-close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
    font-size: 1.4rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 1010; /* Make sure it stays on top of bento grid */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    transform: rotate(90deg) scale(1.05);
    background-color: var(--text-dark);
    color: var(--bg-studio);
    border-color: var(--text-dark);
}

/* Bento Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    gap: 0.5rem;
    padding: 0.5rem;
    width: 100%;
    min-height: 100vh;
    grid-auto-flow: dense; /* Pack items tightly */
}

.bento-item {
    position: relative;
    overflow: hidden;
    background-color: #eae9e5;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Edge to edge fill */
    object-position: center top; /* Focus on the top to preserve heads */
    display: block;
    transition: var(--transition-smooth);
}

.bento-item video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Edge to edge fill */
    object-position: center;
    display: block;
    transition: var(--transition-smooth);
}

.bento-item img:hover {
    transform: scale(1.015);
}

/* Bento Grid Spans for Desktop - Balanced Square and Horizontal formats */

/* Normal photoshoot card - Portrait (1 column wide, 2 rows high) */
.bento-shoot {
    grid-column: span 1;
    grid-row: span 2;
}

/* Large featured photoshoot (first one) - Landscape (2 columns wide, 2 rows high) */
.bento-shoot.bento-featured {
    grid-column: span 2;
    grid-row: span 2;
}

/* Alternate size: Landscape / Wide - 2x2 span */
.bento-shoot:nth-child(3n) {
    grid-column: span 2;
    grid-row: span 2;
}

/* Video - Landscape (2 columns wide, 2 rows high) */
.bento-video {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-grid .bento-video:first-of-type {
    grid-column: span 2;
    grid-row: span 2;
}

/* Responsive Grid Adapters */

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 220px;
    }
    
    .bento-shoot {
        grid-column: span 1;
        grid-row: span 2;
    }
    
    .bento-shoot.bento-featured {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .bento-shoot:nth-child(3n) {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .bento-video {
        grid-column: span 2;
        grid-row: span 2;
    }
}

@media (max-width: 768px) {
    .georgian-header {
        padding: 4rem 1rem 2rem 1rem;
    }
    
    .frontispiece-frame {
        padding: 2rem 1.5rem;
        outline-offset: -8px;
    }
    
    .header-title {
        font-size: 2.2rem;
    }
    
    .editorial-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 3rem 0;
    }
    
    .editorial-title {
        font-size: 1.4rem;
    }
    
    .lookbook-section {
        padding: 2rem 1rem 4rem 1rem;
    }
    
    .grid {
        gap: 2.5rem;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
        gap: 0.4rem;
        padding: 0.4rem;
    }
    
    .bento-shoot {
        grid-column: span 1;
        grid-row: span 2;
    }
    
    .bento-shoot.bento-featured {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .bento-shoot:nth-child(3n) {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .bento-video {
        grid-column: span 2;
        grid-row: span 2;
    }
}

@media (max-width: 480px) {
    .header-title {
        font-size: 1.8rem;
    }
    
    .header-pre-title {
        font-size: 0.75rem;
        letter-spacing: 0.2em;
        margin-bottom: 0.8rem;
    }
    
    .instruction-script {
        font-size: 1.6rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
        gap: 0.3rem;
        padding: 0.3rem;
    }
    
    .bento-shoot {
        grid-column: span 1;
        grid-row: span 2;
    }
    
    .bento-shoot.bento-featured {
        grid-column: span 1;
        grid-row: span 2;
    }
    
    .bento-shoot:nth-child(3n) {
        grid-column: span 1;
        grid-row: span 2;
    }
    
    .bento-video {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* Lightbox full-resolution zoom overlay */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(246, 245, 242, 0.98); /* Warm light backdrop */
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: zoom-out;
}

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

.lightbox img, .lightbox video {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain; /* Never crop this view! */
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0,0,0,0.05);
    transform: scale(0.98);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active img, .lightbox.active video {
    transform: scale(1);
}

/* Centered Layout for Single Item */
.bento-grid.single-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    padding: 4rem 2rem;
}

.bento-grid.single-item .bento-item {
    width: auto;
    height: auto;
    max-width: 650px;
    max-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-card);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
    border-radius: 4px;
}

.bento-grid.single-item .bento-item img,
.bento-grid.single-item .bento-item video {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 2px;
}

.bento-grid.single-item .bento-item:hover {
    transform: scale(1.01);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.12);
}

/* Centered Layout for Two Items */
.bento-grid.two-items {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    min-height: 100vh;
    width: 100%;
    padding: 4rem 2rem;
}

.bento-grid.two-items .bento-item {
    flex: 0 1 500px;
    height: auto;
    max-height: 75vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-card);
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
    border-radius: 4px;
    aspect-ratio: 3/4; /* Consistent portrait styling */
}

.bento-grid.two-items .bento-item img,
.bento-grid.two-items .bento-item video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 2px;
}

.bento-grid.two-items .bento-item:hover {
    transform: scale(1.01) translateY(-4px);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.12);
}

@media (max-width: 992px) {
    .bento-grid.two-items {
        flex-direction: column;
        gap: 2rem;
        padding: 6rem 2rem 4rem 2rem; /* Give room below the close button */
    }
    
    .bento-grid.two-items .bento-item {
        flex: 1 1 auto;
        width: 100%;
        max-width: 450px;
        height: 60vh;
    }
}

/* Editorial Footer */
.georgian-footer {
    border-top: 1px solid var(--border-color);
    max-width: 1100px;
    margin: 6rem auto 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}

.footer-inner {
    max-width: 800px;
    margin: 0 auto;
}

.footer-text {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    line-height: 1.6;
    color: rgba(34, 31, 30, 0.55);
    margin-bottom: 0.8rem;
    font-weight: 300;
}

.footer-text em {
    font-family: var(--font-serif);
    font-style: italic;
    color: rgba(34, 31, 30, 0.7);
}

.footer-subtext {
    font-family: var(--font-serif);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(34, 31, 30, 0.4);
}


