.eventful-events {
}

.eventful-events--grid {
    display: grid;
    gap: var(--eventful-gap, 24px);
    grid-template-columns: repeat(var(--eventful-columns, 3), minmax(0, 1fr));
    justify-content: start;
}

.eventful-events--grid.eventful-events--align-left {
    justify-content: start;
}

.eventful-events--grid.eventful-events--align-center {
    justify-content: center;
}

.eventful-events--grid.eventful-events--align-right {
    justify-content: end;
}

.eventful-events--stack {
    display: block;
}

.eventful-events--stack > .eventful-event-item {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
}

.eventful-events--stack.eventful-events--align-center > .eventful-event-item {
    justify-content: center;
}

.eventful-events--stack.eventful-events--align-right > .eventful-event-item {
    justify-content: flex-end;
}

.eventful-events--stack > .eventful-event-item > * {
    max-width: 100%;
}

.eventful-events--stack > .eventful-event-item + .eventful-event-item {
    margin-top: var(--eventful-gap, 24px);
}

.eventful-events--grid .eventful-event-item {
    min-width: 0;
    max-width: 100%;
}

.eventful-event-item img {
    max-width: 100%;
    height: auto;
}

.eventful-empty {
    width: 100%;
}

.magellan-registration-hidden {
    display: none !important;
}

.magellan-registration-link {
    cursor: pointer;
}

.magellan-registration-preload {
    position: fixed;
    left: -200vw;
    top: 0;
    width: 90vw;
    height: 90vh;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.magellan-registration-frame {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
    opacity: 0;
    transition: opacity 120ms ease;
}

.magellan-registration-frame.is-ready {
    opacity: 1;
}

.magellan-registration-frame:not(.is-ready) {
    pointer-events: none;
}

.magellan-registration-frame--preload {
    width: 100%;
    height: 100%;
}

.magellan-registration-frame--preview {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.magellan-registration-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: var(--magellan-popup-z-index, 2147483000);
    display: none;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    isolation: isolate;
    pointer-events: none;
}

.magellan-registration-modal.is-opening,
.magellan-registration-modal.is-open,
.magellan-registration-modal.is-closing {
    display: block;
}

.magellan-registration-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 80%);
    transition: opacity 220ms ease;
}

.magellan-registration-modal.is-open {
    pointer-events: auto;
}

.magellan-registration-modal.is-opening {
    pointer-events: auto;
}

.magellan-registration-modal.is-preparing .magellan-registration-modal__overlay {
    opacity: 1;
}

.magellan-registration-modal.is-open .magellan-registration-modal__overlay {
    opacity: 1;
}

.magellan-registration-modal.is-closing .magellan-registration-modal__overlay {
    opacity: 0;
}

.magellan-registration-modal__dialog {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: var(--magellan-popup-width, 90vw);
    height: var(--magellan-popup-height, 90vh);
    max-width: calc(100vw - 10vw);
    max-height: calc(100vh - 10vh);
    overflow: hidden;
    border-radius: 10px;
    background: transparent;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.35);
    opacity: 0;
    transform: translate(-50%, -47%) scale(0.97);
    transform-origin: center;
    transition: opacity 220ms ease, transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.magellan-registration-modal.is-open .magellan-registration-modal__dialog {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.magellan-registration-modal.is-closing .magellan-registration-modal__dialog {
    opacity: 0;
    transform: translate(-50%, -47%) scale(0.97);
}

.magellan-registration-modal__close {
    position: absolute;
    right: 14px;
    top: 14px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    color: var(--magellan-popup-close-color, #000);
    background: var(--magellan-popup-close-bg-color, #fff);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
    cursor: pointer;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    transform: none !important;
    transition: color 160ms ease, background-color 160ms ease;
}

.magellan-registration-modal__close:hover,
.magellan-registration-modal__close:focus {
    color: var(--magellan-popup-close-hover-color, #fff);
    background: var(--magellan-popup-close-bg-hover-color, var(--magellan-popup-close-bg-color, #fff));
    transform: none !important;
}

.magellan-registration-modal__frame {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
}

html.magellan-registration-is-open,
html.magellan-registration-is-open body {
    overflow: hidden;
}

.magellan-single-event {
    max-width: 920px;
    margin: 0 auto;
    padding: 32px 20px;
}

.magellan-single-event h1 {
    margin: 0 0 14px;
}

.magellan-single-event__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.magellan-single-event__meta span,
.magellan-single-event__field {
    border: 1px solid #d8dee9;
    border-radius: 8px;
    padding: 12px 14px;
    background: #fff;
}

.magellan-single-event__content {
    display: grid;
    gap: 14px;
}

.magellan-single-event__registration {
    margin-top: 24px;
}

@media (max-width: 782px) {
    .magellan-registration-modal__dialog {
        left: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        max-width: none;
        max-height: none;
        border-radius: 0;
        box-shadow: none;
        transform: none;
    }

    .magellan-registration-modal.is-opening .magellan-registration-modal__dialog,
    .magellan-registration-modal.is-open .magellan-registration-modal__dialog,
    .magellan-registration-modal.is-closing .magellan-registration-modal__dialog {
        transform: none;
    }

    .magellan-registration-modal__close {
        right: 12px;
        top: 12px;
        width: 44px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .magellan-registration-modal__overlay,
    .magellan-registration-modal__dialog,
    .magellan-registration-modal__close {
        transition: none;
    }
}
