:root {
    --bg-color: #ffffff;
    --text-primary: #050505;
    --text-secondary: #a0a0a0;
    --accent: #ffffff;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
    --section-spacing: 8rem; /* Added for consistency */
}

html, body {
    width: 100%;
    overflow-x: hidden; /* Stops the horizontal wiggle */
    position: relative;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

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

/* Add this to your main site CSS */
.cms-content {
    white-space: pre-wrap; /* This tells the browser: "Respect the line breaks" */
}

/* --- Navigation Core --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: absolute;
    width: 100%;
    z-index: 100;
}

/* Shared Desktop Styles */
.nav-links, .nav-links-index {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a, .nav-links-index a {
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: opacity 0.3s;
}

.nav-links a { color: #050505; }
.nav-links-index a { color: #ffffff; }

/* Menu Toggle Styles */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 200;
    padding: 10px; /* Larger hit area */
}

.bar {
    width: 25px;
    height: 1px;
    background-color: #000; /* Sub-page default */
    margin: 4px 0;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* White bars for Index Page */
.nav-links-index ~ .menu-toggle .bar {
    background-color: #ffffff;
}

.bar-index {
    width: 25px;
    height: 1px;
    background-color: #fff; /* Sub-page default */
    margin: 4px 0;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* White bars for Index Page */
.nav-links-index ~ .menu-toggle .bar-index {
    background-color: #ffffff;
}

/* --- Mobile Breakpoint --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    /* Target BOTH menu classes for the mobile drawer */
    .nav-links, .nav-links-index {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden */
        height: 100vh;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 50;
        padding-top: 5vh;
        padding-bottom: 5vh;
    }

    /* THE FIX: Use sibling logic so JS only has to toggle the button */
    .menu-toggle.active + .nav-links,
    .menu-toggle.active + .nav-links-index {
        right: 0 !important;
    }

    /* Also support standard class toggling if your JS does that */
    .nav-links.active, .nav-links-index.active {
        right: 0 !important;
    }

    .nav-links li, .nav-links-index li {
        margin: 0.5rem 0;
    }

    /* Force mobile links to be dark/readable */
    .nav-links a, .nav-links-index a {
        font-size: 1.2rem;
        letter-spacing: 5px;
        color: #050505 !important; 
    }

    /* Hamburger Animation (2 Bars) */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(5px) rotate(45deg);
        background-color: #000 !important;
    }
    .menu-toggle.active .bar:nth-child(2) {
        transform: translateY(-4px) rotate(-45deg);
        background-color: #000 !important;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
}


/* --- HOME PAGE --- */
body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* - Hero Section - */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
}

.hero-video {
    width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(20%) brightness(40%);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #ffffff;
}

.hero-content p {
    color: #ffffff;
}

/* - Button Details - */

.index-btn-outline {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    border: 1px solid var(--accent);
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.7rem;
    transition: background 0.4s, color 0.4s;
}

.index-btn-outline:hover {
    background: var(--accent);
    color: #a0a0a0;
}

/* - Packages Styling - */
.home-packages {
    padding: 8rem 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title .subtitle {
    display: block;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.package-card {
    padding: 3rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: border 0.4s ease;
}

.package-card:hover {
    border: 1px solid var(--text-secondary);
}

.package-link {
    text-decoration: none !important;
}

.package-header h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--text-primary);
}

.package-header h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.package-header .line {
    width: 40px;
    height: 1px;
    background: var(--text-secondary);
    margin-bottom: 2rem;
}

.package-features {
    list-style: none;
}

.package-features li {
    font-size: 0.85rem;
    color: #444;
    margin-bottom: 1rem;
    font-weight: 200;
    letter-spacing: 0.5px;
}

.index-about {
    padding-bottom: 10rem;
    padding-top: 5rem;
    background-color: #f9f9f9;
}

.index-about-simon {
    text-align: center;
    margin-top: 5rem;
}

.index-about-simon h2 {
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.index-about-simon p {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    padding-left: 5rem;
    padding-right: 5rem;
    padding-top: 5rem;
}

.package-home-button {
    padding-bottom: 10rem;
    padding-top: 5rem;
    background-color: #ffffff;
}

.package-footer {
    text-align: center;
    margin-top: 5rem;
}

.package-footer p {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Mobile Adjustments for Packages */
@media (max-width: 900px) {
    .package-grid {
        grid-template-columns: 1fr;
    }
    
    .home-packages {
        padding: 5rem 5%;
    }
}

/* - Enquire Link - */
.btn-text {
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.7rem;
    border-bottom: 1px solid #fff;
    padding-bottom: 5px;
    transition: opacity 0.3s;
}

.btn-text:hover {
    opacity: 0.6;
}

/* --- CRITICAL MOBILE INLINE FIXES --- */
@media (max-width: 768px) {
    
    /* FIX 1: Prevent Hero Title Overflow */
    .hero-content h1 {
        font-size: 2rem !important; /* Forces the font to shrink from 4rem */
        width: 100%; /* Contained within the parent */
        max-width: 90vw; /* Safety net: takes up 90% of screen width */
        margin-left: auto;
        margin-right: auto;
        padding-top: 2rem; /* Centers title vertically inside the full-screen hero */
        display: block; /* Ensures proper width behavior */
    }

    /* Tidy up the subtitle for consistency */
    .hero-content p {
        font-size: 0.8rem;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* FIX 2: Stack Investment Packages */
    .package-grid {
        display: flex !important; /* Override potential grid rules */
        flex-direction: column !important; /* Stack columns on top of each other */
        gap: 2rem; /* Spacing between stacked packages */
        max-width: 100%; /* Take full page width */
        padding: 0 5%; /* Leave slight page margins */
        margin-left: auto;
        margin-right: auto;
    }

    .package-card {
        width: 100% !important; /* Each package takes full row width */
        max-width: 500px; /* Constrain for easy reading on larger phones */
        margin: 0 auto; /* Center the constrained card */
        display: block !important; /* Force layout as a full-row block */
    }
    
    /* Reduce large spacing between sections on mobile */
    .home-packages {
        padding: 5rem 0;
    }
    
    .section-title {
        margin-bottom: 3rem;
    }
}


/* --- Videos Pages --- */
.portfolio-page {
    padding-top: 150px;
    background-color: var(--bg-color);
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 400;
    letter-spacing: -1px;
}

.subtitle {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.video-grid .container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    padding: 0 10%;
    margin-bottom: 10rem;
}

.video-item {
    text-decoration: none;
    display: block;
}

.video-link {
    text-decoration: none;
    color: inherit;
}

.video-thumbnail-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}

.thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 0.5s;
}

.video-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s;
}

.play-icon {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    border: 1px solid #fff;
    padding: 10px 20px;
    color: #ffffff;
}

.video-item:hover .thumbnail {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.video-item:hover .video-overlay {
    opacity: 1;
}

.video-info {
    margin-top: 1.5rem;
}

.video-info h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.video-info p {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

@media (max-width: 900px) {
    .video-grid .container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* - Popup Customization - */
.gcontainer {
    background: rgba(0, 0, 0, 0.95) !important;
}

.gslide-description {
    background: transparent !important;
    text-align: center;
    color: #fff;
}

.gslide-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.8rem !important;
    font-weight: 400 !important;
    margin-top: 20px !important;
    color: #fff !important;
}

.gslide-desc {
    font-family: 'Montserrat', sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    font-size: 0.7rem !important;
    color: #a0a0a0 !important;
}

.gvideo-container {
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

/* --- Reviews Page Styling (Light Mode) --- */
.reviews-page {
    padding-top: 150px;
    background-color: #ffffff; /* White background per Simon's request */
    color: #000000;
}

.intro-quote {
    font-style: italic;
    font-family: var(--font-serif);
    color: #666;
    max-width: 600px;
    margin: 2rem auto;
    font-size: 1.2rem;
    text-align: center;
}

.reviews-container {
    padding: 2rem 5% 0rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Elfsight Wrapper */
.elfsight-wrapper {
    margin-bottom: 6rem;
    min-height: 400px; /* Prevents layout jump while loading */
}

/* Note: If the Elfsight widget appears too wide, 
   the .reviews-container max-width will keep it centered and elegant.
*/

.reviews-button {
    background-color: #f9f9f9;
    padding-bottom: 10rem;
}

.manual-cta {
    text-align: center;
    padding-top: 5rem;
    margin-top: 5rem;
}

.manual-cta p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #000;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .reviews-page {
        padding-top: 100px;
    }
    
    .intro-quote {
        font-size: 1rem;
        padding: 0 10%;
    }
}

/* --- About Page Styling --- */
.about-page {
    padding-top: 150px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 6rem;
    margin-bottom: 10rem;
}

.about-grid.reverse {
    direction: ltr;
}

.about-image {
    position: relative;
    overflow: hidden;
    background: #111;
}

.about-image img {
    width: 100%;
    height: auto;
    filter: grayscale(100%); /* Maintain the B&W palette */
    display: block;
    transition: transform 0.8s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

.about-content {
    margin-right: 2rem;
    margin-left: 2rem;
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

.about-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 200;
}

.about-gallery {
    background-color: #f9f9f9;
    padding-top: 5rem;
    padding-bottom: 5rem;
   padding-left: 5rem;
   padding-right: 5rem;
}

.about-gallery h2 {
    text-align: center;
    padding-bottom: 5rem;
}

.about-gallery-grid {
    column-count: 4; /* 3 columns on desktop */
    column-gap: 2rem;
}

.about-gallery-image {
    display: inline-block; /* Required for column-count masonry */
    width: 100%;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    background: #f9f9f9;
}

.about-gallery-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s;
}

/* Cinematic Break (Full Width) */
.cinematic-break {
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/cinematic-bg.jpg'); /* B&W wide shot */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect for "Lift" */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10rem;
}

.cinematic-break p {
    font-size: 2rem;
    color: #fff;
    text-align: center;
    max-width: 800px;
    padding: 0 5%;
}

/* Mobile Adjustments for About */
@media (max-width: 900px) {
    .about-grid, .about-grid.reverse {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-bottom: 5rem;
    }

    .about-grid.reverse {
        display: flex;
        flex-direction: column-reverse;
    }

    .about-content h2 {
        font-size: 2rem;
    }

    .cinematic-break {
        height: 40vh;
        background-attachment: scroll; /* Disable parallax on mobile for performance */
    }

    .cinematic-break p {
        font-size: 1.4rem;
    }
}

/* --- Contact Page Styling (Light Theme) --- */
.contact-page {
    padding-top: 150px;
    background-color: #ffffff; /* Simon's new white background */
    color: #000000;
}

.contact-photo {
    flex: 1.2;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.contact-photo img {
    width: 80vw;
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .contact-photo img {
        width: 100%; /* Take full width of container on mobile */
        max-width: 300px; /* But don't let it get huge */
        margin: 0 auto;
    }
}

.contact-container {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 10rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 8rem;
}

/* Page Header Adjustments for White BG */
.contact-page .page-header .subtitle {
    color: #888; /* Soften the label */
}

.contact-page .page-header .intro-text {
    color: #444;
    max-width: 600px;
    margin: 1.5rem auto;
}

/* Form Styling - "High-End Stationery" Look */
.cinematic-form .form-group {
    margin-bottom: 2.5rem;
}

.cinematic-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.cinematic-form label {
    display: block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.65rem;
    color: #888; /* Muted label color */
    margin-bottom: 0.8rem;
}

.cinematic-form input, 
.cinematic-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* Subtle dark line */
    color: #000;
    padding: 10px 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.4s ease;
    border-radius: 0; /* Ensures no rounded corners on mobile */
}

.cinematic-form input:focus, 
.cinematic-form textarea:focus {
    outline: none;
    border-bottom: 1px solid #000; /* Sharp black line on focus */
}

.cinematic-form input, 
.cinematic-form select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* Subtle dark line */
    color: #000;
    padding: 10px 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.4s ease;
    border-radius: 0; /* Ensures no rounded corners on mobile */
}

/* Button Adjustment for White BG */
.btn-outline {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    border: 1px solid var(--accent);
    color: var(--text-secondary);
    background-color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.7rem;
    transition: background 0.4s, color 0.4s;
}

.btn-outline:hover {
    background: var(--accent);
    color: #a0a0a0;
}

/* Sidebar Styling */
.info-block {
    margin-bottom: 4rem;
}

.info-block h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #000;
}

.info-block p {
    color: #444; /* Dark gray for readability */
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Social Links - Ensuring they aren't lost */
.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: #000; /* Black text for links */
    text-decoration: none;
    margin-right: 1.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
    display: inline-block;
}

.social-links a:hover {
    border-bottom: 1px solid #000;
    opacity: 0.6;
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 5rem;
    }
    
    .cinematic-form .form-row {
        grid-template-columns: 1fr;
    }

    .contact-page .page-header h1 {
        font-size: 2.5rem;
    }
}

/* --- Services Page Styling (Light Mode) --- */
.services-page {
    padding-top: 150px;
    background-color: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    padding-bottom: 8rem;
    padding-left: 10rem;
    padding-right: 10rem
}

@media (max-width: 768px) {
    /* 1. Force the Services Grid to Stack */
    .services-grid {
        grid-template-columns: 1fr !important; /* Forces single column */
        gap: 3rem !important;
        padding-left: 5% !important;  /* Strip the 10rem desktop padding */
        padding-right: 5% !important; /* Strip the 10rem desktop padding */
        padding-bottom: 4rem !important;
    }

    /* 2. Adjust Service Titles for Mobile */
    .service-content h2 {
        font-size: 1.8rem !important;
        margin-bottom: 1rem;
    }

    /* 3. Adjust description text for readability */
    .service-content .description {
        font-size: 1rem !important;
        line-height: 1.6;
    }

    /* 4. Fix the Bespoke Section */
    .bespoke-section {
        padding: 4rem 5% !important;
    }

    .bespoke-card h2 {
        font-size: 1.8rem !important;
    }

    /* 5. Ensure add-ons take full width */
    .add-ons-grid {
        max-width: 100% !important;
    }
}

.service-item {
    border-top: 1px solid #000; /* Sophisticated separator line */
    padding-top: 2rem;
}

.price-start {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #888;
    margin-bottom: 2rem;
}

.service-content h2 {
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.service-content .description {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.service-list {
    list-style: none;
}

.service-list li {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    color: #000;
    display: flex;
    align-items: center;
}

.service-list li::before {
    content: "—";
    margin-right: 15px;
    color: #888;
}

/* Bespoke Section */
.bespoke-section {
    background-color: #f9f9f9; /* Subtle contrast change */
    padding: 8rem 5%;
    text-align: center;
}

.bespoke-card {
    max-width: 800px;
    margin: 0 auto;
}

.bespoke-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.bespoke-card p {
    color: #666;
    margin-bottom: 4rem;
}

.add-ons-grid {
    margin-bottom: 4rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.add-on {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.add-on .dot {
    flex-grow: 1;
    border-bottom: 1px dotted #ccc;
    margin: 0 15px;
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

/* --- Photos Page & Masonry Gallery --- */
.photos-page {
    padding-top: 150px;
    background-color: #ffffff;
}

.gallery-container {
    padding: 2rem 5% 10rem 5%;
}

/* The Masonry Logic */
.masonry-grid {
    column-count: 3; /* 3 columns on desktop */
    column-gap: 2rem;
}

.masonry-item {
    display: inline-block; /* Required for column-count masonry */
    width: 100%;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    background: #f9f9f9;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s;
}

.gallery-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s;
    backdrop-filter: blur(2px);
}

.gallery-overlay span {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #000;
    border-bottom: 1px solid #000;
    padding-bottom: 5px;
}

/* Hover Effects */
.masonry-item:hover img {
    transform: scale(1.05);
}

.masonry-item:hover .gallery-overlay {
    opacity: 1;
}

/* Responsive Masonry */
@media (max-width: 1024px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .masonry-grid {
        column-count: 1;
    }
    
    .photos-page .page-header h1 {
        font-size: 2.5rem;
    }
}

/* Journal Archive Grid */
/* Journal Archive Layout */

.archive-section {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    padding: var(--section-spacing) 0;
}

.journal-archive {
    padding-top: 150px; /* Space for fixed nav */
    background-color: #ffffff;
}

.journal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    justify-content: center;
    gap: 60px 40px;
    padding: 40px 0 100px;
    max-width: 80%;
}

.journal-card {
    text-decoration: none;
    transition: transform 0.4s ease;
}

.journal-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Keeps video contained */
    overflow: hidden;
    background-color: #f5f5f5;
}

.archive-video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This stops the video from distorting or leaking */
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.journal-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.journal-overlay span {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.7rem;
    border: 1px solid rgba(255,255,255,0.5);
    padding: 10px 20px;
}

/* Hover Effects */
.journal-card:hover .archive-video-bg {
    transform: scale(1.05);
}
.journal-card:hover .journal-overlay {
    opacity: 1;
}

/* Typography Meta */
/* 1. Target the link itself to strip all decorations */
.journal-link {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* 2. Target the headers and spans inside the link */
.journal-meta h2, 
.journal-meta .journal-date, 
.journal-meta .journal-venue {
    text-decoration: none !important;
    border-bottom: none !important;
}

.journal-meta {
    padding-top: 20px;
}

.journal-meta h2 {
    color: #050505;
    font-family: var(--font-serif);
    margin: 1rem 0 0 0; /* Keeps top margin, resets bottom */
    font-weight: 400;
    margin-top: 2px;
}

.journal-meta .journal-date {
    color: #a0a0a0;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-size: 0.5rem;
    opacity: 0.8;
}

.journal-meta .journal-venue {
    color: #a0a0a0;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-size: 0.6rem;
    opacity: 0.8;
    margin-top: 5px; /* Slight gap between couple name and venue */
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .journal-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .journal-meta h2 {
        font-size: 1.5rem;
    }
}

/* Story Hero Layout */
.story-hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
}

.hero-video-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.hero-video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(40%);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2;
}

.hero-text-overlay {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 5%;
}

.hero-text-overlay h1 {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 6rem);
    margin: 1rem 0;
    font-weight: 400;
}

.hero-text-overlay .story-date {
    letter-spacing: 5px;
    text-transform: uppercase;
    font-size: 0.8rem;
    opacity: 0.8;
}

.hero-text-overlay .story-location {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.5rem;
    opacity: 0.9;
}

/* 1. Center the Film Section */
.film-section {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    padding-top: 80px;
    text-align: center;
    background-color: #f9f9f9;
    padding-bottom: 80px;
}

.video-wrapper {
    width: 100%;
    max-width: 1000px; /* Constrains the player so it doesn't feel overwhelming */
    margin: 0 auto;
}

/* 2. Centralize the Editorial Splits */
.editorial-split {
    display: flex;
    align-items: center;
    justify-content: center; /* Centers the content if it's narrower than the container */
    gap: 80px;
    margin: 0 auto;
    padding: var(--section-spacing) 5%; /* Adds internal padding for smaller screens */
    max-width: 80%;
    padding-top: 40px;
    padding-bottom: 40px;
}

/* 3. Text Alignment for better balance */
.editorial-content {
    flex: 1;
    max-width: 500px; /* Prevents text from stretching too wide and becoming unreadable */
}

.editorial-image {
    flex: 1.2;
    display: flex;
    justify-content: center;
}

.editorial-image img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.editorial-split.reverse { flex-direction: row-reverse; }

.label {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 15px;
}

.cms-text {
    line-height: 1.8;
    color: #444;
    font-size: 1.05rem;
    margin-top: 25px;
}

/* CTA */
.story-cta {
    padding: 150px 0;
    text-align: center;
    background: #f9f9f9;
}

@media (max-width: 768px) {
    .editorial-split { flex-direction: column !important; gap: 40px; }
    .hero-text-overlay h1 { font-size: 3rem; }
}


/* --- Global Footer - 2 Column Layout --- */
.global-footer {
    background-color: #ffffff;
    padding: 6rem 5% 3rem 5%;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: #000;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center; /* Vertically centers the content */
}

.footer-brand .logo {
    font-size: 1.1rem;
    letter-spacing: 5px;
    color: var(--text-primary);
}

.footer-brand p {
    margin-bottom: 0.5rem;
}

.copyright {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
}

.footer-contact {
    text-align: right; /* Aligns the second column to the right */
}

.email-link a {
    color: #000;
    text-decoration: none;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 1rem;
}

.social-icons a {
    text-decoration: none;
    color: #000;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-left: 2rem;
    transition: opacity 0.3s;
}

.social-icons a:hover {
    opacity: 0.5;
}

.bottom-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr); 
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center; /* Vertically centers the content */
}

.back-to-top {
    text-align: center;
    margin-top: 5rem;
}

.back-to-top a {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-secondary);
    text-decoration: none;
}

.atlantis-studio {
    text-align: right;
    margin-top: 5rem;
}

.atlantis-studio p {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ccc;
    text-decoration: none;
}

.atlantis-studio a {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-secondary);
    text-decoration: none;
}


/* Responsive: Stack on Mobile */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .footer-contact {
        text-align: center;
    }
    
    .social-icons a {
        margin: 0 1rem;
    }

    .bottom-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
}