/* =========================
   Base Reset + Typography
========================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #000;
  color: #eee;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

/* =========================
   Header + Navigation
========================= */

header {
  text-align: center;
  padding: 40px 20px 20px 20px;
  border-bottom: 1px solid #222;
}

header h1 {
  font-size: 32px;
  margin-bottom: 6px;
}

header p {
  color: #aaa;
  margin-bottom: 18px;
  font-size: 14px;
}

nav a {
  color: #ccc;
  text-decoration: none;
  margin: 0 12px;
  font-size: 14px;
  transition: color 0.2s ease;
}

nav a:hover {
  color: #fff;
}

/* =========================
   Section
========================= */

section {
  padding: 40px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

section h2 {
  font-size: 22px;
  margin-bottom: 24px;
}

/* =========================
   Masonry Gallery
========================= */

.grid {
  column-count: 3;
  column-gap: 16px;
}

.grid img {
  width: 100%;
  margin-bottom: 16px;
  border-radius: 12px;
  display: block;
  cursor: zoom-in;

  transition: transform 0.25s ease, opacity 0.25s ease;
}

.grid img:hover {
  transform: scale(1.02);
  opacity: 0.95;
}

@media (max-width: 1000px) {
  .grid {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .grid {
    column-count: 1;
  }
}

/* =========================
   Featured (Home)
========================= */

.featured {
  display: flex;
  flex-direction: column;
  gap: 28px;

  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
}

.featured img {
  width: 100%;
  display: block;

  border-radius: 14px;
  cursor: zoom-in;

  max-height: 620px;
  object-fit: cover;

  transition: transform 0.25s ease, opacity 0.25s ease;
}

.featured img:hover {
  transform: scale(1.01);
  opacity: 0.96;
}

@media (max-width: 900px) {
  .featured img {
    max-height: 520px;
  }
}

@media (max-width: 600px) {
  .featured {
    gap: 20px;
  }

  .featured img {
    max-height: 420px;
    border-radius: 10px;
  }
}

/* =========================
   LIGHTBOX (FINAL VERSION)
   Matches current JS
========================= */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.95);

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 9999;
}

.lightbox.hidden {
  display: none;
}

.lightbox .lightbox-image {
  max-width: 92%;
  max-height: 92%;
  border-radius: 8px;
}

/* Close button */
.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
}

/* Arrows */
.lightbox .prev,
.lightbox .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 42px;
  color: #fff;
  cursor: pointer;
  padding: 10px;
  user-select: none;
}

.lightbox .prev {
  left: 20px;
}

.lightbox .next {
  right: 20px;
}

/* =========================
   Footer (optional)
========================= */

footer {
  text-align: center;
  padding: 30px;
  color: #777;
  font-size: 13px;
}
