/* Slideshow styles */
.slideshow-container {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.slideshow-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
  transform: scale(1.05);
}

.slideshow-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.slideshow-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slideshow-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  z-index: 2;
}

.slideshow-dot {
  width: 12px;
  height: 12px;
  margin: 0 5px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.slideshow-dot.active {
  background-color: #fff;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.modal-content h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.modal-content h3 {
  color: var(--primary-color);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.modal-content p,
.modal-content ul {
  margin-bottom: 1rem;
}

.modal-content ul {
  padding-left: 20px;
}

/* Additional responsive styles for wedding page */
@media (max-width: 768px) {
  .wedding-image {
    width: 100%;
    height: auto;
    max-height: 400px;
  }

  .slideshow-container {
    height: 300px;
  }

  .wedding-content {
    gap: 1rem;
  }

  .modal-content {
    width: 95%;
    margin: 10% auto;
    padding: 15px;
  }

  .checkbox-group {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .slideshow-container {
    height: 250px;
  }

  .wedding-text ul {
    padding-left: 20px;
  }

  .wedding-text li {
    margin-bottom: 10px;
  }

  .modal-content {
    margin: 15% auto;
    padding: 10px;
  }
}
