/* ==================================================
   Masonry Gallery
   ================================================== */

.masonry-section {
  margin: 4rem auto;
}

.masonry-title {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 3vw, 3rem);
}

.masonry-gallery {
  column-count: 5;
  column-fill: balance;
  column-gap: 0.25rem;
}

.masonry-item {
  display: block;
  break-inside: avoid;
  margin-bottom: 0.25rem;
  border-radius: 0;
  overflow: hidden;
}

.masonry-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  transition: transform 0.3s ease;
}

.masonry-item:hover img {
  transform: scale(1.03);
}

@media (max-width: 1024px) {
  .masonry-gallery {
    column-count: 3;
  }
}

@media (max-width: 768px) {
  .masonry-gallery {
    column-count: 2;
  }
}

/* ==================================================
   Lightbox
   ================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 2rem;
  background: rgba(0, 0, 0, 0.85);
}

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

.lightbox__image {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
}

/* Buttons allgemein */

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: fixed;
  z-index: 10002;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 54px;
  height: 54px;

  border: 0;
  border-radius: 50%;

  background: rgba(245, 125, 0, 1);
  color: #fff;

  cursor: pointer;
  line-height: 1;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(245, 125, 0, 0.7);
}

/* Schließen */

.lightbox__close {
  top: 1.5rem;
  right: 1.5rem;

  font-size: 2.2rem;
  padding-bottom: 8px;
  padding-left: 4px;
}

/* Pfeile */

.lightbox__prev,
.lightbox__next {
  top: 50%;
  transform: translateY(-50%);

  font-size: 3rem;
  padding-bottom: 9px;
  padding-left: 4px;
}

.lightbox__prev:hover,
.lightbox__next:hover {
  transform: translateY(-50%) scale(1.04);
}

.lightbox__prev {
  left: 1.5rem;
}

.lightbox__next {
  right: 1.5rem;
}

/* Mobile */

@media (max-width: 768px) {
  .lightbox {
    padding: 1rem;
  }

  .lightbox__image {
    max-width: 94vw;
    max-height: 80vh;
  }

  .lightbox__close,
  .lightbox__prev,
  .lightbox__next {
    width: 44px;
    height: 44px;
  }

  .lightbox__close {
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
  }

  .lightbox__prev,
  .lightbox__next {
    font-size: 2.4rem;
  }

  .lightbox__prev {
    left: 1rem;
  }

  .lightbox__next {
    right: 1rem;
  }
}
.lightbox__caption {
  position: fixed;
  bottom: 2rem;
  left: 50%;

  transform: translateX(-50%);

  padding: 0.75rem 1rem;

  color: #fff;
  font-size: 0.95rem;
  text-align: center;

  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);

  border-radius: 999px;

  max-width: 90vw;
  z-index: 10003;
}
.lightbox__caption{
    display: none!important;
}
