body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Georgia', serif; /* Similar to the inspiration site's font */
    background-color: #fdfdfa; /* Light cream background */
    color: #333;
    position: relative; /* For potential absolute positioning of children if needed */
}

.container {
    display: flex;
    width: 100%;
    height: 100vh;
}

.image-panel {
    width: 50%;
    height: 100vh;
    position: sticky; /* Keeps the image panel fixed on scroll */
    top: 0;
    overflow: hidden; /* Ensures image doesn't overflow */
    position: relative; /* To position images absolutely within */
}

.ceremony-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.7s ease-in-out; /* Smooth fade transition */
}

.ceremony-image.active {
    opacity: 1;
}

.image-overlay-names {
    position: absolute;
    bottom: 65px; /* Adjusted position */
    left: 30px;
    color: white;
    font-family: "Playfair Display", serif;
    font-size: 2.5em;
    font-weight: 400; 
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    margin: 0; /* Reset potential default margins */
}

.image-overlay-subtitle {
    position: absolute;
    bottom: 30px; /* Position below names */
    left: 30px;
    color: white;
    font-family: Arial, sans-serif; /* Sans-serif for subtitle */
    font-size: 1em;
    font-weight: bold; /* Make subtitle bolder */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    margin: 0;
}

.content-panel {
    width: 50%;
    height: 100vh;
    overflow-y: auto; /* Allows text content to scroll */
    padding: 40px 12%; /* Adjusted side padding to make text column narrower */
    box-sizing: border-box;
}

.language-toggle {
    position: fixed;
    top: 20px;
    right: 30px;
    z-index: 1000;
    font-family: Arial, sans-serif;
    font-size: 0.9em;
    color: #555;
}

.lang-option {
    cursor: pointer;
    padding: 0 5px;
    text-decoration: none;
    color: #555;
}

.lang-option:hover {
    text-decoration: underline;
    color: #000;
}

.lang-option.active {
    font-weight: bold;
    text-decoration: none;
    color: #000;
}

.lang-separator {
    padding: 0 3px;
    color: #ccc;
}

.ceremony-text-content {
    font-size: 1.1em;
    line-height: 1.8; /* Adjusted line height */
    white-space: pre-wrap; /* Preserves newlines from JSON */
}

.ceremony-text-content h2 { /* For the main page title */
    font-family: "Playfair Display", serif;
    font-weight: 400;
    font-size: 3.5rem; /* As specified by user */
    line-height: 1.25;
    text-transform: none;
    letter-spacing: 0em;
    margin-bottom: 1.5em; 
    text-align: center; 
}

.ceremony-text-content h3 { /* For chapter titles */
    font-family: "Playfair Display", serif;
    font-weight: 400;
    font-size: 2.2rem; /* Proportionally smaller than h2 */
    line-height: 1.25;
    text-transform: none;
    letter-spacing: 0em;
    margin-top: 4.5em; /* Significantly more space above chapter titles */
    margin-bottom: 1.2em;
    /* text-align: center; */ 
}

.ceremony-text-content p {
    font-family: "Gotham SSm", Helvetica, Arial, sans-serif; /* User specified font */
    font-weight: 400;
    font-size: 1rem; /* User specified size */
    line-height: 1.5; /* User specified line height */
    letter-spacing: 0em;
    margin-bottom: 1.2em;
} /* Added missing closing brace */

.mobile-chapter-image {
    display: none; /* Hide on desktop by default */
}

/* Basic responsive adjustments */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .image-panel {
        display: none; /* Hide side image panel on mobile */
    }
    .content-panel {
        width: 100%; /* Make content take full width */
        height: auto; /* Allow natural height on small screens */
        overflow-y: visible;
        padding: 40px 40px; /* Increased side padding for text */
        box-sizing: border-box; 
    }
    .image-overlay-names {
        font-size: 1.8em;
        bottom: 45px; /* Adjust mobile position */
        left: 20px;
    }
    .image-overlay-subtitle {
        font-size: 0.8em;
        bottom: 20px; /* Adjust mobile position */
        left: 20px;
    }
    .mobile-chapter-image { /* Style for images inserted between text on mobile */
        display: block;
        width: calc(100% + 80px); /* Span container width + new padding (2*40px) */
        margin-left: -40px; /* Negative margin to break out of new padding */
        margin-right: -40px; /* Negative margin to break out of new padding */
        max-width: none; /* Ensure width calculation isn't constrained */
        height: auto;
        margin-top: 2.5em; /* Keep vertical margins */
        margin-bottom: 2.5em;
    }
}
