/* Blossom Carousel — Core-Regeln (dist/style.css nicht via unpkg verfügbar) */
@layer blossom-carousel {
  [blossom-carousel] {
    display: inline-block;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: clip;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    inline-size: 100%;
    max-inline-size: 100vw;
    box-sizing: border-box;
    scrollbar-width: none;
  }

  [blossom-carousel]::-webkit-scrollbar {
    display: none;
  }

  [blossom-carousel][has-snap="true"] {
    scroll-snap-type: var(--snap-type) !important;
  }

  [blossom-carousel][has-overflow="true"] {
    cursor: grab;
  }

  [blossom-carousel][has-overflow="true"]:active {
    cursor: grabbing;
  }

  @media (pointer: fine) {
    [blossom-carousel][has-overflow="true"]:active {
      scroll-snap-type: none !important;
    }
  }

  [blossom-carousel] > * {
    display: inline-block;
    white-space: initial;
    vertical-align: top;
  }

  [blossom-carousel] * {
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    user-select: none;
  }
}

/* Galerie-Carousel-Layout */
.gallery-carousel-wrapper {
  position: relative;
}

.gallery-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 80%;
  gap: 0.75rem;
  scroll-snap-type: x mandatory;
  padding-block: 1.5rem;
  margin-block: -1.5rem;
}

@media (min-width: 600px) {
  .gallery-carousel {
    grid-auto-columns: 45%;
  }
}

.gallery-slide {
  scroll-snap-align: start;
}

.gallery-slide a {
  display: block;
}

.gallery-slide img {
  width: 100%;
  display: block;
}

/* Navigations-Buttons */
.gallery-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-light);
  color: var(--color-text);
  border: none;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.gallery-carousel-btn:hover {
  opacity: 1;
}

.gallery-carousel-prev {
  left: 0.75rem;
}

.gallery-carousel-next {
  right: 0.75rem;
}
