/* Roedeshop productgalerij: foto's en video's, pijltjes, swipen (zie js/productgalerij.js) */

.rsg-galerij .image-preview.rsg-preview { position: relative; overflow: hidden; outline: none; touch-action: pan-y; }
.rsg-galerij .image-preview.rsg-preview:focus-visible { box-shadow: 0 0 0 3px rgba(239,139,44,.45); }
.rsg-galerij .image-preview.rsg-preview > img { cursor: zoom-in; display: block; max-width: 100%; height: auto; margin: 0 auto; }

/* pijltjes */
.rsg-galerij .rsg-pijl {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.95); color: #96509E; box-shadow: 0 2px 8px rgba(0,0,0,.2);
  display: flex; align-items: center; justify-content: center;
}
.rsg-galerij .rsg-pijl:hover { background: #fff; color: #EF8B2C; }
.rsg-galerij .rsg-pijl:focus-visible { outline: 3px solid #EF8B2C; outline-offset: 2px; }
.rsg-galerij .rsg-vorige { left: 10px; }
.rsg-galerij .rsg-volgende { right: 10px; }

/* teller en vergrootglas */
.rsg-galerij .rsg-teller {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  background: rgba(60,60,60,.75); color: #fff; font: bold 11px Verdana, sans-serif; padding: 4px 9px; border-radius: 99px;
}
.rsg-galerij .rsg-zoom {
  position: absolute; left: 12px; bottom: 12px; z-index: 3; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.95); color: #3C3C3C; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.2); pointer-events: none;
}
.rsg-galerij .rsg-toont-video .rsg-zoom { display: none; }

/* video in de grote foto */
.rsg-galerij .rsg-video { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 2; background: #1E1E1E; }
.rsg-galerij .rsg-video[hidden] { display: none; }
.rsg-galerij .rsg-video iframe { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; border: 0; }
.rsg-galerij .rsg-poster {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: #1E1E1E center / cover no-repeat;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
}
.rsg-galerij .rsg-poster::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0,0,0,.45); }
.rsg-galerij .rsg-play {
  position: relative; width: 84px; height: 84px; border-radius: 50%; border: 0; cursor: pointer;
  background: #EF8B2C; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
.rsg-galerij .rsg-play:hover { background: #D9771A; }
.rsg-galerij .rsg-play:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.rsg-galerij .rsg-poster-titel { position: relative; color: #fff; font: bold 14px/1.35 Verdana, sans-serif; text-align: center; padding: 0 60px; }

/* video-thumbnails tussen de foto's */
.rsg-galerij .kleur-holder.rsg-video-holder, .rsg-galerij .kleur-holder.rsg-zichtbaar { display: block !important; }
.rsg-galerij .rsg-video-thumb { position: relative; background-color: #2A2A2A !important; overflow: hidden; }
.rsg-galerij .rsg-video-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.rsg-galerij .rsg-video-play, .rsg-galerij .rsg-video-label { z-index: 1; }
.rsg-galerij .rsg-video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 32px; height: 32px; border-radius: 50%; background: #EF8B2C; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.rsg-galerij .rsg-video-label {
  position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.65); color: #fff;
  font: bold 9px Verdana, sans-serif; padding: 2px 5px; border-radius: 4px; letter-spacing: .03em;
}
/* RW-DUBBELE-RAND 1.0.0: tegels met een eigen rand krijgen bij focus geen tweede omlijning; de rand zelf wordt oranje */
.rsg-galerij .rsg-video-knop:focus, .rsg-galerij .rsg-video-knop:focus-visible { outline: none !important; }
html body .rsg-galerij .thumbs-container .kleur-button:focus, html body .rsg-galerij .thumbs-container .kleur-button:focus-visible { outline: none !important; }
html body .rsg-galerij .thumbs-container .kleur-button:focus-visible { border-color: var(--rs-oranje, #EF8B2C) !important; }

/* de losse videoblokken zijn overbodig als de video's in de galerij staan */
html.rsg-video-in-galerij .videos_breed, html.rsg-video-in-galerij .videos_smal, html.rsg-video-in-galerij .videos_mobiel { display: none !important; }

@media only screen and (max-width: 675px) {
  .rsg-galerij .rsg-pijl { width: 40px; height: 40px; }
  .rsg-galerij .rsg-vorige { left: 6px; }
  .rsg-galerij .rsg-volgende { right: 6px; }
  .rsg-galerij .rsg-play { width: 72px; height: 72px; }
  .rsg-galerij .rsg-poster-titel { font-size: 13px; padding: 0 50px; }
}

/* vergrote foto (fancybox): dezelfde ronde pijltjes als in de galerij, altijd zichtbaar */
.fancybox-nav { width: 64px !important; }
.fancybox-nav span {
  visibility: visible !important; width: 44px !important; height: 44px !important; margin-top: -22px !important; border-radius: 50%;
  background: rgba(255,255,255,.95) center / 18px no-repeat !important; box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.fancybox-prev span { left: 10px !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M11.5 3 L5.5 9 L11.5 15' fill='none' stroke='%2396509E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important; }
.fancybox-next span { right: 10px !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M6.5 3 L12.5 9 L6.5 15' fill='none' stroke='%2396509E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important; }
.fancybox-nav:hover span { background-color: #fff !important; }

/* RW-GALERIJ-TABS 1.0.0: tabjes Foto's / Video's onder de kleine plaatjes.
   Het tabje van wat je nu ziet is wit met een paarse rand, het andere is paars. */
.rsg-galerij .rsg-tabs { display: flex; gap: 10px; margin: 12px 0 0; clear: both; }
.rsg-galerij .rsg-tab {
  flex: 1 1 0; min-width: 0; min-height: 32px; padding: 4px 12px; border-radius: 99px; cursor: pointer;
  border: 2px solid #96509E; background: #96509E; color: #fff; font: inherit; font-size: 14px; line-height: 1.2; text-align: center;
}
.rsg-galerij .rsg-tab:hover { background: #7E3F86; border-color: #7E3F86; }
.rsg-galerij .rsg-tab.rsg-actief, .rsg-galerij .rsg-tab.rsg-actief:hover { background: #fff; color: #3C3C3C; border-color: #96509E; cursor: default; }
.rsg-galerij .rsg-tab:focus-visible { outline: none; border-color: #EF8B2C; } /* RW-DUBBELE-RAND 1.0.0 */
html body .rsg-galerij.rsg-modus-foto .thumbs-container > .kleur-holder.rsg-video-holder,
html body .rsg-galerij.rsg-modus-video .thumbs-container > .kleur-holder:not(.rsg-video-holder) { display: none !important; }
html body .rsg-galerij.rsg-modus-video .thumbs-container > .kleur-holder.rsg-video-holder { display: block !important; }
@media only screen and (max-width: 675px) { .rsg-galerij .rsg-tab { min-height: 40px; } }
/* het vergrootglas (+) in de grote foto is uit te zetten; klikken op de foto vergroot nog steeds */
html.rsg-zonder-zoom .rsg-galerij .rsg-zoom { display: none !important; }

/* RW-GALERIJ-STRIP 1.0.0: de kleine plaatjes als één rij met links en rechts een pijltje; "Meer foto's" vervalt.
   De pijltjes blijven aan de randen staan terwijl de plaatjes ertussen schuiven (ook vegen kan). */
html body .rsg-galerij.rsg-strip .thumbs-container {
  display: flex !important; grid-template-columns: none !important; flex-wrap: nowrap !important; align-items: stretch; gap: 8px !important;
  overflow-x: auto !important; overflow-y: hidden; scrollbar-width: none; scroll-snap-type: none !important; scroll-behavior: smooth;
  position: relative; padding: 3px 0 !important; margin: 12px 0 0 !important; height: auto !important; max-height: none !important;
}
html body .rsg-galerij.rsg-strip .thumbs-container::-webkit-scrollbar { display: none; }
html body .rsg-galerij.rsg-strip .thumbs-container > .kleur-holder {
  display: block !important; flex: 0 0 calc((100% - 44px - 40px) / 4) !important; width: auto !important; max-width: none !important; margin: 0 !important; float: none !important;
}
html body .rsg-galerij.rsg-strip .thumbs-container > .rsg-strip-pijl {
  position: sticky; z-index: 2; flex: 0 0 22px; width: 22px; padding: 0; margin: 0; border: 0; background: #fff; color: #8A8A8A; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
html body .rsg-galerij.rsg-strip .thumbs-container > .rsg-strip-links { left: 0; order: -1; }
html body .rsg-galerij.rsg-strip .thumbs-container > .rsg-strip-rechts { right: 0; order: 9999; }
html body .rsg-galerij.rsg-strip .thumbs-container > .rsg-strip-pijl:hover { color: #96509E; }
html body .rsg-galerij.rsg-strip .thumbs-container > .rsg-strip-pijl:disabled { color: #D8D8D8; cursor: default; }
html body .rsg-galerij.rsg-strip .thumbs-container > .rsg-strip-pijl:focus-visible { outline: 2px solid #EF8B2C; outline-offset: -2px; }
html.rsg-strip-aan body .s26-meer-fotos, html.rsg-strip-aan body #fotos-meer { display: none !important; }
/* het gekozen plaatje: alleen de bestaande rand wordt oranje, zonder extra dikke rand eromheen */
html body .rsg-galerij .thumbs-container .kleur-button.selected { border-color: var(--rs-oranje, #EF8B2C) !important; box-shadow: none !important; }
html body .rsg-galerij.rsg-strip.rsg-modus-foto .thumbs-container > .kleur-holder.rsg-video-holder,
html body .rsg-galerij.rsg-strip.rsg-modus-video .thumbs-container > .kleur-holder:not(.rsg-video-holder) { display: none !important; }

/* RW-GALERIJ-FOTO 1.0.0: de grote foto
   - altijd vierkant, op elk scherm; de witruimte onder de foto vervalt (het vak was hoger dan de foto);
   - de teller staat rechtsboven over de foto;
   - de ronde pijltjes in de foto zijn uit te zetten (CMS › Instellingen › Site). Vegen, de pijltjestoetsen en de
     kleine plaatjes blijven werken. */
html:not(.rsg-foto-vrij) body .rsg-galerij .image-preview.rsg-preview {
  aspect-ratio: 1 / 1 !important; height: auto !important; min-height: 0 !important; max-height: none !important; padding: 0 !important; box-sizing: border-box !important;
}
html:not(.rsg-foto-vrij) body .rsg-galerij .image-preview.rsg-preview > img {
  width: 100% !important; height: 100% !important; object-fit: contain !important; margin: 0 !important; border-radius: 0 !important; background: #fff;
}
html body .rsg-galerij .rsg-teller { top: 12px !important; bottom: auto !important; right: 12px !important; }
html.rsg-zonder-pijlen body .rsg-galerij .rsg-pijl { display: none !important; }

/* RW-GALERIJ-SIMPEL 1.0.0
   - passen alle kleine plaatjes in beeld, dan staan er geen pijltjes naast;
   - het simpele product (#rsp) heeft dezelfde galerij als de andere producten: de eigen maten en de dikke oranje rand
     van die pagina vervallen. */
html body .rsg-galerij.rsg-strip .thumbs-container.rsg-strip-past > .rsg-strip-pijl { visibility: hidden; }
html body #rsp .rsg-galerij .thumbs-container .kleur-button,
html body #rsp .rsg-galerij .thumbs-container .kleur-button.selected {
  border: 2px solid #E2E2E2 !important; border-radius: 12px !important; background: #fff !important; box-shadow: none !important;
  width: 100% !important; height: auto !important; aspect-ratio: 1 / 1; margin: 0 !important; padding: 0 !important; box-sizing: border-box; overflow: hidden;
}
html body #rsp .rsg-galerij .thumbs-container .kleur-button.selected { border-color: var(--rs-oranje, #EF8B2C) !important; }
html body #rsp .rsg-galerij .thumbs-container .kleur-button > .thumb { width: 100% !important; height: 100% !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; background-size: contain !important; }
