/* ==========================
   NSFW / SEALED ARCHIVE
   Put in: /the-art/art/nsfw/style.css
========================== */

/* ---------- Page shell ---------- */
/* IMPORTANT:
   Do NOT set a new background image here.
   Let your site-wide (../../../style.css) background handle it.
   This prevents the “looping/tiled inside this section” weirdness. */

.nsfw-page{
  min-height: 100vh;
  padding: 4rem 1.25rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;

  /* neutralize any accidental background tiling on this wrapper */
  background: transparent;
  background-image: none;
}

/* Main card (chapel glass vibe) */
.nsfw-card{
  width: min(980px, 96vw);
  max-width: 980px;

  padding: 2.75rem 3rem;
  border-radius: 18px;

  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

/* Header */
.nsfw-header h1{
  margin: 0;
  text-align: center;
  letter-spacing: 0.25em;
  font-weight: 500;
  text-transform: uppercase;
}

.nsfw-header .subtitle{
  margin: 0.75rem 0 0;
  text-align: center;
  font-style: italic;
  opacity: 0.75;
}

/* Divider */
.soft-divider{
  margin: 2.25rem 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0, 0, 0, 0.15),
    transparent
  );
}

/* Body copy */
.nsfw-copy{
  text-align: left;
}

.nsfw-copy h2{
  margin: 0 0 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 1rem;
  opacity: 0.9;
}

.nsfw-copy p{
  line-height: 1.75;
  margin: 0 0 1rem;
}

/* Scripture block (optional; used on warning page) */
.scripture{
  max-width: 44rem;
  margin: 1.5rem auto 1.25rem;
  padding: 1.15rem 1.25rem;

  border-radius: 14px;
  border: 1px solid rgba(60,45,35,0.14);
  background: rgba(255,255,255,0.16);

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  line-height: 1.75;
}

.scripture-sigil{
  text-align: center;
  opacity: 0.6;
  margin: 0.25rem 0;
  letter-spacing: 0.3em;
}

/* ---------- Pills (match your Chapel / Record buttons) ---------- */
/* We define them here so even if your global buttons get weird, NSFW stays perfect. */

.nav-buttons,
.nsfw-nav{
  margin-top: 2rem;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-button{
  display: inline-block;
  padding: 14px 22px;
  border-radius: 999px;

  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.18);

  color: rgba(0,0,0,0.55);
  text-decoration: none !important; /* kill iOS underline */
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  transition: transform 120ms ease, background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.nav-button:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.28);
  color: rgba(0,0,0,0.70);
  border-color: rgba(0,0,0,0.16);
}

.nav-button:active{
  transform: translateY(0px);
}

/* “sealed” primary button (for warning page’s UNSEAL button if you want it) */
.nav-button.sealed{
  position: relative;
  border-color: rgba(40, 80, 55, 0.28);
  background: rgba(35, 85, 60, 0.14);
  color: rgba(25, 70, 48, 0.78);
  overflow: hidden;
}

.nav-button.sealed::before{
  content: "⟡";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.55;
}

.nav-button.sealed:hover{
  background: rgba(35, 85, 60, 0.20);
  border-color: rgba(40, 80, 55, 0.36);
}

/* ---------- Gallery layout (same as main gallery) ---------- */

.gallery{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.card{
  display: block;
  border-radius: 18px;
  overflow: hidden;

  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);

  text-decoration: none !important; /* kill iOS underline */
  color: inherit;
}

.card img{
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.card .meta{
  padding: 14px 16px 16px;
}

.card .title{
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.card .desc{
  opacity: 0.7;
  font-style: italic;
  font-size: 0.9rem;
}

/* ---------- Lightbox (responsive, desktop + mobile) ---------- */

.lightbox{
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 18px;
  z-index: 9999;

  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox.is-open{ display: grid; }

.lightbox-img{
  max-width: min(92vw, 1100px);
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.45);
}

.lightbox-caption{
  margin-top: 12px;
  max-width: min(92vw, 900px);
  text-align: center;
  color: rgba(255,255,255,0.88);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.lightbox-close{
  position: fixed;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 999px;

  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.92);

  font-size: 26px;
  line-height: 1;
  cursor: pointer;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-close:active{
  transform: scale(0.98);
}

/* ---------- Ritual popup gate (optional overlay) ---------- */
/* Keep this only if your nsfw.js uses it */

.age-gate{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 9999;

  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.age-gate.is-open{ display: flex; }

.age-box{
  width: min(560px, 96vw);
  border-radius: 18px;
  padding: 1.6rem 1.4rem 1.25rem;

  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);
  text-align: center;

  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
}

.age-box h2{
  letter-spacing: 0.22em;
  font-weight: 500;
  margin: 0.25rem 0 0.9rem;
  text-transform: uppercase;
}

.age-actions{
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1rem 0 0.8rem;
}

.gate-note{
  margin: 0.8rem 0 0;
  font-style: italic;
  opacity: 0.75;
}

/* ---------- Mobile padding sanity ---------- */
@media (max-width: 600px){
  .nsfw-card{
    padding: 2.25rem 1.5rem;
  }
}