/* BuntBewegt – Gallery festival edition. Only applies to bilder-material.html.
   The links, image viewer, download originals and filtering stay native/functional. */
.festival-gallery-page .journal-page {
  --j-green:#09394b;
  --j-deep:#073747;
  --j-muted:#526778;
  --j-paper:#fffaf1;
  --j-line:#f0dcca;
  --j-gold:#ffd550;
  --fest-coral:#f46c5b;
  --fest-ink:#073849;
  background:linear-gradient(180deg,#fffaf1 0%,#fffdfa 35%,#fffaf1 100%);
  color:var(--fest-ink);
  overflow:hidden;
}
.festival-gallery-page .journal-page h1,
.festival-gallery-page .journal-page h2,
.festival-gallery-page .journal-page h3 { color:var(--fest-ink); }
.festival-gallery-page .journal-page h1 em {color:var(--fest-coral);font-style:normal}
.festival-gallery-page .j-breadcrumb { color:#586e78;position:relative;z-index:1;padding-block:24px; }
.festival-gallery-page .j-breadcrumb a:hover {color:#db5d49}
.festival-gallery-page .j-eyebrow {color:#cc6654;letter-spacing:1.8px}
.festival-gallery-page .j-gallery-heading {
  display:grid;
  grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);
  padding:0;
  gap:0;
  align-items:stretch;
  min-height:615px;
  isolation:isolate;
  position:relative;
  border:1px solid #f2dacb;
  border-radius:32px;
  box-shadow:0 20px 65px rgba(102,72,65,.09),0 3px 9px rgba(102,72,65,.04);
  overflow:hidden;
  background:#fffdf7;
}
.festival-gallery-page .j-gallery-heading::before {
  content:"";
  position:absolute;
  left:16%;bottom:-115px;
  height:230px;width:230px;
  border-radius:50%;background:#ffefd1;opacity:.37;pointer-events:none;
}
.festival-gallery-page .j-gallery-intro {
  padding:clamp(33px,4.7vw,70px);
  align-self:center;
  min-width:0;
  position:relative;
  z-index:1;
  background:
   radial-gradient(circle at 92% 15%,#fbe3cc 0 3px,transparent 4px),
   radial-gradient(circle at 95% 20%,#ffd452 0 7px,transparent 8px),
   radial-gradient(circle at 87% 23%,#fd9180 0 4px,transparent 5px),
   linear-gradient(125deg,#fffefa,#fff9ed);
}
.festival-gallery-page .j-gallery-intro .j-eyebrow {
  display:flex;align-items:center;gap:13px;margin:0 0 28px;
  font-size:11px!important;line-height:1.6;color:#126177;
}
.festival-gallery-page .gallery-gold-dot {width:10px;height:10px;border-radius:50%;background:#ffcb3a;box-shadow:0 0 0 5px #ffd65127;flex:none}
.festival-gallery-page .j-gallery-heading h1 {
  font-size:clamp(43px,5vw,69px);
  font-weight:900;
  letter-spacing:-2.8px;
  line-height:1.08;
  margin:0 0 23px;
}
.festival-gallery-page .j-gallery-heading .j-gallery-intro>p:not(.j-eyebrow) {
  font-size:clamp(14px,1.22vw,16px);
  max-width:560px;
  line-height:1.85;
  color:#455b6d;
  margin:0;
}
.festival-gallery-page .j-collection-meta {
  margin-top:27px;
  padding-top:24px;
  display:flex;flex-wrap:wrap;gap:10px;
  font-size:12px;
  color:#2f5764;
  border-top:1px solid #f0d8c5;
}
.festival-gallery-page .j-collection-meta span {
  display:inline-flex;align-items:center;gap:7px;
  padding:8px 11px;border:1px solid #f2e0cd;
  border-radius:30px;background:#fffdf7;
  font-weight:700;
}
.festival-gallery-page .j-collection-meta span+span:before {display:none}
.festival-gallery-page .j-collection-meta strong {color:#de6953;font-size:14px}
.festival-gallery-page .gallery-hero-actions {display:flex;align-items:center;gap:18px 23px;flex-wrap:wrap;margin-top:29px}
.festival-gallery-page .gallery-primary-cta {
  display:inline-flex;align-items:center;justify-content:center;gap:12px;
  color:#093849;background:#ffd54a;border-radius:40px;
  font-weight:900;font-size:13px;min-height:54px;padding:14px 21px;
  box-shadow:0 7px 0 rgba(235,160,26,.15),0 13px 24px rgba(208,140,24,.17);
  transition:transform .25s ease,box-shadow .25s ease,background .25s ease;
}
.festival-gallery-page .gallery-primary-cta:hover {background:#ffbe32;transform:translateY(-3px);box-shadow:0 5px 0 rgba(235,160,26,.16),0 15px 26px rgba(208,140,24,.20)}
.festival-gallery-page .gallery-secondary-cta {color:#0c4454;font-size:12px;font-weight:800;text-underline-offset:5px;text-decoration:underline;text-decoration-color:#f0a83a}
.festival-gallery-page .gallery-secondary-cta:hover {color:#da634e}
.festival-gallery-page .j-gallery-cover {
  border:0;
  border-left:1px solid #ffddc5;
  padding:0 24px 26px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  align-items:flex-end;
  position:relative;
  min-width:0;
  min-height:615px;
  overflow:hidden;
  background:#ffdfc7 url('images/events/lanterns-hero.svg') center top/cover no-repeat;
  border-radius:0;
  transform:none;
}
.festival-gallery-page .j-gallery-cover-image {
  display:block;position:relative;width:min(58%,248px);max-width:248px;
  padding:8px;
  border-radius:16px;
  background:#fffef9;
  border:1px solid rgba(255,255,255,.9);
  box-shadow:0 18px 43px rgba(19,54,56,.23),0 4px 10px rgba(19,54,56,.08);
  transform:rotate(5deg);
  transform-origin:50% 50%;
  animation:gallery-poster-float 5s ease-in-out infinite;
  transition:box-shadow .25s ease;
}
.festival-gallery-page .j-gallery-cover-image:hover {box-shadow:0 24px 50px rgba(19,54,56,.29);animation:none;transform:rotate(1deg) translateY(-7px)}
.festival-gallery-page .j-gallery-cover-image img {width:100%;height:auto;display:block;border-radius:10px;box-shadow:none}
.festival-gallery-page .j-gallery-cover .j-image-action {
  position:absolute;bottom:12px;right:9px;
  padding:7px 10px;gap:5px;
  font-size:10px;white-space:nowrap;
  background:#fffcf4;border-color:#f0dfc2;
  color:#094559;transform:rotate(-4deg);
  box-shadow:0 4px 11px rgba(12,59,66,.13);
}
.festival-gallery-page .gallery-cover-caption {
  position:relative;z-index:1;align-self:flex-end;
  font-size:9px;letter-spacing:1.25px;font-weight:900;
  color:#115766;background:rgba(255,250,235,.88);
  border-radius:20px;padding:8px 11px;margin-top:22px;
}
.festival-gallery-page .gallery-sparkle {position:absolute;z-index:0;border-radius:100%;pointer-events:none;opacity:.68}
.festival-gallery-page .gallery-sparkle-one {width:12px;height:12px;left:10%;top:58%;background:#fff8bc;box-shadow:0 0 0 9px rgba(255,249,193,.13);animation:gallery-sparkle 3.5s ease-in-out infinite}
.festival-gallery-page .gallery-sparkle-two {width:7px;height:7px;right:6%;top:65%;background:#ff8c6e;animation:gallery-sparkle 3s ease-in-out 1s infinite}
@keyframes gallery-poster-float {0%,100% {transform:rotate(5deg) translateY(0)}50% {transform:rotate(3deg) translateY(-11px)}}
@keyframes gallery-sparkle {0%,100% {opacity:.35;transform:scale(.85)}50% {opacity:1;transform:scale(1.2)}}
/* Filter navigation and gallery section headers */
.festival-gallery-page .j-gallery-filter {
  margin:54px 0 22px;display:flex;align-items:center;justify-content:center;
  gap:10px 12px;flex-wrap:wrap;
  border:1px solid #f0decb;
  background:#fffdf8;
  padding:16px;border-radius:25px;
  box-shadow:0 8px 28px rgba(82,61,53,.035);
}
.festival-gallery-page .j-gallery-filter button {
  font-size:12px;min-height:44px;padding:10px 17px;
  background:#fff9f0;color:#0d4a58;border:1px solid #eadcca;
  transition:background .2s ease,transform .2s ease,border-color .2s ease;
}
.festival-gallery-page .j-gallery-filter button:hover {background:#ffeed4;border-color:#f5be76;transform:translateY(-2px)}
.festival-gallery-page .j-gallery-filter button[aria-pressed=true] {background:#0f7f8c;color:#fff;border-color:#0f7f8c}
.festival-gallery-page .j-gallery-filter button[aria-pressed=true]:hover {background:#096b79}
.festival-gallery-page .j-material-group {position:relative;padding-top:70px}
.festival-gallery-page .j-material-group+.j-material-group {border-top:1px solid #f4e7da;margin-top:56px}
.festival-gallery-page .j-group-heading {display:flex;align-items:center;gap:20px;margin-bottom:29px}
.festival-gallery-page .j-section-number {
  display:flex;align-items:center;justify-content:center;
  width:60px;height:60px;min-width:60px;padding:0;
  border-radius:21px;background:#ffe5d0;color:#d85f51;
  font:900 20px/1 'Trebuchet MS',Arial,sans-serif;
}
.festival-gallery-page .j-material-group:nth-of-type(2) .j-section-number {background:#d8f3ec;color:#168b94}
.festival-gallery-page .j-material-group:nth-of-type(3) .j-section-number {background:#fff0bd;color:#b86e1d}
.festival-gallery-page .j-group-heading h2 {font-size:clamp(28px,3.2vw,39px);letter-spacing:-1.2px;margin:0 0 11px}
.festival-gallery-page .j-group-heading .j-eyebrow {margin-bottom:4px}
.festival-gallery-page .j-group-heading p:not(.j-eyebrow) {color:#657481;max-width:760px;font-size:14px}
/* Consistent white cards: image shown complete, same cover language on every material */
.festival-gallery-page .j-material-grid {gap:24px;align-items:stretch}
.festival-gallery-page .j-material {
  min-width:0;display:flex;flex-direction:column;
  border:1px solid #f2dfd0;
  background:#fffefa;
  border-radius:24px;overflow:hidden;
  box-shadow:0 8px 24px rgba(94,74,58,.06);
  transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease;
}
.festival-gallery-page .j-material:hover {transform:translateY(-6px);box-shadow:0 18px 38px rgba(94,74,58,.12);border-color:#f2c3a8}
.festival-gallery-page .j-material-visual {
  position:relative;display:flex;align-items:center;justify-content:center;
  width:100%;min-height:365px;
  padding:23px 22px 62px;
  border:0;border-radius:0;
  overflow:hidden;
  background:linear-gradient(135deg,#ffefdb,#ffdcd7);
}
.festival-gallery-page .j-material-grid .j-material:nth-child(3n+2) .j-material-visual {background:linear-gradient(140deg,#dcf3f2,#bde8e6)}
.festival-gallery-page .j-material-grid .j-material:nth-child(3n+3) .j-material-visual {background:linear-gradient(140deg,#fff1bf,#ffe4ac)}
.festival-gallery-page .j-material-visual::before {
  content:"";position:absolute;top:-55px;right:-65px;width:180px;height:180px;
  border-radius:50%;border:32px solid rgba(255,255,255,.24);
  pointer-events:none;
}
.festival-gallery-page .j-material-visual>img {
  position:relative;z-index:1;
  display:block;max-height:350px;max-width:100%;width:auto;height:auto;
  aspect-ratio:auto;object-fit:contain;
  border-radius:12px;
  box-shadow:0 9px 22px rgba(23,56,63,.15);
  filter:none;
  transition:transform .28s ease;
}
.festival-gallery-page .j-material:hover .j-material-visual>img {transform:translateY(-4px) rotate(-1deg)}
.festival-gallery-page .j-material-visual>.j-image-action {
  position:absolute;z-index:2;right:17px;bottom:16px;margin:0;
  padding:9px 13px;background:#fffdf8;border-color:#eed9c7;color:#174759;
}
.festival-gallery-page .j-material figcaption {flex:1;padding:22px 23px 26px}
.festival-gallery-page .j-material figcaption .j-eyebrow {color:#d26752;font-size:9px!important;letter-spacing:1.5px}
.festival-gallery-page .j-material h3 {color:#093849;font-size:clamp(19px,1.9vw,23px)!important;line-height:1.26}
.festival-gallery-page .j-material figcaption>p:not(.j-eyebrow) {color:#5e7180;font-size:13px!important;line-height:1.75!important}
/* Horizontal printed flyer featured design */
.festival-gallery-page .j-wide-material {
  border:1px solid #efdfcd;
  background:linear-gradient(115deg,#dcf2ed,#fff1cc);
  border-radius:26px;padding:24px;gap:35px;overflow:hidden;
  box-shadow:0 8px 30px rgba(63,86,78,.065);
}
.festival-gallery-page .j-wide-visual {display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:12px}
.festival-gallery-page .j-wide-visual img {border-radius:14px;border:7px solid #fffefb;box-shadow:0 13px 28px rgba(32,75,81,.15)}
.festival-gallery-page .j-wide-visual .j-image-action {position:static;background:#fffefa;color:#0c4c5c}
.festival-gallery-page .j-wide-material figcaption {padding:18px 15px}
.festival-gallery-page .j-wide-material h3 {font-size:clamp(22px,2.6vw,32px);color:#073849}
.festival-gallery-page .j-safety-note {
  color:#405b64;max-width:100%;font-size:13px;
  margin-top:34px;padding:18px 22px;
  border-radius:16px;background:#fff0d8;border-left:4px solid #f5b943;
}
.festival-gallery-page .j-closing {
  background:linear-gradient(100deg,#ffe5d9 0%,#ffefd1 54%,#d4f0ec 100%);
  border:1px solid #f3ded1;border-radius:26px;
  padding:42px 45px;margin-top:77px;
}
.festival-gallery-page .j-closing .j-eyebrow {color:#d35b4b}
.festival-gallery-page .j-closing h2 {color:#073849}
.festival-gallery-page .j-closing .button-green,
.festival-gallery-page .header-join {background:#ffd54a;color:#073849;border-color:#ffd54a}
.festival-gallery-page .j-closing .button-green:hover,
.festival-gallery-page .header-join:hover {background:#ffc13d;border-color:#ffc13d}
.festival-gallery-page .journal-page a:focus-visible,
.festival-gallery-page .journal-page button:focus-visible {outline:3px solid #0e8995;outline-offset:4px}
@media(max-width:1050px) {
  .festival-gallery-page .j-gallery-heading {grid-template-columns:minmax(0,1fr) minmax(0,.9fr);min-height:550px}
  .festival-gallery-page .j-gallery-cover {min-height:550px}
  .festival-gallery-page .j-gallery-cover-image {width:min(62%,215px)}
  .festival-gallery-page .j-gallery-intro {padding:clamp(28px,3.5vw,43px)}
  .festival-gallery-page .j-gallery-heading h1 {font-size:clamp(40px,5.3vw,58px)}
  .festival-gallery-page .j-material-grid {gap:16px}
  .festival-gallery-page .j-material-visual {min-height:320px;padding:19px 18px 60px}
  .festival-gallery-page .j-material-visual>img {max-height:310px}
}
@media(max-width:760px) {
  .festival-gallery-page .j-gallery-heading {display:grid;grid-template-columns:1fr;border-radius:25px}
  .festival-gallery-page .j-gallery-intro {padding:35px 28px 38px}
  .festival-gallery-page .j-gallery-heading h1 {font-size:clamp(42px,8vw,60px)}
  .festival-gallery-page .j-gallery-cover {min-height:390px;border:0;border-top:1px solid #f7daca;padding:20px 23px 20px;background-position:center 30%}
  .festival-gallery-page .j-gallery-cover-image {width:min(42%,180px)}
  .festival-gallery-page .gallery-cover-caption {font-size:8px}
  .festival-gallery-page .j-gallery-filter {margin-top:40px}
  .festival-gallery-page .j-material-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  .festival-gallery-page .j-material-visual {min-height:320px}
  .festival-gallery-page .j-group-heading {align-items:flex-start}
}
@media(max-width:550px) {
  .festival-gallery-page .j-breadcrumb {padding:17px 0}
  .festival-gallery-page .j-gallery-intro {padding:30px 22px 36px}
  .festival-gallery-page .j-gallery-intro .j-eyebrow {font-size:9px!important;letter-spacing:1.4px;margin-bottom:22px}
  .festival-gallery-page .j-gallery-heading h1 {font-size:clamp(40px,10.4vw,50px);letter-spacing:-1.9px}
  .festival-gallery-page .j-gallery-heading .j-gallery-intro>p:not(.j-eyebrow) {font-size:14px;line-height:1.76}
  .festival-gallery-page .j-collection-meta {padding-top:19px;margin-top:20px;gap:6px}
  .festival-gallery-page .j-collection-meta span {padding:8px 9px;font-size:10px;gap:5px}
  .festival-gallery-page .j-collection-meta strong {font-size:12px}
  .festival-gallery-page .gallery-hero-actions {margin-top:26px;gap:15px}
  .festival-gallery-page .gallery-primary-cta {min-height:49px;font-size:12px;padding:12px 15px}
  .festival-gallery-page .gallery-secondary-cta {font-size:11px}
  .festival-gallery-page .j-gallery-cover {min-height:330px;padding:18px 16px}
  .festival-gallery-page .j-gallery-cover-image {width:min(41%,158px)}
  .festival-gallery-page .gallery-cover-caption {margin-top:15px}
  .festival-gallery-page .j-gallery-filter {gap:8px;margin:32px 0 10px;padding:12px 9px;border-radius:20px;justify-content:stretch}
  .festival-gallery-page .j-gallery-filter button {font-size:11px;flex:1 1 40%;justify-content:center;padding:8px 11px;min-height:40px}
  .festival-gallery-page .j-material-group {padding-top:48px}
  .festival-gallery-page .j-material-group+.j-material-group {margin-top:31px}
  .festival-gallery-page .j-section-number {min-width:44px;height:44px;width:44px;border-radius:15px;font-size:15px}
  .festival-gallery-page .j-group-heading {gap:13px;margin-bottom:22px}
  .festival-gallery-page .j-group-heading h2 {font-size:clamp(25px,7vw,32px);margin-bottom:10px}
  .festival-gallery-page .j-group-heading p:not(.j-eyebrow) {font-size:12px;line-height:1.68}
  .festival-gallery-page .j-material-grid {grid-template-columns:1fr;gap:22px}
  .festival-gallery-page .j-material {border-radius:22px}
  .festival-gallery-page .j-material-visual {min-height:340px;padding:21px 20px 58px}
  .festival-gallery-page .j-material-visual>img {width:auto;height:auto;max-height:365px;max-width:100%}
  .festival-gallery-page .j-material figcaption {padding:18px 20px 22px}
  .festival-gallery-page .j-material h3 {font-size:22px!important}
  .festival-gallery-page .j-material figcaption>p:not(.j-eyebrow) {font-size:13px!important}
  .festival-gallery-page .j-wide-material {grid-template-columns:1fr;gap:9px;padding:14px;border-radius:22px}
  .festival-gallery-page .j-wide-material figcaption {padding:13px 9px}
  .festival-gallery-page .j-wide-visual .j-image-action {margin:0}
  .festival-gallery-page .j-safety-note {font-size:12px;line-height:1.65;margin-top:25px}
  .festival-gallery-page .j-closing {margin-top:55px;padding:32px 24px}
}
@media(prefers-reduced-motion:reduce) {
  .festival-gallery-page .j-gallery-cover-image,
  .festival-gallery-page .gallery-sparkle,
  .festival-gallery-page .j-material,
  .festival-gallery-page .j-material-visual>img,
  .festival-gallery-page .gallery-primary-cta {animation:none!important;transition:none!important}
  .festival-gallery-page .j-gallery-cover-image {transform:rotate(4deg)}
}
@media print {
  .festival-gallery-page .j-gallery-cover-image {animation:none}
  .festival-gallery-page .journal-page {background:white}
  .festival-gallery-page .j-material {break-inside:avoid;box-shadow:none}
}


/* Bilder & Materialien hero – previous poster restored; remove the illustrated
   lantern BACKGROUND image only. Retain the hero sizing, image, copy, and motion. */
.festival-gallery-page .j-gallery-cover {
  background-color:#ffeadf;
  background-image:
    radial-gradient(ellipse 66% 58% at 87% 12%,rgba(255,217,137,.33),transparent 72%),
    radial-gradient(ellipse 67% 60% at 13% 92%,rgba(121,208,202,.21),transparent 73%),
    linear-gradient(142deg,#fff2e8 0%,#ffe7d9 52%,#ffe8df 100%);
  background-position:center;
  background-repeat:no-repeat;
  background-size:cover;
  justify-content:center;
  align-items:center;
  padding:28px 24px;
}
.festival-gallery-page .j-gallery-cover-image {
  margin:0 auto;
  width:min(63%,265px);
  max-width:265px;
  align-self:center;
}
.festival-gallery-page .gallery-cover-caption {
  align-self:center;
  margin-top:27px;
  text-align:center;
}
@media (max-width:760px) {
  .festival-gallery-page .j-gallery-cover { padding:24px 18px; }
  .festival-gallery-page .j-gallery-cover-image { width:min(57%,210px);max-width:210px; }
}
@media (max-width:550px) {
  .festival-gallery-page .j-gallery-cover { padding:26px 14px; }
  .festival-gallery-page .j-gallery-cover-image { width:min(53%,200px);max-width:200px; }
  .festival-gallery-page .gallery-cover-caption { margin-top:20px; }
}


/* Decorative hero background accents around the restored hero image */
.festival-gallery-page .j-gallery-cover {
  isolation:isolate;
}
.festival-gallery-page .gallery-sparkle-three {
  width:14px;height:14px;left:22%;top:18%;background:#f3c247;
  box-shadow:0 0 0 8px rgba(243,194,71,.10);animation:gallery-sparkle 3.8s ease-in-out .5s infinite;
}
.festival-gallery-page .gallery-decor-heart,
.festival-gallery-page .gallery-decor-star {
  position:absolute;z-index:0;pointer-events:none;opacity:.95;
}
.festival-gallery-page .gallery-decor-heart {
  width:34px;height:34px;
}
.festival-gallery-page .gallery-decor-heart::before {
  content:"♡";display:block;
  color:#ef5a91;font-size:42px;line-height:34px;font-weight:700;
  filter:drop-shadow(0 2px 3px rgba(239,90,145,.08));
}
.festival-gallery-page .decor-heart-top {right:82px;top:78px;animation:gallery-heart-float 5.2s ease-in-out infinite;}
.festival-gallery-page .decor-heart-bottom {left:58px;bottom:86px;transform:scale(.92);animation:gallery-heart-float 5.8s ease-in-out 1.3s infinite;}
.festival-gallery-page .gallery-decor-star {
  width:32px;height:32px;
}
.festival-gallery-page .gallery-decor-star::before {
  content:"☆";display:block;
  color:#16b1bf;font-size:36px;line-height:32px;font-weight:700;
  filter:drop-shadow(0 2px 3px rgba(22,177,191,.08));
}
.festival-gallery-page .decor-star-top {left:68px;top:116px;animation:gallery-star-twinkle 4.6s ease-in-out infinite;}
.festival-gallery-page .decor-star-bottom {right:24px;bottom:76px;transform:scale(.94);animation:gallery-star-twinkle 5.4s ease-in-out .9s infinite;}
@keyframes gallery-heart-float {0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@keyframes gallery-star-twinkle {0%,100%{opacity:.72;transform:scale(1)}50%{opacity:1;transform:scale(1.08)}}
@media (max-width:760px) {
  .festival-gallery-page .decor-heart-top {right:46px;top:62px;}
  .festival-gallery-page .decor-heart-bottom {left:34px;bottom:64px;transform:scale(.82);}
  .festival-gallery-page .decor-star-top {left:42px;top:94px;transform:scale(.90);}
  .festival-gallery-page .decor-star-bottom {right:12px;bottom:54px;transform:scale(.82);}
  .festival-gallery-page .gallery-sparkle-three {left:18%;top:16%;width:12px;height:12px;}
}
@media (max-width:550px) {
  .festival-gallery-page .decor-heart-top {right:36px;top:52px;transform:scale(.82);}
  .festival-gallery-page .decor-heart-bottom {left:26px;bottom:56px;transform:scale(.72);}
  .festival-gallery-page .decor-star-top {left:32px;top:86px;transform:scale(.78);}
  .festival-gallery-page .decor-star-bottom {right:8px;bottom:48px;transform:scale(.74);}
  .festival-gallery-page .gallery-sparkle-three {left:16%;top:14%;}
}
@media (prefers-reduced-motion:reduce) {
  .festival-gallery-page .gallery-decor-heart,
  .festival-gallery-page .gallery-decor-star,
  .festival-gallery-page .gallery-sparkle-three {animation:none!important;}
}


/* Hero image carousel — the 13 existing gallery images, same card/decorations. */
.festival-gallery-page .j-gallery-cover .j-gallery-cover-image {
  z-index:1;
  max-height: min(460px, 60vh);
  width:min(75%,300px);
  max-width:300px;
  flex:0 1 auto;
}
.festival-gallery-page .j-gallery-cover .j-gallery-cover-image img {
  max-height:min(428px, 57vh);
  width:100%;
  height:auto;
  object-fit:contain;
}
.festival-gallery-page .j-gallery-cover .j-gallery-cover-image.is-landscape {
  width:min(88%,390px);
  max-width:390px;
}
.festival-gallery-page .gallery-cover-controls {
  position:relative;
  z-index:2;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:15px;
  margin-top:22px;
  background:rgba(255,252,246,.88);
  border:1px solid rgba(241,198,166,.75);
  border-radius:999px;
  padding:6px 8px;
  box-shadow:0 9px 25px rgba(108,77,65,.09);
  backdrop-filter:blur(7px);
}
.festival-gallery-page .gallery-cover-arrow {
  display:grid;
  place-items:center;
  width:43px;
  height:43px;
  min-width:43px;
  border:1px solid #f6d9c6;
  border-radius:50%;
  background:#fff;
  color:#135564;
  cursor:pointer;
  box-shadow:0 2px 7px rgba(30,65,69,.08);
  transition:background .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease;
}
.festival-gallery-page .gallery-cover-arrow:hover {
  background:#ffda74;
  color:#093e4e;
  transform:translateY(-2px);
  box-shadow:0 6px 14px rgba(208,152,53,.2);
}
.festival-gallery-page .gallery-cover-arrow:active {transform:translateY(0)}
.festival-gallery-page .gallery-cover-arrow:focus-visible {outline:3px solid #0b98a3;outline-offset:3px}
.festival-gallery-page .gallery-cover-progress {
  min-width:60px;
  font-size:12px;
  font-weight:900;
  letter-spacing:1px;
  text-align:center;
  color:#145260;
  font-variant-numeric:tabular-nums;
}
.festival-gallery-page .j-gallery-cover .gallery-cover-caption {
  margin-top:13px;
  max-width:85%;
  min-height:33px;
  letter-spacing:.5px;
  text-wrap:balance;
}
@media(max-width:760px){
  .festival-gallery-page .j-gallery-cover .j-gallery-cover-image,
  .festival-gallery-page .j-gallery-cover .j-gallery-cover-image.is-landscape {
    width:min(78%,275px);
    max-width:275px;
  }
  .festival-gallery-page .j-gallery-cover .j-gallery-cover-image img {max-height:340px}
  .festival-gallery-page .gallery-cover-controls {margin-top:18px;gap:12px}
}
@media(max-width:550px){
  .festival-gallery-page .j-gallery-cover .j-gallery-cover-image,
  .festival-gallery-page .j-gallery-cover .j-gallery-cover-image.is-landscape {
    width:min(76%,240px);
    max-width:240px;
  }
  .festival-gallery-page .j-gallery-cover .j-gallery-cover-image img {max-height:285px}
  .festival-gallery-page .gallery-cover-controls {margin-top:17px;gap:12px;padding:5px 7px}
  .festival-gallery-page .gallery-cover-arrow {width:40px;height:40px;min-width:40px}
  .festival-gallery-page .j-gallery-cover .gallery-cover-caption {margin-top:12px;min-height:28px;max-width:94%;font-size:9px}
}
@media(prefers-reduced-motion:reduce){
  .festival-gallery-page .gallery-cover-arrow {transition:none}
}


/* Bilder & Materialien: two image cards per row on phones, without
   changing the gallery layout on tablets or desktop. */
@media (max-width: 550px) {
  .festival-gallery-page .j-material-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
  }
  .festival-gallery-page .j-material {
    min-width: 0;
    border-radius: 17px;
  }
  .festival-gallery-page .j-material-visual {
    min-height: 0;
    height: clamp(150px, 46vw, 205px);
    padding: 10px 8px;
  }
  .festival-gallery-page .j-material-visual > img {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
  }
  .festival-gallery-page .j-material-visual::before {
    width: 110px;
    height: 110px;
    border-width: 20px;
  }
  .festival-gallery-page .j-material figcaption {
    padding: 12px 11px 15px;
  }
  .festival-gallery-page .j-material figcaption .j-eyebrow {
    font-size: 8px !important;
    letter-spacing: .7px;
    margin-bottom: 6px;
  }
  .festival-gallery-page .j-material h3 {
    font-size: 14px !important;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  .festival-gallery-page .j-material figcaption > p:not(.j-eyebrow) {
    font-size: 11px !important;
    line-height: 1.55 !important;
    margin-top: 7px;
  }
}
@media (max-width: 360px) {
  .festival-gallery-page .j-material-grid { gap: 9px; }
  .festival-gallery-page .j-material figcaption { padding: 10px 9px 13px; }
  .festival-gallery-page .j-material h3 { font-size: 13px !important; }
}


/* Mobile: an odd final image occupies the whole last row, instead of
   leaving an empty second column. This also supports a one-image gallery. */
@media (max-width: 550px) {
  .festival-gallery-page .j-material-grid > .j-material:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 43%) minmax(0, 57%);
    align-items: stretch;
  }
  .festival-gallery-page .j-material-grid > .j-material:last-child:nth-child(odd) .j-material-visual {
    width: 100%;
    height: auto;
    min-height: 208px;
    padding: 12px 9px;
  }
  .festival-gallery-page .j-material-grid > .j-material:last-child:nth-child(odd) .j-material-visual > img {
    max-height: 200px;
    height: auto;
    width: auto;
    max-width: 100%;
  }
  .festival-gallery-page .j-material-grid > .j-material:last-child:nth-child(odd) figcaption {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15px 15px;
  }
}
@media (max-width: 360px) {
  .festival-gallery-page .j-material-grid > .j-material:last-child:nth-child(odd) {
    grid-template-columns: minmax(0, 42%) minmax(0, 58%);
  }
  .festival-gallery-page .j-material-grid > .j-material:last-child:nth-child(odd) figcaption {
    padding: 11px 10px;
  }
}
