/**
 * Wedding Ultimate Plugin - Non-Critical CSS
 * Below-the-fold styles that can be loaded after initial page render
 *
 * Version: 11.21.87
 * These styles use CSS custom properties defined inline by PHP
 */

/* ========================================================================
   LANGUAGE SWITCHER STYLES
   ======================================================================== */

.wedding-container .language-switcher-section {
    padding: 2rem;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
}

.wedding-container .language-switcher-container {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.wedding-container .language-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: #333;
    cursor: pointer;
}

.wedding-container .language-label svg {
    color: var(--primary-color);
}

.wedding-container .language-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    background: white;
    color: #333 !important;
    font-size: 1rem;
    font-family: 'Lora', serif;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    min-width: 150px;
}

.wedding-container .language-select option {
    color: #333 !important;
    background: white !important;
}

.wedding-container .language-select:hover {
    background: var(--gradient1);
    color: white;
    border-color: var(--primary-color);
}

.wedding-container .language-select:focus {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

@media (max-width: 480px) {
    .wedding-container .language-switcher-container {
        flex-direction: column;
        gap: 0.75rem;
    }

    .wedding-container .language-label-text {
        display: none;
    }

    .wedding-container .language-select {
        width: 100%;
        max-width: 250px;
    }
}

/* ========================================================================
   COPYRIGHT FOOTER STYLES
   ======================================================================== */

.wedding-container .wedding-footer {
    padding: 2rem;
    background: #2c2c2c;
    color: #ffffff;
    text-align: center;
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    border-top: 3px solid var(--primary-color);
}

.wedding-container .wedding-footer p {
    margin: 0;
    opacity: 0.9;
}

/* ========================================================================
   RSVP SECTION STYLES
   ======================================================================== */

.wedding-container .rsvp-section {
    background: var(--gradient2);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.wedding-container .rsvp-section h2,
.wedding-container .rsvp-section p {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.wedding-container .rsvp-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: white;
    color: #333 !important;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-top: 2rem;
    font-family: 'Playfair Display', serif;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.wedding-container .rsvp-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    color: #000 !important;
}

/* RSVP button should also work as button element, not just anchor */
.wedding-container button.rsvp-button {
    border: none;
    cursor: pointer;
}

/* ========================================================================
   RSVP MODAL POPUP
   ======================================================================== */

.rsvp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rsvp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.rsvp-modal-content {
    position: relative;
    background: white !important;
    border-radius: 20px;
    max-width: 750px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    padding: 2rem;
    /* Hide scrollbar but keep functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    /* iOS momentum scrolling - smooth inertia on touch devices */
    -webkit-overflow-scrolling: touch;
    /* Prevent scroll chaining to background */
    overscroll-behavior: contain;
}

/* Hide scrollbar for Chrome/Safari */
.rsvp-modal-content::-webkit-scrollbar {
    display: none;
}

.rsvp-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    color: #888;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.rsvp-modal-close:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    transform: scale(1.1);
}

.rsvp-modal-close:active {
    transform: scale(0.95);
}

/* Elevator-style scroll buttons (desktop only) */
.rsvp-scroll-buttons {
    position: fixed;
    right: calc(50% - 375px - 70px);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10002;
}

.rsvp-scroll-up,
.rsvp-scroll-down {
    background: white;
    border: 2px solid #333;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.rsvp-scroll-up img,
.rsvp-scroll-down img {
    display: block;
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

.rsvp-scroll-up:hover,
.rsvp-scroll-down:hover {
    background: #f5f5f5;
    border-color: #000;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.rsvp-scroll-up:active,
.rsvp-scroll-down:active {
    transform: scale(0.95);
    background: #e8e8e8;
}

/* Hide scroll buttons on mobile/tablet */
@media (max-width: 1024px) {
    .rsvp-scroll-buttons {
        display: none;
    }
}

/* Modal form styling - Override page color scheme */
.rsvp-modal .rsvp-form {
    margin-top: 1rem;
    background: white !important;
    color: #333 !important;
}

.rsvp-modal .rsvp-form h3 {
    margin-top: 0;
    color: #333 !important;
    background: transparent !important;
}

/* Form inputs inside modal - white backgrounds, dark text */
.rsvp-modal .rsvp-form input[type="text"],
.rsvp-modal .rsvp-form input[type="email"],
.rsvp-modal .rsvp-form input[type="tel"],
.rsvp-modal .rsvp-form input[type="number"],
.rsvp-modal .rsvp-form textarea,
.rsvp-modal .rsvp-form select {
    background: white !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
}

/* Form labels inside modal */
.rsvp-modal .rsvp-form label {
    color: #333 !important;
    background: transparent !important;
}

/* Radio button groups */
.rsvp-modal .rsvp-form .radio-group {
    background: transparent !important;
}

.rsvp-modal .rsvp-form .radio-group label {
    color: #333 !important;
}

/* Responsive modal */
@media (max-width: 768px) {
    .rsvp-modal-content {
        width: 95%;
        max-height: 95vh;
        padding: 1.5rem;
    }
}

/* ========================================================================
   ANIMATIONS
   ======================================================================== */

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========================================================================
   SPARKLE / TWINKLING STARS EFFECT
   ======================================================================== */

.couple-names-wrapper {
    position: relative;
    display: inline-block;
}

.sparkles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.sparkle-star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: twinkle 2s ease-in-out infinite;
    box-shadow: 0 0 4px 2px rgba(255, 255, 255, 0.8);
}

.sparkle-star.medium {
    width: 6px;
    height: 6px;
    box-shadow: 0 0 6px 3px rgba(255, 255, 255, 0.8);
}

.sparkle-star.large {
    width: 8px;
    height: 8px;
    box-shadow: 0 0 8px 4px rgba(255, 255, 255, 0.9);
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================================================================
   GUESTBOOK SECTION STYLES
   ======================================================================== */

.wedding-container .guestbook-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: #f9f9f9;
}

.wedding-container .guestbook-form {
    max-width: 600px;
    margin: 0 auto 3rem;
    padding: 2rem;
    background: var(--gradient1);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.wedding-container .guestbook-form h3 {
    font-family: 'Playfair Display', serif;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.5rem;
}

.wedding-container .form-group {
    margin-bottom: 1rem;
}

.wedding-container .form-group input,
.wedding-container .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Lora', serif;
}

.wedding-container .submit-button {
    width: 100%;
    padding: 1rem;
    background: var(--gradient2);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
    font-family: 'Playfair Display', serif;
}

.wedding-container .submit-button:hover {
    transform: scale(1.02);
}

/* Focus indicators for accessibility - Issue #44 */
.wedding-container a:focus,
.wedding-container button:focus,
.wedding-container input:focus,
.wedding-container textarea:focus,
.wedding-container select:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.wedding-container .unmute-button-fixed:focus {
    outline: 3px solid white;
    outline-offset: 2px;
}

.wedding-container #guestbook-response {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.wedding-container #guestbook-response.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.wedding-container #guestbook-response.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

.wedding-container .guestbook-messages {
    margin-top: 3rem;
}

.wedding-container .guestbook-messages h3 {
    font-family: 'Playfair Display', serif;
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 1.5rem;
}

.wedding-container .messages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.wedding-container .message-card {
    padding: 1.5rem;
    background: var(--gradient3);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.wedding-container .message-author {
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.wedding-container .message-content {
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.wedding-container .message-date {
    font-size: 0.9rem;
    color: #ffffff;
    font-style: italic;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

/* ========================================================================
   GALLERY SECTION STYLES
   ======================================================================== */

.wedding-container .gallery-section {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    background: #f9f9f9;
}

.wedding-container .gallery-container {
    margin-top: 2rem;
}

/* Gallery plugin compatibility - ensure full width */
.wedding-container .gallery-section img {
    max-width: 100%;
    height: auto;
}

/* ========================================================================
   MUSIC PLAYER & UNMUTE BUTTON STYLES
   ======================================================================== */

.wedding-container .music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--gradient2);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 0.5px solid rgba(255, 255, 255, 0.2);
    z-index: 9999;
    width: auto;
    max-width: calc(100vw - 40px);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
}

.wedding-container .music-player.minimized {
    width: auto;
    padding: 0;
}

.wedding-container .music-player.minimized .music-content {
    width: 0;
    padding: 0;
}

.wedding-container .music-toggle {
    display: none !important;
}

.wedding-container .music-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.wedding-container .toggle-icon {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
    display: inline-block;
}

.wedding-container .music-player.minimized .toggle-icon {
    transform: rotate(180deg);
}

.wedding-container .music-content {
    padding: 0.25rem;
    transition: all 0.3s ease;
    overflow: hidden;
    max-height: 500px;
    position: relative;
}

.wedding-container .music-content.hidden {
    max-height: 0;
    padding: 0;
    opacity: 0;
}

.wedding-container .music-player iframe {
    width: 300px;
    height: 180px;
    border-radius: 12px;
    border: none;
    display: block;
}

/* Fixed unmute button */
button.unmute-button-fixed {
    position: fixed;
    top: 20px;
    left: 20px;
    cursor: pointer;
    z-index: 9999;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient2);
    border: none;
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    outline: none;
    margin: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

button.unmute-button-fixed .unmute-text {
    display: block;
    transform: translateY(-2px);
}

button.unmute-button-fixed:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    filter: brightness(1.1);
}

button.unmute-button-fixed.hidden {
    display: none;
}

/* Responsive - unmute button */
@media (max-width: 768px) {
    button.unmute-button-fixed {
        width: 70px;
        height: 70px;
        top: 15px;
        left: 15px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    button.unmute-button-fixed {
        width: 60px;
        height: 60px;
        top: 10px;
        left: 10px;
        font-size: 11px;
    }
}

/* Responsive - music player */
@media (max-width: 768px) {
    .wedding-container .music-player {
        bottom: 15px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .wedding-container .music-player iframe {
        width: 70vw;
        max-width: 400px;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 480px) {
    .wedding-container .music-player {
        bottom: 10px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .wedding-container .music-player iframe {
        width: 70vw;
        max-width: 300px;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

/* ========================================================================
   RESPONSIVE MEDIA QUERIES (STATIC STYLES ONLY)
   ======================================================================== */

@media (max-width: 768px) {
    .wedding-container .hero {
        background-size: 100%;
        background-position: center top;
        background-attachment: scroll;
    }
    .wedding-container .hero-content {
        padding: 1.5rem;
        max-width: 90%;
        width: 100%;
    }
    .wedding-container .couple-names {
        font-size: 2.5rem;
    }
    .wedding-container .countdown {
        gap: 1.5rem;
        flex-wrap: nowrap;
        width: 100%;
        padding: 0 1rem;
    }
    .wedding-container .time-unit {
        flex: 1;
        min-width: 0;
    }
    .wedding-container .time-number {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }
    .wedding-container .time-label {
        font-size: clamp(0.875rem, 2vw, 1.125rem);
    }
    .wedding-container .info-section {
        margin-top: 1.5rem;
    }
    .wedding-container .info-card {
        flex-basis: 100% !important;
    }
    .wedding-container .messages-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .wedding-container .couple-names {
        font-size: 2rem;
    }
    .wedding-container .countdown {
        gap: 0.5rem;
        padding: 0 0.5rem;
    }
    .wedding-container .time-unit {
        flex: 1;
    }
    .wedding-container .time-number {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }
    .wedding-container .time-label {
        font-size: clamp(0.75rem, 2.5vw, 1rem);
        margin-top: 0.25rem;
    }
    .wedding-container .info-section {
        margin-top: 1rem;
        padding: 2rem 1rem;
    }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .wedding-container .hero {
        min-height: 100vh;
    }
    .wedding-container .hero-content {
        padding: 1rem;
    }
    .wedding-container .couple-names {
        font-size: 2rem;
    }
    .wedding-container .countdown {
        margin-top: 1rem;
    }
    .wedding-container .time-number {
        font-size: 1.8rem;
    }
}

/* ========================================================================
   RSVP FORM STYLES - Issue #21
   ======================================================================== */

.wedding-container .rsvp-form {
    max-width: 700px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: var(--gradient1);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.wedding-container .rsvp-form h3 {
    font-family: 'Playfair Display', serif;
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.8rem;
}

.wedding-container .rsvp-deadline {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #555;
}

.wedding-container .rsvp-deadline strong {
    color: var(--primary-color);
    font-weight: 600;
}

.wedding-container .rsvp-form .form-group {
    margin-bottom: 1.5rem;
}

.wedding-container .rsvp-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.wedding-container .rsvp-form .required {
    color: #d9534f;
    margin-left: 0.25rem;
}

.wedding-container .rsvp-form input[type="text"],
.wedding-container .rsvp-form input[type="email"],
.wedding-container .rsvp-form input[type="tel"],
.wedding-container .rsvp-form input[type="number"],
.wedding-container .rsvp-form select,
.wedding-container .rsvp-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Lora', serif;
    transition: border-color 0.3s ease;
}

.wedding-container .rsvp-form input:focus,
.wedding-container .rsvp-form select:focus,
.wedding-container .rsvp-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.wedding-container .rsvp-form .radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wedding-container .rsvp-form .radio-label {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: normal;
}

.wedding-container .rsvp-form .radio-label:hover {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.5);
}

.wedding-container .rsvp-form .radio-label input[type="radio"] {
    margin-right: 0.75rem;
    width: auto;
    cursor: pointer;
}

.wedding-container .rsvp-form .radio-label input[type="radio"]:checked + span {
    color: var(--primary-color);
    font-weight: 600;
}

.wedding-container .rsvp-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.wedding-container .rsvp-form #guest-count-section,
.wedding-container .rsvp-form #meal-section,
.wedding-container .rsvp-form #dietary-section {
    margin-top: 1rem;
}

.wedding-container .rsvp-form .submit-button {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

.wedding-container .rsvp-form .submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.wedding-container .rsvp-form .submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.wedding-container #rsvp-response {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.wedding-container #rsvp-response.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wedding-container #rsvp-response.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive RSVP form */
@media (max-width: 768px) {
    .wedding-container .rsvp-form {
        padding: 1.5rem;
    }

    .wedding-container .rsvp-form h3 {
        font-size: 1.5rem;
    }

    .wedding-container .rsvp-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* ===== Easter Egg Animations ===== */

/* 666 Flames Easter Egg */
@keyframes flameRise {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-50vh) scale(1.3) rotate(180deg);
        opacity: 0.7;
    }
    100% {
        transform: translateY(-120vh) scale(1.6) rotate(360deg);
        opacity: 0;
    }
}

@keyframes flameWobble {
    0%, 100% {
        transform: translateX(-10px);
    }
    50% {
        transform: translateX(10px);
    }
}

@keyframes emberRise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.9;
    }
    30% {
        opacity: 1;
    }
    70% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) scale(0.3);
        opacity: 0;
    }
}

@keyframes smokeRise {
    0% {
        transform: translateY(0) scale(0.8);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-30vh) scale(1.5);
        opacity: 0.3;
    }
    100% {
        transform: translateY(-60vh) scale(2.2);
        opacity: 0;
    }
}

@keyframes messagePopIn {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Fire Border Effect for Music Player (666 Easter Egg) */
.music-player.on-fire {
    position: relative;
    animation: firePulse 0.5s ease-in-out infinite alternate;
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.8),
                0 0 40px rgba(255, 140, 0, 0.6),
                0 0 60px rgba(255, 0, 0, 0.4),
                inset 0 0 20px rgba(255, 69, 0, 0.3);
    border: 2px solid rgba(255, 140, 0, 0.8) !important;
}

.music-player.on-fire::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 69, 0, 0.3) 25%,
        rgba(255, 140, 0, 0.3) 50%,
        rgba(255, 0, 0, 0.3) 75%,
        transparent 100%
    );
    border-radius: 16px;
    animation: fireRotate 3s linear infinite;
    pointer-events: none;
    z-index: -1;
}

