/* HGK Bildergalerie – Standalone-Anzeige (www.h-g-k.de). HGK-Blau #002e68. */
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: #1a1a1a; background: #f4f6f9; }
.hgkgal { max-width: 1200px; margin: 0 auto; padding: 0 16px 40px; }
/* Eingebettet in Contenido: keine eigene Breitenbegrenzung/Polster (Rahmen kommt von der Seite) */
/* In Contenido liegt .hgkgal in einem Flex-Container (.contentWrapper). Ohne
   feste Breite schrumpft das Flex-Item auf Inhaltsbreite (z. B. 3 Spalten bei
   Bereichsfilter). Daher: volle Breite bis max. 1280px, zentriert, min-width:0. */
.hgkgal-embed { flex: 1 1 auto; width: 100%; min-width: 0; max-width: 1280px; margin: 0 auto; padding: 0 16px 40px; }
.hgkgal-embed .hgkgal-h1 { margin-top: 0; }

.hgkgal-head { display: flex; align-items: center; gap: 18px; padding: 18px 0; border-bottom: 2px solid #002e68; margin-bottom: 22px; }
.hgkgal-home img { max-height: 48px; width: auto; display: block; }
.hgkgal-brand { display: flex; flex-direction: column; line-height: 1.15; }
.hgkgal-brand .b1 { color: #aab2bd; font-size: 13px; letter-spacing: .5px; }
.hgkgal-brand .b2 { color: #002e68; font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }

.hgkgal-h1 { color: #002e68; font-size: 26px; margin: 8px 0 6px; }
.hgkgal-back a, .hgkgal-back { font-size: 14px; }
.hgkgal-back a { color: #002e68; text-decoration: none; }
.hgkgal-back a:hover { text-decoration: underline; }

.hgkgal-filter { margin: 14px 0; }
.hgkgal-filter select { padding: 7px 10px; border: 1px solid #ccc; border-radius: 6px; font: inherit; }
.hgkgal-count { color: #5b6b82; font-size: 14px; margin: 10px 0 14px; }

.hgkgal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.hgkgal-item { margin: 0; background: #fff; border: 1px solid #e3e8f0; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.hgkgal-zoom { display: block; aspect-ratio: 4 / 3; background: #e9eef5; cursor: zoom-in; }
.hgkgal-zoom img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hgkgal-item figcaption { padding: 7px 10px; font-size: 12px; color: #5b6b82; }

.hgkgal-overview { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.hgkgal-ovcard { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: #fff; border: 1px solid #e3e8f0; border-radius: 10px; text-decoration: none; color: #1a1a1a; transition: border-color .15s, box-shadow .15s; }
.hgkgal-ovcard:hover { border-color: #002e68; box-shadow: 0 3px 10px rgba(0,46,104,.12); }
.hgkgal-ovcard .ic { color: #002e68; font-size: 13px; opacity: .6; }
.hgkgal-ovcard .t { color: #002e68; font-weight: 700; font-size: 16px; }
.hgkgal-ovcard .n { color: #5b6b82; font-size: 13px; }

.hgkgal-pages { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 22px 0; }
.hgkgal-pages .pg { padding: 6px 11px; border: 1px solid #cfd8e6; border-radius: 6px; text-decoration: none; color: #002e68; font-size: 14px; }
.hgkgal-pages .pg:hover { background: #eef2f8; }
.hgkgal-pages .pg.cur { background: #002e68; color: #fff; border-color: #002e68; }

.hgkgal-hint { margin-top: 26px; font-size: 13px; color: #5b6b82; }
.hgkgal-hint a { color: #002e68; }
.hgkgal-foot { margin-top: 30px; padding-top: 16px; border-top: 1px solid #e3e8f0; color: #aab2bd; font-size: 12px; }

/* Lightbox mit Vorschau-Karussell (Spalten-Layout: Buehne oben, Streifen unten) */
.hgkgal-lb { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: none; flex-direction: column; z-index: 99999; }
.hgkgal-lb.open { display: flex; }
.hgkgal-lb-stage { flex: 1 1 auto; position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 44px 64px 30px; }
.hgkgal-lb-stage img { max-width: 86vw; max-height: 100%; object-fit: contain; box-shadow: 0 4px 30px rgba(0,0,0,.5); }
.hgkgal-lb .cap { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; color: #fff; font-size: 14px; }
.hgkgal-lb-strip { flex: 0 0 auto; display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; padding: 10px 12px; background: rgba(0,0,0,.45); }
.hgkgal-lb-strip { scroll-behavior: smooth; }
.hgkgal-lb-strip img { height: 92px; width: auto; flex: 0 0 auto; max-width: none; border: 2px solid transparent; border-radius: 4px; opacity: .55; object-fit: cover; cursor: pointer; transition: opacity .12s; user-select: none; -webkit-user-drag: none; }
.hgkgal-lb-strip img:hover { opacity: 1; }
.hgkgal-lb-strip img.active { opacity: 1; border-color: #fff; }
.hgkgal-lb button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: none; font-size: 30px; line-height: 1; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; z-index: 2; }
.hgkgal-lb button:hover { background: rgba(255,255,255,.25); }
.hgkgal-lb .close { top: 16px; right: 16px; font-size: 24px; }
.hgkgal-lb .prev { left: 16px; top: 44%; transform: translateY(-50%); }
.hgkgal-lb .next { right: 16px; top: 44%; transform: translateY(-50%); }
@media (max-width: 600px) {
	.hgkgal-lb .prev, .hgkgal-lb .next { width: 44px; height: 44px; font-size: 26px; }
	.hgkgal-lb-stage { padding: 40px 50px 26px; }
	.hgkgal-lb-strip img { height: 64px; }
	.hgkgal-h1 { font-size: 21px; }
}

/* --- Overrides gegen das Site-CSS innerhalb des Inhaltsbereichs --- */
.contentWrapper.hgkgalWrap { padding-top: 28px !important; }
.hgkgal-embed .hgkgal-pages { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; gap: 6px; align-items: center; height: auto !important; margin: 22px 0; }
.hgkgal-embed .hgkgal-pages .pg,
.hgkgal-embed .hgkgal-pages a.pg:link,
.hgkgal-embed .hgkgal-pages a.pg:visited,
.hgkgal-embed .hgkgal-pages a.pg:hover {
	display: inline-flex !important; align-items: center; width: auto !important; height: auto !important;
	padding: 6px 11px; border: 1px solid #cfd8e6; border-radius: 6px; background: #fff;
	color: #002e68 !important; text-decoration: none !important; font-size: 14px; line-height: 1.2;
}
.hgkgal-embed .hgkgal-pages a.pg:hover { background: #eef2f8; }
.hgkgal-embed .hgkgal-pages .pg.cur { background: #002e68 !important; color: #fff !important; border-color: #002e68; }
.hgkgal-embed .hgkgal-hint a, .hgkgal-embed .hgkgal-hint a:link, .hgkgal-embed .hgkgal-hint a:visited { color: #002e68 !important; }
.hgkgal-embed .hgkgal-h1 { color: #002e68 !important; }
