body {
  background-color: #f7f7f7;
}

/* Slider images: darken for text readability */
.splide__slide img {
  filter: brightness(0.7);
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding: 1rem 0;
}
@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.gallery-grid .gallery-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 0.5rem;
  aspect-ratio: 4 / 3;
}
.gallery-grid .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.gallery-grid .gallery-item:hover img {
  transform: scale(1.03);
  filter: brightness(1.1);
}

/* Lightbox overlay */
.lightbox-overlay {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  visibility: hidden;
}
.lightbox-overlay[data-visible="true"] {
  visibility: visible;
}
.lightbox-overlay .lightbox-img {
  flex-shrink: 0;
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0.5rem;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #dc2626;
  color: white;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: background 0.2s;
}
.lightbox-close:hover {
  background: #b91c1c;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.4);
}
.lightbox-prev {
  left: 1rem;
}
.lightbox-next {
  right: 1rem;
}

.scroll-top {
  right: 0.7rem;
}

.mopen span {
  height: 3px;
}