.event-gallery {
    background: #f7f8fc
}

.event-overview {
    padding: 64px 0 96px
}

.event-overview-panel {
    padding: clamp(24px, 4vw, 48px);
    border: 1px solid #dce3f0;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 18px 50px #172b690d
}

.event-overview-heading h2 {
    margin-bottom: 26px;
    font-size: clamp(1.8rem, 3vw, 2.6rem)
}

.event-overview-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0
}

.event-overview-fact {
    padding: 18px 20px;
    border-radius: 16px;
    background: #f3f6fd
}

.event-overview-fact dt {
    color: #536079;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em
}

.event-overview-fact dd {
    margin: 6px 0 0;
    font-size: 1.05rem;
    font-weight: 700
}

.event-gallery-preview {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    align-items: center;
    gap: 24px;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid #dce3f0
}

.event-gallery-preview h3 {
    margin-bottom: 6px
}

.event-gallery-preview p:last-child {
    margin-bottom: 0;
    color: #536079
}

.event-gallery-preview-photos {
    display: flex;
    align-items: center;
    gap: 6px
}

.event-gallery-preview-photos a {
    display: block;
    width: clamp(52px, 6vw, 76px);
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 10px
}

.event-gallery-preview-photos img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.event-gallery-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 8px
}

.event-gallery-selection-status {
    min-height: 24px;
    color: #536079;
    font-size: .92rem;
    margin: 0 0 24px
}

.event-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #e8efff;
    aspect-ratio: 4/3
}

.event-gallery-open {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in
}

    .event-gallery-open:focus-visible,
    .event-gallery-select input:focus-visible,
    .event-gallery-slide-control:focus-visible {
        outline: 3px solid #ffce45;
        outline-offset: -5px
    }

.event-gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .25s ease
}

.event-gallery-open:hover img,
.event-gallery-open:focus-visible img {
    transform: scale(1.04)
}

.event-gallery-select {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 100px;
    background: #fff;
    color: #172b69;
    font-size: .82rem;
    font-weight: 700;
    box-shadow: 0 2px 10px #172b6930;
    cursor: pointer
}

    .event-gallery-select input {
        width: 17px;
        height: 17px;
        accent-color: #2457ce
    }

.event-gallery-lightbox .modal-content {
    border: 0;
    background: #0c1737;
    color: #fff
}

.event-gallery-lightbox .modal-header {
    border-color: #ffffff26
}

.event-gallery-lightbox .modal-footer {
    border-color: #ffffff26
}

.event-gallery-lightbox .modal-body {
    position: relative;
    display: grid;
    place-items: center;
    min-height: min(72vh, 760px);
    padding: 20px 70px
}

.event-gallery-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: min(68vh, 720px);
    width: auto;
    height: auto;
    object-fit: contain
}

.event-gallery-slide-control {
    position: absolute;
    top: 50%;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid #ffffff66;
    border-radius: 50%;
    background: #0c1737cc;
    color: #fff;
    font-size: 42px;
    line-height: 1;
    transform: translateY(-50%)
}

    .event-gallery-slide-control:hover:not(:disabled) {
        background: #2457ce
    }

    .event-gallery-slide-control:disabled {
        opacity: .35;
        cursor: default
    }

    .event-gallery-slide-control.previous {
        left: 14px
    }

    .event-gallery-slide-control.next {
        right: 14px
    }

.event-card-meta {
    display: grid;
    gap: 5px;
    color: #536079;
    font-size: .85rem;
    margin: 16px 0
}

    .event-card-meta span:empty {
        display: none
    }

@media(max-width:575px) {
    .event-overview {
        padding: 40px 0 72px
    }

    .event-overview-facts {
        grid-template-columns: 1fr
    }

    .event-gallery-preview {
        grid-template-columns: 1fr
    }

    .event-gallery-preview-photos a {
        width: 64px
    }

    .event-gallery-heading {
        align-items: start;
        flex-direction: column
    }

    .event-gallery-lightbox .modal-body {
        min-height: 58vh;
        padding: 16px 50px
    }

    .event-gallery-slide-control {
        width: 40px;
        height: 40px;
        font-size: 34px
    }

        .event-gallery-slide-control.previous {
            left: 6px
        }

        .event-gallery-slide-control.next {
            right: 6px
        }
}

@media(min-width:576px) and (max-width:991px) {
    .event-gallery-preview {
        grid-template-columns: 1fr auto
    }

    .event-gallery-preview .btn {
        grid-column: 1 / -1;
        justify-self: start
    }
}

@media(prefers-reduced-motion:reduce) {
    .event-gallery-item img {
        transition: none
    }
}