.music-player.on-fire::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(
        -45deg,
        transparent 0%,
        rgba(255, 215, 0, 0.4) 25%,
        rgba(255, 140, 0, 0.4) 50%,
        rgba(255, 69, 0, 0.4) 75%,
        transparent 100%
    );
    border-radius: 14px;
    animation: fireRotate 2s linear infinite reverse;
    pointer-events: none;
    z-index: -1;
}

@keyframes firePulse {
    0% {
        box-shadow: 0 0 20px rgba(255, 69, 0, 0.6),
                    0 0 40px rgba(255, 140, 0, 0.4),
                    0 0 60px rgba(255, 0, 0, 0.3),
                    inset 0 0 20px rgba(255, 69, 0, 0.2);
    }
    100% {
        box-shadow: 0 0 30px rgba(255, 69, 0, 0.9),
                    0 0 60px rgba(255, 140, 0, 0.7),
                    0 0 90px rgba(255, 0, 0, 0.5),
                    inset 0 0 30px rgba(255, 69, 0, 0.4);
    }
}

@keyframes fireRotate {
    0% {
        background-position: 0% 50%;
        filter: hue-rotate(0deg) blur(8px);
    }
    50% {
        filter: hue-rotate(20deg) blur(12px);
    }
    100% {
        background-position: 100% 50%;
        filter: hue-rotate(0deg) blur(8px);
    }
}

