.joa-events-shell,
.joa-event-single-shell {
    width: min(calc(100% - 32px), var(--max-width, 1180px));
    margin: 0 auto;
    padding: 32px 0 64px;
}

.joa-events-hero {
    margin-bottom: 34px;
}

.joa-events-hero h1,
.joa-events-section-title,
.joa-event-title,
.joa-event-section-title {
    font-family: 'BebasNeue', sans-serif;
    color: var(--accent, #dc6b06);
    letter-spacing: .05em;
}

.joa-events-hero h1 {
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    line-height: 1;
}

.joa-events-section + .joa-events-section {
    margin-top: 54px;
}

.joa-events-section-title {
    margin: 0 0 18px;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.joa-events-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.joa-event-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius, 18px);
    box-shadow: var(--shadow, 0 10px 30px rgba(0,0,0,.28));
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease;
}

.joa-event-card:hover {
    transform: translateY(-3px);
    border-color: var(--line, #6a6058);
}

.joa-event-card.is-past {
    opacity: .68;
}

.joa-event-card.is-past:hover {
    opacity: .9;
}

.joa-event-card-cover-link {
    display: block;
    text-decoration: none;
}

.joa-event-card-cover {
    aspect-ratio: 4 / 5;
    background: var(--surface, #352c25);
    overflow: hidden;
}

.joa-event-card-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s ease;
}

.joa-event-card:hover .joa-event-card-cover img {
    transform: scale(1.025);
}

.joa-event-card-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--muted, #c7b8ab);
    font-family: 'BebasNeue', sans-serif;
    font-size: 2rem;
    letter-spacing: .08em;
}

.joa-event-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px 18px 20px;
}

