/* Daily Nail Archive Styling */

body {
  background-color: #0e0e0e; /* Signature Flame Library dark */
  color: #e4e0d9;
  font-family: "Georgia", serif;
  margin: 0;
  padding: 0;
}

.nail-archive {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;

  display: grid;
  grid-template-columns: 1fr;  /* mobile default */
  gap: 2rem;
}

/* Two-column grid for larger screens */ @media (min-width: 768px) {
  .nail-archive {
    grid-template-columns: 1fr 1fr;
  }
}

.nail-issue {
  background-color: #fff;          /* Tabloid sheet */
  border: 6px solid #111;          /* Dark frame wrap */
  box-shadow: 0 0 20px rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
}

.nail-meta {
  background: #111;                /* Uniform strip top/bottom */
  color: #f5f5f5;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  text-align: center;
}

.nail-issue img {
  width: 100%;
  height: 450px;          /* uniform thumbnail height */
  object-fit: cover;      /* crops excess but keeps aspect ratio */
  display: block;
}

/* Link colours — override the garish defaults */ a {
  color: #e4e0d9;          /* soft parchment white */
  text-decoration: none;
}

a:hover {
  color: #ff4444;          /* flame red on hover */
  text-decoration: underline;
}

.nail-meta a {
  color: #f5f5f5;          /* keep links inside meta bars light */
}

.nail-meta a:hover {
  color: #ffcc00;          /* golden highlight hover in meta strips */
}
/* Uniform thumbnails */
.nail-issue img {
  width: 100%;
  height: 420px;          /* adjust to taste */
  object-fit: cover;      /* neat crop, preserves aspect */
  display: block;
  transition: transform .2s ease;
}
.nail-link:hover img { transform: scale(1.01); }

/* Prevent body scroll when lightbox open */ body.lb-open { overflow: hidden; }

/* Lightbox overlay */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  display: none;               /* toggled by JS */
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 3rem 4rem;
}
#lightbox.active { display: flex; }

#lb-image {
  max-width: min(92vw, 1400px);
  max-height: 88vh;
  box-shadow: 0 0 30px rgba(0,0,0,.8);
  background: #111;
}

/* Caption */
#lb-caption {
  position: fixed;
  left: 0; right: 0; bottom: 1.5rem;
  text-align: center;
  color: #e4e0d9;
  font: 500 0.95rem/1.4 Georgia, serif;
  padding: .5rem 1rem;
  opacity: .9;
}

/* Controls */
.lb-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.55);
  border: 1px solid #444;
  color: #f5f5f5;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease; } .lb-btn:hover { background: rgba(255,68,68,.6); }

.lb-prev { left: 1rem; font-size: 1.6rem; } .lb-next { right: 1rem; font-size: 1.6rem; }

.lb-close {
  top: 1rem; right: 1rem; left: auto; transform: none;
  width: 48px; height: 48px; font-size: 2rem; border-radius: 4px; }

/* Responsive padding */
@media (max-width: 640px) {
  #lightbox { padding: 1.25rem; }
  .lb-prev { left: .4rem; }
  .lb-next { right: .4rem; }
  #lb-caption { font-size: .9rem; padding: .4rem .75rem; } }
/* Archive grid layout */

.archive-grid {

  display: grid;

  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));

  gap: 2rem;

}



/* Standardise thumbnails */

.item img.thumb {

  width: 180px;

  height: 240px;

  object-fit: cover;

  border-radius: 4px;

  box-shadow: 0 4px 12px rgba(0,0,0,.3);

  display: block;

  margin: 0 auto 0.5rem;

}



/* Center titles & meta under thumbs */

.item h2, .item .meta, .item a {

  text-align: center;

}
