/* Gallery Grid */
@font-face {
  font-family: 'Comic';
  src: url('/COMIC.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 25px;
  padding: 10px 0;
}

.gallery-item {
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(0, 104, 174, 0.25);
  transition: transform 0.01s ease, box-shadow 0.05s ease;
  border: 2px solid transparent;
  text-align: center;
}

.gallery-item:hover {
  transform: translateY(-6px);
}

.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* Title & Subtitle under thumbnails */
.gallery-item .thumb-title {
  color: white;
  font-size: 0.95rem;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  margin: 8px 8px 2px 8px;
  line-height: 1.3;
}

.gallery-item .thumb-subtitle {
  font-size: 0.82rem;
  font-family: Arial, Helvetica, sans-serif;
  margin: 0 8px 3px 8px;
  line-height: 1.3;
}

/* Lightbox styles (same as before) */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 6, 22, 0.87);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 20px;
  box-sizing: border-box;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 80vh;
  text-align: center;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(116, 0, 208, 0.6);
}

.lightbox-title {
  color: white;
  font-size: 1.4rem;
  font-family: Comic;
  margin: 15px 0 5px 0;
  font-weight: bold;
}

.lightbox-subtitle {
  color: #ccc;
  font-size: 1rem;
  font-family: Comic;
  margin: 0 0 10px 0;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.05s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
  left: -70px;
}

.lightbox-next {
  right: -70px;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}

.lightbox-close:hover {
  color: #ff6b6b;
}

@media (max-width: 700px) {
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-close { top: 10px; right: 15px; }
}