/* Gallery-specific styles */
.back-wrapper {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1001;
}

.gallery-section {
  margin: 3rem auto;
  padding: 0 1rem;
  max-width: 1000px;
}

.gallery-section h2 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: #111;
}

.image-scroll {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  gap: 0.75rem;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
}

.image-scroll::-webkit-scrollbar {
  height: 8px;
}

.image-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.image-scroll img {
  height: 250px;
  min-width: 300px;
  border-radius: 10px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  transition: transform 0.3s;
  cursor: pointer;
}

.image-scroll img:hover {
  transform: scale(1.03);
}

.lightbox-wrapper {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.lightbox-wrapper.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  max-height: 90vh;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  padding: 0.5rem 0.5rem;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 4px;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.6);
  border: none;
  padding: 0.5rem 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 6px;
  z-index: 1001;
}

.lightbox-prev {
  left: 10px;
}

.lightbox-next {
  right: 10px;
}

@media (max-width: 600px) {
  .image-scroll img {
    height: 180px;
    min-width: 240px;
  }
}
