/*
Theme Name: YAL Child
Template: hello-elementor
Version: 2.3.5
Description: YAL Bulk Packing — prototype design ported to WordPress. Built by WordPress Lead.
*/
/* The real design lives in assets/css/index.css (the prototype's own stylesheet).
   This file only neutralises WordPress/Elementor wrappers so the prototype CSS sees the same DOM. */
body{margin:0}
body:not(.elementor-editor-active) .elementor,
body:not(.elementor-editor-active) .e-con.yal-wrap,
body:not(.elementor-editor-active) .yal-wrap .e-con,
body:not(.elementor-editor-active) .yal-wrap .e-con-inner,
body:not(.elementor-editor-active) .yal-wrap .elementor-widget-html,
body:not(.elementor-editor-active) .yal-wrap .elementor-widget-shortcode,
body:not(.elementor-editor-active) .yal-wrap .elementor-widget-container,
body:not(.elementor-editor-active) .yal-wrap .elementor-shortcode{display:contents}
/* Native Elementor widgets/sections a client adds (outside .yal-wrap) are normal blocks styled by Elementor */
body:not(.elementor-editor-active) .elementor > .e-con:not(.yal-wrap){width:100%}
#wpadminbar~main .topbar{top:32px}
/* Prototype bug fix: the round-header pages' mobile menu button did nothing. Same look as the news-style mobile menu. */
@media (max-width:1000px){
 .topbar.yalNavOpen nav{display:grid!important;position:absolute;left:0;right:0;top:100%;background:#10151d;padding:10px 24px 18px;gap:0;z-index:60}
.topbar.yalNavOpen nav a{color:#fff;padding:14px 0;border-bottom:1px solid #ffffff25;font-size:13px;font-weight:600;letter-spacing:.06em}.topbar.yalNavOpen nav a[aria-current],.topbar.yalNavOpen nav a.active{color:var(--yellow)}
}
/* Quote form success panel reuses the prototype's review panel look */
.quoteForm .quoteReview p{margin:.4em 0 0}
.yalHp{position:absolute!important;left:-9999px!important;height:1px;width:1px;overflow:hidden}

/* Service columns follow the number of Services in the back office (prototype had 4 fixed) */
@media (width>650px){.sharedServiceColumns,.servicesPage .serviceSectionNav{grid-template-columns:repeat(var(--yal-cols,4),minmax(0,1fr))}}
/* 404 / search / archive extras (not in the prototype) */
.yalEmpty{padding:10px 0 90px;font-size:16px;line-height:1.6;color:#4c5560}.yalEmpty a:not(.btn){color:#a37c00;text-decoration:underline}.yalEmpty .btn{margin:6px 8px 6px 0}
.yalSearch{display:flex;gap:10px;margin-top:22px;max-width:520px}.yalSearch input{flex:1;min-width:0;padding:12px 14px;border:1px solid #cfd5dc;font:inherit;background:#fff}
.yalPager{display:flex;gap:14px;padding:0 0 80px;font-weight:600}.yalPager .current{color:#a37c00}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}
body[class*="elementor-kit-"]:not(.elementor-editor-active){--e-global-typography-primary-font-family:Arial,Helvetica;--e-global-typography-secondary-font-family:Arial,Helvetica;--e-global-typography-text-font-family:Arial,Helvetica;--e-global-typography-accent-font-family:Arial,Helvetica}

/* ===== v2.2 — mobile/tablet only (≤1000px): hide-on-scroll header. Desktop unchanged. JS: yal-core/assets/js/header-scroll.js ===== */
@media (max-width:1000px){
  header.ynHeader{position:sticky;top:0;transition:transform .25s ease}
  header.topbar{position:fixed;top:0;transition:transform .25s ease}
  /* v2.3.1: hide by the header's full painted extent (--yal-hide, measured in JS incl. :before bar, overflow, border) + safe-area + shadow room */
  header.ynHeader.yalHdrHidden{transform:translateY(calc(-1 * var(--yal-hide,100%) - env(safe-area-inset-top,0px) - 8px))}
  header.topbar.yalHdrHidden{transform:translate(-50%,calc(-1 * var(--yal-hide,100%) - env(safe-area-inset-top,0px) - 8px))}
  header.ynHeader.yalHdrHidden.yalHdrKbd,header.ynHeader.yalHdrHidden:has(.ynMobileNav:not([hidden])){transform:none}
  header.topbar.yalHdrHidden.yalHdrKbd,header.topbar.yalHdrHidden.yalNavOpen{transform:translate(-50%)}
  html{scroll-padding-top:var(--yal-hh,0px)}
  .ynPage .ynStoryBar,.storyBackBar,.ynStoryIndex{transition:top .25s ease}
  html:not(.yalHdrHidden) .ynPage .ynStoryBar,html:not(.yalHdrHidden) .storyBackBar{top:var(--yal-hh,0px)}
  html:not(.yalHdrHidden) .ynStoryIndex{top:calc(var(--yal-hh,0px) + 16px)}
}
@media (max-width:1000px) and (prefers-reduced-motion:reduce){
  header.ynHeader,header.topbar,.ynPage .ynStoryBar,.storyBackBar,.ynStoryIndex{transition:none}
}
/* ===== v2.2 — About 'Our journey' timeline on phones (≤650px, where it scrolls sideways) ===== */
@media (width<=650px){
  .historyChapterTabs{scrollbar-width:none;-ms-overflow-style:none;padding-right:48px;
    background:linear-gradient(#c7cece,#c7cece) 0 calc(100% - 10px)/100% 1px no-repeat local}
  .historyChapterTabs::-webkit-scrollbar{display:none}
  .historyChapterTabs:after{display:none}
}
/* ===== v2.3.3 — About full-photo hero on mobile/tablet (≤1000px): start below the fixed topbar so it no longer covers the top of the hero. --yal-hh is set by header-scroll.js ===== */
@media (max-width:1000px){
  .aboutPage .aboutHeroFull{margin-top:var(--yal-hh,70px)}
}

/* ===== v2.3.5 — Desktop nav nowrap for 'News & Events', About 'Our journey' MP4 + YouTube video support, News & Events cards, and Masonry Event detail page + Lightbox ===== */
@media (min-width:1001px){
  .topbar nav a{white-space:nowrap}
}
.historyChapterPhoto:after,.historyChapterYear,.historyChapterTag{pointer-events:none}
.historyChapterPhoto.hasVideo:after{opacity:0}
.historyChapterImages video,.historyChapterImages .yalJourneyYt{opacity:0;width:100%;height:100%;transition:opacity .5s;position:absolute;inset:0;pointer-events:none}
.historyChapterImages video{object-fit:cover}
.historyChapterImages .yalJourneyYt{background:#0d1720}
.historyChapterImages .yalJourneyYt img{width:100%;height:100%;object-fit:cover;display:block;opacity:1;position:relative}
.historyChapterImages .yalJourneyYt iframe{width:100%;height:100%;border:0;display:block}
.historyChapterImages video.isCurrent,.historyChapterImages .yalJourneyYt.isCurrent{opacity:1;pointer-events:auto;z-index:2}
.yalYtPlay{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:68px;height:68px;border-radius:999px;border:2px solid #f7bd00;background:rgba(16,21,29,.82);color:#fff;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;z-index:4;transition:transform .2s,background-color .2s;box-shadow:0 8px 24px rgba(0,0,0,.35)}
.yalYtPlay svg{margin-left:3px}
.yalYtPlay:hover{transform:translate(-50%,-50%) scale(1.07);background:#10151d;color:#f7bd00}
.historyChapterPhoto.hasVideo .historyChapterYear{bottom:auto;top:22px;z-index:3;text-shadow:0 2px 14px rgba(0,0,0,.65)}
.historyChapterPhoto.hasVideo .historyChapterTag{bottom:auto;top:calc(28px + clamp(40px,6vw,84px));z-index:3;text-shadow:0 1px 6px rgba(0,0,0,.7)}
@media (prefers-reduced-motion:reduce){.historyChapterImages video,.historyChapterImages .yalJourneyYt{transition:none}}

.ynSectionHead,.yalEventsHead{margin:24px 0 26px;padding-bottom:14px;border-bottom:1px solid #dce3e6}
.ynSectionHead h2,.yalEventsHead h2{margin:0;font-size:clamp(24px,2.5vw,32px);letter-spacing:-.025em;color:#14212a;line-height:1.15}
.yalEventsEyebrow{margin:0 0 8px;font-size:11px;font-weight:800;letter-spacing:.14em;color:#8b6900}
.yalEventsSection{padding:8px 0 40px}
.yalEventsEmpty{margin:0 0 40px;padding:24px;border:1px dashed #cfd5dc;background:#fff;color:#60717a;font-size:15px}

.yalEventDetail{padding-bottom:65px}
.yalEventDetailHead{margin:8px 0 24px;max-width:860px}
.yalEventDetailMeta{margin:0 0 10px;font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#8b6900}
.yalEventDetailHead h1{margin:0;font-size:clamp(28px,3.6vw,42px);letter-spacing:-.025em;line-height:1.15;color:#14212a}
.yalEventDetailBody{max-width:820px;margin:0 0 34px}
.yalEventGallerySection{margin:0 0 44px}
.yalEventMasonry{column-count:3;column-gap:16px}
.yalMasonryItem{break-inside:avoid;position:relative;display:block;width:100%;margin:0 0 16px;padding:0;border:1px solid #dce3e6;background:#e6ebed;overflow:hidden;cursor:zoom-in;text-align:left;transition:border-color .2s,box-shadow .2s}
.yalMasonryItem:hover{border-color:#b08a14;box-shadow:0 8px 22px #17252d0d}
.yalMasonryItem img{width:100%;height:auto;display:block;transition:transform .35s}
.yalMasonryItem:hover img{transform:scale(1.02)}
.yalMasonryCap{display:block;padding:8px 12px;background:#fff;font-size:12px;line-height:1.45;color:#41515a;border-top:1px solid #eef2f4}
@media (max-width:960px){.yalEventMasonry{column-count:2;column-gap:14px}.yalMasonryItem{margin-bottom:14px}}
@media (max-width:560px){.yalEventMasonry{column-count:2;column-gap:10px}.yalMasonryItem{margin-bottom:10px}}

.yalLightbox[hidden]{display:none}
.yalLightbox{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;padding:20px}
.yalLbBackdrop{position:absolute;inset:0;background:rgba(7,14,20,.9)}
.yalLbShell{position:relative;z-index:1;width:min(1100px,100%);max-height:92vh;display:flex;flex-direction:column;gap:12px;color:#fff}
.yalLbTop{display:flex;align-items:center;justify-content:space-between;gap:16px}
.yalLbTop>div{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.yalLbTitle{font-size:15px;font-weight:700}
.yalLbCount{font-size:12px;color:#cbd5dc;letter-spacing:.08em}
.yalLbClose{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);color:#fff;width:40px;height:40px;font-size:26px;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.yalLbClose:hover{background:rgba(255,255,255,.24)}
.yalLbStage{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:12px}
.yalLbFigure{margin:0;text-align:center}
.yalLbImg{max-width:100%;max-height:76vh;width:auto;height:auto;margin:0 auto;display:block;object-fit:contain;background:#0b1218}
.yalLbCap{margin:10px 0 0;font-size:13px;color:#dce3e6}
.yalLbNav{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);color:#fff;width:44px;height:44px;font-size:20px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.yalLbNav:hover{background:rgba(255,255,255,.24)}
.yalLbNav[hidden]{visibility:hidden}
@media (max-width:650px){.yalLightbox{padding:12px}.yalLbStage{grid-template-columns:36px 1fr 36px;gap:6px}.yalLbNav{width:36px;height:36px;font-size:16px}}

body.single-yal_event main.ynPage,
body.single-post main.ynPage,
body.error404 main.ynPage,
body.search main.ynPage {
  display: flex;
  flex-direction: column;
}
body.single-yal_event main.ynPage > .wrap,
body.single-post main.ynPage > .wrap,
body.error404 main.ynPage > .wrap,
body.search main.ynPage > .wrap {
  margin-top: 0;
  margin-bottom: 0;
}
body.single-yal_event main.ynPage > .ynFooter,
body.single-post main.ynPage > .ynFooter,
body.error404 main.ynPage > .ynFooter,
body.search main.ynPage > .ynFooter {
  margin-top: auto;
}
