/* =========================================
   GALLERY STYLES
   ========================================= */

/* Section layout */
#gallery {
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(180deg, #c5c4ff, #a19bff);
  min-height: 100vh;
}

.section-title {
  font-size: 2rem;
  color: #4b3fb6;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1rem;
  color: #333;
  margin-bottom: 2rem;
}

/* Gallery containers */
.gallery-section {
  background: #f6f4ff;
  border-radius: 1rem;
  margin: 2rem auto;
  padding: 2rem;
  max-width: 1100px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gallery-heading {
  font-size: 1.25rem;
  color: #5b4ce0;
  margin-bottom: 1rem;
  text-align: left;
  padding-left: 0.5rem;
}

/* Grid layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

.gallery-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  width: 100%;
  max-width: 300px;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.gallery-thumb {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Keep thumbnails and placeholders uniform */
.gallery-thumb,
.no-image-placeholder {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.gallery-info {
  padding: 0.75rem 1rem;
}

.gallery-info h4 {
  font-size: 1.1rem;
  color: #4b3fb6;
  margin: 0.3rem 0;
}

.gallery-info p {
  color: #444;
  font-size: 0.9rem;
}

/* Empty state */
.empty-msg {
  color: #666;
  font-style: italic;
  margin-top: 1rem;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 5vh;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 15, 15, 0.9);
  overflow: hidden;
}

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

#caption {
  color: #fff;
  font-size: 1rem;
  text-align: center;
  margin-top: 1rem;
}

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

.close:hover {
  color: #ffbcbc;
}

/* Modal navigation buttons */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.6);
}

.nav-btn.prev {
  left: 40px;
}

.nav-btn.next {
  right: 40px;
}

/* ---------- No Image Placeholder (Gallery) ---------- */
.no-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, #6b46c1 0%, #805ad5 100%);
  border-radius: 12px;
  color: #e9d8fd;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  font-family: "Inter", sans-serif;
  transition: all 0.3s ease;
}

.no-image-placeholder:hover {
  transform: scale(1.03);
  background: linear-gradient(135deg, #7c3aed 0%, #9f7aea 100%);
}

.placeholder-icon {
  font-size: 3rem;
  opacity: 0.9;
}

.placeholder-text {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .gallery-thumb {
    height: 180px;
  }

  .gallery-card {
    max-width: 90%;
  }

  .nav-btn {
    font-size: 1.5rem;
  }
}
.gallery-card img.gallery-thumb,
.no-image-placeholder {
  width: 100%;
  height: 250px;
  object-fit: cover;
}
