/* GalleryModal Styles */

.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.gallery-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(4px);
}

.gallery-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10001;
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

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

.gallery-close svg {
  width: 1.5rem;
  height: 1.5rem;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10001;
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

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

.gallery-nav-prev {
  left: 1rem;
}

.gallery-nav-next {
  right: 1rem;
}

.gallery-nav svg {
  width: 1.5rem;
  height: 1.5rem;
}

.gallery-content {
  position: relative;
  z-index: 10000;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.gallery-info {
  margin-top: 1rem;
  text-align: center;
  color: white;
}

.gallery-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.gallery-counter {
  font-size: 0.875rem;
  opacity: 0.8;
  margin: 0;
}

.gallery-thumbnails {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.gallery-thumbnail {
  width: 0.75rem;
  height: 0.75rem;
  border: none;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  padding: 0;
}

.thumbnail-indicator {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.2s ease;
}

.gallery-thumbnail.active .thumbnail-indicator {
  background: white;
  transform: scale(1.2);
}

.gallery-thumbnail:hover .thumbnail-indicator {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.1);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .gallery-modal {
    padding: 0.5rem;
  }

  .gallery-close,
  .gallery-nav {
    width: 2.5rem;
    height: 2.5rem;
  }

  .gallery-close svg,
  .gallery-nav svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  .gallery-nav-prev {
    left: 0.5rem;
  }

  .gallery-nav-next {
    right: 0.5rem;
  }

  .gallery-image {
    max-height: 70vh;
  }

  .gallery-title {
    font-size: 1rem;
  }

  .gallery-counter {
    font-size: 0.75rem;
  }
}
