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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Navbar Styles */
.navbar {
    background-color: white !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 1rem 0 !important;
}

.navbar-brand {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    font-weight: 600;
    color: #333 !important;
    letter-spacing: 1px;
}

.nav-link {
    transition: all 0.3s ease;
    margin-left: 2rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: #666 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active {
    color: #cea130 !important;
    border-bottom: 2px solid #cea130;
    padding-bottom: 0.25rem;
}

/* Intro Panel (Hero Section) */
.intro-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #e8f0e5 0%, #f5faf3 100%);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    padding: 2rem;
}

.intro-panel.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Ensure slides container flows properly when intro is hidden */
.slides-container {
    position: relative;
    width: 100%;
    margin-top: 60px;
}

.intro-panel h1 {
    font-size: clamp(2.5rem, 10vw, 5rem);
    margin-bottom: 1.5rem;
    color: #333;
    font-weight: 300;
    letter-spacing: 2px;
}

.intro-panel .lead {
    font-size: clamp(1rem, 4vw, 1.5rem);
    margin-bottom: 0.5rem;
    color: #666;
    font-weight: 400;
}

.intro-panel p {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    color: #999;
    letter-spacing: 1px;
}

.intro-panel strong {
    color: #cea130;
    font-weight: 600;
}

/* Dancing Script Font */
.dancing-script-styling {
    font-family: "Dancing Script", cursive;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
}

/* Slides Container */
.slides-container {
    position: relative;
    padding-top: 60px; /* Space for fixed navbar */
    background-color: #fff;
    width: 100%;
}

/* Section Styles */
.wedding-section {
    padding: 4rem 2rem;
    position: relative;
    background-color: #fff;
}

#home {
    padding: 3rem 4rem;
}

.wedding-section:nth-child(odd) {
    background-color: #f0f4eb;
}

.wedding-section > * {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Hero Sections with Images */
.section-with-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.section-content {
    padding: 0 2rem;
}

.hero-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Section Title */
.section-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 300;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title.dancing-script-styling {
    font-size: clamp(2rem, 8vw, 3.5rem);
    color: #cea130;
    font-weight: 600;
}

/* Home Section - Quote */
.quote-text {
    color: #666;
    font-style: italic;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.9;
    max-width: 1000px;
    margin: 1.5rem auto;
    text-align: center;
    font-weight: 300;
}

.quote-attribution {
    font-size: 0.95rem;
    color: #999;
    margin-top: 1.5rem;
    font-style: italic;
}

/* Carousel in Detail Items */
.detail-carousel {
    margin-top: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.detail-carousel .carousel-inner {
    border-radius: 8px;
    box-shadow: none;
    background: white;
    min-height: 350px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.detail-carousel .carousel-item {
    min-height: auto;
    height: 100%;
    cursor: pointer;
}

.detail-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.detail-carousel .carousel-item:hover img {
    transform: scale(1.02);
}

.detail-carousel .carousel-control-prev-icon,
.detail-carousel .carousel-control-next-icon {
    filter: invert(0.6);
    opacity: 0.6;
    width: 2rem;
    height: 2rem;
}

.detail-carousel .carousel-control-prev-icon:hover,
.detail-carousel .carousel-control-next-icon:hover {
    opacity: 0.9;
}

.detail-carousel .carousel-control-prev,
.detail-carousel .carousel-control-next {
    background-color: rgba(0, 0, 0, 0.05);
    opacity: 1;
}

.detail-carousel .carousel-control-prev:hover,
.detail-carousel .carousel-control-next:hover {
    background-color: rgba(0, 0, 0, 0.08);
}

/* Contact Section */
.contact-section-minimal {
    padding: 1.5rem 1rem !important;
    background-color: #f9fbf8;
    border-top: 1px solid #e8ede3;
}

.contact-minimal {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

.contact-info-inline span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info-inline a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-info-inline a:hover {
    color: #cea130;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lightbox-content {
    position: relative;
    width: 90%;
    height: 85%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2.5rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 2001;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.4);
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2002;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.4);
}

.lightbox-counter {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    z-index: 2001;
}

/* Carousel in Home Section */
#home .carousel-inner {
    width: 100%;
    max-width: 100%;
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    background: white;
    min-height: 400px;
}

#home .carousel-item {
    min-height: auto;
    height: 100%;
    cursor: pointer;
}

