/* 📁 slider.css*/

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--accent-muted);
}

.gallery-image:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
  .gallery {
    display: flex;
    flex-direction: column;
  }
}

.lightbox.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(95, 101, 85, 0.97);
  z-index: 999;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(95, 101, 85, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
}

.lightbox img {
  max-width: 100%;
  max-height: 100vh;
  object-fit: contain;
}

.lightbox-inner{
  display: flex;
  justify-content: center;
}

.lightbox-inner img{
  object-fit: contain;
}

.lightbox.hidden {
  display: none;
}

.nav-btn, .close-btn {
  color: var(--accent-yellow);
  position: absolute;
  background: transparent;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10000;
  padding: 0.5rem;
}

.nav-btn.prev { left: 2rem; top: 50%; transform: translateY(-50%); }
.nav-btn.next { right: 2rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 768px) {
  .nav-btn.prev { top: unset; bottom: 1rem; transform: translateY(-50%); }
  .nav-btn.next { top: unset; bottom: 1rem; transform: translateY(-50%); }
}
.close-btn { top: 1rem; right: 1rem; font-size: 3rem; }