/* =====================================================
   Mighty Aires – Event page layout
   Loaded only on a single event view (body.ma-event-view).
   ===================================================== */

body.ma-event-view {
    --ma-plum: #2B0E17;
    --ma-plum-deep: #1C0910;
    --ma-gold: #C99A3C;
    --ma-gold-soft: #E4C583;
    --ma-crimson: #8C2C3B;
    --ma-ivory: #F6EEE1;
    --ma-btn-gold: #B48944;
}

/* Beats "body.page-id-676 { background: beige }" from Additional CSS, which loads after this file.
   Fills the space around/under the banner with the event colour instead of beige. */
html body.ma-event-view {
    background: var(--ma-plum-deep);
}

/* Page wrapper: remove the beige events-list styling so sections run edge to edge */
body.ma-event-view #content .page-content {
    margin: 0 !important;
    padding: 0 !important;
    background: var(--ma-plum) !important;
}

.ma-ev {
    color: var(--ma-ivory);
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--ma-plum);
    -webkit-font-smoothing: antialiased;
}

.ma-ev *,
.ma-ev *:before,
.ma-ev *:after {
    box-sizing: border-box;
}

.ma-ev .ma-ev-display {
    font-family: 'Fraunces', Georgia, serif;
}

.ma-ev a {
    color: inherit;
    text-decoration: none;
}

.ma-ev .ma-ev-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 24px;
}


/* ---------- HERO ---------- */

.ma-ev .ma-ev-hero {
    padding: 64px 0 48px;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% -10%, rgba(201,154,60,0.25), transparent 60%),
        linear-gradient(180deg, var(--ma-plum-deep) 0%, var(--ma-plum) 60%);
}

.ma-ev .ma-ev-eyebrow {
    margin-bottom: 18px;
    color: var(--ma-gold-soft);
    font-size: 14px;
    letter-spacing: 0.02em;
}

.ma-ev .ma-ev-date {
    margin-bottom: 10px;
    color: var(--ma-gold);
    font-size: 20px;
}

.ma-ev .ma-ev-title {
    margin: 0 0 18px;
    padding: 0;
    color: var(--ma-ivory);
    font-size: clamp(38px, 9vw, 58px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: normal;
    text-transform: none;
}

.ma-ev .ma-ev-subhead {
    max-width: 38ch;
    margin: 0 auto;
    color: rgba(246,238,225,0.82);
    font-size: 17px;
    line-height: 1.6;
}

.ma-ev .ma-ev-subhead strong {
    color: var(--ma-ivory);
    font-weight: 600;
}

.ma-ev .ma-ev-past {
    display: inline-block;
    margin-top: 20px;
    padding: 6px 14px;
    border: 1px solid rgba(201,154,60,0.5);
    border-radius: 2px;
    color: var(--ma-gold-soft);
    font-size: 13px;
}

.ma-ev .ma-ev-rule {
    width: 64px;
    height: 2px;
    margin: 28px auto 0;
    border: 0;
    background: var(--ma-gold);
    opacity: 1;
}


/* ---------- GALLERY: single-image slider (background like the home page "Last Videos") ---------- */

.ma-ev .ma-ev-gallery {
    padding: 64px 0;
    background-color: var(--ma-plum-deep);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-top: 1px solid rgba(201,154,60,0.35);
    border-bottom: 1px solid rgba(201,154,60,0.35);
}

.ma-ev .ma-ev-gallery-inner {
    max-width: 1148px;
    margin: 0 auto;
    padding: 0 24px;
}

.ma-ev .ma-ev-carousel {
    position: relative;
}

.ma-ev .ma-ev-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    border-radius: 16px;
    outline: none;
    box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}

.ma-ev .ma-ev-track::-webkit-scrollbar {
    display: none;
}

.ma-ev .ma-ev-slide {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* blurred copy of the photo fills the empty sides */
.ma-ev .ma-ev-slide:before {
    content: "";
    position: absolute;
    inset: -40px;
    background: var(--ma-bg) center / cover no-repeat;
    filter: blur(28px) brightness(0.55);
    transform: scale(1.1);
}

/* whole photo is always visible (no cropping) */
.ma-ev .ma-ev-slide img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
}

.ma-ev .ma-ev-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    padding: 0;
    border: 1px solid var(--ma-btn-gold);
    border-radius: 50%;
    background: rgba(28,9,16,0.75);
    color: #fff;
    font-size: 30px;
    line-height: 44px;
    text-align: center;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.ma-ev .ma-ev-nav[hidden] {
    display: none;
}

.ma-ev .ma-ev-nav:hover,
.ma-ev .ma-ev-nav:focus-visible {
    background: var(--ma-btn-gold);
    color: #fff;
}

.ma-ev .ma-ev-prev { left: 20px; }
.ma-ev .ma-ev-next { right: 20px; }

.ma-ev .ma-ev-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.ma-ev .ma-ev-dots[hidden] {
    display: none;
}

.ma-ev .ma-ev-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.ma-ev .ma-ev-dot.is-active {
    background: var(--ma-btn-gold);
    transform: scale(1.25);
}


/* ---------- SERVICE DETAILS ---------- */

.ma-ev .ma-ev-program {
    padding: 44px 0 8px;
}

