/* ===============================
   GALLERY SECTION
================================ */
.gallery-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
}

/* ===============================
   SCROLL TRACK
================================ */
.gallery-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 60px;
  scroll-snap-type: x mandatory;
}

/* Hide scrollbar */
.gallery-track::-webkit-scrollbar {
  display: none;
}
.gallery-track {
  scrollbar-width: none;
}

/* ===============================
   ITEMS
================================ */
.gallery-item {
  flex: 0 0 calc(25% - 16px);
  scroll-snap-align: start;
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 10px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

/* HOVER EFFECT */
.gallery-item:hover img {
  transform: scale(1.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* ===============================
   ARROWS
================================ */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  user-select: none;
}

.gallery-nav.left {
  left: 10px;
}
.gallery-nav.right {
  right: 10px;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 1024px) {
  .gallery-item {
    flex: 0 0 calc(50% - 16px);
  }
}

@media (max-width: 600px) {
  .gallery-item {
    flex: 0 0 150%;
  }
}
/* ===============================
   LIGHTBOX STYLES
================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  animation: zoomIn 0.3s ease;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

/* Zoom animation */
@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