/* Disco Mode Easter Egg */
@keyframes discoBackground {
    0% { background: rgba(255, 0, 128, 0.3); }
    20% { background: rgba(0, 255, 128, 0.3); }
    40% { background: rgba(128, 0, 255, 0.3); }
    60% { background: rgba(255, 255, 0, 0.3); }
    80% { background: rgba(0, 255, 255, 0.3); }
    100% { background: rgba(255, 0, 128, 0.3); }
}

@keyframes discoBallRotate {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(360deg); }
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes sparkleFade {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

@keyframes beamFade {
    0% {
        opacity: 0;
        width: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Mobile optimizations for easter eggs */
@media (max-width: 768px) {
    .flame-particle {
        width: 20px !important;
        height: 30px !important;
    }

    #flames-overlay div[style*="font-size: 28px"] {
        font-size: 20px !important;
        padding: 20px !important;
    }
}

/* ============================================
   Print Stylesheet - Issue #70
   Optimizes page for printing
   ============================================ */
@media print {
    /* Hide unnecessary elements */
    .music-player,
    .unmute-button-fixed,
    .language-switcher,
    .sparkle,
    .floating-heart,
    #flames-overlay,
    #disco-overlay,
    .skip-link,
    .rsvp-button {
        display: none !important;
    }

    /* Reset page layout */
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    /* Optimize body for print */
    body {
        margin: 0;
        padding: 20px;
        font-size: 12pt;
        line-height: 1.5;
    }

    /* Hero section for print */
    .hero-section {
        page-break-after: avoid;
        margin-bottom: 20px;
        padding: 20px;
        border: 2px solid #333;
    }

    .couple-names {
        font-size: 24pt !important;
        color: #000 !important;
        margin-bottom: 10px;
    }

    .wedding-date {
        font-size: 14pt !important;
        color: #333 !important;
    }

    /* Info boxes for print */
    .info-boxes-container {
        display: block !important;
    }

    .info-box {
        page-break-inside: avoid;
        margin-bottom: 15px;
        padding: 10px;
        border: 1px solid #333 !important;
    }

    .info-box-title {
        font-size: 14pt !important;
        font-weight: bold;
        margin-bottom: 5px;
        color: #000 !important;
    }

    .info-box-content {
        font-size: 11pt !important;
        color: #333 !important;
    }

    /* Show URLs for links */
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #666 !important;
    }

    /* Don't show URLs for internal links or buttons */
    a[href^="#"]:after,
    a[href^="javascript"]:after,
    .info-box-button:after {
        content: "";
    }

    /* Guestbook for print */
    .guestbook {
        page-break-before: always;
    }

    .guestbook-form {
        display: none !important;
    }

    .guest-message {
        page-break-inside: avoid;
        margin-bottom: 15px;
        padding: 10px;
        border: 1px solid #ddd !important;
    }

    .guest-name {
        font-weight: bold;
        color: #000 !important;
    }

    .guest-message-text {
        color: #333 !important;
        margin-top: 5px;
    }

    /* Footer for print */
    .copyright-footer {
        page-break-before: avoid;
        margin-top: 30px;
        padding-top: 10px;
        border-top: 2px solid #333;
        font-size: 10pt !important;
        text-align: center;
    }

    /* Page breaks */
    h1, h2, h3 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }

    /* Optimize countdown timer for print */
    .countdown-timer {
        display: block !important;
        margin: 20px 0;
        text-align: center;
    }

    .countdown-number {
        color: #000 !important;
        font-size: 16pt !important;
    }

    .countdown-label {
        color: #333 !important;
        font-size: 10pt !important;
    }

    /* Print-specific header */
    @page {
        margin: 2cm;
    }

    /* First page header */
    body::before {
        content: "Wedding Information";
        display: block;
        font-size: 20pt;
        font-weight: bold;
        text-align: center;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 3px solid #000;
    }
}

