.sa-event-gallery {
    --sa-gallery-gap: 16px;
    width: 100%;
}

.sa-event-gallery__title {
    margin: 0 0 20px;
    color: #142d59;
    font-family: var(--e-global-typography-primary-font-family, Georgia), serif;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.2;
}

.sa-event-gallery__controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 16px;
}

.sa-event-gallery .sa-event-gallery__button {
    display: grid !important;
    place-items: center;
    box-sizing: border-box;
    flex: 0 0 42px;
    width: 42px !important;
    min-width: 42px;
    height: 42px !important;
    min-height: 42px;
    padding: 0 !important;
    border: 1px solid #dceffa !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #142d59 !important;
    box-shadow: none !important;
    font: inherit;
    line-height: 1;
    text-decoration: none;
    appearance: none;
    cursor: pointer;
}

.sa-event-gallery .sa-event-gallery__button:hover:not(:disabled),
.sa-event-gallery .sa-event-gallery__button:focus-visible {
    background: #dceffa !important;
    color: #142d59 !important;
}

.sa-event-gallery .sa-event-gallery__button:focus-visible {
    outline: 2px solid #7565a6;
    outline-offset: 2px;
}

.sa-event-gallery .sa-event-gallery__button:disabled {
    opacity: .35;
    cursor: default;
}

.sa-event-gallery .sa-event-gallery__button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sa-event-gallery__track {
    display: flex;
    gap: var(--sa-gallery-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.sa-event-gallery__track::-webkit-scrollbar {
    display: none;
}

.sa-event-gallery__track:focus-visible {
    outline: 2px solid #7565a6;
    outline-offset: 3px;
}

.sa-event-gallery__slide {
    flex: 0 0 calc((100% - 2 * var(--sa-gallery-gap)) / 3);
    min-width: 0;
    scroll-snap-align: start;
}

.sa-event-gallery .sa-event-gallery__slide img {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 280px !important;
    object-fit: cover !important;
    object-position: center;
    border-radius: 14px;
}

@media (max-width: 900px) {
    .sa-event-gallery__slide {
        flex-basis: calc((100% - var(--sa-gallery-gap)) / 2);
    }
}

@media (max-width: 600px) {
    .sa-event-gallery__slide {
        flex-basis: 100%;
    }

    .sa-event-gallery .sa-event-gallery__slide img {
        height: 240px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sa-event-gallery__track {
        scroll-behavior: auto;
    }
}
