/* ============================================================
   DOMENICA PAGE: FINAL ALIGNMENT & STYLING
   ============================================================ */

/* --- DOMENICA NAV OVERRIDES --- */

/* 1. Show and style the Sophia Domenica name */
.nav-home-link {
    display: block !important; 
    position: absolute;
    left: 5%; 
    text-decoration: none;
    font-family: 'Cormorant Garamond', serif; /* Restores the correct font */
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 1px;
    color: #1e2b22;
    z-index: 3101;
    text-transform: none;
}

/* 2. Keep tabs centered while the name is pinned left */
.nav-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* 3. Ensure hamburger appears on this page too */
@media (max-width: 1300px) {
    .menu-toggle {
        display: flex !important;
    }
}

.magazine-container {
    padding: 135px 7.5% 80px;
    max-width: 1400px;
    margin: 0 auto;
}

/* 1. HEADER */
.mag-intro { text-align: center; margin-bottom: 60px; display: flex; flex-direction: column; align-items: center; }
.mag-logo-img { width: 45px; margin-bottom: 30px; }
.mag-main-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5.5rem;
    font-weight: 300;
    letter-spacing: 15px;
    line-height: 1;
    margin: 0 0 30px 0;
    color: var(--warm-emerald);
    text-transform: uppercase;
}
.mag-definition-full { 
    font-family: 'Cormorant Garamond', serif; 
    font-size: 1.4rem; 
    font-style: italic; 
    color: var(--warm-emerald);
    margin-bottom: 10px;
}

.mag-credits {
    /* Changed from Montserrat to match the definition */
    font-family: 'Cormorant Garamond', serif; 
    font-style: italic;
    font-size: 1.1rem;
    color: var(--warm-emerald);
    /* Removed uppercase and heavy spacing for a more editorial look */
    text-transform: none;
    letter-spacing: normal;
    /* Reduced margin to bring the gallery up */
    margin: 0 auto 30px auto; 
    opacity: 0.8;
    max-width: 850px;
    line-height: 1.6;
}

/* Ensure the gallery doesn't have extra top padding */
.mag-filmstrip {
    margin-top: 0;
    margin-bottom: 80px;
}

/* 2. GALLERY */
.mag-filmstrip {
    width: 100vw;
    position: relative;
    left: 50%; right: 50%;
    margin-left: -50vw; margin-right: -50vw;
    margin-bottom: 60px;
    overflow-x: auto;
}
.filmstrip-track { display: flex; gap: 20px; padding: 0 7.5%; }
.filmstrip-track img { height: 500px; width: auto; object-fit: cover; flex-shrink: 0; cursor: pointer; transition: 0.3s; }
.filmstrip-track img:hover { opacity: 0.8; }

/* 3. CENTER LINKS */
.mag-links-container { text-align: center; margin-bottom: 120px; }
.mag-instagram { font-family: 'Montserrat', sans-serif; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 3px; color: var(--warm-emerald); display: block; margin-bottom: 30px; text-decoration: none; opacity: 0.6; }
.buy-button { display: inline-block; padding: 15px 45px; border: 1px solid var(--warm-emerald); color: var(--warm-emerald); text-decoration: none; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 3px; transition: 0.4s; }
.buy-button:hover { background: var(--warm-emerald); color: var(--sand-paper); }

/* 4. VOLUMES & THE GREEN BOX EFFECT */
.vol-feature { margin-bottom: 150px; }
.vol-content { display: flex; align-items: center; gap: 80px; }

/* SHARED HOVER SCALE */
.vol-cover-link { display: block; overflow: hidden; text-decoration: none; }
.vol-cover-link img { 
    width: 100%; 
    display: block; 
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); 
}
.vol-cover-link:hover img { transform: scale(1.03); }

/* THE GREEN BOX: Restore Emerald Shadow */
.vol-image img { box-shadow: 15px 15px 0px var(--warm-emerald); }

