/* Ireland review V2: fixes applied after direct screenshot feedback. Scoped, other countries untouched. */
html{scroll-behavior:smooth}
body{overflow-x:hidden}
.wrap{width:min(100% - 42px,1280px)!important;max-width:1280px!important;margin-inline:auto!important}
/* Hero: country title remains readable with no overdraw and a bright image; flag next to title. */
body:has(#country-data) .hero{height:clamp(360px,42vw,570px)!important;min-height:360px!important;background:#064632!important;isolation:isolate}
body:has(#country-data) .hero>img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 42%!important;opacity:1!important}
body:has(#country-data) .hero-glow,html[lang=fa] body:has(#country-data) .hero-glow{position:absolute!important;inset:0!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;background:linear-gradient(90deg,rgba(1,37,25,.91) 0%,rgba(2,55,34,.78) 31%,rgba(0,52,32,.12) 65%,transparent 100%)!important}
html[dir=rtl] body:has(#country-data) .hero-glow{justify-content:flex-end!important;background:linear-gradient(270deg,rgba(1,37,25,.91) 0%,rgba(2,55,34,.78) 31%,rgba(0,52,32,.12) 65%,transparent 100%)!important}
body:has(#country-data) .hero-text{position:relative!important;z-index:2!important;max-width:570px!important;margin-inline:clamp(24px,5vw,85px)!important;text-align:start!important}
body:has(#country-data) .hero h1{font-size:clamp(40px,5.5vw,84px)!important;line-height:1.08!important;white-space:normal!important;margin:.15em 0!important;color:white!important}
body:has(#country-data) .hero p{font-size:clamp(17px,1.45vw,24px)!important;line-height:1.7!important;color:#fff!important;max-width:510px!important;text-shadow:0 1px 7px #000a}
body:has(#country-data) .hero .flag{display:inline-flex!important;position:static!important;margin:0 0 12px!important}
/* Avoid giant, overlapping dance headings with pastel overlay of photographs. */
.dhero h1,.hhero h1{font-size:clamp(38px,5vw,80px)!important;line-height:1.15!important;overflow-wrap:break-word!important;max-width:100%!important;text-wrap:balance!important}
.dhero .wrap,.hhero .wrap{min-width:0!important}
.dhero .sub,.hhero .sub{max-width:810px!important;line-height:1.75!important}
.dhero .dhero-in{min-width:0!important}
/* Event cards should use a genuine two-column grid at desktop and never a narrow centered strip. */
.events-page #results,.events-page #list,.events-page .mgroup,.events-page .egrid{width:100%!important;max-width:none!important}
.events-page .egrid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:24px!important}
.events-page .evc{min-width:0!important}
.events-page .evc-photo{aspect-ratio:16/8!important}
.events-page .evc-photo img{object-fit:cover!important}
.events-page .evc h3{font-size:clamp(19px,1.5vw,26px)!important}
/* Remove empty space inherited from Scotland's unused sections. */
.hband:empty{display:none!important}
.b-faq:has(.faq:empty),.b-cal:has(.cal:empty),.b-numbers:has(.numbers:empty){display:none!important}
@media(max-width:850px){.events-page .egrid{grid-template-columns:1fr!important}body:has(#country-data) .hero-text{max-width:75%!important}}
@media(max-width:680px){.wrap{width:min(100% - 24px,1280px)!important}body:has(#country-data) .hero{min-height:420px!important;height:470px!important}body:has(#country-data) .hero-glow,html[dir=rtl] body:has(#country-data) .hero-glow{align-items:flex-end!important;justify-content:center!important;background:linear-gradient(0deg,rgba(1,32,22,.95) 0%,rgba(1,36,24,.52) 55%,rgba(1,35,23,.1) 100%)!important}body:has(#country-data) .hero-text{margin:0 22px 32px!important;max-width:100%!important;text-align:center!important}body:has(#country-data) .hero h1{font-size:clamp(38px,9vw,60px)!important}body:has(#country-data) .hero p{font-size:17px!important}}

/* Ireland V3: functional RTL positioning and bright, readable heroes. */
html[dir=rtl] body:has(#country-data) .hero-glow{justify-content:flex-start!important}
body:has(#country-data) .hero-glow,html[dir=rtl] body:has(#country-data) .hero-glow{
 background:linear-gradient(0deg,rgba(1,44,28,.4) 0%,rgba(1,44,28,.08) 35%,transparent 65%)!important;
 align-items:flex-end!important;padding:0 2.5vw 2.5vw!important}
body:has(#country-data) .hero-text{background:rgba(2,48,31,.87)!important;border:1px solid #d9bd74aa!important;box-shadow:0 18px 35px #04291d44!important;border-radius:22px!important;padding:22px 30px!important;max-width:590px!important;text-align:start!important;backdrop-filter:blur(2px)!important}
html[dir=rtl] body:has(#country-data) .hero-text{margin-inline:28px!important;margin-left:0!important}
body:has(#country-data) .hero h1{font-size:clamp(36px,4.4vw,65px)!important;line-height:1.18!important;text-shadow:none!important}
body:has(#country-data) .hero .flag{width:55px!important;height:34px!important;margin-bottom:4px!important}
body:has(#country-data) .hero p{font-size:clamp(16px,1.45vw,20px)!important;line-height:1.55!important}
/* Full-width page content; strong readable dance and event headlines. */
.dhero h1,.hhero h1,.shero h1{font-size:clamp(33px,4.4vw,64px)!important;line-height:1.13!important;text-wrap:balance!important;max-width:970px!important}
html[dir=rtl] .dhero h1,html[dir=rtl] .hhero h1,html[dir=rtl] .shero h1{font-family:Vazirmatn,Tahoma,Arial,sans-serif!important;letter-spacing:0!important;line-height:1.3!important}
.dhero{min-height:460px!important}
.dhero::after{background:linear-gradient(90deg,#0b3a2dc9,#0c402772 42%,transparent 90%)!important}
html[dir=rtl] .dhero::after{background:linear-gradient(270deg,#0b3a2dca,#0c402780 40%,transparent 85%)!important}
.dhero .dhero-in{padding-bottom:35px!important}
.shero{max-width:100%!important}
.shero::before,.shero::after{opacity:.6!important}
.events-page .shero h1{max-width:780px!important}
/* Clarify that event-identity posters are NOT photographs of the named festivals. */
.event-identity-poster{display:flex;flex-direction:column;justify-content:flex-end;gap:9px;width:100%;height:100%;min-height:210px;box-sizing:border-box;padding:23px;color:white!important;background:linear-gradient(135deg,#07553d 0%,#0c8b72 45%,#e18a40 100%);position:relative;overflow:hidden}
.event-identity-poster:before{content:'♫';position:absolute;top:-25px;right:28px;font-size:145px;line-height:1;color:#ffffff25;pointer-events:none}
.event-identity-poster strong{position:relative;font-size:clamp(19px,2vw,31px);line-height:1.15;color:white!important;max-width:90%;text-shadow:0 3px 10px #073b2e66}
.event-identity-poster small{position:relative;font-weight:700;color:#eafff3!important}
.hlc .event-identity-poster{position:absolute;inset:0}
.evc-photo .event-identity-poster{position:absolute;inset:0}
@media(max-width:680px){body:has(#country-data) .hero-glow,html[dir=rtl] body:has(#country-data) .hero-glow{padding:12px!important}body:has(#country-data) .hero-text{padding:16px 18px!important;margin:0!important}.events-page .egrid{grid-template-columns:1fr!important}}
/* Do not leave half a desktop empty when a given month contains just one listing. */
.events-page .egrid:has(>.evc:only-child){grid-template-columns:minmax(0,1fr)!important;max-width:1060px!important;margin-inline:auto!important}

/* V4 Event-specific photographic review. External assets are source-matched but are not cleared for public reuse. */
.events-page .evc-photo,.events-page .hlc{position:relative;overflow:hidden}
.events-page .evc-photo{height:245px!important;min-height:245px!important;aspect-ratio:unset!important}
.events-page .ireland-event-photo{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;z-index:1!important;display:block}
.events-page .hlc .ireland-event-photo{position:absolute!important;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.events-page .ireland-photo-credit{position:absolute!important;bottom:11px;inset-inline-end:12px;z-index:3;color:white!important;background:#061d39c9;border-radius:15px;padding:5px 11px;font-size:12px;font-weight:750;text-decoration:none}
.events-page .event-identity-poster{background:linear-gradient(145deg,#085a3d,#0c8c6e 50%,#f28a3a)!important}
.events-page .event-identity-poster:before{content:'✦';font-size:160px;right:5%;opacity:.55}
.events-page .egrid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:24px!important;width:100%!important}
.events-page .mgroup{min-width:0;width:100%!important}
.events-page .wrap{width:min(100% - 48px,1350px)!important;max-width:1350px!important}
.events-page .evc{min-width:0!important;max-width:none!important}
@media(max-width:800px){.events-page .egrid{grid-template-columns:1fr!important}}
/* Improve legibility without obscuring faces */
body:has(#country-data) .hero-text{max-width:min(540px,47vw)!important;padding:22px 27px!important}
body:has(#country-data) .hero h1{font-size:clamp(40px,4.1vw,62px)!important}
@media(max-width:720px){body:has(#country-data) .hero-text{max-width:calc(100% - 24px)!important}}
