:root { 
    --bg: #000; 
    --red: #8b0000; 
    --text: #fff; 
    --glass: rgba(255, 255, 255, 0.03);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; overflow-x: hidden; }

/* --- 1. GLOBAL LAYOUT & NARROWING --- */
/* This ensures all main sections align perfectly in that central spine */
.narrow-swiper, 
.guest-list-section .category-grid,
.split-container,
.menu-display-section .menuSwiper {
    width: 60% !important;
    max-width: 1000px;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* --- 2. PRELOADER --- */
#loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; display: flex; align-items: center; justify-content: center;
    z-index: 9999; transition: opacity 1s ease;
}
#load-number { font-family: 'Montserrat'; font-size: 5rem; color: var(--red); font-weight: 900; }
.loader-bar { position: absolute; bottom: 0; left: 0; height: 2px; background: var(--red); width: 0%; transition: width 0.1s; }

/* --- 3. NAVIGATION (HUD) --- */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; display: flex;
    justify-content: space-between; align-items: center; padding: 40px 60px;
    z-index: 1000; mix-blend-mode: difference;
}
.nav-logo { font-family: 'Montserrat'; font-weight: 900; font-size: 1.5rem; letter-spacing: 2px; text-transform: uppercase; }
.nav-logo span { color: var(--red); }
.nav-links { display: flex; gap: 30px; }
.nav-item { text-decoration: none; color: #fff; font-size: 0.7rem; letter-spacing: 3px; text-transform: uppercase; font-weight: 700; transition: 0.3s; }
.nav-item:hover { color: var(--red); }

/* --- 4. HERO & BACKGROUND --- */
#bg-canvas { position: fixed; top: 0; left: 0; z-index: -1; pointer-events: none; }
.film-grain { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-image: url('https://grainy-gradients.vercel.app/noise.svg'); opacity: 0.05; z-index: 99; pointer-events: none; }

main { opacity: 0; transition: opacity 1.5s ease; }
main.loaded { opacity: 1; }

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.glitch { font-family: 'Montserrat'; font-size: clamp(3rem, 12vw, 6rem); letter-spacing: -2px; line-height: 0.8; text-transform: uppercase; }
.highlighted-text { color: var(--red); letter-spacing: 10px; margin: 20px 0; font-weight: 900; font-size: 0.8rem; text-transform: uppercase; }

/* --- 5. GALLERY & MENU SCROLLERS --- */
.gallery-section { padding: 0 !important; margin: 0 !important; }

/* Fix for the Gallery Images */
.gallery-section .swiper-slide img {
    width: 100%;
    height: auto; /* Allow the height to be natural */
    max-height: 80vh; /* Prevents the image from being taller than the screen */
    object-fit: contain; /* Shows the WHOLE image without cropping */
    display: block;
    margin: 0 auto;
}

/* If you prefer the 'filled' look but want to see the head, use this instead: */
/*
.gallery-section .swiper-slide img {
    width: 100%;
    height: 500px; 
    object-fit: cover;
    object-position: top center; /* This forces the crop to happen at the feet, not the head */
}
*/

.narrow-swiper {
    width: 100%;
    max-width: 500px; /* Adjust based on how wide you want the single photo to be */
    margin: 0 auto;
}

.mySwiper, .menuSwiper { height: 450px; margin: 20px auto; }
.swiper-slide img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.8); transition: 0.5s; }
.swiper-slide-active img { filter: brightness(1.1); }