/* VOL GRID TYPOGRAPHY */
.vol-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.vol-card img { height: 680px; object-fit: cover; margin-bottom: 30px; }
.vol-one-img { object-position: center top !important; }

.vol-number { font-family: 'Montserrat', sans-serif; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; opacity: 0.5; display: block; margin-bottom: 15px; color: var(--warm-emerald); }
.vol-text h2 { font-family: 'Cormorant Garamond', serif; font-size: 3.5rem; font-weight: 300; color: var(--warm-emerald); line-height: 1.1; margin-bottom: 20px; }
.editorial-title-small { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; font-weight: 300; color: var(--warm-emerald); min-height: 5.2rem; margin: 0 0 15px 0; }
.editorial-copy { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; line-height: 1.6; color: var(--warm-emerald); }
.editorial-copy-small { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; line-height: 1.6; color: var(--warm-emerald); opacity: 0.8; }

.vol-title-link { text-decoration: none; color: inherit; transition: opacity 0.3s; }
.vol-title-link:hover { opacity: 0.6; }

/* 5. FOOTER */
.site-footer { border-top: 1px solid rgba(30, 43, 34, 0.1); padding: 80px 7.5%; margin-top: 120px; }
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.footer-email { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: var(--warm-emerald); text-decoration: none; }
.back-to-top { font-family: 'Montserrat', sans-serif; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 2px; color: var(--warm-emerald); text-decoration: none; opacity: 0.5; }

/* LIGHTBOX */
.lightbox { display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(30, 43, 34, 0.98); justify-content: center; align-items: center; }
.lightbox-content { max-width: 90%; max-height: 90%; object-fit: contain; }
.close-lightbox { position: absolute; top: 40px; right: 50px; color: #fff; font-size: 50px; cursor: pointer; }

@media (max-width: 1024px) {
    .vol-content, .vol-grid { flex-direction: column; }
    .nav-links { gap: 20px; }
}
/* THE EMERALD BOX: Volume Three Only */
.vol-feature .vol-image {
    position: relative;
    display: inline-block; /* Wraps tightly around the link */
}

.vol-feature .vol-cover-link {
    display: block;
    /* This creates the signature emerald box offset */
    box-shadow: 15px 15px 0px var(--warm-emerald); 
    line-height: 0;
    transition: transform 0.5s ease;
}

/* Optional: Slight lift on hover while keeping the box stationary */
.vol-feature .vol-cover-link:hover {
    transform: translate(-5px, -5px);
}
@media screen and (max-width: 768px) {
    /* Stacks your editorial and magazine grids into one column */
    .project-grid, .magazine-grid, .photo-grid {
        grid-template-columns: 1fr !important;
        column-count: 1 !important; 
        gap: 30px !important;
    }

    /* Adjusts the padding for the Volume headers */
    .gallery-header, .projects-intro {
        padding-top: 100px !important;
    }
}
/* --- DOMENICA VOLUMES: FULL WIDTH MOBILE FIX --- */
@media screen and (max-width: 768px) {
    
    /* 1. Reset the Grid Container */
    .vol-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 60px !important; /* Large space between Volume One and Two */
        padding: 0 5% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 2. Force the Card to span the whole width */
    .vol-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        display: block !important;
    }

    /* 3. THE IMAGE FIX (The "Narrow" Killer) */
    /* This targets the cover links and the images inside them */
    .vol-cover-link, 
    .vol-card img, 
    .vol-one-img {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-width: 100% !important;
        /* Ensures the full cover is visible without cropping */
        object-fit: contain !important; 
    }

    /* 4. Center the Text & Descriptions */
    .card-info {
        text-align: center !important;
        padding-top: 20px !important;
    }

    .vol-number {
        display: block;
        margin-bottom: 10px;
        letter-spacing: 2px;
    }

    .editorial-title-small {
        font-size: 1.4rem !important;
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
    }

    .editorial-copy-small {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
        opacity: 0.8;
    }
}