/* styling for gallery pages include pop up */
/* General image styling */
img {
  border-radius: 10px;
  cursor: pointer;
}

/* Gallery layout */
.gallery {
  width: 90%;
  margin: 0 auto;
}

.gallery-name {
  text-align: center;
  margin: 20px 0;
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: black; /* Set text color to black */
}

.gallery-grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery-grid-item {
  background-color: #f4f4f4;
  padding: 10px;
  text-align: center;
  border: 1px solid #ddd;
  color: black; /* Set text color to black */
}

.gallery-grid-item p {
  color: black; /* Set paragraph text color to black */
}

.gallery-grid-item img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 1024px) {
  .gallery-grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-grid-container {
    grid-template-columns: 1fr;
  }
}

/* Lightbox popup */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.lightbox img {
  display: block;
  margin: 0 auto;
  max-width: 90%;
  max-height: 80vh;
}

.lightbox-caption {
  color: white; /* Keep white since it's on dark background */
  text-align: center;
  margin-top: 10px;
  font-size: 16px;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  color: white;
  font-size: 40px;
  padding: 16px;
  user-select: none;
  transform: translateY(-50%);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}