.menu-card {
    background: var(--glass);
    border: 1px solid rgba(255,255,255,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
}
.menu-card h3 { color: var(--red); font-size: 0.7rem; letter-spacing: 3px; margin-bottom: 10px; text-transform: uppercase; }

/* --- 6. GUEST LIST --- */
.guest-list-section .category-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 
    gap: 15px; 
}
.category-box {
    padding: 25px;
    background: var(--glass);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.category-box:hover { border-color: var(--red); transform: translateY(-5px); }
.category-box h3 { font-size: 0.75rem; color: var(--red); margin-bottom: 15px; border-bottom: 1px solid #333; padding-bottom: 8px; letter-spacing: 2px; }
.name-list { font-size: 0.8rem; color: #aaa; line-height: 1.8; }

/* --- 7. SIDE-BY-SIDE RSVP & MAP --- */
.split-container {
    display: flex;
    gap: 40px;
    align-items: stretch;
    margin-top: 80px;
    margin-bottom: 100px;
}
.map-column, .form-column { flex: 1; width: 50%; }

.hero-map-container {
    height: 100%;
    min-height: 400px;
    filter: grayscale(1) invert(95%);
    border: none !important;
}
.hero-map-container iframe { width: 100%; height: 100%; }

.form-wrapper { text-align: center; padding: 20px; }
select, .btn-submit { 
    width: 100%; padding: 20px; background: #111; 
    border: 1px solid #333; color: #fff; margin-bottom: 15px; 
    font-family: inherit; font-size: 0.8rem; letter-spacing: 1px;
}
.btn-submit { 
    background: #fff; color: #000; font-weight: 900; 
    cursor: pointer; transition: 0.3s; text-transform: uppercase;
}
.btn-submit:hover { background: var(--red); color: #fff; }

/* --- 8. RESPONSIVE --- */
@media (max-width: 1024px) {
    .narrow-swiper, 
    .guest-list-section .category-grid,
    .split-container,
    .menu-display-section .menuSwiper {
        width: 90% !important;
    }
    .split-container { flex-direction: column; }
    .map-column, .form-column { width: 100%; }
    .navbar { padding: 20px; }
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000; /* Higher than navbar */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Container for the Splash Video */
.video-wrapper {
    width: 30vw;  /* 50% of viewport width */
    height: 90vh; /* 50% of viewport height */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle frame border */
    background: #000;
}

#splash-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Keeps the video filling the 50% box */
    filter: brightness(0.8) contrast(1.1);
}

/* Adjust the footer so it sits below the 50% box */
.loader-footer {
    position: absolute;
    bottom: 15vh; /* Pushed up slightly to stay near the video */
    text-align: center;
    width: 100%;
}
#load-number {
    font-size: 3rem; /* Slightly smaller to match the smaller video */
}
/* Cinematic reveal effect */
main.loaded {
    animation: revealContent 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes revealContent {
    0% { opacity: 0; transform: scale(1.05); filter: blur(10px); }
    100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

.frame-accent {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--red);
    border-style: solid;
    pointer-events: none;
}
.top-left {
    top: 10px;
    left: 10px;
    border-width: 1px 0 0 1px;
}
.bottom-right {
    bottom: 10px;
    right: 10px;
    border-width: 0 1px 1px 0;
}
.guest-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.guest-entry small:hover {
    color: var(--red);
    opacity: 1 !important;
}
#countdown {
    font-family: 'Inter', monospace; /* Monospace keeps numbers from jumping */
    font-size: 0.3em; /* Smaller than the D18 title */
    vertical-align: middle;
    margin-left: 20px;
    color: var(--red);
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    letter-spacing: 2px;
    opacity: 0.8;
}
/* --- 9. FLOATING CHATBOX --- */
#floating-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 9000; /* Stays under the loader but above everything else */
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

#floating-chat.chat-collapsed .chat-body {
    display: none;
}

.chat-header {
    background: var(--red);
    color: #fff;
    padding: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    text-transform: uppercase;
}

.chat-body {
    height: 380px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-left: 2px solid var(--red);
    font-size: 0.8rem;
    color: #ccc;
    line-height: 1.4;
}

.chat-message strong {
    color: #fff;
    display: block;
    margin-bottom: 4px;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#chat-form {
    display: flex;
    flex-direction: column;
    padding: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
}

#chat-form input {
    background: #111;
    border: 1px solid #333;
    color: #fff;
    padding: 12px;
    margin-bottom: 8px;
    font-family: inherit;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

#chat-form button {
    background: var(--red);
    color: #fff;
    border: none;
    padding: 12px;
    font-weight: 900;
    cursor: pointer;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: 0.3s;
}

#chat-form button:hover {
    background: #fff;
    color: #000;
}