/* ========================================================================
   SOCIAL MEDIA SHARE BUTTONS - Issue #23
   ======================================================================== */

.wedding-container .social-share-section {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(248,249,250,0.9));
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.wedding-container .social-share-container {
    max-width: 600px;
    margin: 0 auto;
}

.wedding-container .share-heading {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333;
    font-family: var(--font-family, 'Georgia, serif');
}

.wedding-container .share-buttons {
    display: flex;
    display: -webkit-flex; /* Firefox compatibility */
    flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    -webkit-justify-content: center; /* Firefox/Safari */
    align-items: center;
    -webkit-align-items: center;
    margin: 0 auto; /* Fallback for gap support */
    text-align: center; /* Ensure buttons stay centered */
}

.wedding-container .share-btn {
    display: inline-flex;
    display: -webkit-inline-flex; /* Firefox compatibility */
    align-items: center;
    -webkit-align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none !important; /* Override browser defaults - Firefox fix */
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white !important; /* Ensure white text in all browsers */
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    text-decoration: none; /* Firefox button fix */
    outline: none; /* Remove Firefox button outline */
    -moz-appearance: none; /* Remove Firefox button styling */
    -webkit-appearance: none; /* Remove webkit button styling */
    appearance: none; /* Remove default button appearance */
}

