/* Galerie (Quadrat-Grid) */
.photo-gallery{
  width: 95%;
  max-width: var(--container, 850px); /* passt sich an, falls du im Haupt-CSS eine Container-Variable hast */
  margin: 28px auto 0;
  padding-bottom: 0;
  border-top: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

.photo-gallery h2 {
  text-align: center;
  margin: 0 0 14px 0;
}

.photo-gallery *{
  border-bottom: none;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.photo-grid a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  outline: none;
}

.photo-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform .15s ease;
}

.photo-grid a:hover img,
.photo-grid a:focus img {
  transform: scale(1.03);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 12px;
  background: #111;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 28px;
  line-height: 44px;
  cursor: pointer;
}
.lightbox-close:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}