/* ════════════════════════════════════════════════════════════════════
   MEC EVENT PAGE TEMPLATE v1 (mec-ep-*)
   Styles for the auto-generated event pages injected by
   MEC_Event_Page_Template. Values follow the "MEC Neon Void" design
   system (MEC-PAGE/04-sistema-de-diseno.md); P1-5 will migrate them
   to global --mec-* tokens.
   ════════════════════════════════════════════════════════════════════ */

/* --- top bar --------------------------------------------------------- */
.mec-ep-topbar {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 4px;
}

.mec-ep-logo {
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: .14em;
    text-decoration: none;
    color: #FDF7FF;
}

.mec-ep-logo b {
    color: #FF1F7A;
}

.mec-ep-back {
    color: #B29FC4;
    text-decoration: none;
    font-size: .85rem;
}

.mec-ep-back:hover {
    color: #FDF7FF;
}

.mec-ep-topbtn {
    margin-left: auto;
    padding: 9px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #FF1F7A 0%, #FFC94D 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: .85rem;
}

.mec-ep-topbar-sec,
.mec-ep-section,
.mec-ep-footer {
    background: #0F0518;
    font-family: var(--mec-font-body, 'Manrope', sans-serif);
}

/* --- hero ------------------------------------------------------------ */
.mec-ep-hero {
    position: relative;
    overflow: hidden;
    background: #0F0518;
}

.mec-ep-hero > .elementor-container {
    position: relative;
    z-index: 2;
}

.mec-ep-hero-bg {
    position: absolute;
    inset: -8%;
    z-index: 0;
    background-size: cover;
    background-position: center;
    filter: blur(46px) saturate(1.3) brightness(.6);
    transform: scale(1.15);
    pointer-events: none;
}

.mec-ep-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(15, 5, 24, .25), rgba(15, 5, 24, .78) 78%, #0F0518);
    pointer-events: none;
}

.mec-ep-flyer img {
    border-radius: 25px;
    border: 1px solid rgba(253, 247, 255, .18);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 24px rgba(255, 31, 122, .45);
    animation: mec-ep-float 7s ease-in-out infinite;
}

@keyframes mec-ep-float {
    0%, 100% { transform: translateY(0) rotate(-1.2deg); }
    50% { transform: translateY(-14px) rotate(.6deg); }
}

.mec-ep-eyebrow {
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #FFC94D;
    margin: 0 0 4px;
}

.mec-ep-title h1,
.mec-ep-title .elementor-heading-title {
    font-family: var(--mec-font-display, 'Space Grotesk', sans-serif);
    text-transform: uppercase;
    line-height: 1.1;
    color: #FDF7FF;
}

.mec-ep-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 14px 0;
}

.mec-ep-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(25, 10, 38, .6);
    border: 1px solid rgba(255, 31, 122, .25);
    font-size: .78rem;
    color: #FDF7FF;
}

.mec-ep-chip::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #FFC94D;
}

.mec-ep-sub {
    color: #B29FC4;
    max-width: 46ch;
}

.mec-ep-btn .elementor-button {
    background: linear-gradient(135deg, #FF1F7A 0%, #FFC94D 100%);
    border-radius: 999px;
    padding: 16px 32px;
    font-weight: 600;
    box-shadow: 0 0 24px rgba(255, 31, 122, .45);
    animation: mec-ep-pulse 2.6s ease-in-out infinite;
    transition: transform .2s, box-shadow .2s;
}

.mec-ep-btn .elementor-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 38px rgba(255, 31, 122, .65);
}

@keyframes mec-ep-pulse {
    0%, 100% { box-shadow: 0 0 18px rgba(255, 31, 122, .4); }
    50% { box-shadow: 0 0 42px rgba(255, 201, 77, .55); }
}

/* --- headings / cards ------------------------------------------------- */
.mec-ep-h2 .elementor-heading-title,
.mec-ep-h3 .elementor-heading-title {
    font-family: var(--mec-font-display, 'Space Grotesk', sans-serif);
    text-transform: uppercase;
    letter-spacing: .03em;
}

.mec-ep-card {
    background: rgba(25, 10, 38, .55);
    border: 1px solid rgba(255, 31, 122, .25);
    border-radius: 20px;
    padding: 26px;
    margin: 10px;
}

.mec-ep-muted {
    color: #B29FC4;
}

/* --- info list --------------------------------------------------------- */
ul.mec-ep-info {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
}

ul.mec-ep-info li {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

ul.mec-ep-info li span {
    font-size: .64rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #B29FC4;
}

ul.mec-ep-info li strong {
    color: #FDF7FF;
}

.mec-ep-spotify {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(52, 211, 153, .4);
    color: #34D399;
    font-size: .85rem;
    text-decoration: none;
}

.mec-ep-spotify:hover {
    background: rgba(52, 211, 153, .1);
    color: #34D399;
}

/* --- venue --------------------------------------------------------------- */
.mec-ep-venue {
    color: #B29FC4;
}

.mec-ep-venue strong {
    color: #FDF7FF;
    font-size: 1.05rem;
}

.mec-ep-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 31, 122, .25);
    color: #FDF7FF;
    text-decoration: none;
    font-size: .9rem;
    transition: all .2s;
}

.mec-ep-ghost:hover {
    border-color: #FF5C9E;
    color: #FF5C9E;
}

/* --- social pills ----------------------------------------------------------- */
.mec-ep-pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.mec-ep-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 31, 122, .25);
    background: rgba(25, 10, 38, .5);
    color: #FDF7FF;
    text-decoration: none;
    font-size: .9rem;
    transition: border-color .2s, box-shadow .2s, transform .2s, color .2s;
}

