.rcb-events-list {
    --rcb-events-gap: 24px;
    display: grid;
    gap: var(--rcb-events-gap);
    max-width: 1100px;
    margin: 32px 0;
    margin-inline: auto;
}

section.rcb-events-list {
    display: grid;
}

.rcb-events-list.alignwide,
.rcb-events-list.alignfull {
    max-width: none;
}

.rcb-events-columns-1 {
    grid-template-columns: 1fr;
}

.rcb-events-columns-2,
.rcb-events-columns-3,
.rcb-events-columns-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rcb-events-layout-compact {
    --rcb-events-gap: 16px;
}

.rcb-event-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--rcb-event-card-background, #000000);
    color: var(--rcb-event-card-color, #ffffff);
}

.rcb-events-list-animate .rcb-event-card {
    opacity: 0;
    transform: translateY(14px);
    animation: rcb-event-card-fade-in var(--rcb-event-fade-duration, 420ms) ease-out both;
    animation-delay: calc(var(--rcb-event-index, 0) * var(--rcb-event-fade-stagger, 90ms));
}

@keyframes rcb-event-card-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .rcb-events-list-animate .rcb-event-card {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

.rcb-event-card-media {
    position: relative;
    display: block;
    color: inherit;
    text-decoration: none;
}

.rcb-event-card-image,
.rcb-event-single-image {
    display: block;
    width: 100%;
    height: auto;
}

.rcb-event-image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 160px;
}

.rcb-event-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 4px;
    background: #b42318;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.rcb-event-badge-inline {
    position: static;
    margin-bottom: 12px;
}

.rcb-event-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
}

.rcb-events-layout-compact .rcb-event-card-body {
    gap: 8px;
    padding: 14px;
}

.rcb-event-date,
.rcb-event-venue {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
}

.rcb-events-layout-compact .rcb-event-date {
    font-size: 13px;
}

.rcb-event-card-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: 0;
}

.rcb-events-layout-compact .rcb-event-card-title {
    font-size: 19px;
    line-height: 1.18;
}

.rcb-events-list .rcb-event-card a,
.rcb-events-list .rcb-event-card-title a,
.rcb-events-list .rcb-event-details-link {
    color: inherit !important;
}

.rcb-event-card-excerpt {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
}

.rcb-event-details-link {
    margin-top: auto;
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.rcb-events-view-all {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 8px;
}

.rcb-events-view-all-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    line-height: 1.2;
}

.rcb-events-empty {
    max-width: 760px;
    margin: 32px auto;
    padding: 24px 0;
    border-top: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
}

.rcb-events-empty h2 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: 0;
}

.rcb-events-empty p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

.rcb-event-single {
    margin: 32px 0;
}

body.single-rcb_event h1,
body.single-rcb_event .entry-title,
body.single-rcb_event .wp-block-post-title {
    line-height: 1.1;
}

body.single-rcb_event .post-navigation {
    display: none;
}

.rcb-event-title-date {
    display: block;
    margin: -0.25em 0 32px;
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.25;
}

.rcb-event-single-grid {
    display: grid;
    gap: 32px;
    align-items: start;
}

.rcb-event-single-media-column {
    display: grid;
    gap: 18px;
}

.rcb-event-single-media {
    overflow: visible;
}

.rcb-event-single-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rcb-event-intro {
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
}

