.event-gallery {
    margin: 48px 0 16px;
    color: #163653;
}
@media (min-width: 768px) {
    .event-gallery {
        max-width: 1000px;
        margin-right: auto;
        margin-left: auto;
    }
}
.event-gallery-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}
.event-gallery-heading h2 {
    margin: 0 0 8px;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 600;
}
.event-gallery-heading p {
    margin: 0;
    color: #62768a;
    font-size: 14px;
}
.event-gallery-count {
    padding: 8px 16px;
    border: 1px solid #dce6ef;
    border-radius: 30px;
    background: #f0f5fa;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}
.event-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.event-gallery-item {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 18px;
    background: #e9eff5;
    box-shadow: 0 8px 24px #183b5610;
}
.event-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.event-gallery-item:hover img,
.event-gallery-item:focus-visible img {
    transform: scale(1.045);
}
.event-gallery-zoom {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid #ffffff66;
    border-radius: 50%;
    background: #10263a99;
    color: #fff;
    backdrop-filter: blur(8px);
}
.event-gallery-zoom svg,
.event-lightbox-control svg {
    width: 22px;
    height: 22px;
}
.event-lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: #07111eed;
    color: #fff;
}
.event-lightbox:not([open]) {
    display: none;
}
.event-lightbox::backdrop {
    background: #07111e;
}
.event-lightbox-shell {
    display: flex;
    flex-direction: column;
    width: min(1440px, 100%);
    height: 100%;
    margin: auto;
    padding: 24px 32px;
    box-sizing: border-box;
}
.event-lightbox-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    margin-bottom: 16px;
}
.event-lightbox-toolbar h2 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 18px;
}
.event-lightbox-counter {
    color: #b7c8db;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}
.event-lightbox-control {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid #ffffff40;
    border-radius: 50%;
    background: #ffffff12;
    color: #fff;
    cursor: pointer;
    transition: background .2s ease;
}
.event-lightbox-control:hover {
    background: #ffffff30;
}
.event-lightbox-control[hidden] {
    display: none;
}
.event-lightbox-stage {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-height: 0;
    gap: 20px;
}
.event-lightbox-figure {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    align-self: stretch;
    min-width: 0;
    margin: 0;
}
.event-lightbox-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    border-radius: 8px;
}
.event-lightbox-image[hidden],
.event-lightbox-error[hidden] {
    display: none;
}
.event-lightbox-error {
    padding: 24px;
    color: #ffd0d0;
    text-align: center;
}
.event-lightbox-thumbnails {
    display: flex;
    justify-content: flex-start;
    flex-shrink: 0;
    gap: 10px;
    max-width: 100%;
    margin: 20px auto 0;
    padding: 4px;
    overflow-x: auto;
}
.event-lightbox-thumbnail {
    flex: 0 0 68px;
    width: 68px;
    height: 52px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #24354a;
    opacity: .55;
    cursor: pointer;
}
.event-lightbox-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.event-lightbox-thumbnail[aria-pressed="true"] {
    border-color: #fff;
    opacity: 1;
}
.event-gallery-item:focus-visible,
.event-lightbox button:focus-visible {
    outline: 3px solid #64c7ff;
    outline-offset: 4px;
}
html.event-gallery-is-open {
    overflow: hidden;
}
@media (max-width: 767px) {
    .event-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .event-gallery-item {
        border-radius: 12px;
    }
    .event-lightbox-shell {
        padding: 16px;
    }
    .event-lightbox-stage {
        gap: 0;
    }
    .event-lightbox-previous,
    .event-lightbox-next {
        position: absolute;
        z-index: 1;
        width: 42px;
        height: 42px;
        background: #10263acc;
    }
    .event-lightbox-previous {
        left: 0;
    }
    .event-lightbox-next {
        right: 0;
    }
    .event-lightbox-thumbnail {
        flex-basis: 56px;
        width: 56px;
        height: 44px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .event-gallery-item img,
    .event-lightbox-control {
        transition: none;
    }
}