/* Official platform logo (see mec_social_icon_map() in mec-functions.php) —
   neutral by default, reveals its real brand color on hover/focus. */
.mec-ep-pill__icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    color: currentColor;
    flex-shrink: 0;
}

.mec-ep-pill__icon svg {
    width: 100%;
    height: 100%;
}

.mec-ep-pill:hover,
.mec-ep-pill:focus-visible {
    border-color: var(--mec-social-color, #FFC94D);
    box-shadow: 0 0 24px rgba(255, 201, 77, .35); /* fallback for browsers without color-mix() */
    box-shadow: 0 0 24px color-mix(in srgb, var(--mec-social-color, #FFC94D) 45%, transparent);
    transform: translateY(-2px);
    color: #FDF7FF;
}

.mec-ep-pill:hover .mec-ep-pill__icon,
.mec-ep-pill:focus-visible .mec-ep-pill__icon {
    color: var(--mec-social-color, #FFC94D);
}

/* --- footer -------------------------------------------------------------------- */
.mec-ep-footer {
    border-top: 1px solid rgba(178, 159, 196, .15);
}

.mec-ep-footline {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 26px 4px 120px;
    color: #B29FC4;
    font-size: .85rem;
}

.mec-ep-footline nav {
    display: flex;
    gap: 18px;
}

.mec-ep-footline a {
    color: #B29FC4;
    text-decoration: none;
}

.mec-ep-footline a:hover {
    color: #FDF7FF;
}

/* --- sticky mobile CTA ------------------------------------------------------------ */
.mec-ep-sticky {
    display: none;
    font-family: var(--mec-font-body, 'Manrope', sans-serif);
}

@media (max-width: 720px) {
    .mec-ep-sticky {
        display: block;
        position: fixed;
        left: 14px;
        right: 14px;
        bottom: 14px;
        z-index: 50;
        background: rgba(25, 10, 38, .85);
        border: 1px solid rgba(255, 31, 122, .25);
        border-radius: 999px;
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        padding: 8px 12px;
    }

    .mec-ep-hero-bg {
        filter: blur(30px) saturate(1.3) brightness(.55);
    }
}

/* ════════════════════════════════════════════════════════════════════
   P1-4 WIDGETS (template v2): MEC Event Hero, Event Info, Venue Map,
   Organizer Profile, Social Links.
   ════════════════════════════════════════════════════════════════════ */

/* --- MEC Event Hero ---------------------------------------------------- */
.mec-hero {
    position: relative;
    overflow: hidden;
    min-height: 86vh;
    display: flex;
    align-items: center;
    background: #0F0518;
}

.mec-hero__bg {
    position: absolute;
    inset: -8%;
    z-index: 0;
    background-size: cover;
    background-position: center;
    filter: blur(46px) saturate(1.3) brightness(.6);
    transform: scale(1.15);
    pointer-events: none;
}

.mec-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(15, 5, 24, .25), rgba(15, 5, 24, .78) 78%, #0F0518);
    pointer-events: none;
}

.mec-hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 56px;
    align-items: center;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 110px 22px 80px;
}

.mec-hero__flyer img {
    width: 100%;
    border-radius: 25px;
    border: 1px solid rgba(253, 247, 255, .18);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 24px rgba(255, 31, 122, .45);
    animation: mec-ep-float 7s ease-in-out infinite;
}

.mec-hero__eyebrow {
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #FFC94D;
    margin: 0 0 6px;
}

.mec-hero__title {
    margin: 0;
    font-family: var(--mec-font-display, 'Space Grotesk', sans-serif);
    text-transform: uppercase;
    line-height: 1.1;
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    color: #FDF7FF;
    text-wrap: balance;
}

.mec-hero__sub {
    color: #B29FC4;
    max-width: 46ch;
    margin: 14px 0 0;
}

.mec-hero__cta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.mec-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 999px;
    background: linear-gradient(135deg, #FF1F7A 0%, #FFC94D 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 0 24px rgba(255, 31, 122, .45);
    animation: mec-ep-pulse 2.6s ease-in-out infinite;
    transition: transform .2s, box-shadow .2s;
}

.mec-hero__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 38px rgba(255, 31, 122, .65);
    color: #fff;
}

.mec-ep-badge {
    display: inline-block;
    background: #D4FF3D;
    color: #131505;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 6px;
}

.mec-ep-badge--done {
    background: rgba(178, 159, 196, .25);
    color: #B29FC4;
}

/* --- shared widget panel ------------------------------------------------- */
.mec-w-panel {
    background: rgba(25, 10, 38, .55);
    border: 1px solid rgba(255, 31, 122, .25);
    border-radius: 20px;
    padding: 26px;
}

.mec-w-heading {
    margin: 0 0 16px;
    font-family: var(--mec-font-display, 'Space Grotesk', sans-serif);
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #FDF7FF;
}

/* --- MEC Venue Map ---------------------------------------------------------- */
.mec-w-map__facade {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    height: 230px;
    margin-bottom: 14px;
    border-radius: 14px;
    background:
        radial-gradient(circle at 55% 45%, rgba(255, 31, 122, .25), transparent 40%),
        repeating-linear-gradient(0deg, transparent 0 39px, rgba(255, 201, 77, .12) 39px 40px),
        repeating-linear-gradient(90deg, transparent 0 39px, rgba(255, 201, 77, .12) 39px 40px),
        #22102F;
}

.mec-w-map__pin {
    width: 18px;
    height: 18px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: linear-gradient(135deg, #FF1F7A 0%, #FFC94D 100%);
    box-shadow: 0 0 24px rgba(255, 31, 122, .45);
}

.mec-w-map__frame {
    display: none;
    width: 100%;
    height: 230px;
    border: 0;
    border-radius: 14px;
    margin-bottom: 14px;
}

.mec-w-map.is-loaded .mec-w-map__facade {
    display: none;
}

.mec-w-map.is-loaded .mec-w-map__frame {
    display: block;
}

/* --- MEC Organizer Profile ----------------------------------------------------- */
.mec-w-org {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mec-w-org__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex: none;
}

.mec-w-org__avatar--initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FF1F7A 0%, #FFC94D 100%);
    box-shadow: 0 0 24px rgba(255, 31, 122, .45);
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
}

.mec-w-org__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mec-w-org__name {
    font-weight: 600;
    font-size: 1.05rem;
    color: #FDF7FF;
}

.mec-w-org__meta {
    font-size: .85rem;
    color: #B29FC4;
}

.mec-w-org__btn {
    margin-left: auto;
    margin-top: 0;
}

/* --- responsive -------------------------------------------------------------------- */
@media (max-width: 880px) {
    .mec-hero__inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-top: 90px;
    }

    .mec-hero__flyer {
        max-width: 250px;
    }

    .mec-hero__bg {
        filter: blur(30px) saturate(1.3) brightness(.55);
    }
}

