/* ── KG Goubloch Galerie ── */

/* Schriften kommen vom Styleguide-Plugin (Nunito/Fredoka), keine eigenen Google-Fonts mehr */

.goubloch-gallery-wrap {
  font-family: 'Nunito', sans-serif;
  padding: 1rem 0 2rem;
}

/* ── Filter ── */

.gg-filters { margin-bottom: 1.25rem; }

.gg-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
}

.gg-label {
  font-size: 12px;
  font-weight: 500;
  color: #4E5251;
  text-transform: uppercase;
  letter-spacing: .08em;
  min-width: 60px;
  flex-shrink: 0;
}

.gg-divider {
  height: 1px;
  background: #e5e5e5;
  margin: 6px 0 8px;
}

/* Pills */
.gg-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 400;
  border: 1px solid #ddd;
  background: #fff;
  color: #4E5251;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  font-family: 'Nunito', sans-serif;
  line-height: 1.4;
}
.gg-pill:hover { border-color: #aaa; color: #222; }

.gg-pill-all.active        { background: #2C2C2A; border-color: #2C2C2A; color: #F1EFE8; font-weight: 500; }
.gg-pill-rosenmontag.active  { background: #FCEBEB; border-color: #F09595; color: #501313; font-weight: 500; }
.gg-pill-prunksitzung.active { background: #E6F1FB; border-color: #85B7EB; color: #042C53; font-weight: 500; }
.gg-pill-orden.active        { background: #FAEEDA; border-color: #FAC775; color: #412402; font-weight: 500; }
.gg-pill-prinzenpaar.active  { background: #EEEDFE; border-color: #AFA9EC; color: #26215C; font-weight: 500; }
.gg-pill-praesidenten.active { background: #E1F5EE; border-color: #5DCAA5; color: #04342C; font-weight: 500; }
.gg-pill-garde.active        { background: #FAECE7; border-color: #F0997B; color: #4A1B0C; font-weight: 500; }
.gg-pill-sonstige.active     { background: #F1EFE8; border-color: #B4B2A9; color: #2C2C2A; font-weight: 500; }

.gg-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.gg-pill-rosenmontag  .gg-dot { background: #E24B4A; }
.gg-pill-prunksitzung .gg-dot { background: #185FA5; }
.gg-pill-orden        .gg-dot { background: #BA7517; }
.gg-pill-prinzenpaar  .gg-dot { background: #534AB7; }
.gg-pill-praesidenten .gg-dot { background: #0F6E56; }
.gg-pill-garde        .gg-dot { background: #993C1D; }
.gg-pill-sonstige     .gg-dot { background: #888780; }

/* Jahr-Eingabe */
.gg-yr-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px 3px 12px;
  border-radius: 99px;
  border: 1px solid #ddd;
  background: #fff;
}
.gg-yr-wrap label {
  font-size: 13px;
  color: #4E5251;
  white-space: nowrap;
}
.gg-yr-input {
  width: 64px;
  padding: 3px 6px;
  border-radius: 99px;
  border: none;
  background: #f5f5f3;
  color: #222;
  font-size: 13px;
  font-family: 'Nunito', sans-serif;
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
}
.gg-yr-input::-webkit-outer-spin-button,
.gg-yr-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.gg-yr-input:focus { background: #eaeae8; }
.gg-yr-input::placeholder { color: #9A9C9B; }
.gg-yr-sep { font-size: 12px; color: #9A9C9B; }
.gg-yr-clear {
  display: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: #eee;
  color: #4E5251;
  cursor: pointer;
  font-size: 11px;
  flex-shrink: 0;
  padding: 0;
}
.gg-yr-clear:hover { background: #ddd; }
.gg-yr-error {
  font-size: 11px;
  color: #c0392b;
  display: none;
}

/* Count */
.gg-count {
  font-size: 13px;
  color: #4E5251;
  margin-bottom: 1rem;
}
.gg-count strong {
  font-family: 'Fredoka', sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: #222;
}

/* ── Mosaik ── */

.gg-mosaic {
  columns: 3;
  column-gap: 4px;
}
@media (max-width: 768px) { .gg-mosaic { columns: 2; } }
@media (max-width: 480px) { .gg-mosaic { columns: 1; } }

.gg-item {
  break-inside: avoid;
  position: relative;
  margin-bottom: 4px;
  overflow: hidden;
  cursor: pointer;
  background: #f0f0ee;
  display: block;
}
.gg-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .4s ease;
}
.gg-item:hover img { transform: scale(1.05); }

.gg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .2s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px 12px;
}
.gg-item:hover .gg-overlay { opacity: 1; }

.gg-ov-year {
  font-family: 'Fredoka', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  line-height: 1;
}
.gg-ov-cat {
  font-size: 11px;
  color: rgba(255,255,255,.75);
  margin-top: 2px;
}
.gg-ov-tags {
  display: flex;
  gap: 3px;
  margin-top: 5px;
  flex-wrap: wrap;
}
.gg-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}
.gg-tag-rosenmontag  { background: #FCEBEB; color: #501313; }
.gg-tag-prunksitzung { background: #E6F1FB; color: #042C53; }
.gg-tag-orden        { background: #FAEEDA; color: #412402; }
.gg-tag-prinzenpaar  { background: #EEEDFE; color: #26215C; }
.gg-tag-praesidenten { background: #E1F5EE; color: #04342C; }
.gg-tag-garde        { background: #FAECE7; color: #4A1B0C; }
.gg-tag-sonstige     { background: #F1EFE8; color: #2C2C2A; }

.gg-loading, .gg-no-results {
  padding: 3rem;
  text-align: center;
  color: #aaa;
  font-size: 14px;
  columns: unset;
  display: block;
  width: 100%;
}

/* ── Lightbox ── */

.gg-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gg-lb-inner {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gg-lb-inner img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  display: block;
  border-radius: 2px;
}
.gg-lb-caption {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.65);
  text-align: center;
  font-family: 'Nunito', sans-serif;
}
.gg-lb-close,
.gg-lb-prev,
.gg-lb-next {
  position: fixed;
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  font-size: 18px;
  line-height: 1;
}
.gg-lb-close:hover,
.gg-lb-prev:hover,
.gg-lb-next:hover { background: rgba(255,255,255,.25); }

.gg-lb-close { top: 20px; right: 20px; width: 40px; height: 40px; font-size: 16px; }
.gg-lb-prev  { left: 16px;  top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.gg-lb-next  { right: 16px; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }

@media (max-width: 600px) {
  .gg-lb-prev { left: 6px; }
  .gg-lb-next { right: 6px; }
}
