/* =====================================================
   1. BASE / RESET
   ===================================================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #111;
  color: #eee;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: 0.02em;
  animation: fadeIn 0.8s ease-out both;
}

/* Subtle ambient gallery lighting */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at top,
      rgba(255,255,255,0.06),
      rgba(0,0,0,0.85) 70%
    );
  z-index: -1;
}

/* =====================================================
   2. TYPOGRAPHY
   ===================================================== */

h1, h2 {
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-top: 0;
}

p {
  line-height: 1.6;
  color: #ccc;
}

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

a:hover {
  color: #fff;
}

/* =====================================================
   3. NAVIGATION
   ===================================================== */

nav {
  padding: 1rem;
  text-align: center;
}

nav a {
  margin: 0 10px;
  font-size: 0.95rem;
}

/* =====================================================
   4. LAYOUT
   ===================================================== */

main {
  min-height: 80vh;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  padding: 60px;
}

@media (max-width: 700px) {
  .gallery {
    padding: 30px;
  }
}

/* Home page */
.home {
  text-align: center;
  padding: 80px 20px;
}

.home h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.intro {
  color: #aaa;
}

.home-links {
  margin-top: 40px;
}

.home-links a {
  display: inline-block;
  margin: 10px 15px;
  border-bottom: 1px solid #555;
}

/* Text pages (About, Contact) */
.text-page {
  max-width: 700px;
  margin: 60px auto;
  padding: 0 20px;
}

/* =====================================================
   5. GALLERY IMAGES (DEFAULT STATE)
   ===================================================== */

.gallery img {
  width: 100%;
  cursor: pointer;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    filter 0.35s ease;
  filter: brightness(0.98) contrast(1.02);
}

/* =====================================================
   6. GALLERY IMAGE HOVER EFFECTS
   ===================================================== */

.gallery img:hover {
  transform: translateY(-4px);
  filter: brightness(1.05);
  box-shadow:
    0 10px 30px rgba(0,0,0,0.6),
    0 0 40px rgba(255,255,255,0.08);
}




/* =====================================================
   7. LIGHTBOX OVERLAY 150
   ===================================================== */
   


#lightbox {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      circle at center,
      rgba(0,0,0,0.75),
      rgba(0,0,0,0.95)
    );
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox-content {
  max-width: 90%;
  text-align: center;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 70vh;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.8),
    0 0 80px rgba(255,255,255,0.08);
}

#lightbox-title {
  margin-top: 20px;
}

#lightbox-price {
  color: #bbb;
  margin: 10px 0;
}

#lightbox-buy {
  display: inline-block;
  margin-top: 10px;
  color: #fff;
  border: 1px solid #fff;
  padding: 8px 16px;
}

#lightbox-buy:hover {
  background: #fff;
  color: #000;
}

#lightbox-close {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 30px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* =====================================================
   8. UTILITIES (MUST BE LAST)
   ===================================================== */



.hidden {
  display: none !important;
}

#lightbox.hidden {
  pointer-events: none;
}




/* =====================================================
   9. ANIMATIONS
   ===================================================== */

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
