/* styles.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

body {
  background-color: #000;
  color: #fff;
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Page container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;

}

/* Headings */
h1, h2 {
  font-weight: 800;
  text-align: center;
}

h1 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.intro-text {
  max-width: 800px;
  margin: 0rem auto 1.5rem auto;
  text-align: center;
  color: #bdbdbd;
  line-height: 1.6;
  font-size: 1.2rem;
}

/* Location grid on homepage */
.location-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  justify-items: stretch;
}
@media (min-width: 900px) {
  .location-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.category-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 1rem;
  text-decoration: none;
  background: #111;
}
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s ease;
  filter: saturate(0.9) contrast(1.05);
}
.category-card:hover img {
  transform: scale(1.04);
  opacity: 0.95;
}
.category-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.85) 100%);
  color: #fff;
  font-weight: 700; 
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  justify-items: stretch;
}
@media (min-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.gallery-item {
  display: inline-block;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  width: 100%;
  aspect-ratio: 4/3;
}
.gallery-item img {
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
  cursor: pointer;
  transition: opacity 0.2s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item img:hover {
  opacity: 0.8;
}

.caption {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#lightbox .lightbox-content {
  text-align: center;
}

/* Back link on gallery pages */
.back-link-wrap {
  text-align: center;
  margin-top: 2rem;
}
.back-link {
  color: #ffffff;
  text-decoration: underline;
}
#lightbox img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 0.75rem;
}

#lightbox-caption {
  margin-top: 1rem;
  font-size: 1rem;
  color: #fff;
  text-align: center;
}

#lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

.icon-button {
  background: none;
  border: none;
  color: inherit;
}



/* Lightbox nav buttons */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  padding: 0 1rem;
  user-select: none;
}
#lightbox-prev {
  left: 10px;
}
#lightbox-next {
  right: 10px;
}


/* Sticky footer */
footer {
  position: bottom;
  bottom: 0;
  width: 100%;
  background: #000;
  color: #cfcfcf;
  text-align: center;
  padding: 0.9rem;
  font-size: 0.9rem;
}
footer p {
  margin: 0;
}