.wedding-container .share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.wedding-container .share-btn:active {
    transform: translateY(0);
}

.wedding-container .share-btn svg {
    width: 24px;
    height: 24px;
}

.wedding-container .share-btn.facebook {
    background: #1877F2 !important;
    background-color: #1877F2 !important;
}

.wedding-container .share-btn.facebook:hover {
    background: #145dbf !important;
    background-color: #145dbf !important;
}

.wedding-container .share-btn.twitter {
    background: #1DA1F2 !important;
    background-color: #1DA1F2 !important;
}

.wedding-container .share-btn.twitter:hover {
    background: #0c85d0 !important;
    background-color: #0c85d0 !important;
}

.wedding-container .share-btn.pinterest {
    background: #E60023 !important;
    background-color: #E60023 !important;
}

.wedding-container .share-btn.pinterest:hover {
    background: #bd001c !important;
    background-color: #bd001c !important;
}

/* Responsive */
@media (max-width: 480px) {
    .wedding-container .share-heading {
        font-size: 1.5rem;
    }

    .wedding-container .share-buttons {
        flex-direction: column;
        width: 100%;
    }

    .wedding-container .share-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================================================
   PHOTO UPLOAD STYLES - Issue #27
   ======================================================================== */

/* Floating Upload Button */
.photo-upload-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 999;
}