.rcb-event-checkout-note {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.rcb-event-videos {
    display: grid;
    gap: 14px;
}

.rcb-event-single > .rcb-event-videos {
    margin-top: 32px;
}

.rcb-event-video {
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.rcb-event-video iframe,
.rcb-event-video embed,
.rcb-event-video object,
.rcb-event-video video {
    display: block;
    width: 100%;
    height: 100%;
}

.rcb-event-ticket-button-wrap {
    margin-top: 12px;
    text-align: center;
}

.rcb-event-ticket-widget-wrap {
    margin-top: 16px;
}

.rcb-event-ticket-widget-wrap .tt-widget {
    width: 100%;
}

.rcb-event-ticket-widget-wrap iframe {
    max-width: 100%;
}

.rcb-event-ticket-button,
.rcb-events-list .rcb-event-details-link {
    line-height: 1.2;
}

.rcb-event-editor-content,
.rcb-event-artist-bio {
    margin-top: 32px;
}

.rcb-event-chronological-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid currentColor;
}

.rcb-event-nav-item {
    display: grid;
    gap: 6px;
}

.rcb-event-nav-next {
    grid-column: 2;
    text-align: right;
}

.rcb-event-nav-previous {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
}

.rcb-event-nav-item span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.rcb-event-nav-item a {
    color: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.rcb-event-nav-item time {
    font-size: 14px;
    line-height: 1.35;
}

.rcb-event-all-events-link {
    grid-column: 1 / -1;
    justify-self: center;
    color: inherit;
    font-weight: 700;
    line-height: 1.25;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

body.single-rcb_event .entry-meta,
body.single-rcb_event .posted-by,
body.single-rcb_event .posted-on,
body.single-rcb_event .post-navigation,
body.single-rcb_event .navigation.post-navigation,
body.single-rcb_event .post-navigation .nav-links,
body.single-rcb_event nav:has(.wp-block-post-navigation-link),
body.single-rcb_event .wp-block-post-navigation-link,
body.single-rcb_event .ast-single-post-order,
body.single-rcb_event .wp-block-post-author,
body.single-rcb_event .wp-block-post-author-name,
body.single-rcb_event .wp-block-post-date,
body.single-rcb_event .wp-block-post-terms,
body.single-rcb_event .wp-block-group:has(.wp-block-query),
body.single-rcb_event .wp-block-query,
body.single-rcb_event main > .wp-block-group.alignfull:first-child > .wp-block-group.has-small-font-size:first-of-type {
    display: none;
}

.rcb-tte-admin-grid {
    display: grid;
    gap: 20px;
    max-width: 1100px;
}

.rcb-tte-panel {
    padding: 18px;
    border: 1px solid #c3c4c7;
    background: #ffffff;
}

.rcb-tte-inline-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 12px;
}

.rcb-tte-inline-fields label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rcb-tte-inline-fields input[type="number"] {
    width: 88px;
}

.rcb-tte-status-list {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 8px 16px;
}

.rcb-tte-status-list dt {
    font-weight: 700;
}

.rcb-tte-status-list dd {
    margin: 0;
}

.rcb-tte-editorial-grid {
    display: grid;
    gap: 14px;
}

.rcb-tte-synced-fields th {
    width: 190px;
}

@media (min-width: 760px) {
    .rcb-events-columns-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .rcb-events-columns-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .rcb-tte-admin-grid {
        grid-template-columns: minmax(0, 1fr) 360px;
    }
}

@media (max-width: 640px) {
    body.single-rcb_event h1,
    body.single-rcb_event .entry-title,
    body.single-rcb_event .wp-block-post-title {
        font-size: clamp(36px, 10vw, 48px);
    }

    .rcb-events-list {
        --rcb-events-gap: 28px;
        margin: 24px 0;
    }

    .rcb-events-layout-compact {
        --rcb-events-gap: 18px;
    }

    .rcb-events-columns-2,
    .rcb-events-columns-3,
    .rcb-events-columns-4 {
        grid-template-columns: 1fr;
    }

    .rcb-event-card-body {
        padding: 18px;
    }

    .rcb-events-layout-compact .rcb-event-card-body {
        padding: 16px;
    }

    .rcb-event-card-title {
        font-size: 20px;
    }

    .rcb-events-view-all {
        width: 100%;
    }

    .rcb-events-view-all-link {
        width: 100%;
    }

    .rcb-event-single {
        margin: 24px 0;
    }

    .rcb-event-single-grid {
        gap: 18px;
    }

    .rcb-event-intro {
        font-size: 16px;
    }

    .rcb-event-editor-content,
    .rcb-event-artist-bio,
    .rcb-event-single > .rcb-event-videos {
        margin-top: 24px;
    }

    .rcb-events-empty {
        margin: 24px 0;
        padding: 18px 0;
    }

    .rcb-event-chronological-nav {
        gap: 16px;
    }
}

@media (min-width: 390px) and (max-width: 640px) {
    .rcb-events-layout-compact.rcb-events-mobile-columns-2 {
        --rcb-events-gap: 14px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rcb-events-layout-compact.rcb-events-mobile-columns-2 .rcb-event-card-body {
        gap: 7px;
        padding: 12px;
    }

    .rcb-events-layout-compact.rcb-events-mobile-columns-2 .rcb-event-date {
        font-size: 12px;
        line-height: 1.3;
    }

    .rcb-events-layout-compact.rcb-events-mobile-columns-2 .rcb-event-card-title {
        font-size: 18px;
        line-height: 1.18;
    }

    .rcb-events-layout-compact.rcb-events-mobile-columns-2.rcb-events-mobile-images-small .rcb-event-card-media {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .rcb-events-layout-compact.rcb-events-mobile-columns-2.rcb-events-mobile-images-small .rcb-event-card-image {
        width: auto;
        max-width: 100%;
        max-height: 112px;
        margin-inline: auto;
    }
}