#home .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

#home .carousel-item:hover img {
    transform: scale(1.02);
}

#home .carousel-control-prev-icon,
#home .carousel-control-next-icon {
    filter: invert(0.7);
    opacity: 0.7;
}

#home .carousel-control-prev-icon:hover,
#home .carousel-control-next-icon:hover {
    opacity: 1;
}

/* Default Carousel (fallback) */
.carousel-item {
    min-height: 400px;
    cursor: pointer;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.carousel-item:hover img {
    transform: scale(1.02);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(0.7);
    opacity: 0.7;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    opacity: 1;
}

/* H1 Styling with Gold Bars */
h1 {
    position: relative;
    display: inline-block;
    font-weight: 300;
    padding: 0 1.5rem;
    font-size: clamp(2rem, 6vw, 3.5rem);
    letter-spacing: 1px;
}

h1::before,
h1::after {
    content: "";
    position: absolute;
    top: 15%;
    bottom: 15%;
    width: 3px;
    background-color: #cea130;
    border-radius: 2px;
}

h1::before {
    left: 0;
}

h1::after {
    right: 0;
}

/* Timeline Styles */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem 0;
}

.timeline-item {
    padding: 2rem 0 2rem 3rem;
    position: relative;
    margin-bottom: 2.5rem;
    animation: slideInLeft 0.6s ease-out both;
    animation-delay: calc(var(--item-index, 0) * 0.1s);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #cea130 0%, #a8c0a0 100%);
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 2rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #cea130;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #f5f5f5;
}

.timeline-date {
    font-weight: 600;
    color: #cea130;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.timeline-content {
    background: white;
    padding: 1.75rem;
    border-radius: 8px;
    border-left: 3px solid #cea130;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.timeline-content h5 {
    color: #333;
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    font-weight: 600;
}

.timeline-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Details Container */
.details-container {
    max-width: 1100px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    width: 100%;
    padding: 0 1rem;
}

.detail-item {
    padding: 2.5rem;
    background: #f9fbf8;
    border-radius: 8px;
    border-left: 4px solid #a8c0a0;
    box-shadow: 0 2px 12px rgba(168, 192, 160, 0.08);
    transition: all 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.detail-item h5 {
    color: #a8c0a0;
    margin-bottom: 1.25rem;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.detail-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.detail-item p:last-of-type {
    margin-bottom: 0;
}

.detail-item ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0 0 0;
}

.detail-item li {
    color: #666;
    margin: 0.6rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.6;
}

.detail-item li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #a8c0a0;
    font-weight: bold;
}

/* Link styling in detail items */
.detail-item a {
    color: #a8c0a0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.detail-item a:hover {
    color: #8fa07f;
    text-decoration: underline;
}

/* RSVP Section - LARGE AND PROMINENT */
#rsvp {
    background-color: #eef3eb;
}

#rsvp .section-title {
    color: #cea130;
    margin-bottom: 1rem;
}

.rsvp-container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
}

.rsvp-intro {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: #666;
    text-align: center;
    line-height: 1.8;
}

