/* Gallery Styles */
.gallery-section {
  padding: 8rem 4rem;
  background-color: var(--color-white);
}

.gallery-container {
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-category {
  margin-bottom: 6rem;
}

.gallery-category__title {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: all 0.3s ease;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-2);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
  padding: 2rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  position: relative;
  margin: auto;
  padding: 2rem;
  width: 80%;
  max-width: 1200px;
}

.close {
  position: absolute;
  top: 2rem;
  right: 3rem;
  color: white;
  font-size: 4rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

.slideshow-container {
  position: relative;
  width: 100%;
  height: 70vh;
}

.slide {
  display: none;
  width: 100%;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 2rem;
  margin-top: -2rem;
  color: white;
  font-weight: bold;
  font-size: 3rem;
  transition: 0.3s;
  user-select: none;
  z-index: 1001;
}

.next {
  right: 0;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

.dots-container {
  text-align: center;
  padding: 2rem;
}

.dot {
  cursor: pointer;
  height: 1.5rem;
  width: 1.5rem;
  margin: 0 0.5rem;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.active, .dot:hover {
  background-color: var(--color-primary);
}

.slideshow-caption {
  text-align: center;
  color: white;
  padding: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    width: 95%;
  }
  
  .slideshow-container {
    height: 50vh;
  }
}