/* Form Styles */
form label {
    display: block;
    margin-bottom: 5px;
}

form input[type="text"],
form input[type="password"],
form input[type="email"],
form textarea {
    width: 100%;
    max-width: 300px;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

form textarea {
    max-width: 400px;
}

form button,
.wedding-guest-menu button,
.return-to-top,
.slideshow-toggle {
    padding: 10px 20px;
    background: #34495E;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.camera-upload i {
    font-size: 2.5rem;
    color: #555; /* Customize the color */
    margin-right: 0.5rem;
}

.camera-upload {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 1rem 1.5rem;
    background-color: #f0f0f0;
    border: 2px solid #aaa;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    color: #333;
    user-select: none;
    transition: background-color 0.3s;
}

.camera-upload:hover {
    background-color: #e0e0e0;
}

#wedding_photos {
    display: none;
}
#wedding-photo-upload-form button[type="submit"] {
  display: none;
}

.wedding-guest-menu button {
    margin: 5px;
    padding: 10px 15px;
}

.slideshow-toggle.paused {
    background: #666;
}

/* Upload Status */
.wedding-upload-spinner {
    display: none;
}

.wedding-upload-spinner.active {
    display: block;
}

.wedding-upload-message.success {
    color: green;
}

.wedding-upload-message.error {
    color: red;
}
.return-to-top {
    padding: 10px 20px;
    background: #34495E;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Wedding Gallery */
.wedding-gallery {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 20px;
}

.swiper-slide {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wedding-gallery .gallery-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.wedding-gallery .gallery-image:hover {
    transform: scale(1.05);
}

.uploader-name {
    margin: 10px 0 0;
    font-size: 14px;
    color: #333;
}

.swiper-button-prev,
.swiper-button-next {
    color: #34495E;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-button-prev:after,
.swiper-button-next:after {
    color: #34495E;
    font-size: 20px;
}

/* Thumbnails */
.wedding-thumbs {
    margin-top: 20px;
    padding: 0 10px;
}

.wedding-thumbs .swiper-slide {
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
}

.thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: border 0.3s, transform 0.3s;
}

.swiper-slide-thumb-active .thumb-image {
    border: 2px solid #34495E;
    transform: scale(1.1);
}
.wi-modal {
    display: none;
}

.wi-modal-content {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    margin: 50px auto;
    max-width: 600px; /* Ensures modal doesn’t stretch too wide */
}

/* RSVP Status */
.wedding-rsvp-status {
    text-align: center;
    font-style: italic;
    margin-bottom: 10px;
}

/* Venue Photo and Map Container */
.wi-venue-photo-container {
    max-width: 100%;
    margin: 20px auto;
    padding: 0 15px;
    box-sizing: border-box;
    text-align: center; /* Center images */
}

/* Venue Photos */
.wi-venue-photo {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Media Queries for Responsive Adjustments */
@media (max-width: 768px) {
    .wi-venue-photo-container {
        padding: 0 10px;
        margin: 15px auto;
    }
    .wi-venue-photo {
        max-width: 95%;
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .wi-venue-photo-container {
        max-width: 100%;
        border: 2px dashed red;
        padding: 0 5px;
        margin: 10px auto;
    }
    .wi-venue-photo {
        max-width: 100%;
        width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
        border-radius: 6px;
    }
}

/* Maps (e.g., iframes) */
.wi-venue-photo-container iframe {
    max-width: 100%;
    height: auto;
    border: none; /* Remove default iframe borders */
}

/* Error Message */
.wi-error {
    color: red;
    margin-bottom: 10px;
}

/* Guest Code Form */
#guest_code {
    text-transform: uppercase;
    width: 20%;
    max-width: 300px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

/* Responsive Design */
@media (max-width: 640px) {
    .wedding-gallery {
        padding: 10px;
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 30px;
        height: 30px;
    }

    .swiper-button-prev:after,
    .swiper-button-next:after {
          font-size: 16px;
    }

    .wedding-thumbs {
        padding: 0 5px;
    }

    .wedding-thumbs .swiper-slide {
        width: 80px;
        height: 80px;
        margin-right: 5px;
    }
       .wi-venue-photo-container {
        padding: 0 5px;
        margin-bottom: 15px;
    }

    .wi-venue-photo {
       border-radius: 6px;
    }

    #guest_code {
        max-width: 100%;
    } 
}