.photo-upload-floating-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.photo-upload-floating-btn:active {
    transform: translateY(-1px);
}

.photo-upload-floating-btn svg {
    width: 24px;
    height: 24px;
}

/* Shared Info Box Button Styles - Upload & Gallery */
.photo-upload-info-box-btn,
.photo-gallery-info-box-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    width: 40%;
    min-width: 150px;
    height: 56px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
}

.photo-upload-info-box-btn:hover,
.photo-gallery-info-box-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

.photo-upload-info-box-btn:active,
.photo-gallery-info-box-btn:active {
    transform: translateY(0);
}

/* Photo Upload Modal - Matching RSVP Modal Styling */
.photo-upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-upload-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.photo-upload-modal-content {
    position: relative;
    background: white !important;
    border-radius: 20px;
    max-width: 750px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    padding: 2rem !important;
    /* Hide scrollbar but keep functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    /* iOS momentum scrolling - smooth inertia on touch devices */
    -webkit-overflow-scrolling: touch;
    /* Prevent scroll chaining to background */
    overscroll-behavior: contain;
}

/* Hide scrollbar for Chrome/Safari */
.photo-upload-modal-content::-webkit-scrollbar {
    display: none;
}

.photo-upload-close {
    position: absolute; /* Changed from float: right */
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    color: #888;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.photo-upload-close:hover,
.photo-upload-close:focus {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    transform: scale(1.1);
}

.photo-upload-close:active {
    transform: scale(0.95);
}

.photo-upload-modal-content h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.35rem;
    font-weight: 700;
}