.joa-event-card-date {
    display: block;
    margin-bottom: 5px;
    color: var(--accent, #dc6b06);
    font-size: .84rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.joa-event-card-title {
    margin: 0 0 16px;
    color: var(--text, #e4bc89);
    font-family: 'BebasNeue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: .04em;
    line-height: 1.05;
}

.joa-event-card-title a {
    color: inherit;
    text-decoration: none;
}

.joa-event-card-title a:hover {
    color: var(--accent, #dc6b06);
}

.joa-event-card-excerpt {
    margin: 0;
    color: var(--muted, #c7b8ab);
    font-size: .93rem;
}

.joa-event-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin-top: auto;
    padding: 8px 15px;
    border: 1px solid var(--accent, #dc6b06);
    border-radius: 999px;
    color: var(--accent, #dc6b06);
    font-size: .82rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .07em;
    transition: background-color .2s ease, color .2s ease;
}

.joa-event-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-top: auto;
}

.joa-event-card-actions .joa-event-card-button {
    margin-top: 0;
    text-decoration: none;
}

.joa-event-card-button:hover {
    background: var(--accent, #dc6b06);
    color: var(--background, #403b36);
}

.joa-event-card-button--booking {
    background: var(--accent, #dc6b06);
    color: var(--background, #403b36);
}

.joa-event-card-button--booking:hover {
    background: transparent;
    color: var(--accent, #dc6b06);
}

#joa-event-booking {
    scroll-margin-top: 110px;
}

.joa-events-empty {
    padding: 22px;
    border-radius: var(--radius, 18px);
    background: rgba(255,255,255,.05);
    color: var(--muted, #c7b8ab);
}

/* Single event */
.joa-event-top {
    display: grid;
    grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
    gap: 38px;
    align-items: center;
    margin-bottom: 48px;
}

.joa-event-poster {
    border-radius: var(--radius, 18px);
    overflow: hidden;
    box-shadow: var(--shadow, 0 10px 30px rgba(0,0,0,.28));
    background: rgba(255,255,255,.05);
}

.joa-event-poster img {
    display: block;
    width: 100%;
    height: auto;
}

.joa-event-meta-date {
    color: var(--accent, #dc6b06);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.joa-event-title {
    margin: 8px 0 12px;
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    line-height: .95;
}

.joa-event-short-description {
    margin: 0 0 18px;
    color: var(--muted, #c7b8ab);
    font-size: 1.08rem;
}

.joa-event-access {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line, #6a6058);
    border-radius: 999px;
    padding: 7px 12px;
    color: var(--text, #e4bc89);
    background: rgba(255,255,255,.05);
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.joa-event-section {
    margin-top: 42px;
}

.joa-event-section-title {
    margin: 0 0 16px;
    font-size: 2rem;
}

.joa-event-content {
    color: var(--text, #e4bc89);
}

.joa-event-content p,
.joa-event-content li {
    color: var(--muted, #c7b8ab);
}

.joa-event-content a,
.joa-event-location a {
    color: var(--accent, #dc6b06);
}

.joa-event-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.joa-event-gallery a {
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
}

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

.joa-event-gallery a:hover img {
    transform: scale(1.035);
}

.joa-event-videos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.joa-event-video {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #000;
}

.joa-event-video iframe,
.joa-event-video video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
}

.joa-event-video > a {
    display: block;
    padding: 18px;
    color: var(--accent, #dc6b06);
}

/* Instagram does not provide a clean video-only iframe. Show the Reel/Post
   preview image instead, with a play affordance, and open Instagram on click. */
.joa-event-videos {
    justify-items: start;
}

.joa-event-video--instagram {
    width: 100%;
    margin: 0;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 14px;
    background: #000;
}

.joa-instagram-preview {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 14px;
    background: #000;
    color: inherit;
    text-decoration: none;
}

.joa-instagram-preview img,
.joa-instagram-preview-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.joa-instagram-preview-placeholder {
    background:
        radial-gradient(circle at center, rgba(255,255,255,.08), transparent 42%),
        #000;
}

.joa-event-location {
    padding: 22px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius, 18px);
    background: rgba(255,255,255,.05);
}

.joa-event-location strong {
    display: block;
    color: var(--text, #e4bc89);
    font-size: 1.08rem;
}

.joa-event-location p {
    margin: 4px 0 0;
    color: var(--muted, #c7b8ab);
}

.joa-event-location-link {
    display: inline-block;
    margin-top: 12px;
    text-decoration: none;
    font-weight: 700;
}

.joa-event-ticket-slot:empty {
    display: none;
}

@media (max-width: 900px) {
    .joa-events-grid,
    .joa-event-videos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .joa-event-top {
        grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
        gap: 26px;
    }
}

@media (max-width: 640px) {
    .joa-events-shell,
    .joa-event-single-shell {
        width: min(calc(100% - 20px), var(--max-width, 1180px));
        padding-top: 22px;
    }

    .joa-events-grid,
    .joa-event-videos {
        grid-template-columns: 1fr;
    }

    .joa-event-top {
        grid-template-columns: 1fr;
        gap: 22px;
        align-items: start;
    }

    .joa-event-poster {
        max-width: 460px;
        margin: 0 auto;
    }

    .joa-event-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* Social video preview cards */
.joa-event-video--facebook {
    width: 100%;
    margin: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    background: #000;
}

.joa-event-video--facebook-reel {
    width: 100%;
    aspect-ratio: 9 / 16;
}

.joa-social-video-preview {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    cursor: pointer;
}

.joa-social-video-preview img,
.joa-social-preview-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.joa-social-preview-placeholder {
    background:
        radial-gradient(circle at center, rgba(255,255,255,.08), transparent 42%),
        #000;
}

/* Keep video gallery content aligned with the section title. */
.joa-event-videos {
    justify-items: start;
    align-items: start;
}

/* Video modal */
body.joa-video-modal-open {
    overflow: hidden;
}

.joa-video-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .88);
}

.joa-video-modal.is-open {
    display: flex;
}

.joa-video-modal-dialog {
    position: relative;
    width: min(92vw, 960px, calc(84vh * 16 / 9));
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .55);
}

.joa-video-modal-dialog.is-portrait {
    width: min(94vw, 520px, calc(92vh * 9 / 16));
    aspect-ratio: 9 / 16;
}

.joa-video-modal-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

/* Instagram posts and Reels can use different media aspect ratios. Do not
   crop or zoom the Instagram document in the modal: show the complete
   official embed and let Instagram handle the media layout itself. */
.joa-video-modal-dialog.is-instagram {
    width: min(94vw, 560px);
    height: min(90vh, 900px);
    aspect-ratio: auto;
    overflow: hidden;
    background: #fff;
}

.joa-video-modal-dialog.is-instagram .joa-video-modal-frame {
    position: static;
    width: 100%;
    height: 100%;
    max-width: none;
    transform: none;
    background: #fff;
}

/* Facebook Reels already have less surrounding UI than Instagram; keep
   the normal portrait viewport but trim a small amount of top chrome. */
.joa-video-modal-dialog.is-facebook-reel .joa-video-modal-frame {
    position: absolute;
    top: -18px;
    left: 0;
    width: 100%;
    height: calc(100% + 36px);
    transform: none;
}

.joa-video-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .72);
    color: #fff;
    font-size: 30px;
    line-height: 36px;
    cursor: pointer;
}

@media (max-width: 640px) {
    .joa-video-modal {
        padding: 10px;
    }

    .joa-video-modal-dialog {
        width: min(100%, calc(86vh * 16 / 9));
    }

    .joa-video-modal-dialog.is-portrait {
        width: min(96vw, 460px, calc(92vh * 9 / 16));
    }

    .joa-video-modal-dialog.is-instagram {
        width: min(96vw, 560px);
        height: min(92vh, 900px);
    }
}