/* Custom scrollbar for chat */
.chat-messages::-webkit-scrollbar {
    width: 5px;
}
.chat-messages::-webkit-scrollbar-thumb {
    background: var(--red);
}
/* --- CHAT ADMIN STYLES --- */
.chat-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.chat-message-header strong {
    margin-bottom: 0 !important; /* Overrides previous spacing */
}

.chat-delete-btn {
    background: transparent;
    color: var(--red);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
    transition: 0.3s;
}

.chat-delete-btn:hover {
    color: #fff;
    transform: scale(1.2);
}

/* --- FLOATING RSVP SIDEBAR --- */
#floating-rsvp {
    position: fixed;
    top: 110px; /* Positions it nicely below the navbar */
    left: 20px;
    width: 260px; /* Narrower width */
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid var(--red);
    border-radius: 8px;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
}

#floating-rsvp.rsvp-collapsed .rsvp-body {
    display: none;
}

.rsvp-header {
    background: var(--red);
    color: #fff;
    padding: 12px 15px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    text-transform: uppercase;
}

.rsvp-body {
    padding: 15px;
}

/* Smaller Select Dropdown */
.rsvp-body select {
    width: 100%;
    padding: 10px;
    background: #000;
    border: 1px solid var(--red);
    color: var(--red);
    font-size: 0.85rem;
    font-family: inherit;
    letter-spacing: 2px;
    text-align: center;
    appearance: none;
    cursor: pointer;
    outline: none;
    margin-bottom: 10px;
}

.rsvp-body select option {
    background: #000;
    color: #fff;
}

/* Smaller Submit Button */
.rsvp-body .btn-submit {
    padding: 10px;
    font-size: 0.75rem;
    margin-bottom: 5px;
}

/* Scaled-down Guest List */
.sketch-guest-list {
    margin-top: 15px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 5px;
	display: none;
}

.sketch-guest-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid var(--red);
    padding: 8px 0 4px 0; /* Tighter padding */
    font-size: 0.85rem; /* Smaller font */
    letter-spacing: 1px;
    color: #fff;
}

.sketch-guest-name {
    flex: 1;
    text-transform: uppercase;
}

.sketch-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sketch-actions .check {
    color: #00ff00;
    font-size: 1rem; /* Smaller icons */
    text-shadow: 0 0 5px rgba(0,255,0,0.3);
}

.sketch-actions .cross {
    color: #ff0000;
    background: none;
    border: none;
    font-size: 1rem; /* Smaller icons */
    cursor: pointer;
    transition: transform 0.2s;
    text-shadow: 0 0 5px rgba(255,0,0,0.3);
}

.sketch-actions .cross:hover {
    transform: scale(1.3);
}

.sketch-guest-list::-webkit-scrollbar { width: 3px; }
.sketch-guest-list::-webkit-scrollbar-thumb { background: var(--red); }
/* --- RSVP SKETCH LAYOUT --- */
/*.sketch-rsvp-box {
    border: 1px solid var(--red);
    border-radius: 8px;
    padding: 30px;
    width: 90%;
    max-width: 450px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.sketch-rsvp-box select {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid var(--red);
    color: var(--red);
    font-size: 1.2rem;
    font-family: inherit;
    letter-spacing: 3px;
    text-align: center;
    appearance: none;
    cursor: pointer;
    outline: none;
    margin-bottom: 15px;
}

.sketch-rsvp-box select option {
    background: #000;
    color: #fff;
}

.sketch-guest-list {
    margin-top: 30px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.sketch-guest-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; 
    border-bottom: 2px solid var(--red); 
    padding: 15px 0 5px 0;
    font-size: 1.1rem;
    letter-spacing: 1px;
    color: #fff;
}

.sketch-guest-name {
    flex: 1;
    text-transform: uppercase;
}

.sketch-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.sketch-actions .check {
    color: #00ff00; 
    font-size: 1.2rem;
    text-shadow: 0 0 5px rgba(0,255,0,0.3);
}

.sketch-actions .cross {
    color: #ff0000; 
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s;
    text-shadow: 0 0 5px rgba(255,0,0,0.3);
}

.sketch-actions .cross:hover {
    transform: scale(1.3);
}

.sketch-guest-list::-webkit-scrollbar { width: 4px; }
.sketch-guest-list::-webkit-scrollbar-thumb { background: var(--red); }
*/
/* --- 10. PASSWORD RSVP MODAL --- */
#rsvp-modal-overlay {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px); /* Cinematic background blur */
    z-index: 10000; /* Stays above everything */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.4s ease;
}