/* 2-column grid - matches RSVP form-row */
.photo-upload-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0;
}

/* Stack on mobile */
@media (max-width: 640px) {
    .photo-upload-form-row {
        grid-template-columns: 1fr;
    }
}

.photo-upload-modal-content .form-group {
    margin-bottom: 0.5rem;
}

.photo-upload-modal-content label {
    display: block;
    margin-bottom: 0.06rem;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.photo-upload-modal-content input[type="text"],
.photo-upload-modal-content input[type="email"],
.photo-upload-modal-content input[type="file"],
.photo-upload-modal-content select {
    width: 100%;
    padding: 0.625rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Lora', serif;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.photo-upload-modal-content input:focus,
.photo-upload-modal-content select:focus {
    outline: none;
    border-color: #667eea;
}

.photo-upload-modal-content small {
    display: block;
    margin-top: 0.35rem;
    color: #666;
    font-size: 0.875rem;
}

/* Photo Preview - Hidden to prevent modal scrolling */
.photo-preview {
    display: none;
}

.photo-preview img {
    display: none;
}

/* Upload Progress */
.upload-progress {
    margin: 1rem 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    margin-top: 0.5rem;
    text-align: center;
    color: #667eea;
    font-weight: 600;
}

/* Upload Message */
.upload-message {
    margin: 1rem 0;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
}

.upload-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.upload-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Submit Button */
.photo-upload-modal-content .submit-btn {
    width: 50%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.15rem;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-upload-modal-content .submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.photo-upload-modal-content .submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .photo-upload-floating-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 14px;
    }

    .photo-upload-floating-btn span {
        display: none;
    }

    .photo-upload-floating-btn svg {
        width: 28px;
        height: 28px;
    }

    .photo-upload-modal-content {
        padding: 1.5rem;
        width: 95%;
    }

    .photo-upload-modal-content h2 {
        font-size: 22px;
    }
}

/* ========================================================================
   CONTENT SECTIONS (INFO CARDS) - Moved from inline for Critical CSS optimization
   ======================================================================== */

.wedding-container .info-section {
    padding: 4rem 2rem 4rem 2rem;
    max-width: 1200px;
    margin: 6rem auto 0 auto; /* Increased top margin to show more hero image */
    background: white;
    position: relative;
    z-index: 5;
    border-radius: 25px 25px 0 0;
    overflow: hidden;
}

.wedding-container .section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
    position: relative;
}

.wedding-container .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient3);
}

.wedding-container .info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
    justify-content: center;
}

.wedding-container .info-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: var(--gradient1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-grow: 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

/* Size classes */
.wedding-container .info-card.size-1-4 { flex-basis: calc(25% - 2rem); }
.wedding-container .info-card.size-1-3 { flex-basis: calc(33.333% - 2rem); }
.wedding-container .info-card.size-1-2 { flex-basis: calc(50% - 2rem); }
.wedding-container .info-card.size-2-3 { flex-basis: calc(66.666% - 2rem); }
.wedding-container .info-card.size-full { flex-basis: 100%; }
.wedding-container .info-card.size-auto { flex: 1 1 300px; }

.wedding-container .info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.wedding-container .card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.wedding-container .card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.wedding-container .card-content {
    color: #666;
    line-height: 1.6;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.wedding-container .card-content a {
    color: #333;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid var(--accent-color);
    transition: all 0.3s ease;
}

.wedding-container .card-content a:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ========================================================================
   PHOTO GALLERY MODAL - HORIZONTAL SCROLLING
   ======================================================================== */

/* Gallery Modal */
.photo-gallery-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.photo-gallery-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1;
}

.photo-gallery-modal-content {
    position: relative;
    background: white;
    padding: 2.5rem;
    width: 95%;
    max-width: 1400px;
    height: 85vh;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    z-index: 2;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.photo-gallery-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: 300;
    color: #888;
    background: rgba(0, 0, 0, 0.05);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.photo-gallery-close:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    transform: scale(1.1);
}

.photo-gallery-close:active {
    transform: scale(0.95);
}

.photo-gallery-modal h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #333;
    margin: 0 0 1.5rem 0;
    text-align: center;
}

