/* FPA Parks 0.7.4 – User-Bilder (Parkseite) + Meine Fotos (Kundenkonto). FPC-Blau #3a6d9c / #349ddc / #0b6ab7, weiße Karten auf Grau. */
.fpa-fotos { --fb1: #3a6d9c; --fb2: #349ddc; --fb3: #0b6ab7; margin-top: 14px; }
.fpa-fotos *, .fpa-fotos *::before, .fpa-fotos *::after { box-sizing: border-box; }
.fpa-fotos h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 2px !important; font-size: 1.08rem; font-weight: 800; color: #1f2328; }
.fpa-fotos__zahl { display: inline-block; min-width: 1.8em; padding: 1px 8px; border-radius: 999px; background: var(--fb1); color: #fff; font-size: .78rem; font-weight: 700; line-height: 1.5; text-align: center; }
.fpa-fotos__hinweis { margin: 0 0 10px !important; font-size: .84rem; color: #5f6670; }
.fpa-fotos__raster { list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.fpa-fotos__raster li { margin: 0 !important; padding: 0; list-style: none; }
.fpa-fotos__raster a { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 8px; background: #e9edf2; outline-offset: 2px; }
.fpa-fotos__raster a:focus-visible { outline: 3px solid var(--fb2); }
.fpa-fotos__raster img { display: block; width: 100%; height: 100% !important; max-width: none; object-fit: cover; transition: transform .25s ease; }
.fpa-fotos__raster a:hover img { transform: scale(1.05); }
.fpa-fotos__mehr { margin: 12px 0 0 !important; text-align: center; }
.fpa-fotos__knopf { display: inline-flex; align-items: center; gap: 6px; padding: 9px 20px; border: 0; border-radius: 999px; background: var(--fb3); color: #fff; font: inherit; font-weight: 700; cursor: pointer; transition: background .15s; }
.fpa-fotos__knopf:hover, .fpa-fotos__knopf:focus-visible { background: var(--fb2); }
.fpa-fotos__knopf small { font-weight: 500; opacity: .85; }
.fpa-fotos__knopf[disabled] { opacity: .6; cursor: wait; }
/* Meine Fotos: Akkordeon nach Monat (0.7.4), 4 Spalten quadratisch wie in der App */
.fpa-fotos--meine { margin-top: 0; }
.fpa-fotos__monat { margin: 0 0 8px; border: 1px solid #dde3ea; border-radius: 8px; background: #fff; }
.fpa-fotos__monat > summary { display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; list-style: none; font-weight: 800; color: #1f2328; }
.fpa-fotos__monat > summary::-webkit-details-marker { display: none; }
.fpa-fotos__monat > summary::before { content: "›"; display: inline-block; width: 1em; color: var(--fb3); font-size: 1.2em; line-height: 1; transition: transform .15s; }
.fpa-fotos__monat[open] > summary::before { transform: rotate(90deg); }
.fpa-fotos__monat > summary:focus-visible { outline: 3px solid var(--fb2); outline-offset: 2px; border-radius: 8px; }
.fpa-fotos__monat[open] > summary { border-bottom: 2px solid var(--fb2); }
.fpa-fotos__monat > ul { padding: 8px !important; }
.fpa-fotos__privat a::after { content: "🔒"; position: absolute; right: 4px; bottom: 4px; padding: 1px 4px; border-radius: 4px; background: rgba(0, 0, 0, .55); font-size: 11px; line-height: 1.4; }
.fpa-fotos__mitglieder a::after { content: "👥"; position: absolute; right: 4px; bottom: 4px; padding: 1px 4px; border-radius: 4px; background: rgba(255, 255, 255, .75); font-size: 11px; line-height: 1.4; opacity: .85; }
.fpa-fotos__privknopf { display: block; width: 100%; margin: 3px 0 0; padding: 3px 4px; border: 1px solid #c8d0da; border-radius: 4px; background: #fff; color: #1f2328; font: inherit; font-size: .72rem; line-height: 1.3; cursor: pointer; }
.fpa-fotos__privknopf:hover, .fpa-fotos__privknopf:focus-visible { border-color: var(--fb2); }
.fpa-fotos__privknopf[aria-pressed="true"] { background: #1f2328; border-color: #1f2328; color: #fff; }
.fpa-fotos__privknopf[disabled] { opacity: .6; cursor: wait; }
.fpa-fotos__raster--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.fpa-fotos__raster--4 a { border-radius: 4px; }
@media (max-width: 600px) {
  .fpa-fotos__raster { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .fpa-fotos__raster a { border-radius: 4px; }
  .fpa-fotos__raster--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
}
/* Lightbox */
.fpa-fotobox { position: fixed; inset: 0; z-index: 100000; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 56px 16px; background: rgba(10, 18, 28, .94); color: #fff; font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.fpa-fotobox[hidden] { display: none !important; }
.fpa-fotobox__bild { display: flex; align-items: center; justify-content: center; flex: 1 1 auto; min-height: 0; width: 100%; }
.fpa-fotobox__bild img { display: block; max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; border-radius: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); background: #1b2633; }
.fpa-fotobox__text { flex: 0 0 auto; width: 100%; max-width: 900px; margin-top: 10px; text-align: center; }
.fpa-fotobox__credit { font-weight: 700; color: #fff; }
.fpa-fotobox__credit small { font-weight: 400; color: #b8c7d6; margin-left: 6px; }
.fpa-fotobox__cap { margin-top: 2px; color: #dfe7ef; font-size: .9rem; overflow-wrap: anywhere; }
.fpa-fotobox__nr { margin-top: 2px; color: #8fa3b8; font-size: .78rem; }
.fpa-fotobox button { position: absolute; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(58, 109, 156, .85); color: #fff; cursor: pointer; font: 700 22px/1 system-ui, sans-serif; transition: background .15s; }
.fpa-fotobox button:hover, .fpa-fotobox button:focus-visible { background: var(--fb2, #349ddc); outline: none; }
.fpa-fotobox__zu { top: 10px; right: 12px; width: 40px; height: 40px; }
.fpa-fotobox__zurueck, .fpa-fotobox__vor { top: 50%; width: 44px; height: 44px; margin-top: -40px; font-size: 28px !important; }
.fpa-fotobox__zurueck { left: 8px; } .fpa-fotobox__vor { right: 8px; }
@media (max-width: 600px) {
  .fpa-fotobox { padding: 52px 6px 12px; }
  .fpa-fotobox__zurueck, .fpa-fotobox__vor { top: auto; bottom: 14px; margin-top: 0; width: 40px; height: 40px; }
  .fpa-fotobox__text { padding: 0 48px; }
}
body.fpa-fotobox-offen { overflow: hidden; }
