*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  color: #111;
  background: #fff;
  line-height: 1.6;
}

a {
  color: #111;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.prom {
    text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Nav */
nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-home {
  font-weight: 600;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.9rem;
  color: #555;
}

.nav-links a:hover {
  color: #111;
}

/* Main */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

/* Gallery grid (home page) — no-JS fallback */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.gallery-card img {
  width: 100%;
}

.gallery-card figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  text-align: center;
}

.gallery-card figcaption a {
  color: #333;
}

/* Gallery page */
.gallery-hero {
  margin-bottom: 1.5rem;
}

.gallery-hero img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.gallery-hero figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #666;
  text-align: center;
}

h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.gallery-description {
  color: #555;
  margin-bottom: 1.5rem;
}

/* Image grid (gallery page) — no-JS fallback */
.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.image-card img {
  width: 100%;
}

/* Masonry (applied by JS) */
.masonry {
  position: relative;
}

.masonry > * {
  position: absolute;
}

/* About / custom pages */
.about-content {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #333;
}

.about-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #111;
}

.about-content p {
  margin-bottom: 1.5rem;
}

.about-content ul {
  margin: 0.5rem 0 1.5rem 1.5rem;
  list-style: disc;
}

.about-content li {
  margin-bottom: 0.4rem;
}

.about-content a {
  color: #333;
}

.about-content a:hover {
  color: #000;
}

/* Footer */
footer {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 1.5rem 1rem;
  border-top: 1px solid #eee;
  font-size: 0.85rem;
  color: #999;
  text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .image-grid {
    grid-template-columns: 1fr;
  }

  nav {
    flex-direction: column;
    gap: 0.75rem;
  }
}
