/* Content / Previews section baut auf deinen .selling/.sellbox Basisstyles auf */
.previews .sellbox{
  position: relative;
  cursor: pointer;
  outline: none;
}

/* Overlay */
.veil{
  position: absolute;
  inset: 0;
  background:
     center/cover no-repeat url('img/Censored.png'),
     rgba(10,12,16,0.25);
  backdrop-filter: blur(12px) saturate(0.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .25s ease;
  z-index: 2;
  pointer-events: auto;
  opacity: 1;
}
.veil__label{
  padding: 1rem 1.6rem;
  border-radius: 16px;
  background: rgba(255,255,255,.22);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .3px;
  line-height: 1.2;
  user-select: none;
  transform: scale(1.5);
  transform-origin: center;
  box-shadow:
    0 0 18px rgba(255,255,255,.25),
    0 0 28px rgba(250,181,184,.35);
  border: 1px solid rgba(255,255,255,.35);
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}

/* Bildreihen */
.preview-row{
  display: flex;
  gap: 20px;
}

/* Utilitys für die Previews */
.img-rounded{ border-radius: 30px; margin-top: 10px; }
.opacity-50{ opacity: .5; }
.opacity-60{ opacity: .6; }
.opacity-80{ opacity: .8; }

/* Responsiv: bei schmalen Screens stapeln */
@media (max-width: 900px){
  .preview-row{ flex-wrap: wrap; }
  .jpgbox{ width: calc(50% - 10px); height: auto; }
}
@media (max-width: 560px){
  .jpgbox{ width: 100%; }
}

/* Veil-Overlay Text etwas kleiner auf Mobile, aber weiter präsent */
@media (max-width: 768px){
  #sellbox-reveal .sellbox__veil span{
    transform: scale(1.25);
    padding: .85rem 1.2rem;
    font-size: 1.1rem;
  }
}
@media (max-width: 480px){
  #sellbox-reveal .sellbox__veil span{
    transform: scale(1.1);
    padding: .75rem 1rem;
    font-size: 1rem;
  }
}

/* =========================
   SFW PREVIEWS – FINAL CLEAN
   ========================= */

/* TikTok & Events untereinander, zentriert begrenzt */
#content-previews .preview-groups{
  display:grid;
  grid-template-columns: 1fr;     /* untereinander */
  gap:22px;
}
#content-previews .preview-card{
  background:linear-gradient(180deg,#485363 0%,#4f5c6f 100%);
  border:2px solid rgba(0,0,0,.65);
  border-radius:18px;
  padding:16px;
  box-shadow:
    0 0 22px rgba(84,101,129,.35),
    0 0 44px rgba(204,156,154,.25),
    0 0 66px rgba(250,181,184,.18);
  max-width:1100px;               /* schmaler -> Thumbs näher */
  margin:0 auto;                  /* zentrieren */
  min-width:0;                    /* gegen Shrink-Bugs */
}

/* Kopf */
#content-previews .preview-card__head{
  display:flex; align-items:baseline; gap:10px; margin-bottom:10px;
}
#content-previews .preview-card__head h3{
  margin:0; color:#fab5b8; letter-spacing:.3px;
}
#content-previews .preview-card__head small{
  color:#f7d7d9; opacity:.85;
}

/* DICHTES GRID – 3 / 2 / 1 Spalten */
#content-previews .preview-card .preview-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);  /* Desktop */
  gap:10px;                                /* eng */
  justify-items:stretch; align-items:stretch;
}
@media (max-width:980px){
  #content-previews .preview-card .preview-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width:560px){
  #content-previews .preview-card .preview-grid{
    grid-template-columns: 1fr;
  }
}

/* Kachel wie NSFW */
#content-previews .preview-card .jpgbox{
  aspect-ratio:1 / 1;                      /* quadratisch */
  height:auto;
  padding:8px;
  background:#3f5068;
  border:2px solid rgba(0,0,0,.65);
  border-radius:18px;
  overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  transition:transform .15s ease, box-shadow .2s ease, filter .18s ease;
}
#content-previews .preview-card .jpgbox:hover{
  transform: translateY(-1px);
  box-shadow:
    0 0 12px rgba(250,181,184,.55),
    0 0 24px rgba(204,156,154,.28),
    0 0 36px rgba(84,101,129,.28);
  filter:saturate(1.05);
}

