/* GALLERY */
#gallery {
  margin-bottom: 80px;
}
.gallery-container {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

.gallery-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
  padding: 20px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
.gallery-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
}

.gallery-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 0;
  scrollbar-width: thin;
}

.gallery-scroll::-webkit-scrollbar {
  height: 6px;
}

.gallery-scroll::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

.gallery-item {
  flex: 0 0 300px;
  height: 250px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  opacity: 0;
  transform: translateY(30px);
}

.gallery-item:hover {
  transform: translateY(-10px) scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item {
  position: relative;
  flex: 0 0 min(85vw, 400px);
  height: clamp(250px, 55vh, 500px);
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fff;
  scroll-snap-align: center;
}

.scroll-arrow {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  border: 2px solid var(--accent);
  background: transparent;
  border-radius: 50%;
  color: var(--accent);
  font-size: 24px;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10; 
  position: absolute;

}
.scroll-arrow:hover {
  background: rgba(227, 189, 130, 0.1);
  transform: scale(1.1);
}


.gallery-container {
  position: relative;
  display: flex;
  align-items: center;
}

.scroll-left {
  left: 10px; 
}

.scroll-right {
  right: 10px; 
}


/* LIGHTBOX */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

#lightbox.visible {
  display: flex;
}

.lightbox-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  aspect-ratio: 4/3;
}

#lightbox-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: var(--accent);
  cursor: pointer;
  z-index: 10;
  transition: 0.3s;
}

#close:hover {
  transform: scale(1.2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 50px;
  height: 50px;
  background: rgba(227, 189, 130, 0.2);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--accent);
  cursor: pointer;
  transform: translateY(-50%);
  transition: 0.3s;
  user-select: none;
}

.lightbox-nav:hover {
  background: rgba(227, 189, 130, 0.3);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.image-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent);
  background: rgba(0,0,0,0.5);
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 600;
}
