.gallery-section {
  margin-top: 80px;
  padding: 40px 20px;
  text-align: center;
}

.gallery-title {
  font-size: 26px;
  margin-bottom: 30px;
  font-weight: 600;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 14px;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition:
    transform 0.5s ease,
    filter 0.4s;
}

.gallery-item:hover img {
  transform: scale(1.15) rotate(1deg);
  filter: brightness(1.1);
}

/* lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  animation: zoomIn 0.35s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.slider-section {
  width: 100%;
  margin-top: 40px;
}

.slider {
  position: relative;
  height: 340px;
  overflow: hidden;
  border-radius: 16px;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 8s ease infinite;
}

.slide.active {
  opacity: 1;
}

/* ken burns */

@keyframes kenburns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

/* navigation */

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: white;
  font-size: 26px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
}

.prev {
  left: 10px;
}
.next {
  right: 10px;
}

/* dots */

.dots {
  position: absolute;
  bottom: 12px;
  width: 100%;
  text-align: center;
}

.dots span {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: white;
  opacity: 0.5;
  border-radius: 50%;
  margin: 4px;
  cursor: pointer;
}

.dots span.active {
  opacity: 1;
  transform: scale(1.3);
}
