/* styles.css (mobile-friendly, larger images, rounded corners, lightbox support) */

/* General */
body {
  background: #fff;
  color: #000;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

header {
  text-align: center;
  padding: 2rem 1rem;
  border-bottom: 1px solid #000;
}

h1 {
  font-weight: 900;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
  font-size: 2rem;
}

nav {
  margin-top: 1rem;
  display: inline-block;
}

nav a {
  color: #000;
  text-decoration: none;
  margin: 0 1rem;
  font-size: 1rem;
  border-bottom: 2px solid transparent;
  display: inline-block;
  transition: border-color 0.15s;
  font-weight: 800;
  width: auto;
}

nav a:hover,
nav a.active {
  border-color: #000;
}

/* Centering */
main.centered {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  width: 100%;
  padding: 2rem;
}

.gallery img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease, transform 0.2s ease;
  border-radius: 10px;
  cursor: pointer;
}

.gallery img:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

/* Contact */
.contact-info {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 800;
  padding: 1rem;
}

.contact-info a {
  color: #000;
  text-decoration: underline;
  font-weight: 900;
  display: block;
  margin: 0.4rem 0;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid #000;
  font-size: 0.9rem;
  color: #333;
  font-weight: 800;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: row;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 12px;
}

.lightbox .close,
.lightbox .arrow {
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: 0.2s;
}

.lightbox .close:hover,
.lightbox .arrow:hover {
  background: rgba(255, 255, 255, 0.4);
}

.lightbox .close {
  top: 20px;
  right: 30px;
}

.lightbox .arrow.left {
  left: 30px;
}

.lightbox .arrow.right {
  right: 30px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  header {
    padding: 1.5rem 0.5rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  nav a {
    display: inline-block;
    margin: 0 0.5rem;
    font-size: 0.95rem;
    border-bottom-width: 2px;
  }

  .gallery {
    padding: 1rem;
    gap: 0.8rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .contact-info {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }

  footer {
    padding: 1.5rem 0.5rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.4rem;
  }

  nav a {
    display: block;
    margin: 0.4rem 0;
    font-size: 1rem;
    width: auto;
  }

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

  footer {
    padding: 1rem 0.5rem;
  }
}