/* Bild füllt die Kachel vollständig */
#content-previews .preview-card .jpgbox img,
#content-previews .preview-thumb{
  width:100%;
  height:100%;
  object-fit:cover !important;
  border-radius:14px !important;
  display:block;
}

/* Lightbox (wie gehabt) */
.pv-lightbox{
  position:fixed; inset:0; display:none;
  align-items:center; justify-content:center;
  background:rgba(10,12,16,.55);
  backdrop-filter: blur(6px) saturate(1.05);
  -webkit-backdrop-filter: blur(6px) saturate(1.05);
  z-index:9999;
}
.pv-lightbox[aria-hidden="false"]{ display:flex; }
.pv-lightbox img{
  max-width:min(92vw,1200px);
  max-height:88vh;
  border-radius:18px;
  border:2px solid rgba(0,0,0,.65);
  background:#3f5068;
  box-shadow:
    0 0 22px rgba(84,101,129,.35),
    0 0 44px rgba(204,156,154,.25),
    0 0 66px rgba(250,181,184,.18);
}
.pv-close{
  position:absolute; top:14px; right:16px;
  padding:6px 12px; border-radius:12px; cursor:pointer;
  border:2px solid rgba(0,0,0,.6);
  background:linear-gradient(180deg,#886762 0%, #2b201a 100%);
  color:#ffeaea; font-size:22px; line-height:1;
}

/* Hint-Label in der Lightbox */
/* Wrapper um Bild + Hint */
.pv-figure{
  position: relative;
  display: inline-block;
  /* Platz unterm Bild, damit der Hint nicht überlappt/abgeschnitten wird */
  padding-bottom: 28px;     /* vorher: none */
}

.pv-hint{
  position: absolute;
  left: 50%;
  bottom: -22px;            /* vorher: -14px – jetzt etwas weiter unten */
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 12px;
  letter-spacing: .2px;
  color: #ffe8e9;
  background: linear-gradient(180deg,#886762 0%, #2b201a 100%);
  border: 1px solid rgba(0,0,0,.5);
  box-shadow:
    0 0 10px rgba(250,181,184,.35),
    0 0 20px rgba(84,101,129,.25);
  pointer-events: none;
  opacity: .95;
  z-index: 1;
}

@media (max-width:560px){
  .pv-hint{ bottom: -20px; }  /* auf Mobile minimal näher dran */
}



@media (max-width:560px){
  .pv-hint{ font-size: 11px; padding: 5px 9px; top: 10px; }
}



/* --- SFW Previews: harte Resets gegen alte .jpgbox-Styles --- */
#content-previews .preview-card .jpgbox{
  width: 100% !important;      /* überschreibt width:30% aus anderen Sections */
  min-width: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  aspect-ratio: 1 / 1;         /* quadratisch wie NSFW */
  height: auto;
  padding: 8px;
  background: #3f5068;
  border: 2px solid rgba(0,0,0,.65);
  border-radius: 18px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease, box-shadow .2s ease, filter .18s ease;
}

#content-previews .preview-card .jpgbox img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 14px !important;
}

/* Grid wirklich dicht (3/2/1 Spalten) */
#content-previews .preview-card .preview-grid{
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px !important;
  justify-items: stretch;
  align-items: stretch;
}

@media (max-width: 980px){
  #content-previews .preview-card .preview-grid{
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 560px){
  #content-previews .preview-card .preview-grid{
    grid-template-columns: 1fr !important;
  }
}

/* Optional: Box etwas schmaler = noch dichteres Raster */
#content-previews .preview-card{
  max-width: 1000px; /* 1100 -> 1000 macht’s spürbar kompakter */
  margin: 0 auto;
}

/* optionaler Tooltip in der Lightbox */
.pv-lightbox .hint-open {
  position:absolute; right:18px; bottom:16px;
  font-size:.9rem; color:#ffe8e9; opacity:.85;
  text-shadow:0 1px 2px rgba(0,0,0,.45);
  pointer-events:none;
}

