/* Walmsburg Castle – News Gallery Video Preview v10
   News verwendet für Videos dasselbe Prinzip wie die Galerie:
   ein echtes <video> direkt in der vorhandenen Medienkachel.
   Das bestehende React-News-Layout wird nicht ersetzt oder umgebaut. */

/* Direkte Video-Vorschau innerhalb der ORIGINALEN News-Medienfläche */
.wc-news-gallery-media{
  position:relative!important;
  overflow:hidden!important;
  isolation:isolate;
}
.wc-news-gallery-video{
  position:absolute!important;
  inset:0!important;
  z-index:1!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  object-fit:cover!important;
  object-position:center!important;
  background:#dceaf6;
  opacity:0;
  transition:opacity .18s ease;
}
.wc-news-gallery-media.wc-news-gallery-ready>.wc-news-gallery-video{opacity:1}
.wc-news-gallery-media .wc-news-gallery-original-cta{
  position:relative!important;
  z-index:5!important;
}
/* Falls im Platzhalter ein Blatt-/Icon-Element liegt, verdeckt das echte Video es automatisch. */
.wc-news-gallery-media.wc-news-gallery-ready{background:#102f57!important}

/* Zusätzliche News-Bilder / Slideshow */
.wc-news-extra-media{position:relative;margin:18px 0 6px;overflow:hidden;border-radius:16px;background:#eef3f7}
.wc-news-extra-track{display:flex;gap:0;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-inline:contain}
.wc-news-extra-track::-webkit-scrollbar{display:none}
.wc-news-extra-slide{min-width:100%;margin:0;scroll-snap-align:start;display:grid;place-items:center;aspect-ratio:16/10;background:#eef3f7}
.wc-news-extra-slide img,.wc-news-extra-slide video{width:100%;height:100%;object-fit:cover;display:block}
.wc-news-extra-nav{position:absolute;top:50%;translate:0 -50%;z-index:3;width:40px;height:40px;border:0;border-radius:999px;background:rgba(255,255,255,.92);color:#12284a;font-size:30px;line-height:1;box-shadow:0 5px 18px rgba(0,0,0,.18);cursor:pointer}
.wc-news-extra-nav.wc-prev{left:10px}.wc-news-extra-nav.wc-next{right:10px}

/* Verwaltung: zusätzliche Bilder */
.wc-admin-extra-panel{margin:18px 0;padding:16px;border:1px solid #d5dfeb;border-radius:14px;background:#f8fafc;color:#12284a;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
.wc-admin-extra-head strong{display:block;font-size:15px;margin-bottom:3px}.wc-admin-extra-head span{display:block;color:#627286;font-size:12px}
.wc-admin-extra-drop{display:block;margin-top:12px;padding:15px;border:1px dashed #9aaabd;border-radius:12px;background:#fff;font-weight:700;cursor:pointer}
.wc-admin-extra-drop input{display:block;margin-top:8px;width:100%}
.wc-admin-extra-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px;margin-top:12px}
.wc-admin-extra-item{position:relative;border:1px solid #dbe3ec;border-radius:10px;overflow:hidden;background:#fff}.wc-admin-extra-item img{width:100%;aspect-ratio:1/1;object-fit:cover;display:block}.wc-admin-extra-item button{width:100%;border:0;border-top:1px solid #e5eaf0;padding:7px;background:#fff;color:#8b2e2e;cursor:pointer}
.wc-admin-extra-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px}.wc-admin-extra-save{border:0;border-radius:999px;padding:10px 16px;background:#12284a;color:#fff;font-weight:800;cursor:pointer}.wc-admin-extra-status{font-size:12px;color:#52657b}

/* Verwaltung: Vorschau aus dem tatsächlich ausgewählten Video */
.wc-v7-auto-poster-note{margin:10px 0 0;padding:11px 13px;border-radius:10px;background:#eef7f0;color:#245b35;font:600 12px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif}
.wc-v7-auto-poster-preview{display:block;width:min(360px,100%);aspect-ratio:16/9;object-fit:cover;margin-top:10px;border-radius:10px;border:1px solid #d4dfeb;background:#eaf1f7}

@media(max-width:720px){
  .wc-news-extra-nav{width:36px;height:36px;font-size:27px}
  .wc-news-extra-slide{aspect-ratio:4/3}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}


/* v11 – News-Videos ohne Download-Funktion oder Beispielbild */
img[src*="wc-news-video-example"],
img[src*="news-video-example"],
.wc-news-video-example{
  display:none!important;
}
[style*="wc-news-video-example"],
[style*="news-video-example"]{
  background-image:none!important;
}
/* Verhindert Browser-Kontextmenü visuell nicht; JS blockiert den Rechtsklick direkt am Video. */


/* v12 – geöffnete Video-News: kein doppeltes Hauptbild über dem Player */
.wc-news-detail-image-hidden{
  display:none!important;
  visibility:hidden!important;
  height:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
}