/* --- accessibility ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    .mec-ep-flyer img,
    .mec-ep-btn .elementor-button,
    .mec-hero__flyer img,
    .mec-hero__btn {
        animation: none !important;
    }

    .mec-ep-btn .elementor-button:hover,
    .mec-ep-pill:hover,
    .mec-hero__btn:hover {
        transform: none;
    }
}

/* ════════════════════════════════════════════════════════════════════
   MEC HYPE METER (mec-hype-*)
   Playful clickable gauge widget (class-mec-widget-hype-meter.php).
   Fill colors are Elementor Color controls (--mec-hype-start/-end custom
   properties set inline per instance); defaults match MEC Neon Void.
   ════════════════════════════════════════════════════════════════════ */
.mec-hype {
    text-align: center;
    max-width: 460px;
    margin: 0 auto;
    font-family: var(--mec-font-body, 'Manrope', sans-serif);
}

.mec-hype-heading {
    font-family: var(--mec-font-display, 'Space Grotesk', sans-serif);
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: #FDF7FF;
    margin: 0 0 8px;
}

.mec-hype-sub {
    color: #B29FC4;
    font-size: .92rem;
    margin: 0 0 20px;
    line-height: 1.6;
}

.mec-hype-track {
    height: 30px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 31, 122, .25);
    overflow: hidden;
    position: relative;
}

.mec-hype-fill {
    --mec-hype-start: #FF1F7A;
    --mec-hype-end: #FFC94D;
    height: 100%;
    width: 15%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--mec-hype-start), var(--mec-hype-end));
    transition: width .6s cubic-bezier(.34, 1.56, .64, 1);
}

.mec-hype-label {
    margin-top: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .85rem;
    color: #FDF7FF;
    font-variant-numeric: tabular-nums;
}

.mec-hype-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 16px 36px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(90deg, #FF1F7A, #FFC94D);
    color: #fff;
    font-family: var(--mec-font-display, 'Space Grotesk', sans-serif);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    font-size: .95rem;
    cursor: pointer;
    box-shadow: 0 0 24px rgba(255, 31, 122, .45);
    transition: transform .15s ease, box-shadow .2s ease;
}

.mec-hype-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 38px rgba(255, 31, 122, .65);
}

.mec-hype-btn:active {
    transform: scale(.96);
}

@media (prefers-reduced-motion: reduce) {
    .mec-hype-fill {
        transition: none;
    }

    .mec-hype-btn:hover,
    .mec-hype-btn:active {
        transform: none;
    }
}

/* ════════════════════════════════════════════════════════════════════
   "THE NOISE" (event-page-v3): Hero Cinematic, Marquee Ticker,
   Stat Chips, Reel Wall, Lineup, Testimonials.
   ════════════════════════════════════════════════════════════════════ */