.rsvp-form {
    max-width: 900px;
    margin: 0 auto;
    padding: 3.5rem;
    background: #f9fbf8;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(168, 192, 160, 0.08);
    border: 1px solid #e8f0e5;
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.form-control,
.form-select {
    padding: 0.95rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-control::placeholder {
    color: #999;
}

.form-control:focus,
.form-select:focus {
    border-color: #cea130;
    box-shadow: 0 0 0 0.25rem rgba(206, 161, 48, 0.15);
    outline: none;
}

.form-check {
    padding: 1rem;
    background: #f0f4eb;
    border-radius: 6px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    border: 1px solid #e8f0e5;
}

.form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: #cea130;
    flex-shrink: 0;
}

.form-check-label {
    margin-left: 0;
    font-size: 0.95rem;
    cursor: pointer;
    color: #333;
    font-weight: 500;
}

/* Submit Button - Large and Prominent */
.btn-primary {
    background-color: #cea130;
    border: none;
    color: white;
    padding: 1.1rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 6px;
    width: 100%;
    margin-top: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-primary:hover {
    background-color: #b8912a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(206, 161, 48, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.rsvp-deadline {
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    color: #999;
    font-size: 0.9rem;
    line-height: 1.8;
}

.rsvp-deadline p {
    margin: 0.5rem 0;
}

.rsvp-deadline strong {
    color: #cea130;
    font-weight: 600;
}

.rsvp-contact {
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.rsvp-contact a {
    color: #cea130;
    text-decoration: none;
    font-weight: 500;
}

.rsvp-contact a:hover {
    text-decoration: underline;
}

/* Venue Link */
.venue-link {
    color: #cea130;
    text-decoration: none;
    transition: all 0.3s ease;
}

.venue-link:hover {
    color: #b8912a;
    text-decoration: underline;
}

/* Weather Box */
.weather-box {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #f0f4eb;
    border-radius: 6px;
    border-left: 3px solid #a8c0a0;
}

.weather-box h6 {
    color: #a8c0a0;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.weather-box p {
    margin-bottom: 0.5rem;
    color: #666;
}

.weather-box p:last-child {
    margin-bottom: 0;
}

/* Link List Style */
.link-list {
    list-style: none;
    padding-left: 0;
}

.link-list li {
    margin-bottom: 0.75rem;
}

.link-list li:last-child {
    margin-bottom: 0;
}

.link-list a {
    color: #cea130;
    transition: all 0.3s ease;
}

.link-list a:hover {
    color: #b8912a;
    text-decoration: underline;
}

/* RSVP Form Sections */
.rsvp-section {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e8f0e5;
}

.rsvp-section h5 {
    color: #a8c0a0;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.rsvp-section-last {
    border-bottom: none;
}

/* Guest Forms Styling */
.guest-forms-heading {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e8f0e5;
}

.guest-forms-heading h5 {
    color: #a8c0a0;
    font-size: 1.1rem;
    margin: 0;
}

.guest-form-group {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f9fbf8;
    border-radius: 8px;
    border: 1px solid #e8f0e5;
}

.guest-number {
    margin-bottom: 1.5rem;
}

.guest-number label {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    margin: 0;
    display: block;
}

/* Attendance Group Styling */
.attendance-group {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e8f0e5;
}

.attendance-group .form-label {
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.attendance-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.attendance-options .form-check {
    padding: 0.75rem 1rem;
    background-color: white;
    border: 2px solid #e8f0e5;
    border-radius: 6px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.attendance-options .form-check:hover {
    border-color: #a8c0a0;
    background-color: #fafcf9;
}

.attendance-options .form-check-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    border: 2px solid #a8c0a0;
    margin-right: 1rem;
    margin-top: 0;
    accent-color: #cea130;
}

.attendance-options .form-check-input:checked {
    background-color: #cea130;
    border-color: #cea130;
}

.attendance-options .form-check-label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    color: #333;
}

/* Guest Delete Button Styling */
.guest-delete-btn-container {
    margin-top: 1.5rem;
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.guest-delete-btn {
    background-color: #dc3545;
    border-color: #dc3545;
    font-weight: 600;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.guest-delete-btn:hover {
    background-color: #c82333;
    border-color: #bd2130;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* Delete Modal Styling */
.delete-modal-header {
    background-color: #dc3545;
    color: white;
    border-bottom: 2px solid #c82333;
}

.delete-modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.delete-modal-warning {
    color: #dc3545;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.delete-modal-text {
    color: #666;
    margin-bottom: 1.5rem;
}

.delete-modal-footer {
    border-top: 1px solid #e8f0e5;
}

.delete-modal-footer .btn {
    font-weight: 600;
}

/* Gallery Section */
.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
}

.gallery-intro {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: #666;
    text-align: center;
    line-height: 1.8;
}

.upload-area {
    margin-bottom: 3rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f9fbf8 0%, #f0f4eb 100%);
    border: 2px dashed #a8c0a0;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.upload-area:hover {
    background: linear-gradient(135deg, #f0f4eb 0%, #e8f0e5 100%);
    border-color: #cea130;
}

.upload-area.drag-over {
    background: linear-gradient(135deg, #e8f0e5 0%, #dfe8da 100%);
    border-color: #cea130;
    transform: scale(1.02);
}

.upload-content {
    pointer-events: none;
}

.upload-icon {
    font-size: 3rem;
    margin: 0 0 1rem 0;
}

.upload-text {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.photo-input {
    display: none;
}

.btn-upload {
    background-color: #a8c0a0;
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
}

.btn-upload:hover {
    background-color: #8fa07f;
    transform: translateY(-2px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
    overflow: hidden;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: white;
    aspect-ratio: 1;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-delete {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    font-size: 1.2rem;
    padding: 0;
}

.gallery-item:hover .gallery-item-delete {
    opacity: 1;
}

.gallery-item-delete:hover {
    background: rgba(0, 0, 0, 0.8);
}

.gallery-note {
    text-align: center;
    color: #999;
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 56px;
    }

    .navbar {
        padding: 0.5rem 0 !important;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .nav-link {
        margin-left: 0;
        padding: 0.75rem 1rem !important;
    }

    .wedding-section {
        padding: 2rem 1rem;
    }

    #home {
        padding: 2rem 1rem;
    }

    .details-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .rsvp-form {
        padding: 2rem 1rem;
        margin: 1rem auto 0;
    }

    .detail-item {
        padding: 1.5rem;
    }

    .detail-carousel {
        margin-top: 1rem;
    }

    .detail-carousel .carousel-inner {
        min-height: 300px;
    }

    .timeline {
        padding: 0;
    }

    .timeline-item {
        padding: 1rem 0 1rem 2rem;
    }

    h1::before,
    h1::after {
        width: 3px;
    }

    .lightbox-nav {
        padding: 0.75rem 1rem;
        font-size: 2rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }

    .lightbox-close {
        width: 3.5rem;
        height: 3.5rem;
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
    }

    .lightbox-counter {
        font-size: 0.9rem;
        bottom: 1rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        font-size: 1rem;
    }

    .intro-panel {
        padding: 1rem;
        height: 100vh;
    }

    .intro-panel h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .intro-panel .lead {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .intro-panel p {
        font-size: 0.85rem;
    }

    .wedding-section {
        padding: 1.5rem 1rem;
        min-height: auto;
    }

    #home .carousel-inner {
        min-height: 220px;
        margin: 1rem 0;
    }

    #home .carousel-item {
        min-height: 220px;
    }

    #home {
        padding: 1.5rem 1rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .quote-text {
        font-size: 0.95rem;
    }

    .detail-item {
        padding: 0.75rem;
        width: 100%;
        overflow: hidden;
    }

    .detail-carousel {
        margin-top: 1rem;
        width: 100%;
        overflow: hidden;
    }

    .detail-carousel .carousel-inner {
        min-height: 200px;
    }

    .detail-carousel .carousel-item {
        min-height: 200px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }

    .gallery-container {
        width: 100%;
        overflow-x: hidden;
    }

    #home .carousel-inner {
        min-height: 250px;
    }

    .rsvp-form {
        padding: 1.5rem;
    }

    .btn-primary {
        padding: 1rem 1.5rem;
        font-size: 1.05rem;
    }

    .timeline-item {
        padding-left: 1.75rem;
    }

    .timeline-item::after {
        width: 16px;
        height: 16px;
        left: -10px;
    }

    .lightbox-nav {
        padding: 0.5rem 0.75rem;
        font-size: 1.5rem;
    }

    .lightbox-close {
        width: 3rem;
        height: 3rem;
        font-size: 1.5rem;
        top: 0.5rem;
        right: 0.5rem;
    }

    .lightbox-counter {
        font-size: 0.85rem;
        bottom: 0.5rem;
        padding: 0.5rem 1rem;
    }

    .contact-info-inline {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.85rem;
    }
}

/* Smooth scroll snap for slides */
html {
    scroll-behavior: smooth;
}

/* Section Dividers */
.wedding-section {
    border-bottom: 1px solid #f0f0f0;
}

.wedding-section:last-child {
    border-bottom: none;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print Styles */
@media print {
    .intro-panel,
    .navbar {
        display: none;
    }

    .wedding-section {
        page-break-inside: avoid;
        min-height: auto;
    }
}
