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

body {
    scroll-behavior: smooth;
    font-family: sans-serif; /* Fallback font */
}

/* Load custom signature font */
@font-face {
    font-family: 'BrittanySignature';
    src: url('./assets/fonts/BrittanySignature.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PoppinsBold';
    src: url('./assets/fonts/PoppinsBold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PoppinsMedium';
    src: url('./assets/fonts/PoppinsMedium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LavishlyYours';
    src: url('./assets/fonts/LavishlyYours.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SatisfyRegular';
    src: url('./assets/fonts/Satisfy-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* --- Full Screen Section Styling (Hero Image) --- */
.full-screen-section {
    width: 100vw;
    height: 100vh;
    
    display: flex;
    justify-content: center;
    align-items: center;

    /* Background image is handled by an inline <picture> element for responsive
       control and better preload behavior. The picture is absolutely positioned
       behind the content. */
    background: none;
    gap: 6px 4px; /* Reduce horizontal gap between icon, time, label */
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Hero background picture styles (the image sits behind the heading) */
.hero-bg {
    position: absolute;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    z-index: 1;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.wedding-message { z-index: 2; }

/* --- Text Styling (We are getting married!) --- */
.wedding-message {
    font-family: 'BrittanySignature', 'Cedarville Cursive', cursive;
    font-size: 10rem;
    font-weight: 400;
    color: #ffffff;
    /* subtle shadow so the thin script remains delicate */
    text-shadow: 0 2px 6px rgba(0,0,0,0.25); /* Slightly stronger shadow for contrast */

    /* Centering updates to match the design */
    position: static; /* Remove relative positioning override */
    margin: 0; /* Remove top-left margin */
    max-width: 90%;
    transform: none; /* Remove rotation */
    text-align: center; 
    line-height: 0.95;
    z-index: 2;
    white-space: normal;
}

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
    .wedding-message {
        font-size: 7rem;
        margin: 4rem 1.5rem 0 1.5rem;
        transform: rotate(2deg);
        text-align: center;
    }
}

/* 1. Hide the entire site content by default */
#secure-content {
    display: none; 
}

/* 2. Style the full-screen overlay for the password prompt */
#security-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f7f7f7; /* Light background */
    z-index: 9999; /* Ensure it's on top of everything */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
}

.lock-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 400px;
}

.lock-box input, .lock-box button {
    padding: 12px;
    margin-top: 15px;
    width: 90%;
    border-radius: 6px;
    font-size: 1em;
}

.lock-box input {
    border: 1px solid #ccc;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.lock-box button {
    background-color: #A8A08E; /* A subtle, wedding-appropriate color */
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.lock-box button:hover {
    background-color: #8c8577;
}

/* --- Scrollable Content Section Styling (Example) --- */
.content-section {
    padding: 50px 20px;
    background-color: #f7f7f7;
    min-height: 100vh;
}

.content-section h2 {
    font-size: 4rem;
    color: #333;
    text-align: left;
    margin-bottom: 20px;
}

/* --- Split section (image + text) --- */
.split-section {
    display: flex;
    gap: 40px;
    align-items: center;
    padding: 80px 60px;
    background-color: #ffffff; /* CHANGED from #dceede (soft mint) to white */
    min-height: 80vh;
}

.split-section .left {
    flex: 1 1 50%;
    padding: 10px 20px;
    margin-left: 5rem
}

.headline {
    font-family: 'BrittanySignature', cursive;
    font-size: 4.5rem;
    line-height: 0.98;
    font-weight: 800;
    color: #222222;
    margin: 0 0 48px 0;
}

.headline-sub {
    font-family: sans-serif;
    font-size: 3rem;
    line-height: 0.98;
    font-weight: 800;
    color: #222222;
    margin: 0 0 34px 0;
}

.rsvp-btn {
    display: inline-block;
    background: #1f1f1f;
    color: #ffffff;
    padding: 28px 146px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.split-section .right {
    flex: 1 1 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-card {
    width: 85%;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.image-card img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    object-position: bottom; /* NEW: Moves the focus of the image 25% up from the center */
    display: block;
}

@media (max-width: 900px) {
    .split-section { flex-direction: column; padding: 40px 20px; }
    /* On mobile place the image (right) above the text/button (left) */
    .split-section .left { order: 2; text-align: center; margin-left: 0; }
    .split-section .right { order: 1; }
    .headline { font-size: 2.8rem; text-align: center; }
    .headline-sub { font-size: 1.5rem; }
    .content-section h2 { font-size: 2.2rem; text-align: center; }
    /* Make the image card narrower and centered on mobile so it appears above the text */
    .image-card { width: 90%; margin: 24px auto 0; }
    .image-card img {
        width: 100%;
        height: auto;
        max-height: 50vh;
        object-position: bottom;
    }
    .rsvp-btn { padding: 10px 85px; align-items: center; font-size: 1.2rem;}
}

/* --- Itinerary Section --- */
.itinerary-bg {
    /* Use the same background image style as the uploaded itinerary image */
    background-image: url('./assets/wedding-bg-light.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* Overlay to lighten/soften the image, if needed */
    position: relative;
    padding: 100px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Add a subtle dark overlay for better contrast if the background image is too bright */
.itinerary-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.itinerary-frame {
    /* The centered, framed box */
    position: relative;
    z-index: 2; /* Bring the frame above the background overlay */
    max-width: 650px;
    width: 95%;
    background-color: #f1f1e6; /* Creamy off-white color for the card */
    padding: 40px 60px 50px;
    border: 10px solid #decea1; /* Gold border color */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.itinerary-header-script {
    font-family: 'SatisfyRegular', cursive; /* Elegant cursive font for the header */
    font-size: 2.8rem;
    font-weight: 700;
    color: #4c4c4c;
    margin-bottom: 5px;
}

.itinerary-title-classic {
    font-family: 'PoppinsBold'; /* Using a clean, sans-serif font for the main title */
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 0.25em; /* Wide spacing for classic look */
    color: #4c4c4c;
}

.itinerary-divider-line {
    /* SVG placeholder styling (or you can use a decorative image) */
    width: 50%;
    margin: 15px auto 15px;
}

.itinerary-date {
    font-family: 'SatisfyRegular', cursive;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #555555;
    margin-bottom: 10px;
}

/* Add small space above the second date (e.g. April 5th) */
.itinerary-list + .itinerary-date {
    margin-top: 20px;
}

.itinerary-list {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between each event block */
}

/* Individual Itinerary Item */
.itinerary-item.new-style {
    display: grid;
    /* Layout: icon | time | label  (time and label on same row),
       description spans below across the two right columns */
    grid-template-areas:
        "icon time label"
        "icon description description";
    /* Use a fixed width for the time column so labels start at the same x position */
    grid-template-columns: 40px 150px 1fr; /* icon narrow, time fixed, label flexible */
    align-items: start;
    text-align: left;
    gap: 6px 12px; /* Vertical | Horizontal gap */
}

.icon-time {
    grid-area: icon;
    font-size: 2.2rem;
    color: #decea1; /* Gold icon color */
    margin: 0 auto; /* Center the icon within its column */
}

/* Image icon for itinerary items (local assets) */
.itinerary-icon {
    grid-area: icon;
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
    margin: 0 auto; /* center in icon column */
}

.item-time {
    grid-area: time;
    font-family: 'LavishlyYours';
    font-size: 1.2rem;
    font-weight: 700;
        color: #7b4a1e; /* Lighter chocolate brown for time */
    margin: 0; /* Override old margin */
}

.item-label {
    grid-area: label;
    font-family: 'LavishlyYours';
    font-size: 1.2rem;
    font-weight: 800;
    color: #000000; /* Force labels to black for visual emphasis */
}

.item-description {
    grid-area: description;
    font-family: 'LavishlyYours';
    font-size: 1rem;
    font-weight: 400;
    color: #777777;
}

/* Mobile Adjustments for the New Itinerary */
@media (max-width: 768px) {
    .itinerary-bg {
        padding: 50px 10px;
    }
    .itinerary-frame {
        padding: 30px 20px 40px;
        border-width: 6px;
    }
    .itinerary-header-script {
        font-size: 2rem;
    }
    .itinerary-title-classic {
        font-size: 1.6rem;
        letter-spacing: 0.2em;
    }
    .itinerary-item.new-style {
        grid-template-columns: 30px 110px 1fr; /* Smaller icon column but keep three columns on mobile */
        grid-template-areas:
            "icon time label"
            "icon description description";
    }
    .icon-time {
        font-size: 1.8rem;
    }
    .itinerary-icon {
        width: 38px;
        height: 38px;
    }
    .item-time {
        font-size: 1.3rem;
    }
    .item-label {
        font-size: 1.3rem;
    }
    .item-description {
        font-size: 1rem;
    }
}

/* --- The rest of the CSS (Venue, Transport, Gallery, Contact) is UNCHANGED from here --- */
.itinerary-section {
    /* REMOVING/OVERRIDING OLD ITINERARY STYLES to prevent conflicts */
    background: none; 
    padding: 0;
    font-family: unset;
}
/* --- Venue/Location Section Styles --- */

#venue-section.split-section {
    background-color: #fdfdf1; /* Light cream background from original itinerary */
    min-height: 85vh; /* Ensure the image has height */
    font-family: 'PoppinsMedium';
}

/* Center all content vertically and horizontally in the left column */

#venue-details-directions {
    background-color: #fcfbf5; /* Light creamy background */
    text-align: center;
    font-family: 'PoppinsMedium', sans-serif;
    color: #4c4c4c;
    border-radius: 0 0 16px 16px; /* Rounded corners at the bottom */
    overflow: hidden; /* Ensures border-radius applies to children */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}


.venue-image-container {
    width: 90%;
    margin: 40px auto 40px auto;
    max-width: 900px; /* Limit max width for large screens */
}

.venue-illustration {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Slight roundness to match map */
}

.map-container {
    max-width: 900px; /* Same max-width as image for alignment */
    width: 90%;
    margin: 0 auto 50px auto;
    border-radius: 8px;
    overflow: hidden; /* Ensures the iframe corners are rounded */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe,
.map-container #map {
    width: 100%;
    height: 450px; /* Fixed height for the map */
    border: 0;
    display: block; /* Remove extra space below iframe */
}

/* Slightly smaller map height on small screens */
@media (max-width: 600px) {
    .map-container #map { height: 360px; }
}

/* hero background handled by <picture> now; no CSS background overrides required */

/* Keep map controls (From/To + Clear) on one row on small screens */
@media (max-width: 600px) {
    .map-controls {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .map-controls select, .map-controls button {
        flex: 0 0 auto;
        white-space: nowrap;
    }
    .map-controls select { max-width: 125px; }
    .map-controls button { margin-left: 8px; }
}

/* Map controls (selects + button) */
.map-controls {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    padding: 10px 12px;
    background: rgba(255,255,255,0.95);
    flex-wrap: wrap;
}
.map-controls select, .map-controls button {
    font-size: 1rem;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
}
.map-controls button {
    cursor: pointer;
    background: #f0f0f0;
    transition: background 0.2s;
}
.map-controls button:hover {
    background: #e0e0e0;
}
.map-controls .route-info {
    font-size: 0.95rem;
    color: #333;
    width: 100%;
    text-align: center;
    margin-top: 8px;
}

/* Leaflet Routing Machine custom styles — move directions below map */
.leaflet-routing-container-custom {
    position: static !important;
    width: 100% !important;
    margin-top: 15px !important;
    background: rgba(255,255,255,0.98) !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    max-height: 300px !important;
    overflow-y: auto !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}
.leaflet-routing-container-custom .leaflet-routing-alt {
    display: none !important;
}

/* Tooltip for pin names (always visible) */
.pin-tooltip {
    background: rgba(0,0,0,0.7) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 4px 8px !important;
    font-size: 0.9rem !important;
    white-space: nowrap !important;
}

/* Fit-all button placed bottom-left on the map */
.map-fitall-btn {
    background: rgba(255,255,255,0.95);
    border: 1px solid #ddd;
    padding: 8px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    cursor: pointer;
    font-weight: 600;
}
.leaflet-bottom.leaflet-left .map-fitall-btn { margin-left: 8px; margin-bottom: 8px; }

/* Jump-to select styling (integrates with .map-controls) */
/* jump-to control removed */

/* Temporary visual highlight for a marker when jumped-to */
.leaflet-marker-icon.marker-highlight {
    transform: scale(1.18);
    filter: drop-shadow(0 8px 18px rgba(66,133,244,0.28));
    transition: transform 0.2s ease, filter 0.2s ease;
    z-index: 9999 !important;
}

.details-directions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1000px;
    margin: 0 auto 50px auto;
    gap: 40px;
    padding-left: 40px;
    text-align: left;
    background-color: #fcfbf5; /* Align text within columns */
}

.section-heading {
    font-family: 'PoppinsBold', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 20px;
    margin-left: 20px;
}

.section-subheading {
    font-family: 'PoppinsBold', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #555555;
    margin-top: 15px;
    margin-bottom: 5px;
}

.detail-line {
    font-size: 1.6rem;
    font-family: 'SatisfyRegular', cursive;
    line-height: 1.6;
    color: #666666;
    margin-bottom: 5px;
    margin-left: 20px;
}

.maps-line {
    margin-left: 20px;
}

.maps-line a {
    font-size: 1rem;
}

.directions-list {
    list-style: none; /* Remove default bullet points */
    padding-left: 0;
    margin-top: 0;
}

.directions-list li {
    margin-bottom: 10px;
}

.direction-link {
    font-size: 1.1rem;
    color: #666666;
    text-decoration: none;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.direction-link:hover {
    color: #b04332; /* Example hover color */
    text-decoration: underline;
}

@media (max-width: 900px) {
    .venue-location-title {
        font-size: 2.5rem;
    }
    .map-link-container {
        font-size: 1.6rem;
    }
    .details-directions-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        padding-left: 20px;
        gap: 20px;
    }
}

/* --- Transport Section Styles --- */
#venue-transport-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 4rem;
  margin-top: 3rem;
  background-color: #fcfbf5;
}

.venue-links {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-left: 1rem;
  margin-right: 1rem;
}

.transport-item {
    font-size: 1rem;
}

.transport-item a {
    font-size: 1rem;
    font-weight: 400;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.transport-item a:hover {
  color: #B79365; /* muted gold accent */
  text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .transport-item {
        font-size: 0.8rem;
    }
    .transport-item a {
        font-size: 0.8rem;
    }
}

.minimal-countdown {
    text-align: center;
    background: #333333;
    padding: 1rem 1rem;
    min-height: 330px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.countdown-title {
    font-family: 'SatisfyRegular';
    font-size: 2.5rem;
    font-weight: 500;
    letter-spacing: 3px;
    color: #f5f5f5;
    margin-bottom: 2rem;
}

.countdown-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(0.25rem, 1vw, 1rem);
    flex-wrap: wrap;
    transition: gap 0.3s ease;
    padding: 0 0.5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.time-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.time-label {
    font-size: clamp(0.5rem, 1.2vw, 0.9rem);
    font-weight: 500;
    letter-spacing: clamp(1px, 0.3vw, 2px);
    color: #b0b0b0;
    text-transform: uppercase;
    transition: font-size 0.3s ease;
}

.flip-group {
    display: flex;
    gap: clamp(0.15rem, 0.4vw, 0.4rem);
    transition: gap 0.3s ease;
    flex-shrink: 0;
}

.count-card {
    position: relative;
    width: clamp(20px, 7.5vw, 85px);
    height: clamp(30px, 9.4vw, 106px);
    background: linear-gradient(to bottom, #ffffff 0%, #f8f8f8 50%, #e8e8e8 50%, #e0e0e0 100%);
    border-radius: clamp(4px, 1vw, 8px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 8px 20px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(255,255,255,0.9),
        inset 0 -1px 2px rgba(0,0,0,0.15),
        0 0 0 1px rgba(0,0,0,0.2);
    overflow: hidden;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.count-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to bottom, #c0c0c0 0%, #a0a0a0 50%, #909090 100%);
    box-shadow: 0 1px 1px rgba(255,255,255,0.5), 0 -1px 1px rgba(0,0,0,0.1);
    transform: translateY(-50%);
    z-index: 1;
}


.count-card span {
    font-size: clamp(1.8rem, 4.5vw, 4.5rem);
    font-weight: 700;
    color: #333333;
    font-family: 'Arial', sans-serif;
    line-height: 1;
    z-index: 2;
    position: relative;
    transition: font-size 0.3s ease;
    text-shadow: 0 1px 2px rgba(255,255,255,0.3);
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.flip-card.flipping .flip-card-inner {
    animation: flip 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

@keyframes flip {
    0% {
        transform: rotateX(0deg);
    }
    100% {
        transform: rotateX(-180deg);
    }
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #2d2d2d 0%, #2d2d2d 49%, #1a1a1a 51%, #1a1a1a 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
    color: #e0e0e0;
    font-family: 'Arial', sans-serif;
    overflow: hidden;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.3),
        inset 0 -2px 4px rgba(0,0,0,0.5),
        inset 0 2px 4px rgba(255,255,255,0.1);
}

.card-face::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #000;
    transform: translateY(-50%);
    box-shadow: 0 0 3px rgba(0,0,0,0.8);
}

.card-face::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #1a1a1a;
    border-radius: 50%;
    top: 50%;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.8);
}

.card-face.left::after {
    left: 4px;
    transform: translateY(-50%);
}

.card-face.right::after {
    right: 4px;
    transform: translateY(-50%);
}


.separator {
    font-size: clamp(1.8rem, 4.5vw, 4.5rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 clamp(0.05rem, 0.4vw, 0.3rem);
    align-self: center;
    margin-top: clamp(1rem, 2.5vw, 2rem);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Mobile - only for layout adjustments */
@media (max-width: 768px) {
    .minimal-countdown {
        padding: 1rem 0.5rem;
        min-height: 200px;
    }
    
    .countdown-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .countdown-cards {
        flex-wrap: nowrap;
    }
    
    .time-section {
        gap: clamp(0.3rem, 1vw, 1rem);
    }
}

/* --- Gallery/Carousel Section Styles --- */

#gallery-section {
    background-color: #fcfbf5; /* NEW: Light cream background */
    padding: 50px 0 40px 0; 
    text-align: center;
    font-family: 'BrittanySignature';
}

.gallery-title {
    font-family: 'BrittanySignature', 'Cedarville Cursive', cursive;
    font-size: 7rem; 
    color: #decea1; /* NEW: Light Gold/Muted Yellow font color */
    font-weight: 400;
    margin-bottom: 60px;
    margin-top: 30px;
    line-height: 1;
}

.carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px; 
}

.carousel-container {
    overflow-x: scroll; /* Allows for manual horizontal scrolling */
    flex-grow: 1;
    margin: 0 20px;
    /* Hide the scrollbar if desired (for Chrome/Safari/Edge) */
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}
/* Hide scrollbar for Webkit browsers */
.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    gap: 30px; 
    padding: 20px 0;
}

.carousel-image {
    width: 400px; 
    height: 400px; 
    object-fit: cover;
    flex-shrink: 0; 
    
    /* *** IMPLEMENTS CIRCULAR SHAPE AS REQUESTED *** */
    border-radius: 5%; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.35), 0 5px 15px rgba(0,0,0,0.2);
}

.nav-btn {
    background: none;
    border: none;
    color: #7b4a1e; /* Chocolate brown */
    font-size: 1.8rem;
    cursor: pointer;
    padding: 10px;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.3s;
}

/* Update the existing media query at max-width: 768px */
@media (max-width: 900px) {
    /* ... existing styles ... */

    .nav-btn {
        font-size: 10vw; /* Scale button size with viewport width */
        padding: 3vw;
    }

    .venue-links {
        margin-top: 0rem;   
    }

    .gallery-title {
        font-size: 3rem;
        margin-top: 0;
    }
    
    /* NEW: Container must only show 1 image + padding on mobile */
    .carousel-container {
        /* (1 * item_width) + (2 * margin) -> Since item width is dynamic, 
           we cap the visible width here to a standard mobile size */
        max-width: 400px; /* Example: fits a 200px wide image + padding */
        width: 100%;
        margin: 0 10px; /* Reduce side margins */
    }

    /* NEW: Image sizing for mobile — use viewport width so size is a percentage of the device screen width */
    .carousel-image {
        width: 60vw;      /* 60% of viewport width */
        height: 60vw;     /* keep square by matching viewport-based height */
    }
}

#contact-section {
    /* Background color from the provided image: soft green */
    background-color: #7d9b76;
    color: #f6f6e9; /* Slightly off-white from the image */
    padding: 100px 100px;
    font-family: math;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

.closing-message-container {
    margin-bottom: 80px;
    text-align: left;
    width: 100%;
}

.closing-message {
    font-family: 'SatisfyRegular', cursive;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.3;
    /* Color from image: slightly darker white/off-white */
    color: #f6f6e9;
    width: 60%;
}

.contact-details {
    width: 100%;
}

.closing-warm-regards {
    font-family: 'PoppinsBold';
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 25px;
    /* Darker text color for contrast */
    color: #004b36;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-person {
    font-size: 1.2rem;
    line-height: 1.6; /* Spacing between names */
    color: #ffffff; /* White text for names */
    font-weight: 500;
}

#private-contacts {
    display: none;
    /* Optional: Add some padding/styling to make it look secure when revealed */
    border-top: 2px solid #ccc; 
    padding-top: 20px;
    margin-top: 20px;
}

/* Optional: Center the security check form */
#security-check {
    text-align: center;
    padding: 20px 0;
}

/* Mobile adjustments for the contact section */
@media (max-width: 768px) {
    #contact-section {
        padding: 60px 40px;
    }
    
    .closing-message-container {
        margin-bottom: 50px;
        text-align: left; 
    }
    
    .closing-message {
        font-size: 2.5rem;
        width: 100%; /* Full width on mobile */
    }
    
    .contact-grid {
        grid-template-columns: 1fr; /* Stack columns */
        gap: 30px;
    }
    
    .contact-column {
        padding-left: 10px;
    }
    
    .closing-warm-regards {
        text-align: left;
        font-size: 1.0rem;
    }

    .contact-person {
        font-size: 1rem;
        line-height: 1.8;
    }
}

#footer-section{
    background-color: #333333;
    color: #f1f1f1;
    text-align: center;
    padding: 20px 10px;
    font-size: 1rem;
    font-family: 'PoppinsMedium', sans-serif;
    
}

.footer-text {
    font-size: 1.2rem;
}

.website-link {
    color: lightblue;/* Light Gold/Muted Yellow */
    text-decoration: underline;
}

@media(max-width: 700px) {
    #footer-section {
        font-size: 0.8rem;
        padding: 15px 8px;
    }
    .footer-text {
        font-size: 1rem;
    }
}