/* =========================================
   RV Galerie – SmartSlider-Look (Coverflow)
   ========================================= */

:root{
  --rv-font: inherit;
  --rv-text: rgba(0,0,0,.86);
  --rv-muted: rgba(0,0,0,.65);
}

/* Font Variable */
body.page-template-page-galerie{
  --rv-font: "Inter", sans-serif;
}

.rv-gal-wrap,
.rv-gal-wrap *{
  font-family: var(--rv-font);
}

.rv-gal-wrap{max-width:1200px;margin:0 auto;padding:28px 16px 60px}

.rv-gal-title{
  margin:0 0 6px;
  font-family: "Playfair Display", serif;
  font-size: clamp(24px, 2.6vw, 40px);
  font-weight: 600;
  color: var(--rv-text);
}

.rv-gal-intro{
  margin:0 0 18px;
  max-width: 75ch;
  color: var(--rv-muted);
  font-size: 15px;
  line-height: 1.45;
}

/* Blocks */
.rv-gal-block{margin:18px 0 34px}
.rv-gal-block-head{margin:0 0 10px}
.rv-gal-block-title{margin:0;font-size:22px;font-weight:900;color:var(--rv-text)}
.rv-gal-block-intro{margin:6px 0 0;opacity:.75;max-width:75ch}

.rv-gal-count{
  margin-top: 10px;
  color: var(--rv-muted);
  font-size: 13px;
}

/* =========================================
   Swiper Container: SmartSlider Schatten
   ========================================= */
.rv-gal-swiper{
  position: relative;
  padding: 10px 0 22px;
  border-radius: 18px;
}

/* Schatten "unter" dem Slider wie SmartSlider */
.rv-gal-swiper::after{
  content:"";
  position:absolute;
  left: 3%;
  right: 3%;
  bottom: 6px;
  height: 18px;
  background: radial-gradient(ellipse at center,
    rgba(0,0,0,.22) 0%,
    rgba(0,0,0,.12) 35%,
    rgba(0,0,0,0) 70%);
  filter: blur(2px);
  pointer-events:none;
}

/* Slides: fixed width -> coverflow funktioniert sauber */
.rv-gal-swiper .swiper-slide{
  width: 320px;
}
@media (max-width: 900px){
  .rv-gal-swiper .swiper-slide{ width: 280px; }
}
@media (max-width: 560px){
  .rv-gal-swiper .swiper-slide{ width: 240px; }
}

/* Karte */
.rv-gal-slide{
  position:relative;
  border-radius:16px;
  overflow:hidden;
  background:#f2f2f2;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
  cursor:pointer;
  outline:none;
}

.rv-gal-slide img{
  width:100%;
  height:260px;
  object-fit:cover;
  display:block;
  transform:scale(1);
  transition:transform .18s ease;
}
.rv-gal-slide:hover img{transform:scale(1.03)}

/* Pagination: nicht über den Bildern, sondern dezent darunter */
.rv-gal-swiper .swiper-pagination{
  position: relative;
  margin-top: 10px;
  bottom: auto !important;
}
.swiper-pagination-bullet{opacity:.35}
.swiper-pagination-bullet-active{opacity:1}

/* Pfeile wie SmartSlider */
.swiper-button-prev,.swiper-button-next{
  width:44px;height:44px;border-radius:999px;
  background:rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.22);
}
.swiper-button-prev:after,.swiper-button-next:after{font-size:18px;color:#fff}

/* =========================================
   Lightbox
   ========================================= */
.rv-lightbox{
  position:fixed;inset:0;
  display:none;
  background:rgba(0,0,0,.72);
  z-index:9999;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.rv-lightbox.is-open{display:flex}

.rv-lb-figure{
  margin:0;
  max-width:min(1100px,96vw);
  width:100%;
}
.rv-lb-figure img{
  width:100%;
  max-height:78vh;
  object-fit:contain;
  background:#111;
  border-radius:16px;
  display:block;
}
.rv-lb-caption{
  display:none; /* Du wolltest keine Titel/Infos -> aus */
}

.rv-lb-close{
  position:absolute;top:14px;right:16px;
  width:44px;height:44px;border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(0,0,0,.35);
  color:#fff;font-size:28px;line-height:1;
  cursor:pointer;
}

.rv-lb-nav{
  position:absolute;top:50%;transform:translateY(-50%);
  width:46px;height:46px;border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(0,0,0,.35);
  color:#fff;font-size:34px;line-height:1;
  cursor:pointer;
}
.rv-lb-prev{left:14px}
.rv-lb-next{right:14px}

/* =========================================
   Defensive: SmartSlider auf dieser Seite verstecken
   ========================================= */
body.page-template-page-galerie .n2-section-smartslider,
body.page-template-page-galerie .n2-ss-slider,
body.page-template-page-galerie [id^="n2-ss-"]{
  display:none !important;
}
