/* WB image gallery: scoped to avoid changing the existing header slider. */
.wb-gallery {
    width: 100%;
    min-width: 0;
    margin: 0 0 35px;
    color: var(--black);
}

.wb-gallery [hidden] { display: none !important; }
.wb-gallery__slides {
    overflow: hidden;
    border-radius: 8px;
    background: #f2f4f3;
}

/* Without JavaScript all photographs remain accessible in a scrolling strip. */
.wb-gallery__slides:not(.slick-initialized) {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}
.wb-gallery__slide { min-width: 0; }
.wb-gallery__slides:not(.slick-initialized) .wb-gallery__slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
}
.wb-gallery .wb-gallery__image-link {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    cursor: zoom-in;
}
.wb-gallery .wb-gallery__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
}
.wb-gallery .wb-gallery__caption {
    padding: 12px 16px;
    margin: 0;
    font-size: var(--xs);
    background: #f2f4f3;
}
.wb-gallery__toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0 12px;
}
.wb-gallery__count {
    color: #4c5953;
    font-size: var(--xs);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.wb-gallery__count [data-gallery-current] {
    color: var(--black);
    font-weight: 700;
}
.wb-gallery__hint { color: #59645e; font-size: var(--xs); }
.wb-gallery__navigation { display: flex; gap: 8px; margin-left: auto; }
.wb-gallery .wb-gallery__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--green);
    border-radius: 8px;
    color: #08774c;
    background: var(--white);
    font: inherit;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}
.wb-gallery .wb-gallery__button:hover {
    color: var(--white);
    background: var(--green);
    outline: none !important;
}
.wb-gallery__thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 3px 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--green) #edf2ef;
    overscroll-behavior-x: contain;
}
.wb-gallery .wb-gallery__thumb {
    flex: 0 0 90px;
    width: 90px;
    height: 64px;
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 6px;
    background: transparent;
    opacity: .65;
    cursor: pointer;
}
.wb-gallery .wb-gallery__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}
.wb-gallery .wb-gallery__thumb[aria-current="true"] {
    border-color: var(--green);
    opacity: 1;
}
.wb-gallery .wb-gallery__thumb:hover { opacity: 1; outline: none !important; }
.wb-gallery button:focus-visible,
.wb-gallery a:focus-visible {
    outline: 3px solid var(--blau) !important;
    outline-offset: 2px;
}
.wb-gallery .wb-gallery__image-link:focus-visible { outline-offset: -4px; }
.wb-gallery__dialog {
    position: fixed;
    inset: 0;
    width: min(1400px, 96vw);
    max-width: 96vw;
    max-height: 94vh;
    margin: auto;
    padding: 54px 12px 12px;
    border: 0;
    border-radius: 8px;
    background: #f2f4f3;
}
.wb-gallery__dialog::backdrop { background: rgb(0 0 0 / 80%); }
.wb-gallery .wb-gallery__close { position: absolute; right: 6px; top: 6px; }
.wb-gallery .wb-gallery__large-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(94vh - 70px);
    object-fit: contain;
}
@media (max-width: 575px) {
    .wb-gallery__toolbar { gap: 10px; padding-top: 10px; }
    .wb-gallery__hint { font-size: 12px; }
    .wb-gallery .wb-gallery__thumb { flex-basis: 72px; width: 72px; height: 54px; }
    .wb-gallery__thumbs { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
    .wb-gallery *, .wb-gallery *:hover { transition: none !important; scroll-behavior: auto; }
}
