/* Easy Client Events — front end (v2.3)
   Matched to the johnmegalli.com.au homepage:
   - H1: "Lexend bold" (self-hosted by GreenShift), title case, highlighted words in orange gradient
   - Section headings, body and buttons: system UI stack, headings uppercase + centred
   - Buttons: orange gradient, 8px radius, white text
   - Cards: black, full orange border, rounded
   - Canvas: #131313 with the theme's 40px grid (left to show through) */

@font-face{font-family:"Lexend bold";src:url("https://johnmegalli.com.au/wp-content/uploads/GreenShift/fonts/font_3/woff2/Lexend-Bold.woff2") format("woff2");font-display:swap}

.ece-site-page,.ece-preview{
 --ece-text:#fffffe;
 --ece-muted:rgba(255,255,254,.78);
 --ece-faint:rgba(255,255,254,.55);
 --ece-line:#444;
 --ece-card:#000001;
 --ece-accent:#e96626;
 --ece-btn:linear-gradient(135deg,#ff884d 0%,#ff5b1a 45%,#f26422 100%);
 --ece-mark:linear-gradient(90deg,#ff7a00,#ffb347,#ff4500,#ff7a00);
 --ece-display:"Lexend bold",sans-serif;
 --ece-ui:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
 color:var(--ece-text);
 font-family:var(--ece-ui);
}
.ece-site-page *,.ece-preview *{box-sizing:border-box}
.ece-site-page h1{font-family:var(--ece-display)!important;font-weight:700;color:var(--ece-text);letter-spacing:normal;text-transform:none}
.ece-site-page h2,.ece-site-page h3,.ece-preview h2,.ece-preview h3{font-family:var(--ece-ui)!important;font-weight:700;color:var(--ece-text);letter-spacing:normal}
.ece-site-page h2,.ece-preview h2{text-transform:uppercase}

/* Highlighted words — same treatment as the homepage headings */
.ece-site-page mark,.ece-preview mark{background:var(--ece-mark);background-size:300% 300%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:var(--ece-accent);padding:0;animation:ece-mark 6s ease infinite}
@keyframes ece-mark{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}

.ece-site-page a:focus-visible,.ece-preview a:focus-visible{outline:2px solid var(--ece-accent);outline-offset:3px}
.ece-site-page .screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}

/* Block-theme reset: GreenShift's constrained layout would otherwise squeeze these sections. */
.ece-block-template{margin:0}
.ece-block-template .wp-site-blocks{min-height:0}
.ece-block-template .ece-site-page{width:100%;max-width:none!important;margin:0;padding:0}
.ece-site-page .ece-shell{width:min(1180px,calc(100% - 64px))!important;max-width:1180px!important;margin-left:auto!important;margin-right:auto!important}
.ece-site-page .ece-shell>*{max-width:none}
/* Same canvas as the homepage body (#131313 + faint 40px grid), so the pages read correctly whatever the theme template paints behind them. */
.ece-site-page{background-color:#131313;background-image:linear-gradient(rgba(58,58,58,.18) 1px,transparent 1px),linear-gradient(90deg,rgba(54,54,54,.11) 1px,transparent 1px);background-size:40px 40px}
.ece-site-page .ece-shell,.ece-site-page section{background-color:transparent}

/* ---------- Buttons & links ---------- */
.ece-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:15px 26px;border:0;border-radius:8px;background:var(--ece-btn);color:#fff!important;font-family:var(--ece-ui);font-size:17px;font-weight:600;line-height:1.3;text-decoration:none!important;box-shadow:0 6px 18px rgba(242,100,34,.25);transition:transform .15s,filter .15s}
.ece-btn:hover{transform:translateY(-1px);filter:brightness(1.08)}
.ece-text-link{color:var(--ece-text)!important;font-size:17px;text-decoration:underline!important;text-underline-offset:4px}
.ece-text-link:hover{color:var(--ece-accent)!important}

/* ---------- Section headings ---------- */
.ece-section-head{margin:0 0 36px;text-align:center}
.ece-section-head h2,.ece-preview .ece-section-head h2{margin:0;font-size:clamp(28px,3.4vw,40px);line-height:1.3}
.ece-preview .ece-section-head{display:flex;flex-direction:column;align-items:center;gap:12px}

/* ---------- Cards ---------- */
.ece-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,calc((100% - 48px)/3)));justify-content:center;gap:24px;width:100%}
.ece-card{position:relative;display:flex;flex-direction:column;min-width:0;overflow:hidden;background:var(--ece-card);border:1px solid var(--ece-accent);border-radius:12px;transition:box-shadow .2s,transform .2s}
.ece-card:hover{transform:translateY(-3px);box-shadow:0 10px 30px rgba(233,102,38,.22)}
.ece-card-media{aspect-ratio:16/10;overflow:hidden;background:#1d1d1d}
.ece-card-media img{display:block;width:100%;height:100%;object-fit:cover}
.ece-card-body{display:flex;flex-direction:column;flex:1;padding:22px 22px 24px}
.ece-card-meta{display:flex;flex-wrap:wrap;gap:2px 12px;margin:0 0 10px;color:var(--ece-accent);font-size:14px;font-weight:600}
.ece-card-meta span{color:var(--ece-faint);font-weight:400}
.ece-card h3{margin:0 0 10px;font-size:22px;line-height:1.3;text-transform:none;overflow-wrap:anywhere}
.ece-card h3 a{color:inherit;text-decoration:none}
.ece-card h3 a::after{content:"";position:absolute;inset:0}
.ece-card-excerpt{margin:0;color:var(--ece-muted);font-size:16px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ece-card.is-past{border-color:var(--ece-line)}
.ece-card.is-past .ece-card-media img{filter:grayscale(1)}
.ece-card.is-past:hover{box-shadow:none}
.ece-card.is-past:hover .ece-card-media img{filter:none}
.ece-card-meta .ece-card-status{margin-left:auto;padding:1px 8px;border:1px solid var(--ece-line);border-radius:999px;color:var(--ece-faint);font-size:12px;font-weight:600}
.ece-empty{margin:0 auto;max-width:640px;padding:32px;border:1px solid var(--ece-line);border-radius:12px;color:var(--ece-muted);font-size:17px;text-align:center}

/* ---------- Archive ---------- */
.ece-archive-hero{position:relative;isolation:isolate;display:flex;align-items:center;min-height:clamp(380px,46vw,540px);text-align:center;background:#000001 url('https://johnmegalli.com.au/wp-content/uploads/2026/05/CX_160-D5qFLUeR.webp') center 35%/cover no-repeat}
.ece-archive-hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(0,0,1,.62) 0%,rgba(30,14,6,.72) 65%,#131313 100%)}
.ece-archive-hero-inner{padding-block:72px}
.ece-archive-hero h1{margin:0 auto 18px;max-width:900px;font-size:clamp(34px,4.4vw,48px);line-height:1.3}
.ece-archive-hero p{margin:0 auto 30px;max-width:640px;color:var(--ece-text);font-size:clamp(17px,1.6vw,22px);font-weight:700;line-height:1.5}
.ece-archive-body{padding-block:72px 100px}
.ece-archive-section+.ece-archive-section{margin-top:96px}

/* ---------- Single event ---------- */
.ece-event-page{padding-bottom:100px}
.ece-breadcrumb{display:flex;gap:10px;align-items:center;padding:28px 0 0;color:var(--ece-faint);font-size:15px}
.ece-breadcrumb a{color:var(--ece-text);text-decoration:underline;text-underline-offset:3px}
.ece-breadcrumb a:hover{color:var(--ece-accent)}
.ece-breadcrumb span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ece-single-head{padding:40px 0 44px;text-align:center}
.ece-status{margin:0 0 14px;color:var(--ece-accent);font-size:15px;font-weight:700;text-transform:uppercase}
.ece-single-head h1{margin:0 auto;max-width:960px;font-size:clamp(32px,4.4vw,48px);line-height:1.3;text-wrap:balance}
.ece-single-lead{margin:18px auto 0;max-width:720px;color:var(--ece-text);font-size:clamp(17px,1.6vw,22px);font-weight:700;line-height:1.5}
.ece-single-photo{margin:0 auto;max-width:980px;aspect-ratio:16/9;overflow:hidden;border:2px solid var(--ece-accent);border-radius:12px;background:#1d1d1d}
.ece-single-photo img{display:block;width:100%;height:100%;object-fit:cover}

.ece-single-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:clamp(36px,5vw,64px);align-items:start;padding-top:72px}
.ece-event-main h2,.ece-details-card h2{margin:0 0 20px;font-size:clamp(24px,2.4vw,28px);line-height:1.3}
.ece-event-main>section+section{margin-top:64px}
.ece-event-description{max-width:68ch;color:var(--ece-text);font-size:18px;line-height:1.7}
.ece-event-description>*:first-child{margin-top:0}
.ece-event-description p{margin:0 0 1.1em}
.ece-event-description h2,.ece-event-description h3{margin:1.6em 0 .5em;font-size:22px;text-transform:none}
.ece-event-description ul,.ece-event-description ol{margin:0 0 1.1em;padding-left:1.3em}
.ece-event-description li{margin-bottom:.35em}
.ece-event-description li::marker{color:var(--ece-accent)}
.ece-event-description a{color:var(--ece-accent);text-underline-offset:3px}

.ece-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.ece-photo-grid a{display:block;aspect-ratio:4/3;overflow:hidden;border:1px solid var(--ece-line);border-radius:8px;background:#1d1d1d;transition:border-color .2s}
.ece-photo-grid a:hover{border-color:var(--ece-accent)}
.ece-photo-grid img{display:block;width:100%;height:100%;object-fit:cover}

.ece-event-sidebar{position:static}
.ece-details-card{padding:28px 26px;background:rgba(0,0,0,.38);border:2px solid var(--ece-accent);border-radius:20px}
.ece-details{margin:0 0 24px}
.ece-details>div{padding:14px 0;border-bottom:1px solid var(--ece-line)}
.ece-details>div:first-child{padding-top:0}
.ece-details dt{margin:0 0 4px;color:var(--ece-accent);font-size:14px;font-weight:600}
.ece-details dd{margin:0;color:var(--ece-text);font-size:17px;line-height:1.5}
.ece-details dd span{display:block;margin-top:2px;color:var(--ece-faint);font-size:15px}
.ece-booking{width:100%}
.ece-details-note{margin:0;color:var(--ece-muted);font-size:16px}

.ece-single-footer{margin-top:110px}
.ece-all-link{margin:40px 0 0;text-align:center}

.ece-flyer{display:block;margin-top:24px;text-decoration:none!important;color:var(--ece-text)!important}
.ece-flyer img{display:block;width:100%;height:auto;border:1px solid var(--ece-line);border-radius:12px;transition:border-color .2s}
.ece-flyer span{display:block;margin-top:10px;font-size:15px;text-align:center;text-decoration:underline;text-underline-offset:4px}
.ece-flyer:hover img{border-color:var(--ece-accent)}
.ece-flyer:hover span{color:var(--ece-accent)}
@media(max-width:720px){.ece-flyer{max-width:420px;margin-inline:auto}}

/* Portrait reels (9:16) */
.ece-reels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;max-width:760px}
.ece-reel{position:relative;aspect-ratio:9/16;overflow:hidden;border:1px solid var(--ece-accent);border-radius:12px;background:#000001}
.ece-reel iframe,.ece-reel video{position:absolute;inset:0;width:100%;height:100%;border:0;object-fit:cover}
.ece-reels:has(.ece-reel:only-child){grid-template-columns:minmax(0,300px)}

/* ---------- Homepage shortcode ---------- */
.ece-preview{width:100%;padding:64px 0;background:transparent}

/* ---------- Responsive ---------- */
@media(max-width:1020px){
 .ece-grid{grid-template-columns:repeat(auto-fit,minmax(260px,calc((100% - 24px)/2)))}
 .ece-single-layout{grid-template-columns:minmax(0,1fr) 300px;gap:36px}
}
@media(max-width:720px){
 .ece-site-page .ece-shell{width:calc(100% - 36px)!important}
 .ece-archive-hero{min-height:360px}
 .ece-archive-hero-inner{padding-block:56px}
 .ece-archive-body{padding-block:48px 72px}
 .ece-archive-section+.ece-archive-section{margin-top:72px}
 .ece-grid{grid-template-columns:1fr;gap:20px}
 .ece-section-head{margin-bottom:24px}
 .ece-single-head{padding:28px 0 32px}
 .ece-single-photo{aspect-ratio:4/3}
 .ece-single-layout{display:flex;flex-direction:column;gap:48px;padding-top:40px}
 .ece-event-sidebar{position:static;width:100%;order:-1}
 .ece-event-description{font-size:17px}
 .ece-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ece-reels{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ece-reels:has(.ece-reel:only-child){grid-template-columns:minmax(0,260px)}
 .ece-single-footer{margin-top:80px}
}
@media(prefers-reduced-motion:reduce){.ece-site-page *,.ece-preview *{transition:none!important;animation:none!important}}
.ece-event-description ul.ece-two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px}
@media(max-width:480px){.ece-event-description ul.ece-two-col{grid-template-columns:1fr}}