#rsvp-modal-overlay.modal-hidden {
    opacity: 0;
    pointer-events: none;
}

.rsvp-modal-content {
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid var(--red);
    padding: 40px;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    text-align: center;
    box-shadow: 0 0 40px rgba(139, 0, 0, 0.4);
}

.close-modal {
    position: absolute;
    top: 15px; 
    right: 20px;
    background: none; 
    border: none;
    color: var(--red); 
    font-size: 2rem;
    cursor: pointer; 
    transition: 0.3s;
    line-height: 1;
}

.close-modal:hover {
    color: #fff; 
    transform: scale(1.2);
}

#rsvp-password {
    width: 100%; 
    padding: 15px; 
    background: #000;
    border: 1px solid var(--red); 
    color: #fff;
    text-align: center; 
    letter-spacing: 5px;
    margin-bottom: 15px; 
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

#rsvp-password:focus {
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
}

#password-error {
    color: var(--red); 
    display: none; 
    font-size: 0.8rem; 
    margin-top: 15px;
    letter-spacing: 2px;
    font-weight: bold;
}

/* Ensure the list displays correctly inside the modal */
#modal-guest-list {
    display: block !important; /* Overrides the previous display: none */
    max-height: 50vh;
}
/* --- MODAL GUEST LIST SCALING --- */
/* Target only the list items inside the modal */
#modal-guest-list .sketch-guest-item {
    padding: 8px 0 4px 0;  /* Much tighter padding */
    font-size: 0.85rem;    /* Smaller font size */
}

/* Shrink the check and cross icons inside the modal */
#modal-guest-list .sketch-actions .check,
#modal-guest-list .sketch-actions .cross {
	font-size: 1.1rem !important; 
    padding: 5px; /* Makes the trash can easier to tap cleanly */     
}

/* --- ENLARGE TOGGLE ICONS (CHAT & RSVP) --- */
#chat-toggle-icon, 
#rsvp-toggle-icon {
    font-size: 1.5rem;      /* Makes the + and - much larger */
    line-height: 0.5;       /* Prevents the large icon from making the header too tall */
    padding: 0 5px;         /* Adds extra invisible clickable space around the icon */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

/* Optional: Adds a tiny pop effect when hovered */
#chat-toggle-icon:hover, 
#rsvp-toggle-icon:hover {
    transform: scale(1.2);
}
/* --- GUEST LIST EMAIL & ICON UPDATES --- */
.sketch-guest-item {
    align-items: flex-start; /* Changed from flex-end so the name and email stack nicely */
}

.sketch-guest-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sketch-guest-email {
    font-size: 0.65rem;
    color: #888;
    letter-spacing: 1px;
    text-transform: lowercase;
    margin-top: 3px;
    margin-bottom: 5px;
}

.sketch-guest-email.no-email {
    color: #555;
    font-style: italic;
    text-transform: uppercase;
}

.sketch-actions .mail-icon {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s;
    padding: 5px;
    color: #fff;
}

.sketch-actions .mail-icon:hover {
    transform: scale(1.3);
}

/* --- NEW RSVP SECTION STYLES --- */
#rsvp-section {
    background: #000;
    padding: 80px 0;
}

.rsvp-container-box {
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(139, 0, 0, 0.3);
    background: #050505;
    padding: 30px;
}