/* Gallery Container */
.gallery-modal-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Horizontal Scroll Container */
.gallery-horizontal-scroll {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Horizontal Grid */
.gallery-horizontal-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    flex: 1;
    height: 100%;
    padding: 1rem 0;
}

/* Hide scrollbar but keep functionality */
.gallery-horizontal-grid::-webkit-scrollbar {
    height: 8px;
}

.gallery-horizontal-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.gallery-horizontal-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.gallery-horizontal-grid::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Gallery Items */
.gallery-horizontal-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-horizontal-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.gallery-horizontal-item img {
    max-height: 100%;
    max-width: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
    cursor: pointer;
}

/* Navigation Buttons */
.gallery-nav-btn {
    position: relative;
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-nav-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.gallery-nav-btn:active {
    transform: scale(0.95);
}

.gallery-prev-btn {
    padding-right: 3px;
}

.gallery-next-btn {
    padding-left: 3px;
}

/* Responsive */
@media (max-width: 768px) {
    .photo-gallery-modal-content {
        width: 98%;
        height: 90vh;
        padding: 1.5rem 1rem;
    }

    .photo-gallery-modal h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .gallery-horizontal-grid {
        gap: 1rem;
    }

    .gallery-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .gallery-horizontal-item {
        width: 100vw;
        min-width: 100vw;
    }

    .gallery-horizontal-item img {
        width: 100%;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .photo-gallery-modal-content {
        padding: 1rem 0.75rem;
        border-radius: 12px;
    }

    .photo-gallery-close {
        top: 0.5rem;
        right: 1rem;
        width: 36px;
        height: 36px;
        font-size: 1.75rem;
    }

    .gallery-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }

    .gallery-horizontal-item {
        width: 100vw;
        min-width: 100vw;
    }

    .gallery-horizontal-item img {
        width: 100%;
        object-fit: cover;
    }
}

/* ========================================================================
   GALLERY LIGHTBOX - CLICK TO ENLARGE
   ======================================================================== */

.gallery-lightbox {
    display: none;
    position: fixed;
    z-index: 11000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 2;
}

.lightbox-image-container {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-counter {
    color: white;
    font-size: 1rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 2.5rem;
    font-weight: 300;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.lightbox-close:hover {
    background: rgba(220, 53, 69, 0.9);
    border-color: #dc3545;
    transform: scale(1.1) rotate(90deg);
}

.lightbox-close:active {
    transform: scale(0.95);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 3rem;
    font-weight: 300;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.lightbox-prev {
    left: 2rem;
    padding-right: 5px;
}

.lightbox-next {
    right: 2rem;
    padding-left: 5px;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav:active {
    transform: translateY(-50%) scale(0.95);
}

/* Responsive Lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        padding: 1rem;
    }

    .lightbox-image-container {
        max-width: 95%;
        max-height: 95%;
    }

    .lightbox-image-container img {
        max-height: 75vh;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }

    .lightbox-nav {
        width: 55px;
        height: 55px;
        font-size: 2.5rem;
    }

    .lightbox-prev {
        left: 1rem;
    }

    .lightbox-next {
        right: 1rem;
    }

    .lightbox-counter {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .lightbox-content {
        padding: 0.5rem;
    }

    .lightbox-image-container img {
        max-height: 70vh;
        border-radius: 4px;
    }

    .lightbox-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 44px;
        height: 44px;
        font-size: 1.75rem;
    }

    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }

    .lightbox-counter {
        font-size: 0.85rem;
        padding: 0.3rem 0.6rem;
    }
}