/* --- MEC Hero Cinematic ------------------------------------------------ */
.mec-herox {
    position: relative;
    overflow: hidden;
    min-height: 0;
    display: flex;
    align-items: flex-start;
    font-family: var(--mec-font-body, 'Manrope', sans-serif);
    background: var(--mec-bg, #0F0518);
}

.mec-herox__beams,
.mec-herox__static-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.mec-herox__static-bg {
    background: radial-gradient(ellipse 70% 60% at 50% 20%, rgba(255, 31, 122, .18), transparent 60%),
                radial-gradient(ellipse 60% 50% at 80% 80%, rgba(255, 201, 77, .12), transparent 60%),
                var(--mec-bg, #0F0518);
}

.mec-herox__cursor-glow {
    position: absolute;
    width: 340px;
    height: 340px;
    left: 0;
    top: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(circle, rgba(255, 31, 122, .14), transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity .3s;
}

.mec-herox::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(ellipse 70% 55% at 50% 100%, rgba(15, 5, 24, .2), transparent 60%),
                linear-gradient(180deg, rgba(15, 5, 24, .1) 0%, rgba(15, 5, 24, .55) 72%, var(--mec-bg, #0F0518) 100%);
    pointer-events: none;
}

.mec-herox__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 56px 24px 70px;
}

.mec-herox__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    justify-items: center;
    text-align: center;
    grid-template-areas: "top" "flyer" "bottom";
}

.mec-herox__top { grid-area: top; }
.mec-herox__visual { grid-area: flyer; display: flex; justify-content: center; }
.mec-herox__bottom { grid-area: bottom; display: flex; flex-direction: column; align-items: center; gap: 22px; }

@media (min-width: 960px) {
    .mec-herox__layout {
        grid-template-columns: 1.05fr .95fr;
        grid-template-areas: "top flyer" "bottom flyer";
        align-items: center;
        gap: 14px 56px;
        justify-items: stretch;
        text-align: left;
    }

    .mec-herox__top,
    .mec-herox__bottom {
        text-align: left;
    }

    .mec-herox__badges,
    .mec-herox__cta {
        justify-content: flex-start;
    }

    .mec-herox__bottom {
        align-items: flex-start;
    }
}

.mec-herox__badges {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.mec-herox__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mec-font-display, 'Space Grotesk', sans-serif);
    font-weight: 800;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 9px 16px;
    border-radius: 999px;
    white-space: nowrap;
    color: #fff;
}

.mec-herox__badge--primary { background: var(--mec-primary, #FF1F7A); }
.mec-herox__badge--secondary { background: var(--mec-secondary, #FFC94D); color: #2a1505; }
.mec-herox__badge--accent { background: var(--mec-accent, #D4FF3D); color: #0f1a02; }

.mec-herox__eyebrow {
    font-size: .78rem;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--mec-accent, #D4FF3D);
    margin: 0 0 22px;
    font-weight: 600;
}

.mec-herox__glitch-wrap {
    position: relative;
    display: inline-block;
}

.mec-herox__title {
    margin: 0;
    font-family: var(--mec-font-display, 'Space Grotesk', sans-serif);
    font-size: clamp(2.6rem, 8vw, 6rem);
    font-weight: 900;
    line-height: .92;
    letter-spacing: -.02em;
    text-transform: uppercase;
    position: relative;
    text-wrap: balance;
}

.mec-herox__glitch-wrap:hover .mec-herox__title::before,
.mec-herox__glitch-wrap:hover .mec-herox__title::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    mix-blend-mode: screen;
}

.mec-herox__glitch-wrap:hover .mec-herox__title::before {
    color: var(--mec-primary, #FF1F7A);
    opacity: .7;
    animation: mec-herox-glitch-l .35s steps(2) 2;
}

.mec-herox__glitch-wrap:hover .mec-herox__title::after {
    color: var(--mec-accent, #D4FF3D);
    opacity: .7;
    animation: mec-herox-glitch-r .35s steps(2) 2;
}

@keyframes mec-herox-glitch-l {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-4px, 2px); }
    50% { transform: translate(3px, -2px); }
    75% { transform: translate(-2px, 1px); }
    100% { transform: translate(0, 0); }
}

@keyframes mec-herox-glitch-r {
    0% { transform: translate(0, 0); }
    25% { transform: translate(4px, -2px); }
    50% { transform: translate(-3px, 2px); }
    75% { transform: translate(2px, -1px); }
    100% { transform: translate(0, 0); }
}

.mec-herox__sub {
    font-size: clamp(1.15rem, 2.2vw, 1.5rem);
    font-style: italic;
    margin: 16px 0 0;
    color: var(--mec-text, #FDF7FF);
}

.mec-herox__tag {
    color: var(--mec-text-muted, #B29FC4);
    font-size: 1.02rem;
    max-width: 46ch;
    margin: 20px 0 0;
    line-height: 1.6;
}

.mec-herox__credit {
    color: var(--mec-text-muted, #B29FC4);
    font-size: .78rem;
    opacity: .75;
    max-width: 46ch;
    margin: 12px 0 0;
}

.mec-herox__flyer {
    position: relative;
    width: min(300px, 72vw);
    aspect-ratio: 3 / 4;
    margin: 16px auto;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(253, 247, 255, .14);
    box-shadow: 0 40px 80px -28px rgba(0, 0, 0, .75);
    transform: rotate(-3deg);
    transition: transform .35s cubic-bezier(.2, .7, .3, 1), box-shadow .35s;
}

.mec-herox__flyer::before {
    content: "";
    position: absolute;
    inset: -34px;
    z-index: -1;
    border-radius: 44px;
    background: radial-gradient(closest-side, rgba(255, 31, 122, .4), transparent 72%);
    filter: blur(14px);
    pointer-events: none;
}

.mec-herox__flyer:hover {
    transform: rotate(0deg) translateY(-6px) scale(1.02);
    box-shadow: 0 50px 100px -26px rgba(0, 0, 0, .85);
}

.mec-herox__flyer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mec-herox__going {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(253, 247, 255, .12);
    color: var(--mec-text, #FDF7FF);
    font-size: .92rem;
}

.mec-herox__going b {
    font-variant-numeric: tabular-nums;
    font-size: 1.05rem;
}

.mec-herox__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.mec-herox__btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, var(--mec-primary, #FF1F7A), var(--mec-secondary, #FFC94D));
    color: #1a0510;
    font-weight: 800;
    padding: 18px 38px;
    border-radius: 999px;
    font-size: 1.02rem;
    text-decoration: none;
    box-shadow: 0 18px 40px -12px rgba(255, 31, 122, .55);
    transition: transform .2s, box-shadow .2s;
}

.mec-herox__btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 22px 48px -10px rgba(255, 31, 122, .7);
    color: #1a0510;
}

.mec-herox__btn-ghost {
    border: 1px solid rgba(253, 247, 255, .18);
    color: var(--mec-text, #FDF7FF);
    padding: 18px 28px;
    border-radius: 999px;
    font-size: .95rem;
    text-decoration: none;
    transition: border-color .2s, transform .2s;
}

.mec-herox__btn-ghost:hover {
    border-color: var(--mec-accent, #D4FF3D);
    transform: translateY(-2px);
    color: var(--mec-text, #FDF7FF);
}

/* --- MEC Marquee Ticker ------------------------------------------------- */
.mec-marquee {
    overflow: hidden;
    background: var(--mec-surface, #190A26);
    border-top: 1px solid rgba(253, 247, 255, .1);
    border-bottom: 1px solid rgba(253, 247, 255, .1);
    padding: 16px 0;
    font-family: var(--mec-font-display, 'Space Grotesk', sans-serif);
}

.mec-marquee__track {
    display: flex;
    width: max-content;
    animation-name: mec-marquee-scroll;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes mec-marquee-scroll {
    to { transform: translateX(-50%); }
}

.mec-marquee__item {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 0 28px;
    white-space: nowrap;
}

.mec-marquee__item--hot {
    --mec-marquee-start: #D4FF3D;
    --mec-marquee-end: #FF1F7A;
    background: linear-gradient(90deg, var(--mec-marquee-start), var(--mec-marquee-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --- MEC Stat Chips ------------------------------------------------------ */
.mec-stat-chips {
    display: flex;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
    font-family: var(--mec-font-body, 'Manrope', sans-serif);
    max-width: 1000px;
    margin: 0 auto;
}

.mec-stat-chip {
    background: var(--mec-surface, #190A26);
    border: 1px solid rgba(253, 247, 255, .1);
    border-radius: 20px;
    padding: 24px 28px;
    text-align: center;
    transform: rotate(var(--mec-stat-r, 0deg));
    transition: transform .25s, border-color .25s;
}

.mec-stat-chip:hover {
    transform: rotate(0deg) translateY(-6px);
    border-color: var(--mec-primary, #FF1F7A);
}

.mec-stat-chip__num {
    --mec-stat-start: #D4FF3D;
    --mec-stat-end: #FF1F7A;
    display: block;
    font-family: var(--mec-font-display, 'Space Grotesk', sans-serif);
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(90deg, var(--mec-stat-start), var(--mec-stat-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.mec-stat-chip__label {
    font-size: .66rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--mec-text-muted, #B29FC4);
    margin-top: 6px;
    display: block;
}

/* --- MEC Reel Wall -------------------------------------------------------- */
.mec-reel-wall__heading {
    font-family: var(--mec-font-display, 'Space Grotesk', sans-serif);
    text-transform: uppercase;
    letter-spacing: .03em;
    text-align: center;
    color: var(--mec-text, #FDF7FF);
    margin: 0 0 24px;
}

.mec-reel-wall {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 10px 4px 24px;
    scrollbar-width: thin;
    font-family: var(--mec-font-body, 'Manrope', sans-serif);
    cursor: grab;
    user-select: none;
}

.mec-reel-wall.mec-is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

.mec-reel-wall.mec-is-dragging .mec-reel {
    pointer-events: none;
}

.mec-reel {
    flex: 0 0 210px;
    aspect-ratio: 9 / 16;
    border-radius: 22px;
    position: relative;
    overflow: hidden;
    display: block;
    cursor: pointer;
    border: 3px solid #000;
    background: var(--mec-surface-2, #22102F);
    box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .6);
    transition: transform .25s;
}

.mec-reel:hover {
    transform: translateY(-8px) rotate(-1deg);
}

.mec-reel__notch {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 16px;
    background: #000;
    border-radius: 10px;
    z-index: 3;
}

.mec-reel__poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mec-reel__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(15, 5, 24, .92));
}

.mec-reel__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .4);
    border: 1px solid rgba(255, 255, 255, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform .2s, background .2s;
}

.mec-reel:hover .mec-reel__play {
    transform: translate(-50%, -50%) scale(1.15);
    background: var(--mec-primary, #FF1F7A);
    border-color: var(--mec-primary, #FF1F7A);
}

.mec-reel__meta {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    color: #fff;
}

.mec-reel__name {
    font-weight: 800;
    font-size: .85rem;
}

.mec-reel__views {
    font-size: .68rem;
    color: rgba(255, 255, 255, .7);
    margin-top: 2px;
}

/* --- MEC Lineup ------------------------------------------------------------ */
.mec-lineup-row {
    text-align: center;
    margin-bottom: 30px;
    font-family: var(--mec-font-display, 'Space Grotesk', sans-serif);
}

.mec-lineup-row__label {
    font-size: .68rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--mec-text-muted, #B29FC4);
    margin-bottom: 16px;
}

.mec-lineup-row__names {
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.mec-lineup-row--headliners .mec-lineup-row__names {
    font-size: clamp(1.8rem, 4.4vw, 3rem);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--mec-text, #FDF7FF);
}

.mec-lineup-row--support .mec-lineup-row__names {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--mec-text-muted, #B29FC4);
}

.mec-lineup-row__dot {
    margin: 0 .5em;
    color: var(--mec-accent, #D4FF3D);
}

/* --- MEC Testimonials -------------------------------------------------------- */
.mec-testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    font-family: var(--mec-font-body, 'Manrope', sans-serif);
}

.mec-testi {
    background: var(--mec-surface, #190A26);
    border: 1px solid rgba(253, 247, 255, .1);
    border-radius: 16px;
    padding: 26px;
    transition: transform .2s;
}

.mec-testi:nth-child(3n+1) { transform: rotate(-1.5deg); }
.mec-testi:nth-child(3n+2) { transform: rotate(1deg); }
.mec-testi:nth-child(3n+3) { transform: rotate(-.5deg); }

.mec-testi:hover {
    transform: rotate(0deg) translateY(-4px);
}

.mec-testi__stars {
    color: var(--mec-accent, #D4FF3D);
    letter-spacing: .15em;
    font-size: .9rem;
}

.mec-testi__quote {
    font-size: 1rem;
    line-height: 1.7;
    margin: 14px 0 0;
    color: var(--mec-text, #FDF7FF);
}

.mec-testi__who {
    margin-top: 18px;
    font-size: .8rem;
    color: var(--mec-text-muted, #B29FC4);
    display: flex;
    align-items: center;
    gap: 10px;
}

.mec-testi__who b {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mec-primary, #FF1F7A), var(--mec-secondary, #FFC94D));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a0510;
    font-size: .68rem;
    font-weight: 900;
    flex-shrink: 0;
}

@media (max-width: 820px) {
    .mec-testi-grid {
        grid-template-columns: 1fr;
    }
}

/* --- scroll reveal (site-wide, bound in mec-public.js) ------------------- */
.mec-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1);
}

.mec-reveal.mec-reveal--in {
    opacity: 1;
    transform: none;
}

/* --- sticky topbar -------------------------------------------------------- */
.mec-ep-topbar-sec {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(15, 5, 24, .82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* --- marquee pauses on hover so it can actually be read ------------------- */
.mec-marquee:hover .mec-marquee__track {
    animation-play-state: paused;
}

/* --- scroll-snap on the reel wall ------------------------------------------ */
.mec-reel-wall {
    scroll-snap-type: x proximity;
}

.mec-reel {
    scroll-snap-align: center;
}

/* --- hero flyer fade-in instead of popping in ------------------------------ */
.mec-herox__flyer img {
    animation: mec-fade-in .6s ease both;
    animation-delay: .15s;
}

@keyframes mec-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- tactile press feedback on primary buttons ----------------------------- */
.mec-herox__btn-primary:active,
.mec-herox__btn-ghost:active {
    transform: scale(.96);
}

/* --- stat chip number "pop" on hover ---------------------------------------- */
.mec-stat-chip__num {
    transition: transform .2s ease;
    display: block;
}

.mec-stat-chip:hover .mec-stat-chip__num {
    transform: scale(1.1);
}

/* --- scroll progress bar (site-wide, bound in mec-public.js) --------------- */
#mec-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    z-index: 9999;
    background: linear-gradient(90deg, var(--mec-accent, #D4FF3D), var(--mec-primary, #FF1F7A));
    pointer-events: none;
    transition: width .1s linear;
}

/* --- keyboard focus, event-page-wide ---------------------------------------- */
.mec-ep-topbar-sec a:focus-visible,
.mec-ep-section a:focus-visible,
.mec-ep-section button:focus-visible,
.mec-ep-footer a:focus-visible,
.mec-ep-sticky a:focus-visible,
.mec-herox a:focus-visible,
.mec-herox button:focus-visible,
.mec-reel:focus-visible {
    outline: 2px solid var(--mec-accent, #D4FF3D);
    outline-offset: 3px;
}

/* --- MEC Share Button ---------------------------------------------------------- */
.mec-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    border: 1px solid rgba(255, 31, 122, .3);
    background: rgba(25, 10, 38, .55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--mec-text, #FDF7FF);
    font-family: var(--mec-font-body, 'Manrope', sans-serif);
    font-size: .9rem;
    font-weight: 700;
    padding: 14px 26px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 0 0 rgba(255, 31, 122, 0);
    transition: border-color .2s, transform .2s, box-shadow .3s, background .2s;
}

.mec-share-btn::before {
    content: '↗';
    display: inline-flex;
    font-size: 1rem;
    color: var(--mec-accent, #D4FF3D);
    transition: transform .25s ease;
}

.mec-share-btn:hover {
    border-color: transparent;
    background: linear-gradient(rgba(25, 10, 38, .82), rgba(25, 10, 38, .82)) padding-box,
                linear-gradient(90deg, var(--mec-primary, #FF1F7A), var(--mec-secondary, #FFC94D)) border-box;
    border: 1px solid transparent;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px -12px rgba(255, 31, 122, .55);
}

.mec-share-btn:hover::before {
    transform: translate(2px, -2px);
}

.mec-share-toast {
    position: fixed;
    left: 50%;
    bottom: 30px;
    transform: translate(-50%, 12px);
    background: var(--mec-surface, #190A26);
    border: 1px solid rgba(212, 255, 61, .4);
    color: var(--mec-text, #FDF7FF);
    padding: 13px 24px;
    border-radius: 999px;
    font-family: var(--mec-font-body, 'Manrope', sans-serif);
    font-size: .88rem;
    font-weight: 700;
    z-index: 9999;
    opacity: 0;
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5);
    transition: opacity .25s ease, transform .25s ease;
}

.mec-share-toast::before {
    content: '✓ ';
    color: var(--mec-accent, #D4FF3D);
    font-weight: 900;
}

.mec-share-toast--in {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* --- MEC Add to Calendar --------------------------------------------------------- */
.mec-add-cal {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 24px;
}

.mec-add-cal__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(253, 247, 255, .16);
    background: rgba(25, 10, 38, .5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--mec-text, #FDF7FF);
    font-family: var(--mec-font-body, 'Manrope', sans-serif);
    font-size: .88rem;
    font-weight: 700;
    padding: 13px 22px;
    border-radius: 999px;
    text-decoration: none;
    transition: border-color .2s, transform .2s, box-shadow .3s;
}

.mec-add-cal__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: .9rem;
    flex-shrink: 0;
}

.mec-add-cal__btn:nth-child(1) .mec-add-cal__icon {
    background: rgba(255, 201, 77, .18);
}

.mec-add-cal__btn:nth-child(2) .mec-add-cal__icon {
    background: rgba(255, 31, 122, .18);
}

.mec-add-cal__btn:nth-child(1):hover {
    border-color: var(--mec-secondary, #FFC94D);
    transform: translateY(-3px);
    box-shadow: 0 14px 28px -14px rgba(255, 201, 77, .55);
    color: var(--mec-text, #FDF7FF);
}

.mec-add-cal__btn:nth-child(2):hover {
    border-color: var(--mec-primary, #FF1F7A);
    transform: translateY(-3px);
    box-shadow: 0 14px 28px -14px rgba(255, 31, 122, .55);
    color: var(--mec-text, #FDF7FF);
}

/* --- MEC FAQ Accordion -------------------------------------------------------------- */
.mec-faq {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 760px;
    margin: 0 auto;
}

.mec-faq__item {
    background: rgba(25, 10, 38, .55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(253, 247, 255, .1);
    border-radius: 16px;
    padding: 6px 24px;
    transition: border-color .25s, box-shadow .3s;
}

.mec-faq__item[open] {
    border-color: rgba(255, 31, 122, .4);
    box-shadow: 0 16px 34px -18px rgba(255, 31, 122, .45);
}

.mec-faq__question {
    font-family: var(--mec-font-display, 'Space Grotesk', sans-serif);
    font-weight: 700;
    font-size: 1rem;
    color: var(--mec-text, #FDF7FF);
    padding: 18px 40px 18px 0;
    cursor: pointer;
    list-style: none;
    position: relative;
    transition: color .2s;
}

.mec-faq__item[open] .mec-faq__question {
    background: linear-gradient(90deg, var(--mec-accent, #D4FF3D), var(--mec-primary, #FF1F7A));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.mec-faq__question::-webkit-details-marker {
    display: none;
}

.mec-faq__question::after {
    content: '+';
    position: absolute;
    right: 4px;
    top: 14px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(212, 255, 61, .12);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--mec-accent, #D4FF3D);
    transition: transform .25s, background .25s;
}

.mec-faq__item[open] .mec-faq__question::after {
    transform: rotate(135deg);
    background: linear-gradient(135deg, var(--mec-primary, #FF1F7A), var(--mec-secondary, #FFC94D));
    color: #fff;
}

.mec-faq__answer {
    color: var(--mec-text-muted, #B29FC4);
    font-size: .92rem;
    line-height: 1.7;
    margin: 0 0 20px;
}

@media (prefers-reduced-motion: reduce) {
    .mec-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .mec-share-toast,
    .mec-faq__question::after {
        transition: none;
    }

    .mec-marquee:hover .mec-marquee__track {
        animation-play-state: running;
    }

    .mec-reel-wall {
        scroll-snap-type: none;
    }

    .mec-herox__flyer img {
        animation: none;
    }

    #mec-scroll-progress {
        transition: none;
    }

    .mec-herox__glitch-wrap:hover .mec-herox__title::before,
    .mec-herox__glitch-wrap:hover .mec-herox__title::after {
        animation: none !important;
        content: none;
    }

    .mec-marquee__track {
        animation: none !important;
    }

    .mec-herox__flyer,
    .mec-herox__btn-primary,
    .mec-stat-chip,
    .mec-reel,
    .mec-testi,
    .mec-gallery__tile,
    .mec-gallery__tile img {
        transition: none !important;
    }

    .mec-herox__flyer:hover,
    .mec-herox__btn-primary:hover,
    .mec-stat-chip:hover,
    .mec-reel:hover,
    .mec-testi:hover,
    .mec-gallery__tile:hover,
    .mec-gallery__tile:hover img {
        transform: none !important;
    }
}

/* ════════════════════════════════════════════════════════════════════
   MEC Event Gallery (mec-gallery-*): auto-picks carousel (no photos of
   this event yet, falls back to random past-event shots) or grid
   (4x3 desktop / 2x3 mobile) — see class-mec-widget-event-gallery.php.
   ════════════════════════════════════════════════════════════════════ */
.mec-gallery {
    font-family: var(--mec-font-body, 'Manrope', sans-serif);
}

.mec-gallery__head {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 30px;
}

.mec-gallery__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 800;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid currentColor;
    margin-bottom: 14px;
}

.mec-gallery__tag--empty {
    background: rgba(255, 201, 77, .12);
}

.mec-gallery__tag--full {
    background: rgba(212, 255, 61, .12);
}

.mec-gallery__heading {
    font-family: var(--mec-font-display, 'Space Grotesk', sans-serif);
    font-size: clamp(1.6rem, 3.6vw, 2.2rem);
    text-transform: uppercase;
    color: var(--mec-text, #FDF7FF);
    margin: 0;
}

.mec-gallery__sub {
    color: var(--mec-text-muted, #B29FC4);
    margin: 10px 0 0;
    font-size: .92rem;
    line-height: 1.6;
}

/* ---------- carousel (fallback: past events) ---------- */
.mec-gallery__carousel-wrap {
    position: relative;
}

.mec-gallery__carousel {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 10px 4px 20px;
    scrollbar-width: none;
    cursor: grab;
}

/* 1-3 photos never overflow, so center them instead of leaving them
   pinned to the left edge of the track. */
.mec-gallery__carousel--sparse {
    justify-content: center;
    flex-wrap: wrap;
    cursor: default;
}

.mec-gallery__carousel::-webkit-scrollbar {
    display: none;
}

.mec-gallery__slide {
    flex: 0 0 auto;
    width: min(300px, 72vw);
    aspect-ratio: 4 / 5;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    scroll-snap-align: center;
    border: 1px solid rgba(253, 247, 255, .1);
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .6);
    /* Reset <button> defaults — this used to be a plain <div>. */
    padding: 0;
    background: none;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.mec-gallery__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mec-gallery__slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(15, 5, 24, .92));
}

.mec-gallery__slide-cap {
    position: absolute;
    left: 16px;
    bottom: 14px;
    z-index: 2;
    font-size: .78rem;
    font-weight: 800;
    background: rgba(15, 5, 24, .55);
    border: 1px solid rgba(255, 201, 77, .35);
    color: var(--mec-secondary, #FFC94D);
    padding: 5px 12px;
    border-radius: 999px;
}

.mec-gallery__nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
}

.mec-gallery__nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(253, 247, 255, .12);
    background: var(--mec-surface, #190A26);
    color: var(--mec-text, #FDF7FF);
    font-size: 1rem;
    cursor: pointer;
    transition: border-color .2s, transform .2s;
}

.mec-gallery__nav-btn:hover {
    border-color: var(--mec-primary, #FF1F7A);
    transform: translateY(-2px);
}

/* ---------- grid (this event's own photos) ---------- */
.mec-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

/* Fewer than one full row (1-3 photos) — a stretched 1fr grid would pin
   them to the top-left and look lopsided, so switch to a centered flex
   row of naturally-sized tiles instead. Works at every viewport with no
   extra media query since wrapping + centering handle mobile for free. */
.mec-gallery__grid--sparse {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.mec-gallery__grid--sparse .mec-gallery__tile {
    flex: 0 0 auto;
    width: min(260px, 45vw);
}

.mec-gallery__tile {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(253, 247, 255, .1);
    padding: 0;
    background: none;
    cursor: pointer;
    transition: transform .25s, box-shadow .25s;
}

.mec-gallery__tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px -16px rgba(255, 31, 122, .4);
}

.mec-gallery__tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}

.mec-gallery__tile:hover img {
    transform: scale(1.06);
}

.mec-gallery__tile--more .mec-gallery__more-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: linear-gradient(135deg, rgba(255, 31, 122, .5), rgba(255, 201, 77, .4)), rgba(15, 5, 24, .5);
    text-align: center;
}

.mec-gallery__more-overlay b {
    font-size: 1.6rem;
    font-family: var(--mec-font-display, 'Space Grotesk', sans-serif);
    color: #fff;
}

.mec-gallery__more-overlay span {
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(255, 255, 255, .85);
}

@media (max-width: 760px) {
    .mec-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mec-gallery__grid .mec-gallery__tile:nth-child(n+7) {
        display: none;
    }
}

/* ---------- lightbox ---------- */
.mec-gallery__lightbox {
    position: fixed;
    inset: 0;
    background: rgba(8, 3, 14, .94);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.mec-gallery__lightbox[hidden] {
    display: none;
}

.mec-gallery__lb-img {
    max-width: min(720px, 90vw);
    max-height: 70vh;
    border-radius: 16px;
    box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .7);
}

.mec-gallery__lb-close,
.mec-gallery__lb-arrow {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(25, 10, 38, .7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(253, 247, 255, .16);
    color: var(--mec-text, #FDF7FF);
    cursor: pointer;
    padding: 0;
    transition: border-color .2s, background .2s, transform .2s, color .2s;
}

.mec-gallery__lb-close:hover,
.mec-gallery__lb-arrow:hover {
    border-color: var(--mec-primary, #FF1F7A);
    background: rgba(255, 31, 122, .16);
    color: #fff;
}

.mec-gallery__lb-close:active,
.mec-gallery__lb-arrow:active {
    transform: scale(.92);
}

.mec-gallery__lb-close {
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
}

.mec-gallery__lb-close:hover {
    transform: rotate(90deg);
}

.mec-gallery__lb-arrow {
    top: 50%;
    margin-top: -24px;
    width: 48px;
    height: 48px;
}

.mec-gallery__lb-arrow:hover {
    transform: translateY(0) scale(1.06);
}

.mec-gallery__lb-prev {
    left: 20px;
}

.mec-gallery__lb-prev:active {
    transform: scale(.92) translateX(-2px);
}

.mec-gallery__lb-next {
    right: 20px;
}

.mec-gallery__lb-next:active {
    transform: scale(.92) translateX(2px);
}

@media (prefers-reduced-motion: reduce) {
    .mec-gallery__lb-close:hover {
        transform: none;
    }
}

.mec-gallery__lb-download {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, var(--mec-primary, #FF1F7A), var(--mec-secondary, #FFC94D));
    color: #1a0510;
    font-family: var(--mec-font-body, 'Manrope', sans-serif);
    font-weight: 800;
    font-size: .88rem;
    text-decoration: none;
    padding: 12px 26px;
    border-radius: 999px;
    box-shadow: 0 14px 30px -12px rgba(255, 31, 122, .55);
    transition: transform .2s, box-shadow .2s;
}

.mec-gallery__lb-download:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 18px 36px -10px rgba(255, 31, 122, .7);
    color: #1a0510;
}

@media (max-width: 600px) {
    .mec-gallery__lb-download {
        bottom: 16px;
        padding: 10px 20px;
        font-size: .8rem;
    }
}
