/* Perlmutt Core – Slider (Optik wie MetaSlider „Nivo Light“), Masonry, Lightbox, Accordion */

/* Slider */
.pp-slider { position: relative; margin: 0 auto; background: #fff; padding: 10px 10px 20px; box-sizing: border-box; }
.pp-slider__frame { position: relative; width: 100%; overflow: hidden; background: #fff; }
.pp-slider__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--pp-fade, 1000ms) ease; margin: 0 !important; max-width: none; }
.pp-slider__slide.is-active { opacity: 1; z-index: 1; }
.pp-slider__prev, .pp-slider__next { position: absolute; top: 50%; z-index: 3; width: 36px; height: 36px; margin-top: -18px; border: 0; border-radius: 2px; background: rgba(255,255,255,.85); color: #6b5b4b; font-size: 28px; line-height: 30px; cursor: pointer; }
.pp-slider__prev { left: 20px; }
.pp-slider__next { right: 20px; }
.pp-slider__dots { display: flex; justify-content: center; gap: 6px; padding-top: 10px; }
.pp-slider__dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: #ddd; cursor: pointer; }
.pp-slider__dot.is-active { background: #f2abc6; }

/* Masonry (Positionierung per JS, ohne JS einfacher Fluss) */
.pp-masonry { position: relative; opacity: 0; transition: opacity .7s; }
.pp-masonry.is-ready { opacity: 1; }
.pp-masonry .box { width: 227px; }
.pp-masonry .box .project-thumb { display: block; overflow: hidden; }
.pp-masonry .box.col1 .single-image img { width: 227px; height: 180px; object-fit: cover; }
.pp-masonry .box.col2 .single-image img { width: 227px; height: 250px; object-fit: cover; }
.pp-masonry .box.col3 .single-image img { width: 227px; height: 320px; object-fit: cover; }
.pp-masonry.is-single .box { width: 100%; margin-bottom: 10px; }
.pp-masonry.is-single .box .single-image img { width: 100%; height: auto; aspect-ratio: 227 / 250; }
noscript ~ .pp-masonry, .no-js .pp-masonry { opacity: 1; }

/* Galerie-Raster für [imggallery] */
.pp-gallery-grid { list-style: none; margin: 0; padding: 0; }
.pp-gallery-grid img { width: 100%; height: auto; }

/* Accordion */
.acc-container.is-open { display: block; }

/* Lightbox */
.pp-lightbox { position: fixed; inset: 0; z-index: 100000; display: none; align-items: center; justify-content: center; background: rgba(30, 28, 26, .9); }
.pp-lightbox.is-open { display: flex; }
html.pp-lightbox-open { overflow: hidden; }
.pp-lightbox__figure { margin: 0; max-width: 92vw; max-height: 90vh; text-align: center; }
.pp-lightbox__figure img { display: block; max-width: 92vw; max-height: 84vh; width: auto; height: auto; margin: 0 auto; border: 10px solid #fff; box-sizing: border-box; background: #fff; }
.pp-lightbox__figure figcaption { color: #fff; padding-top: 8px; font-size: 14px; }
.pp-lightbox__figure figcaption:empty { display: none; }
.pp-lightbox button { position: absolute; border: 0; background: transparent; color: #fff; cursor: pointer; font-size: 48px; line-height: 1; padding: 10px 16px; opacity: .8; }
.pp-lightbox button:hover, .pp-lightbox button:focus-visible { opacity: 1; color: #f2abc6; }
.pp-lightbox__close { top: 10px; right: 10px; }
.pp-lightbox__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.pp-lightbox__next { right: 10px; top: 50%; transform: translateY(-50%); }
.pp-lightbox button[hidden] { display: none; }

/* Responsive Video ([embedyt]) */
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; margin-bottom: 20px; }
.video-container iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
