:root{color-scheme:dark;--bg:#1f2222;--surface:#2a2e2e;--line:#495050;--gold:#bc9d77;--white:#f6f3ed}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--white);font:16px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}a{color:var(--gold)}.head{max-width:1080px;margin:auto;padding:24px 18px;display:flex;gap:25px;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.head nav{display:flex;flex-wrap:wrap;gap:17px}.brand{text-decoration:none;color:var(--white)}.brand b{display:block;font-size:22px;letter-spacing:.035em}.brand small{color:var(--gold);font-size:10px;letter-spacing:.15em}main{max-width:1050px;margin:50px auto 70px;padding:0 18px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:clamp(22px,4vw,50px)}h1{font-size:clamp(26px,4vw,38px);margin:0 0 10px}h2{font-size:20px}p{color:#dadbd8}label{display:block;font-weight:600;margin:17px 0 6px}input{width:100%;padding:13px 15px;border:1px solid #66706c;border-radius:7px;background:#f6f3ed;color:#1f2222;font:inherit}.field{max-width:510px}.actions{display:flex;flex-wrap:wrap;gap:18px;margin-top:22px;align-items:center}button,.button{background:var(--gold);color:#1a1c1c;padding:12px 20px;font-weight:700;border:0;border-radius:7px;cursor:pointer;text-decoration:none;font:inherit}.muted{color:#c6c7c4}.note{padding:14px;background:#39403e;border-left:3px solid var(--gold);border-radius:6px;margin:20px 0}.error{border-color:#e7a39a}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px;margin-top:24px}.tile{border:1px solid var(--line);border-radius:10px;padding:22px;background:#202525}.tile h2{margin:0 0 8px}.tile p{margin:0 0 16px}footer{text-align:center;padding:20px;color:#b9bab6;font-size:13px}@media(max-width:600px){.head{align-items:start;flex-direction:column}main{margin-top:25px}}

/* Original-CI-Logo im Portalheader (18.11.2026) */
.head .brand{display:block;flex:0 1 280px;min-width:0;line-height:0}
.head .brand img{display:block;width:100%;max-width:280px;height:auto;object-fit:contain}
@media(max-width:600px){.head .brand{flex:0 1 auto;width:min(65vw,240px)}.head .brand img{max-width:100%}}

/* Header exakt an der inneren Textkante der Panel-Karte ausrichten.
   Hauptcontainer: 1050px, Seitenpadding 18px, Panelpadding clamp(22px,4vw,50px). */
.head{
  max-width:1050px;
  padding:22px calc(18px + clamp(22px, 4vw, 50px)) 18px;
  align-items:center;
  gap:16px;
}
.head .brand{
  flex:0 0 215px;
  width:215px;
}
.head .brand img{
  width:100%;
  max-width:215px;
  height:auto;
}
.head nav{
  margin-left:auto;
  justify-content:flex-end;
  align-items:center;
  gap:17px;
}
@media(max-width:700px){
  .head{
    flex-direction:column;
    align-items:stretch;
    padding:20px calc(18px + clamp(22px, 4vw, 50px)) 16px;
    gap:12px;
  }
  .head .brand{
    flex:none;
    width:min(190px, 100%);
  }
  .head .brand img{max-width:190px;}
  .head nav{align-self:flex-end;margin-left:0;}
}
/* Phase 2: geschützte Bildgalerie */
.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:18px;margin-top:25px}
.photo-card{background:#202525;border:1px solid var(--line);border-radius:9px;padding:12px;min-width:0}
.photo-card img{width:100%;height:150px;object-fit:contain;background:#151818;border-radius:4px;display:block}
.photo-card p{font-size:13px;overflow-wrap:anywhere;margin:10px 0 8px}
.photo-card a{font-size:14px}
input[type=file]{background:#202525;color:var(--white);width:100%;max-width:510px}

/* Phase 3: Galerie-Großansicht / Lightbox – nur Kundenportal */
.photo-preview-button{display:block;position:relative;padding:0;margin:0;width:100%;border:0;border-radius:4px;background:#151818;overflow:hidden;cursor:zoom-in}
.photo-preview-button img{width:100%;height:150px;object-fit:contain;background:#151818;display:block}
.photo-preview-button:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
.photo-zoom-hint{position:absolute;right:7px;bottom:7px;font-size:12px;font-weight:600;padding:4px 7px;background:#1f2222dd;color:var(--white);border-radius:4px}
.rj-lightbox[hidden]{display:none!important}
.rj-lightbox{position:fixed;inset:0;z-index:10000;background:rgba(9,11,11,.97);color:var(--white);display:flex;flex-direction:column;padding:clamp(12px,2vw,28px);gap:12px;overscroll-behavior:contain}
.rj-lightbox-toolbar{display:flex;align-items:center;justify-content:space-between;min-height:40px;gap:16px}
.rj-lightbox-count{color:#dadbd8;font-size:14px;font-variant-numeric:tabular-nums}
.rj-lightbox-close{background:transparent;color:var(--white);border:1px solid #68706c;border-radius:50%;font-size:32px;line-height:1;width:42px;height:42px;padding:0}
.rj-lightbox-stage{display:grid;grid-template-columns:42px minmax(0,1fr) 42px;gap:10px;align-items:center;justify-items:center;flex:1;min-height:0}
.rj-lightbox-stage img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;min-width:0;min-height:0}
.rj-lightbox-arrow{background:transparent;color:var(--white);border:0;padding:0;border-radius:0;font-size:30px;width:42px;height:42px;line-height:1}
.rj-lightbox-arrow[hidden]{visibility:hidden;display:block}
.rj-lightbox-close:hover{background:#4a514e}.rj-lightbox-arrow:hover{background:transparent;color:#ffffff;opacity:.75}
.rj-lightbox-close:focus-visible,.rj-lightbox-arrow:focus-visible,.rj-lightbox-bottom .button:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
.rj-lightbox-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;min-height:55px}
.rj-lightbox-filename{overflow-wrap:anywhere;font-size:14px;color:#dadbd8}
.rj-lightbox-bottom .button{display:inline-block;white-space:nowrap}
@media(max-width:600px){.rj-lightbox{padding:10px}.rj-lightbox-stage{grid-template-columns:32px minmax(0,1fr) 32px;gap:4px}.rj-lightbox-arrow{width:32px;height:40px;border-radius:0}.rj-lightbox-bottom{justify-content:center;text-align:center}.rj-lightbox-filename{flex-basis:100%}}

/* Phase 4: zuschaltbare Metadaten – Daten ausschließlich aus zugriffsgeschütztem Original */
.rj-lightbox-meta[hidden]{display:none!important}
.rj-lightbox-meta{border:1px solid #525954;border-radius:8px;background:#202525;padding:12px 16px;max-height:min(26vh,250px);overflow:auto;flex-shrink:0}
.rj-lightbox-meta-head{display:flex;align-items:center;justify-content:space-between;gap:15px;color:#f6f3ed;font-size:14px}
.rj-lightbox-meta-head span{color:#c6c7c4;font-size:13px}
.rj-lightbox-meta dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:25px;row-gap:5px;margin:10px 0 0}
.rj-lightbox-meta dt{font-size:12px;color:#bc9d77;margin:6px 0 0}
.rj-lightbox-meta dd{font-size:14px;overflow-wrap:anywhere;margin:0 0 6px;white-space:pre-wrap}
.rj-lightbox-bottom-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.rj-meta-toggle{background:transparent;color:#f6f3ed;border:1px solid #68706c;font-size:14px;padding:10px 14px}
.rj-meta-toggle:hover{background:#3b4140}
.rj-meta-toggle:focus-visible{outline:3px solid #bc9d77;outline-offset:3px}
@media(max-width:600px){.rj-lightbox-meta dl{grid-template-columns:1fr}.rj-lightbox-meta{max-height:28vh}.rj-lightbox-bottom-actions{justify-content:center}.rj-lightbox-bottom-actions .button{white-space:normal}}

/* UI-Feinschliff 18.11.2026: Abstand zwischen Galerietitel und Öffnen-Button. */
.tile > .button { display: inline-flex; align-items: center; margin-top: 16px; }

/* Phase 5 – Variante A: zentrierte Bildbuehne und Info-Karte ohne internen Scrollbalken.
   Die gesamte Lightbox darf bei wenig Viewport-Hoehe scrollen; keine Metadaten werden abgeschnitten. */
.rj-lightbox{
  align-items:center;
  overflow-y:auto;
  overflow-x:hidden;
  padding:clamp(12px, 1.8vw, 28px);
  gap:14px;
}
.rj-lightbox-toolbar,
.rj-lightbox-stage,
.rj-lightbox-meta,
.rj-lightbox-bottom{
  width:100%;
  max-width:1100px;
  margin-left:auto;
  margin-right:auto;
}
.rj-lightbox-toolbar{
  flex:0 0 auto;
  position:relative;
}
.rj-lightbox-stage{
  flex:1 1 auto;
  min-height:160px;
  grid-template-columns:44px minmax(0,1fr) 44px;
  gap:clamp(8px, 1.8vw, 22px);
}
.rj-lightbox-stage img{
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
}
.rj-lightbox-meta{
  flex:0 0 auto;
  width:min(100%, 880px);
  max-width:880px;
  max-height:none;
  overflow:visible;
  padding:18px 22px;
  border-radius:12px;
  box-shadow:0 12px 38px rgba(0,0,0,.15);
}
.rj-lightbox-meta dl{
  grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:32px;
  row-gap:10px;
  margin-top:16px;
}
.rj-lightbox-meta dt{
  margin:0 0 3px;
  color:var(--gold);
  font-size:12px;
  font-weight:600;
}
.rj-lightbox-meta dd{
  font-size:14px;
  line-height:1.4;
  margin:0;
  overflow-wrap:anywhere;
}
.rj-lightbox-bottom{
  flex:0 0 auto;
}
/* Mit offenen Bildinformationen verlaesst das Bild den flexiblen Vollbildmodus.
   Dadurch bleibt die Infokarte vollstaendig im Seitenfluss und ist niemals selbst scrollbar. */
.rj-lightbox.rj-lightbox--meta-open .rj-lightbox-stage{
  flex:0 0 auto;
  height:clamp(220px, 48dvh, 560px);
  min-height:0;
}
@media(max-width:700px){
  .rj-lightbox{gap:12px;padding:12px}
  .rj-lightbox-stage{grid-template-columns:34px minmax(0,1fr) 34px;gap:5px}
  .rj-lightbox.rj-lightbox--meta-open .rj-lightbox-stage{height:clamp(180px, 40dvh, 400px)}
  .rj-lightbox-meta{padding:14px 16px}
  .rj-lightbox-meta dl{grid-template-columns:1fr;row-gap:12px}
  .rj-lightbox-bottom{justify-content:space-between;text-align:left}
}


/* Phase 5 Feinschliff – 18.11.2026
   Bildinfos, Toolbar und Footer an der realen Bildbreite ausrichten. */
.rj-lightbox{
  --rj-lightbox-media-width:min(100%, 880px);
}
.rj-lightbox-toolbar,
.rj-lightbox-meta,
.rj-lightbox-bottom{
  width:min(100%, var(--rj-lightbox-media-width));
  max-width:none;
}
.rj-lightbox-toolbar{
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.rj-lightbox-count{
  display:block;
  min-width:0;
  text-align:left;
}
.rj-lightbox-close{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 42px;
  padding:0;
  line-height:1;
}
.rj-lightbox-stage{
  width:100%;
  max-width:calc(var(--rj-lightbox-media-width) + 88px + clamp(8px, 1.8vw, 22px) * 2);
}
.rj-lightbox-meta{
  width:min(100%, var(--rj-lightbox-media-width));
  max-width:none;
}
.rj-lightbox-bottom{
  width:min(100%, var(--rj-lightbox-media-width));
  max-width:none;
  align-items:flex-end;
}
.rj-lightbox-filename{
  flex:1 1 auto;
  min-width:0;
  text-align:left;
}
.rj-lightbox-bottom-actions{
  margin-left:auto;
  justify-content:flex-end;
}
@media(max-width:700px){
  .rj-lightbox-stage{
    max-width:calc(var(--rj-lightbox-media-width) + 68px + 10px);
  }
  .rj-lightbox-toolbar,
  .rj-lightbox-meta,
  .rj-lightbox-bottom{
    width:min(100%, var(--rj-lightbox-media-width));
  }
  .rj-lightbox-bottom{
    align-items:stretch;
  }
  .rj-lightbox-bottom-actions{
    width:100%;
    margin-left:0;
    justify-content:space-between;
  }
}


/* Feinschliff: Lightbox-Schließen ohne Kreis, 18.11.2026. */
.rj-lightbox-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: var(--white);
  font-size: 31px;
  line-height: 1;
  font-family: Arial, sans-serif;
  font-weight: 400;
  text-align: center;
  cursor: pointer;
}
.rj-lightbox-close:hover { background: transparent; color: var(--gold); }
.rj-lightbox-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Galerie-Feinschliff 18.11.2026: Vorschaubilder ohne sichtbaren Zoom-Hinweis. */
.photo-preview-button .photo-zoom-hint{display:none!important}
.photo-preview-button{cursor:zoom-in}

/* 18.11.2026 – Galerie-Kacheln: alle Öffnen-Buttons auf gleicher Höhe. */
.grid > .tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.grid > .tile > h2 {
  width: 100%;
  margin-bottom: 24px;
}
.grid > .tile > .button {
  margin-top: auto;
  white-space: nowrap;
  max-width: 100%;
}


/* Kundenportal: Mein Konto am linken Rand der ersten Galerie-Schaltflaeche.
   Auch bei nur einer Galerie bleibt das Raster-Innenmass unveraendert. */
.rj-account-action { margin:30px 0 0; padding-left:22px; }

/* Galerie per E-Mail teilen: lesbare und gut bedienbare Formularelemente. */
#share-days {
  display:block;
  width:100%;
  max-width:220px;
  min-height:46px;
  padding:10px 12px;
  border:1px solid #66706c;
  border-radius:7px;
  background:var(--white);
  color:var(--bg);
  font:inherit;
  font-size:16px;
}
.rj-share-download {
  display:flex;
  align-items:center;
  gap:12px;
  min-height:44px;
  cursor:pointer;
}
.rj-share-download input[type="checkbox"] {
  flex:0 0 23px;
  width:23px;
  height:23px;
  margin:0;
  padding:0;
  accent-color:var(--gold);
  cursor:pointer;
}

/* Komfortpaket 2A: einheitliches quadratisches Galerie-Raster fuer Kunden und Empfaenger. */
.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:9px;margin-top:18px}
.photo-grid .photo-card{padding:4px;min-width:0;overflow:hidden}
.photo-grid .photo-preview-button,.photo-grid .photo-preview-button img{display:block;width:100%;height:auto;aspect-ratio:1/1;border-radius:4px}
.photo-grid .photo-preview-button img{object-fit:cover}
.photo-grid .photo-card > p,.photo-grid .photo-card > a{display:none}
@media(max-width:600px){.photo-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.photo-grid .photo-card{padding:2px}.photo-grid .photo-preview-button{border-radius:3px}}

/* Komfortpaket 2B: Favoriten; nur in Kundenansicht, nicht in der CMS-Verwaltung. */
#gallery-photos .photo-card{position:relative}
#gallery-photos .photo-card[hidden]{display:none!important}
.rj-favorite-toggle{position:absolute;top:8px;right:8px;z-index:3;border:1px solid #b9b9ae;border-radius:50%;width:34px;height:34px;padding:0;background:#171b1bcf;color:#e6e6e1;font-size:22px;line-height:1;display:grid;place-items:center;cursor:pointer}
.rj-favorite-toggle[aria-pressed="true"]{color:#f1b7a5;background:#392626f0;border-color:#f1b7a5}
.rj-favorite-toggle:focus-visible{outline:3px solid #bc9d77;outline-offset:2px}
.rj-favorites-filter{background:transparent;color:#f6f3ed;border:1px solid #777;padding:12px 14px}
#rj-favorites-download[hidden]{display:none}
@media(max-width:600px){.rj-favorite-toggle{top:4px;right:4px;width:28px;height:28px;font-size:19px}}

/* Komfortpaket 2: begrenzte Freigabe nur fuer explizit ausgewaehlte Bilder. */
.rj-share-photo-scope{margin:20px 0;padding:16px;border:1px solid #495050;border-radius:8px}
.rj-share-photo-scope summary{cursor:pointer;font-weight:700;color:#bc9d77}
.rj-share-photo-select{grid-template-columns:repeat(auto-fill,minmax(105px,1fr));gap:7px}
.rj-share-photo-option{display:block;position:relative;margin:0;cursor:pointer;aspect-ratio:1;border-radius:4px;overflow:hidden}
.rj-share-photo-option img{height:100%;width:100%;object-fit:cover;display:block}
.rj-share-photo-option input{position:absolute;top:6px;left:6px;z-index:2;width:23px;height:23px;accent-color:#bc9d77;margin:0}
.rj-share-photo-option:has(input:checked){outline:3px solid #bc9d77;outline-offset:-3px}
@media(max-width:600px){.rj-share-photo-select{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}}

/* Favoriten auch in der Grossansicht: vorhandene Galerie-Favoritenfunktion. */
.rj-lightbox-toolbar-actions{display:flex;align-items:center;gap:14px;margin-left:auto}
.rj-lightbox-favorite{width:42px;height:42px;display:inline-grid;place-items:center;flex:0 0 42px;padding:0;border:1px solid #68706c;border-radius:50%;background:#202525;color:#e6e6e1;font-size:27px;line-height:1;cursor:pointer}
.rj-lightbox-favorite[aria-pressed="true"]{color:#f1b7a5;background:#392626;border-color:#f1b7a5}
.rj-lightbox-favorite[disabled]{opacity:.5;cursor:wait}
.rj-lightbox-favorite[hidden]{display:none!important}
.rj-lightbox-favorite:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
@media(max-width:600px){.rj-lightbox-toolbar-actions{gap:10px}.rj-lightbox-favorite{width:40px;height:40px;flex-basis:40px}}

/* Gallery title image: only a protected preview, originals are unchanged. */
.rj-gallery-list-cover{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:7px;margin:0 0 16px}


/* RJ Lightbox-Redesign 20.11.2026: Galerie als klare Bildbuehne, Symbole OHNE Kreise. */
.rj-lightbox{
  --rj-lightbox-media-width:min(100%, 980px);
  background:#111414;
  padding:clamp(12px,1.6vw,24px);
  gap:clamp(10px,1.4vh,16px);
  animation:rj-lightbox-appear .18s ease-out;
}
@keyframes rj-lightbox-appear { from{opacity:0} to{opacity:1} }
.rj-lightbox-toolbar{
  width:min(100%,1100px);
  max-width:1100px;
  min-height:52px;
  gap:16px;
  border-bottom:1px solid rgba(188,157,119,.16);
  padding-bottom:8px;
}
.rj-lightbox-ident{display:flex;align-items:center;gap:16px;min-width:0}
.rj-lightbox-top-filename{font-size:13px;color:#bcbfbc;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:40vw;border-left:1px solid #535958;padding-left:16px}
.rj-lightbox-toolbar-actions{gap:clamp(12px,1.6vw,24px)}
.rj-lightbox .rj-lightbox-favorite,
.rj-lightbox .rj-lightbox-close,
.rj-lightbox .rj-lightbox-top-action{
  appearance:none;display:inline-flex;align-items:center;justify-content:center;
  width:38px;height:42px;flex:0 0 38px;
  padding:0;margin:0;border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;
  color:#f0f1ed;text-decoration:none;font-size:27px;line-height:1;font-weight:400;
  transition:color .16s ease,opacity .16s ease;cursor:pointer;
}
.rj-lightbox .rj-lightbox-favorite{font-size:27px}
.rj-lightbox .rj-lightbox-favorite[aria-pressed="true"]{color:#efb5a4}
.rj-lightbox .rj-lightbox-top-action{font-size:28px}
.rj-lightbox .rj-lightbox-top-download{font-size:30px}
.rj-lightbox .rj-lightbox-close{font-size:32px}
.rj-lightbox .rj-lightbox-top-action:hover,
.rj-lightbox .rj-lightbox-close:hover,
.rj-lightbox .rj-lightbox-favorite:hover {color:#bc9d77!important;opacity:1}
.rj-lightbox .rj-lightbox-top-action:focus-visible,
.rj-lightbox .rj-lightbox-close:focus-visible,
.rj-lightbox .rj-lightbox-favorite:focus-visible {outline:2px solid #bc9d77;outline-offset:3px}
.rj-lightbox-stage{max-width:1180px;gap:clamp(5px,1.2vw,18px);min-height:140px}
.rj-lightbox-stage img{box-shadow:0 18px 58px #0007;border-radius:3px}
.rj-lightbox .rj-lightbox-arrow{
  border:0!important;border-radius:0!important;background:transparent!important;
  box-shadow:none!important;color:#efefeb;opacity:.85;
  width:44px;height:52px;font-size:42px;line-height:1;
  padding:0;transition:opacity .15s,color .15s;
}
.rj-lightbox .rj-lightbox-arrow:hover{color:#bc9d77;opacity:1}
.rj-lightbox-bottom{min-height:42px;gap:12px}
.rj-lightbox-bottom .rj-lightbox-filename{display:none}
.rj-lightbox-bottom-actions{margin-left:auto}
.rj-lightbox-filmstrip{
  display:flex;flex:0 0 auto;gap:9px;align-items:center;
  max-width:min(100%,1100px);width:min(100%,1100px);
  margin:0 auto;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;
  scroll-padding-inline:8px;padding:10px 2px 4px;
  border-top:1px solid rgba(188,157,119,.25);
  overscroll-behavior-x:contain;
}
.rj-lightbox-thumb{
  display:block;flex:0 0 clamp(56px,7vw,76px);
  aspect-ratio:1/1;padding:2px;
  border:2px solid transparent;border-radius:4px;background:transparent;
  opacity:.7;cursor:pointer;overflow:hidden;
}
.rj-lightbox-thumb img{display:block;width:100%;height:100%;object-fit:cover;border-radius:2px}
.rj-lightbox-thumb.is-current{opacity:1;border-color:#bc9d77}
.rj-lightbox-thumb:hover{opacity:1}
.rj-lightbox-thumb[hidden]{display:none!important}
.rj-lightbox-thumb:focus-visible{outline:2px solid #bc9d77;outline-offset:2px}
@media(max-width:700px){
  .rj-lightbox{padding:10px;gap:8px}
  .rj-lightbox-toolbar{width:100%;gap:6px;min-height:40px}
  .rj-lightbox-toolbar-actions{gap:6px}
  .rj-lightbox .rj-lightbox-favorite,.rj-lightbox .rj-lightbox-close,.rj-lightbox .rj-lightbox-top-action{width:31px;height:36px;flex-basis:31px;font-size:23px}
  .rj-lightbox .rj-lightbox-arrow{width:28px;height:38px;font-size:32px}
  .rj-lightbox-stage{grid-template-columns:28px minmax(0,1fr) 28px;gap:3px}
  .rj-lightbox-top-filename{display:none}
  .rj-lightbox-filmstrip{gap:5px;padding-top:8px}
  .rj-lightbox-thumb{flex-basis:53px}
  .rj-lightbox-bottom-actions{justify-content:center;gap:8px}
  .rj-lightbox-bottom-actions .button,.rj-lightbox-bottom-actions button{font-size:12px;padding:9px 10px}
}
@media(max-height:650px){.rj-lightbox-thumb{flex-basis:50px}.rj-lightbox{gap:6px}}
@media(prefers-reduced-motion:reduce){.rj-lightbox{animation:none}}

/* Groansicht: einheitliche Farbe ohne radialen Verlauf / Banding. */
.rj-lightbox{background:#111414!important;background-image:none!important}
.rj-lightbox-share svg{display:block;width:23px;height:23px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.rj-lightbox .rj-lightbox-share[hidden]{display:none!important}
@media(max-width:700px){.rj-lightbox-share svg{width:21px;height:21px}}


/* Kundenportal 20.11.2026 – breite, responsive Auswahl fuer Foto-Freigaben.
   Nur galerie-teilen.php (rj-share-invite-form), nicht die uebrigen Formulare. */
.rj-share-invite-form{width:100%;max-width:none;min-width:0}
.rj-share-invite-form #share-email{width:100%;max-width:510px}
.rj-share-invite-form #share-days{max-width:250px}
.rj-share-invite-form .rj-share-photo-scope{width:100%;max-width:none;margin-top:24px}
.rj-share-invite-form .rj-share-photo-select{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:9px;
  margin-top:16px;
  min-width:0;
}
.rj-share-invite-form .rj-share-photo-option{
  display:block;position:relative;min-width:0;aspect-ratio:1;
  border:1px solid #555d59;border-radius:5px;overflow:hidden;
  outline:0;transition:border-color .12s,box-shadow .12s;
}
.rj-share-invite-form .rj-share-photo-option img{display:block;width:100%;height:100%;object-fit:cover}
.rj-share-invite-form .rj-share-photo-option input[type=checkbox]{
  position:absolute;top:6px;left:6px;z-index:2;
  width:17px;height:17px;margin:0;padding:0;
  cursor:pointer;accent-color:#bc9d77;
}
.rj-share-invite-form .rj-share-photo-option:has(input:checked){
  border-color:#bc9d77;outline:2px solid #bc9d77;outline-offset:-2px;
  box-shadow:inset 0 0 0 1px #bc9d77;
}
.rj-share-invite-form .rj-share-photo-option:focus-within{outline:2px solid #f6f3ed;outline-offset:2px}
@media(max-width:1000px){
  .rj-share-invite-form .rj-share-photo-select{grid-template-columns:repeat(6,minmax(0,1fr))}
}
@media(max-width:800px){
  .rj-share-invite-form .rj-share-photo-select{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
}
@media(max-width:600px){
  .rj-share-invite-form .rj-share-photo-scope{padding:12px}
  .rj-share-invite-form .rj-share-photo-select{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .rj-share-invite-form .rj-share-photo-option input[type=checkbox]{top:5px;left:5px;width:16px;height:16px}
}
