body {
  font-family: Arial, sans-serif;
  margin: 0;
}

.autoplay-toggle {
  position: absolute;
  bottom: 60px; /* more space from bottom */
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  color: black;
  border: none;
  padding: 10px 20px;
  font-size: 24px; /* bigger icon */
  border-radius: 50px;
  cursor: pointer;
  z-index: 1001;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
}

.autoplay-toggle:hover {
  background-color: #f0f0f0;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 20px;
}

.gallery-img {
    flex: 1 1 calc(16.66% - 12px); /* 6 per row */
    max-width: calc(16.66% - 12px);
    aspect-ratio: 3 / 2; /* Maintain aspect ratio, adjust as needed */
    object-fit: cover;
    width: 100%;
    height: auto;
    border: 2px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

    .gallery-img:hover {
        transform: scale(1.05);
    }

/* Lightbox Base Styles */
.lightbox {
  position: fixed;
  z-index: 1000;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

/* Active state */
.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 80%;
  max-height: 80%;
  transition: opacity 0.5s ease;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 16px;
  color: white;
  font-size: 40px;
  user-select: none;
  transform: translateY(-50%);
}

.prev { left: 0; }
.next { right: 0; }

@media (max-width: 480px) {
  .autoplay-toggle {
    font-size: 20px;
    padding: 8px 16px;
    bottom: 30px;
  }
}

@media (max-width: 1024px) {
  .gallery-img {
    flex: 1 1 calc(25% - 12px); /* 4 per row */
    max-width: calc(25% - 12px);
  }
}

@media (max-width: 768px) {
  .gallery-img {
    flex: 1 1 calc(33.33% - 12px); /* 3 per row */
    max-width: calc(33.33% - 12px);
  }
}

@media (max-width: 480px) {
  .gallery-img {
    flex: 1 1 100%; /* 1 per row */
    max-width: 100%;
  }
}

