/* ==========================
   General Page Styles
========================== */
body {
  margin: 0;
  font-family: 'Crimson Text', serif;
  color: #f5f5f5;
  text-align: center;
  background-color: #1c1c1c;
  /*  background-image: url('../images/TTFG_Wallpaper_grey.png');  */
  background-image: url('../images/TTFG_wallpaper.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* ==========================
   Header
========================== */
#main-header {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 900;
  font-size: 5rem;
  letter-spacing: 4px;
  margin-top: 60px;
  margin-bottom: 10px;
}

#header-line {
  width: 60px;
  border: 1px solid #fff;
  margin: 0 auto 30px auto;
}

/* ==========================
   Navbar
========================== */
nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 15px;
  background: #1f1f1f;
}

nav a {
  color: white;
  text-decoration: none;
  font-family: 'Cinzel', serif;
}

/* ==========================
   Gallery
========================== */
.gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  gap: 100px; /* <-- ADD THIS */
}

/* ==========================
   Art Piece (FIXED)
========================== */
.art-piece {
  display: flex;
  flex-direction: column; /* KEY FIX */
  align-items: center;
  
  width: 100%;
  max-width: 900px;       /* controls white box width */
  margin: 0 auto;         /* centers it */

  background: #2a2a2a;
  padding: 15px;
  border-radius: 12px;
}

/* IMAGE FIX */
.art-piece img {
  width: 100%;
  height: auto;
  max-height: 80vh;       /* prevents giant overflow */
  object-fit: contain;    /* keeps proportions */
  border-radius: 8px;
}

/* Featured glow */
.art-piece.featured {
  border: 2px solid #f5f5f5;
  box-shadow: 0 0 30px rgba(255,255,255,0.2);
}

/* Title */
.title {
  margin-top: 10px;
  font-family: 'Cinzel', serif;
}

/* ==========================
   Lightbox (unchanged mostly)
========================== */
#lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

#lightbox-img {
  max-width: 90%;
  max-height: 90%;
}

#lightbox-prev,
#lightbox-next {
  position: absolute;
  top: 50%;
  font-size: 3rem;
  color: white;
  cursor: pointer;
}

#lightbox-prev { left: 20px; }
#lightbox-next { right: 20px; }

/* ==========================
   Hide extra images in gallery
========================== */
.art-piece img:not(:first-child) {
  display: none;
}

/* ==========================
   Lightbox Container Layout
========================== */
#lightbox-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

/* ==========================
   Thumbnail Strip
========================== */
#lightbox-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  max-width: 80%;
  padding: 10px;
}

.thumb {
  height: 60px;
  cursor: pointer;
  opacity: 0.6;
  border-radius: 6px;
  transition: 0.2s;
}

.thumb:hover {
  opacity: 1;
}

.thumb.active {
  border: 2px solid white;
  opacity: 1;
}

/* ==========================
   Zoom Effect
========================== */
#lightbox-img.zoomed {
  transform: scale(1.5);
  cursor: zoom-out;
}