.ma-ev .ma-ev-program-title {
    margin-bottom: 26px;
    color: var(--ma-gold-soft);
    font-size: 13px;
    text-align: center;
}

.ma-ev .ma-ev-program-list {
    border-top: 1px solid rgba(201,154,60,0.3);
}

.ma-ev .ma-ev-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(201,154,60,0.3);
    font-size: 16px;
}

.ma-ev .ma-ev-label {
    color: rgba(246,238,225,0.65);
}

.ma-ev .ma-ev-value {
    font-weight: 500;
    text-align: right;
}

.ma-ev .ma-ev-value.ma-ev-gold {
    color: var(--ma-gold);
    font-weight: 600;
}


/* ---------- PERFORMERS ---------- */

.ma-ev .ma-ev-performers {
    padding: 52px 0 8px;
}

.ma-ev .ma-ev-section-title {
    margin: 0 0 8px;
    padding: 0;
    color: var(--ma-ivory);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-transform: none;
}

.ma-ev .ma-ev-section-sub {
    margin: 0 0 32px;
    color: rgba(246,238,225,0.6);
    font-size: 14px;
    text-align: center;
}

.ma-ev .ma-ev-performer {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(201,154,60,0.22);
}

.ma-ev .ma-ev-performer:first-child {
    border-top: 1px solid rgba(201,154,60,0.22);
}

.ma-ev .ma-ev-mark {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ma-crimson), var(--ma-gold));
    color: var(--ma-ivory);
    font-family: 'Fraunces', serif;
    font-size: 17px;
    font-weight: 600;
}

.ma-ev .ma-ev-performer-name {
    font-size: 16px;
    font-weight: 500;
}

.ma-ev .ma-ev-performer-role {
    margin-top: 2px;
    color: rgba(246,238,225,0.55);
    font-size: 13px;
}


/* ---------- CALENDAR ---------- */

.ma-ev .ma-ev-cal {
    padding: 56px 0 8px;
    text-align: center;
}

.ma-ev .ma-ev-cal-title {
    margin-bottom: 20px;
    color: rgba(246,238,225,0.7);
    font-size: 16px;
}

.ma-ev .ma-ev-cal-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.ma-ev .ma-ev-cal-btn {
    display: inline-block;
    padding: 11px 20px;
    border: 1px solid var(--ma-gold);
    border-radius: 2px;
    color: var(--ma-gold-soft);
    font-size: 14px;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.ma-ev .ma-ev-cal-btn:hover,
.ma-ev .ma-ev-cal-btn:focus-visible {
    background: var(--ma-gold);
    color: var(--ma-plum-deep);
}


/* ---------- CTA ---------- */

.ma-ev .ma-ev-cta {
    margin: 56px 0 0;
    padding: 36px 0 40px;
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(140,44,59,0.28));
    border-top: 1px solid rgba(201,154,60,0.35);
}

.ma-ev .ma-ev-cta-note {
    margin: 0 0 22px;
    color: rgba(246,238,225,0.75);
    font-size: 15px;
    line-height: 1.6;
}

.ma-ev .ma-ev-cta-btn {
    display: inline-block;
    padding: 15px 36px;
    border-radius: 2px;
    background: var(--ma-gold);
    color: var(--ma-plum-deep);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s ease;
}

.ma-ev .ma-ev-cta-btn:hover,
.ma-ev .ma-ev-cta-btn:focus-visible {
    background: var(--ma-gold-soft);
    color: var(--ma-plum-deep);
}


/* ---------- FOOTER LINE ---------- */

.ma-ev .ma-ev-foot {
    padding: 36px 24px 60px;
    color: rgba(246,238,225,0.5);
    font-size: 13px;
    text-align: center;
}

.ma-ev .ma-ev-foot a {
    color: var(--ma-gold-soft);
}

.ma-ev .ma-ev-foot a:hover {
    text-decoration: underline;
}


/* ---------- RESPONSIVE ---------- */

@media (max-width: 1024px) {
    .ma-ev .ma-ev-slide { aspect-ratio: 4 / 3; }
    .ma-ev .ma-ev-prev { left: 12px; }
    .ma-ev .ma-ev-next { right: 12px; }
}

@media (max-width: 767px) {
    /* the banner already leaves empty space below its image on phones */
    .ma-ev .ma-ev-hero { padding-top: 8px; }
    .ma-ev .ma-ev-gallery { padding: 40px 0; }
    .ma-ev .ma-ev-gallery-inner { padding: 0 16px; }
    .ma-ev .ma-ev-slide { aspect-ratio: 4 / 5; }
    .ma-ev .ma-ev-nav { width: 40px; height: 40px; margin-top: -20px; font-size: 26px; line-height: 36px; }
    .ma-ev .ma-ev-prev { left: 8px; }
    .ma-ev .ma-ev-next { right: 8px; }
    .ma-ev .ma-ev-dots { margin-top: 20px; }
    .ma-ev .ma-ev-wrap { padding: 0 20px; }
    .ma-ev .ma-ev-row { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    .ma-ev .ma-ev-track { scroll-behavior: auto; }
    .ma-ev .ma-ev-cal-btn,
    .ma-ev .ma-ev-cta-btn { transition: none; }
}
