@media (max-width: 768px) {
  .fab-container { display: none; }
}

/* ========================================
   Gallery — Grid
   ======================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* ========================================
   Gallery — Lightbox
   ======================================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

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

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 4px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  font-size: 2.5rem;
  padding: 0.5rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  line-height: 1;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}

.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2.8rem;
}

.lightbox-prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
}

.lightbox-next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
}

@media (max-width: 768px) {
  .lightbox-prev { left: 0.75rem; }
  .lightbox-next { right: 0.75rem; }
}

/* ========================================
   Gallery — Mobile Carousel
   ======================================== */
@media (max-width: 768px) {
  .gallery-grid {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-bottom: 0.25rem;
  }

  .gallery-grid::-webkit-scrollbar {
    display: none;
  }

  .gallery-grid img {
    flex: 0 0 88%;
    scroll-snap-align: center;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
  }
}

/* Carousel nav buttons */
.carousel-controls {
  display: none;
}

@media (max-width: 768px) {
  .carousel-controls {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1.75rem;
  }

  .carousel-btn {
    background: none;
    border: 2px solid var(--color-light-green);
    color: var(--color-light-green);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    font-size: 1.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    padding: 0;
  }

  .carousel-btn:hover {
    background: var(--color-light-green);
    color: var(--color-white);
  }

  .carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
  }

  .carousel-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--color-light-green);
    opacity: 0.3;
    transition: opacity 0.2s;
  }

  .carousel-dot.active {
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .lightbox-close {
    font-size: 2rem;
    top: 0.75rem;
    right: 0.75rem;
  }

  .lightbox-prev, .lightbox-next { font-size: 2rem; }
  .lightbox-prev { left: 0.25rem; }
  .lightbox-next { right: 0.25rem; }
}
