@import url(./global.css);
.gallery-page {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.gallery-hero {
  text-align: center;
  margin-bottom: 18px;
}

.gallery-hero h2 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.gallery-hero p {
  margin: 0 auto;
  max-width: 800px;
  color: #555;
  line-height: 1.6;
}

/* ===== CAROUSEL ===== */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  background: #fff;
  margin: 22px 0 40px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  height: 600px;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-caption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  max-width: 75%;
}

/* Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  cursor: pointer;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 46px;
  background: rgba(255, 255, 255, 0.85);
  color: #333;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.95);
}

.carousel-btn.prev {
  left: 14px;
}
.carousel-btn.next {
  right: 14px;
}

/* Dots */
.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding: 0 12px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.6);
}

.carousel-dot.active {
  background: rgba(255, 255, 255, 1);
}

/* ===== GRID ===== */
.gallery-subtitle {
  text-align: center;
  margin: 0 0 18px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 60px;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.25s ease;
  background: #fff;
}

.gallery-grid img:hover {
  transform: scale(1.02);
}

/* Responsive */
@media (max-width: 768px) {
  .carousel-slide {
    height: 260px;
  }
  .carousel-caption {
    max-width: 90%;
    font-size: 13px;
  }
}
