/* Core Layout Container */
.gallery-container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
  font-family: sans-serif;
}

.gallery-title {
  text-align: center;
  color: #fff;
}

/* Flexbox/Grid Mix for Responsiveness */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 15fr));
  gap: 30px;
}

/* Gallery Item Styling */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
	border: 2px solid #1A4B84;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Hover Overlays */
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 1.1rem;
  font-weight: bold;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Lightbox Modal Styles */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox-content {
  max-width: 80%;
  max-height: 80%;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 4px;
}

.lightbox-caption {
  color: white;
  margin-top: 15px;
  font-size: 1.2rem;
}

/* Navigation Buttons */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

.lightbox-btn {
  position: absolute;
  color: white;
  font-size: 30px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  padding: 15px 20px;
  cursor: pointer;
  border-radius: 50%;
  user-select: none;
  transition: background 0.2s;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.prev-btn { left: 30px; }
.next-btn { right: 30px; }