/* Galerie «Astrofotos» (galerie.html): Bühne mit Tabs und Grossansicht. Nutzt die Farben aus site.css.
   Übernommen aus dem Entwurf ideensammlung/galerie-entwurf/astro.css (29.11.2026). */

.sec.sec--wide { width: min(1040px, 100%); justify-self: center; }
.ag { margin-top: 18px; }

/* ---------- Personen (Tabs) ---------- */
.ag-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.ag-tabs::-webkit-scrollbar { display: none; }
.ag-tabs button { flex: 1 0 auto; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05); color: var(--body); font: inherit; text-align: left; cursor: pointer; transition: background .2s, border-color .2s; }
.ag-tabs button:hover { background: rgba(255, 255, 255, .1); }
.ag-tabs button[aria-selected="true"] { background: var(--acc); border-color: var(--acc); color: #0a0c20; }
.ag-tabs button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ag-tabs b { display: block; font-size: 15px; line-height: 1.2; } .ag-tabs small { display: block; font-size: 12.5px; opacity: .8; }
.ag-ava { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--c); color: #0a0c20; font-weight: 900; font-size: 14px; letter-spacing: .04em; }

/* ---------- Titel und Angaben (Aufzählung) ---------- */
.ag-desc h3 { margin: 0 0 8px; }
.ag-data { margin: 0; padding-left: 1.2em; font-size: 14px; line-height: 1.5; color: var(--body); }
.ag-data li + li { margin-top: 2px; }
.ag-data span { color: var(--muted); }
.ag-more { margin: 12px 4px 0; font-size: 14px; } /* unter der Bildvorschau */
.ag img { display: block; }
.ag button { -webkit-tap-highlight-color: transparent; }
.ag-zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }

/* ---------- Bühne ---------- */
.ag-stage { position: relative; margin: 14px 0 0; border-radius: 18px; overflow: hidden; background: #000; }
.ag-stage img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: #000; }
.ag-stage .lb-btn { top: calc(50% - 24px); width: 46px; height: 46px; } .ag-stage .ag-prev { left: 12px; } .ag-stage .ag-next { right: 12px; }
.ag-count { position: absolute; left: 14px; top: 12px; padding: 2px 10px; border-radius: 999px; background: rgba(9, 11, 30, .7); font-size: 13px; color: #fff; }
.ag-stage + .ag-desc { padding: 14px 4px 4px; }
/* Bildvorschau mehrzeilig (29.11.2026, vorher seitlich scrollende Leiste); auf dem Handy ausgeblendet, dort blättert man mit den Pfeilen.
   Ausgeblendete Vorschaubilder (loading="lazy") werden vom Browser nicht geladen. */
.ag-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 14px; }
/* Überschrift über der Bildvorschau (unter «Link kopieren»); auf dem Handy mit der Vorschau ausgeblendet */
.ag-thumbs-title { margin: 22px 4px 0; font-size: 17px; }
.ag-thumbs-title + .ag-thumbs { margin-top: 10px; }
@media (max-width: 599px) { .ag-thumbs, .ag-thumbs-title { display: none; } }
.ag-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #000; cursor: pointer; opacity: .6; transition: opacity .2s, border-color .2s; }
.ag-thumbs button:hover { opacity: .9; } .ag-thumbs button[aria-current] { opacity: 1; border-color: var(--acc); }
.ag-thumbs img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- Grossansicht ---------- */
.ag-dialog { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(3, 4, 14, .94); color: #fff; }
.ag-dialog::backdrop { background: rgba(3, 4, 14, .6); }
.ag-dialog[open] { display: grid; place-items: center; }
.ag-dialog figure { margin: 0; display: grid; justify-items: center; gap: 12px; max-width: calc(100vw - 150px); }
.ag-dialog img { max-width: 100%; max-height: calc(100dvh - 260px); object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .7); }
.ag-dialog figcaption { max-width: 760px; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .88); text-align: center; }
/* Angaben in der Grossansicht: kompakt in Zeilen nebeneinander, mit Punkt als Trenner */
.ag-dialog .ag-data { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 14px; margin-top: 4px; padding: 0; list-style: none; font-size: 13px; color: rgba(255, 255, 255, .75); }
.ag-dialog .ag-data li + li { margin-top: 0; }
.ag-dialog .ag-data li::before { content: "•"; margin-right: 6px; color: rgba(255, 255, 255, .45); }
.ag-dialog .ag-data span { color: rgba(255, 255, 255, .55); }
.ag-d-prev { left: 18px; top: calc(50% - 26px); } .ag-d-next { right: 18px; top: calc(50% - 26px); } .ag-d-close { right: 18px; top: 18px; }
@media (max-width: 700px) {
  .ag-dialog figure { max-width: calc(100vw - 24px); }
  .ag-d-prev, .ag-d-next { top: auto; bottom: 16px; }
  .ag-dialog img { max-height: calc(100dvh - 320px); }
  .ag-dialog figcaption { padding-bottom: 64px; font-size: 14px; }
}

/* ---------- «Link kopieren» (unter den Angaben und in der Grossansicht) ---------- */
.ag-copy { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06); color: var(--body); font: inherit; font-size: 14px; cursor: pointer; transition: background .2s, border-color .2s; }
.ag-copy:hover { background: rgba(255, 255, 255, .12); }
.ag-copy:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ag-copy.is-done { border-color: var(--acc); color: #fff; }
.ag-dialog .ag-copy { margin-top: 10px; color: #fff; border-color: rgba(255, 255, 255, .3); }
