/* Load Ruddy font regular */
@font-face {
  font-family: "Ruddy";
  src:
    url("fonts/Ruddy.woff2") format("woff2"),
    url("fonts/Ruddy.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Load Ruddy font bold */
@font-face {
  font-family: "Ruddy";
  src:
    url("fonts/Ruddy-Bold.woff2") format("woff2"),
    url("fonts/Ruddy-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Base styles */
body {
  margin: 0;
  padding: 2rem;
  font-family: system-ui, sans-serif;
  background: #fff;
  color: #111;
}

/* Header */
header {
  max-width: 1200px;
  margin: 0 auto 2rem auto;
  text-align: center;
}

h1 {
  margin: 0;
  font-family: "Ruddy", sans-serif;
  font-size: 2.5rem;
  font-weight: 400;
}

/* Gallery */
.gallery {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery a {
  display: block;
  line-height: 0;
}

.gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  transition: transform 0.2s;
}

/* Hover DISABLED
.gallery img:hover {
  transform: scale(1.05);
}
*/

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

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

  h1 {
    font-size: 2rem;
  }
}

/* Disable hover effects on touch devices */
@media (hover: none) {
  .gallery img {
    transition: none;
    transform: none;
  }
}

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 9999;
}

#lightbox img {
  max-width: 90vw;
  max-height: 90vh;
}

#lightbox button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  padding: 1rem;
  line-height: 1;
}

#lightbox .prev {
  left: 1rem;
}

#lightbox .next {
  right: 1rem;
}

#lightbox-title {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 0.9rem;
  background: rgba(0,0,0,0.6);
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  max-width: 90vw;
  text-align: center;
}

/* Hide titles */
#lightbox-title {
  display: none;
}