body {
  background-color: #000000;
  text-align: center;
  font-size: 20px;
  margin: 0;
  padding: 0;
}

#top {
  position: relative;
  font-size: 200%;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  color: #ffffff;
  background-color: #1e368c;
  padding: 12px 0;
}

/* Photo grid */
.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  #top {
    font-size: 140%;
    padding: 10px 0;
  }

  .photo-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
  }

  .caption-overlay {
    opacity: 1;
  }

  #map {
    height: 250px;
  }
}

/* Individual photo items with hover caption */
.photo-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 4px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
}

.photo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.photo-item:hover img {
  transform: scale(1.04);
}

.caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.78));
  color: #fff;
  font-family: arial, sans-serif;
  font-size: 1rem;
  padding: 28px 16px 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-item:hover .caption-overlay {
  opacity: 1;
}

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#lightbox.active {
  display: flex;
}

#lightbox img {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 40px rgba(0,0,0,0.8);
}

#lightbox-caption {
  color: #ddd;
  font-family: arial, sans-serif;
  font-size: 1rem;
  margin-top: 14px;
}

#lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  padding: 12px;
  min-width: 44px;
  min-height: 44px;
}

/* Map section */
#map-section {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto 30px;
}

#map-section h2 {
  color: #fff;
  font-family: arial black;
  font-size: 1.2rem;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

#map {
  height: 360px;
  border-radius: 6px;
  overflow: hidden;
}

#upload-link {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 1.5rem;
  font-family: arial, sans-serif;
  padding: 8px 12px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#upload-link:hover {
  color: #fff;
}