.rsvp-header-box {
    text-align: center;
    font-family: 'Cinzel', serif; /* Or your preferred font */
    font-size: 1.2rem;
    letter-spacing: 3px;
    color: var(--red);
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(139, 0, 0, 0.2);
    padding-bottom: 15px;
}

.rsvp-msg {
    font-size: 0.75rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rsvp-msg-success {
    font-size: 0.8rem;
    color: #00ff00;
    letter-spacing: 1px;
}

.rsvp-input {
    width: 100%;
    padding: 12px;
    background: #000;
    border: 1px solid var(--red);
    color: #fff;
    text-align: center;
    font-family: inherit;
    font-size: 0.9rem;
    margin-top: 10px;
}

.guest-list-divider {
    margin: 40px 0 20px 0;
    text-align: center;
    border-top: 1px solid #222;
    position: relative;
}

.guest-list-divider span {
    position: relative;
    top: -10px;
    background: #050505;
    padding: 0 15px;
    font-size: 0.7rem;
    color: #666;
    letter-spacing: 2px;
}

/* Remove the old floating RSVP styles if they are still there */
#floating-rsvp {
    display: none;
}
/* --- SECTION TITLE STYLING --- */
.section-title {
    text-align: center;
    font-family: 'Cinzel', serif; /* Matches the grand/cinematic vibe */
    font-size: 2.2rem;
    color: var(--red); /* Uses your primary red color */
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 50px;
    position: relative;
    display: block;
    width: 100%;
}

/* Elegant line under the title */
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background: var(--red);
    margin: 15px auto 0;
    opacity: 0.6;
}
.input-row {
    display: flex;
    gap: 10px;
}

.input-row .rsvp-input {
    flex: 1;
}

.rsvp-input {
    text-transform: uppercase;
}

/* --- FLOATING INVITATION TAB --- */
.invite-tab {
	display: none;
    position: fixed;
    right: 0;
    top: 40%; /* Adjusted so it doesn't overlap chat if present */
    background: var(--red);
    color: white;
    padding: 15px 8px;
    cursor: pointer;
    z-index: 1000;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.7rem;
    letter-spacing: 3px;
    font-weight: bold;
    border-radius: 5px 0 0 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease, background 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
}

.invite-tab:hover {
    transform: translateX(-5px);
    background: #a00000;
}

.invite-icon {
    writing-mode: horizontal-tb;
    font-size: 1.2rem;
}

/* --- INVITATION MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content.cinematic-box {
    background: #0a0a0a;
    border: 1px solid var(--red);
    padding: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
    box-shadow: 0 0 30px rgba(139, 0, 0, 0.4);
}

.modal-title {
    font-family: 'Cinzel', serif;
    color: var(--red);
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.invite-card-container {
    margin-bottom: 20px;
    border: 1px solid #222;
    overflow: hidden;
}

.invite-card-container img {
    width: 100%;
    height: auto;
    display: block;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--red);
}

.download-btn {
    text-decoration: none;
    display: inline-block;
    font-size: 0.8rem;
    padding: 12px 25px;
}

/* Guest List Grid Layout */
.guest-list-header, .guest-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; /* Name gets more space */
    text-align: center;
    border-bottom: 1px solid rgba(163, 29, 29, 0.2);
    padding: 10px 0;
    align-items: center;
}

.guest-list-header {
    font-weight: bold;
    color: #a31d1d;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.guest-item {
    font-size: 0.9rem;
}

.guest-email {
    grid-column: 1 / span 3; /* Email spans the whole row below the columns */
    font-size: 0.75rem;
    color: #777;
    text-align: left;
    padding-left: 5px;
    margin-top: -5px;
    margin-bottom: 5px;
}

.status-check {
    color: green;
    font-weight: bold;
}

.status-x {
    color: #a31d1d;
    font-weight: bold;
}

/* Mobile Adjustment */
@media (max-width: 480px) {
    .guest-list-header, .guest-item {
        grid-template-columns: 1.5fr 1fr 1fr;
        font-size: 0.75rem;
    }
}