.carousel-popup {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.carousel-popup.active {
  display: flex;
  opacity: 1;
}

.carousel-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.carousel-popup.active .carousel-image {
  transform: scale(1);
}

.carousel-nav,
.carousel-close,
.gallery-view-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 1.5rem;
}

.carousel-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.05);
}

.carousel-nav.prev {
  left: -80px;
}

.carousel-nav.next {
  right: -80px;
}

.carousel-close {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
}

.carousel-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.carousel-info {
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
}

.carousel-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.carousel-counter {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.carousel-thumbnails {
  position: absolute;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  max-width: 80vw;
  overflow-x: auto;
  padding: 10px 0;
}

.carousel-thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  border: 2px solid transparent;
}

.carousel-thumbnail.active {
  opacity: 1;
  border-color: #fff;
}

.carousel-thumbnail:hover {
  opacity: 0.8;
}

.gallery-view-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.gallery-image {
  cursor: pointer;
}

.gallery-view-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.gallery-empty-state {
  max-width: 680px;
  margin: 3rem auto 0;
  padding: 2rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.gallery-empty-state[hidden] {
  display: none;
}

.gallery-empty-state h3 {
  margin-bottom: 0.75rem;
}

.gallery-empty-state p {
  margin: 0;
}

.gallery-item.is-hidden {
  display: none;
}

@media (max-width: 768px) {
  .carousel-nav {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .carousel-nav.prev {
    left: 10px;
  }

  .carousel-nav.next {
    right: 10px;
  }

  .carousel-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .carousel-info {
    bottom: -60px;
  }

  .carousel-title {
    font-size: 1.25rem;
  }

  .carousel-thumbnails {
    bottom: -100px;
  }

  .carousel-thumbnail {
    width: 50px;
    height: 50px;
  }
}
