/* =====================================================================
   "Events" page. Scoped under .evp so it never touches the shared header/
   footer or other pages. Hero look = the Products hero (animated background
   + standard hero height from css/hero-bg.css); cards follow the News card style.
   ===================================================================== */
.evp{
  --ev-ink:#051026;
  --ev-blue:#183962;
  --ev-gold:#d3bf5d;
  --ev-body:#33415a;
  --ev-muted:#5b6b76;
  --ev-line:#e3e8f0;
  --ev-bg:#f5f5f7;
  background:var(--ev-bg);
}
.evp *,.evp *::before,.evp *::after{box-sizing:border-box}

/* hero (text only; size/padding come from .pk-hero-std, background from .pk-hasbg) */
.evp-hero{text-align:center;color:#fff;background:linear-gradient(180deg,#0e5aa7 0%,#0a3f86 50%,#072a5c 100%)}
.evp-hero__title{margin:0;color:#fff;font-weight:600;line-height:1.05;font-size:clamp(34px,5vw,64px)}
.evp-hero__rule{display:block;width:72px;height:3px;background:var(--ev-gold);margin:17.5px auto}
.evp-hero__intro{max-width:680px;margin:0 auto;font-size:18px;line-height:1.6;color:rgba(255,255,255,.9)}

/* gallery: exactly 3 columns on desktop, 2 on tablet, 1 on mobile */
.evp-main{padding:64px 0 90px}
.evp-wrap{max-width:1180px;margin:0 auto;padding:0 24px}
.evp-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}
.evp-grid>li{display:flex;min-width:0}
.evp-card{display:flex;flex-direction:column;flex:1;min-width:0;color:inherit;text-decoration:none;background:#fff;border:1px solid var(--ev-line);border-radius:14px;overflow:hidden;transition:transform .3s ease,box-shadow .3s ease}
.evp-card:hover{transform:translateY(-4px);box-shadow:0 16px 36px rgba(5,16,38,.12)}
.evp-card__img{display:block;aspect-ratio:4/3;background:#dde3ea;overflow:hidden}
.evp-card__img img{display:block;width:100%;height:100%;object-fit:cover}
.evp-card__body{display:flex;flex-direction:column;gap:8px;padding:22px 22px 26px;flex:1}
.evp-card__title{margin:0;font-size:24px;font-weight:600;line-height:1.2em;color:var(--ev-ink)}
.evp-card__meta{margin:0;display:flex;flex-wrap:wrap;gap:4px 14px;font-size:15px;line-height:1.5;color:var(--ev-muted)}
.evp-card__date{font-weight:600;color:var(--ev-blue)}
.evp-card__text{display:block;margin:4px 0 0;font-size:18px;line-height:1.6;color:var(--ev-body)}
.evp-card__more{margin-top:auto;padding-top:10px;font-size:15px;font-weight:600;color:var(--ev-blue)}
.evp-card:hover .evp-card__more{text-decoration:underline}
.evp-card:focus-visible{outline:2px solid var(--ev-gold);outline-offset:3px}

/* single event view: photos at their natural proportions (never cropped), 3 / 2 / 1 columns */
.evp-detail{scroll-margin-top:calc(var(--header-h,113px) + 8px)}
.evp-back{display:inline-block;margin-bottom:22px;font-size:15px;font-weight:600;color:var(--ev-blue);text-decoration:none}
.evp-back:hover{text-decoration:underline}
.evp-back:focus-visible,.evp-photos a:focus-visible{outline:2px solid var(--ev-gold);outline-offset:3px}
.evp-detail__title{margin:0 0 10px;font-size:40px;font-weight:600;line-height:1.2em;color:var(--ev-ink);outline:none;scroll-margin-top:calc(var(--header-h,113px) + 16px)}
.evp-detail .evp-card__meta{font-size:16px}
.evp-detail__text{max-width:78ch;margin:14px 0 0;font-size:18px;line-height:1.6;color:var(--ev-body)}
.evp-photos{list-style:none;margin:32px 0 0;padding:0;column-count:3;column-gap:24px}
.evp-photos li{break-inside:avoid;margin:0 0 24px}
.evp-photos img{display:block;width:100%;height:auto;border-radius:10px;background:#dde3ea}
.evp [hidden]{display:none!important}

@media (max-width:1024px){.evp-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}.evp-photos{column-count:2}}
@media (max-width:640px){
  .evp-main{padding:40px 0 64px}
  .evp-wrap{padding:0 16px}
  .evp-grid{grid-template-columns:minmax(0,1fr);gap:24px}
  .evp-photos{column-count:1}
  .evp-detail__title{font-size:32px}
}
@media (prefers-reduced-motion:reduce){.evp-card{transition:none}.evp-card:hover{transform:none}}

/* galleries of same-shaped photos: row-by-row grid (js/events.js adds the class) */
.evp-photos--even{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:24px}
@media (max-width:1024px){.evp-photos--even{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.evp-photos--even{grid-template-columns:minmax(0,1fr)}}

/* photo lightbox (js/events.js) */
html.evp-lb-open{overflow:hidden}
.evp-lb{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;padding:56px 16px 24px;background:rgba(4,15,28,.92);overflow:auto}
.evp-lb[hidden]{display:none}
.evp-lb__img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:6px;box-shadow:0 10px 40px rgba(0,0,0,.5)}
.evp-lb__close{position:fixed;top:12px;right:14px;width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,.16);color:#fff;font-size:30px;line-height:1;cursor:pointer;transition:background .2s}
.evp-lb__close:hover,.evp-lb__close:focus-visible{background:#d21f26;outline:none}
.evp-lb__nav{position:fixed;top:50%;transform:translateY(-50%);width:52px;height:52px;display:flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.35);border-radius:50%;background:rgba(4,15,28,.6);color:#fff;cursor:pointer;transition:background .2s}
.evp-lb__nav[hidden]{display:none}
.evp-lb__nav--prev{left:14px}
.evp-lb__nav--next{right:14px}
.evp-lb__nav:hover,.evp-lb__nav:focus-visible{background:#d21f26;outline:none}
.evp-lb__nav:disabled{opacity:.3;cursor:default;background:rgba(4,15,28,.6)}
@media (max-width:640px){.evp-lb{padding:56px 8px 24px}.evp-lb__nav{width:48px;height:48px}.evp-lb__nav--prev{left:6px}.evp-lb__nav--next{right:6px}}
