/* ================= Public Gallery ================= */
.public-gallery {
  background: #fff;
  padding: 60px 20px;
}

.gallery-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.gallery-container h1 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 10px;
}

.gallery-subtitle {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

/* Grid */
.public-gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* Thumbnails */
.public-thumb img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.public-thumb img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ================= Modal Lightbox ================= */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: var(--main-green);
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .public-thumb img {
    width: 140px;
    height: 140px;
  }
  .close {
    font-size: 30px;
    right: 20px;
  }
}
/* ================= Modal Navigation Arrows ================= */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: #fff;
  font-weight: bold;
  font-size: 40px;
  transition: 0.3s ease;
  user-select: none;
}

.prev:hover,
.next:hover {
  color: var(--main-green);
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

@media (max-width: 600px) {
  .prev,
  .next {
    font-size: 30px;
    padding: 12px;
  }
}
