.emalog-gallery{--eg-gap:8px;--eg-accent:#f6bf24;--eg-ink:#202426;margin:24px 0 36px;width:100%;max-width:100%;clear:both}
.emalog-gallery .eg-gallery-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--eg-gap);align-items:start}
.emalog-gallery .eg-gallery-item{display:block;position:relative;min-width:0;overflow:hidden;background:#eef0f1;color:#fff;text-decoration:none!important;isolation:isolate;border:0;box-shadow:none;aspect-ratio:3/2;outline-offset:3px}
.emalog-gallery .eg-gallery-item:focus-visible{outline:3px solid var(--eg-accent);z-index:2}
.emalog-gallery .eg-photo{display:block;width:100%;height:100%;max-width:none;margin:0;border:0;object-fit:cover;transition:transform .3s ease,filter .3s ease}
.emalog-gallery .eg-gallery-item:hover .eg-photo{transform:scale(1.035);filter:brightness(.96)}
.emalog-gallery .eg-gallery-open{position:absolute;right:12px;bottom:12px;display:grid;place-items:center;width:35px;height:35px;border:1px solid #fff9;border-radius:50%;background:#171b20a8;color:#fff;opacity:0;transform:translateY(4px);transition:opacity .2s,transform .2s;pointer-events:none}
.emalog-gallery .eg-gallery-open svg{width:18px;height:18px}
.emalog-gallery .eg-gallery-item:hover .eg-gallery-open,.emalog-gallery .eg-gallery-item:focus-visible .eg-gallery-open{opacity:1;transform:translateY(0)}
.emalog-gallery[data-layout=mosaic] .eg-gallery-items.eg-justified{display:flex;flex-wrap:wrap;align-items:start;gap:var(--eg-gap)}
.emalog-gallery .eg-justified .eg-gallery-item{flex:none;aspect-ratio:auto}
.eg-lightbox{--eg-accent:#f6bf24;box-sizing:border-box;padding:0;margin:0;border:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;background:#101416f7;color:#fff;overflow:hidden;font:inherit;overscroll-behavior:contain}
.eg-lightbox::backdrop{background:#101416ef}
.eg-lightbox[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.eg-lightbox .eg-lb-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 20px;color:#f8f9fa;border-bottom:1px solid #ffffff14;min-height:64px;box-sizing:border-box}
.eg-lightbox .eg-lb-count{font-variant-numeric:tabular-nums;letter-spacing:.06em;font-size:14px;white-space:nowrap}
.eg-lightbox .eg-lb-actions{display:flex;gap:8px;align-items:center}
.eg-lightbox .eg-lb-button,.eg-lightbox .eg-lb-original{display:inline-grid;place-items:center;width:42px;height:42px;padding:10px!important;border:1px solid #ffffff30!important;border-radius:4px;background:transparent!important;color:#fff!important;box-shadow:none!important;cursor:pointer;line-height:1;box-sizing:border-box;text-decoration:none;min-width:0;min-height:0;touch-action:manipulation}
.eg-lightbox .eg-lb-button:hover,.eg-lightbox .eg-lb-original:hover,.eg-lightbox .eg-lb-button[aria-pressed=true]{border-color:var(--eg-accent)!important;color:var(--eg-accent)!important;background:#ffffff0a!important}
.eg-lightbox :focus-visible{outline:2px solid var(--eg-accent);outline-offset:3px}
.eg-lightbox button svg,.eg-lightbox a svg{width:20px;height:20px;pointer-events:none}
.eg-lightbox .eg-lb-stage{position:relative;display:grid;place-items:center;overflow:hidden;margin:12px 76px;min-height:0;touch-action:pan-y}
.eg-lightbox .eg-lb-photo{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;margin:0;border:0;box-shadow:0 10px 45px #0004;transform-origin:center;user-select:none;-webkit-user-drag:none;will-change:transform}
.eg-lightbox .eg-lb-stage.eg-zoomed{touch-action:none;cursor:grab}
.eg-lightbox .eg-lb-stage.eg-dragging{cursor:grabbing}
.eg-lightbox .eg-lb-stage.eg-loading:after{content:"";position:absolute;width:28px;height:28px;border:2px solid #ffffff40;border-top-color:var(--eg-accent);border-radius:50%;animation:eg-spin .7s linear infinite;pointer-events:none}
.eg-lightbox .eg-lb-error{position:absolute;max-width:80%;padding:20px;text-align:center;background:#101416ef;font-size:16px}
.eg-lightbox .eg-lb-error[hidden]{display:none}
.eg-lightbox .eg-lb-previous,.eg-lightbox .eg-lb-next{position:absolute;top:50%;width:48px;height:56px;margin-top:-28px;z-index:2;background:#101416a8!important}
.eg-lightbox .eg-lb-previous{left:14px}.eg-lightbox .eg-lb-next{right:14px}
.eg-lightbox .eg-lb-caption{box-sizing:border-box;max-height:18dvh;overflow:auto;padding:8px 28px 20px;text-align:center;line-height:1.5;font-size:15px;color:#ebedef}
.eg-lightbox .eg-lb-caption:empty{padding:0;height:14px}
body.eg-gallery-opened{overflow:hidden!important}
@keyframes eg-spin{to{transform:rotate(360deg)}}
@media(max-width:700px){.emalog-gallery .eg-gallery-items{grid-template-columns:repeat(2,minmax(0,1fr))}.eg-lightbox .eg-lb-bar{padding:10px 12px;min-height:62px}.eg-lightbox .eg-lb-actions{gap:5px}.eg-lightbox .eg-lb-stage{margin:8px 8px 60px}.eg-lightbox .eg-lb-previous,.eg-lightbox .eg-lb-next{top:auto;bottom:42px;width:44px;height:44px;margin:0}.eg-lightbox .eg-lb-previous{left:calc(50% - 54px)}.eg-lightbox .eg-lb-next{right:calc(50% - 54px)}.eg-lightbox .eg-lb-caption{padding:5px 14px 12px;font-size:14px}.emalog-gallery .eg-gallery-open{right:7px;bottom:7px;width:29px;height:29px}.eg-lightbox .eg-lb-button,.eg-lightbox .eg-lb-original{width:36px;height:38px;padding:8px!important}}
@media(prefers-reduced-motion:reduce){.emalog-gallery .eg-photo,.emalog-gallery .eg-gallery-open{transition:none}.eg-lightbox .eg-lb-stage.eg-loading:after{animation:none}}

/* An optional editorial mosaic with larger lead photos; full-size viewer stays uncropped. */
.emalog-gallery[data-layout=tiles] .eg-gallery-items{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-flow:row;grid-auto-rows:clamp(110px,13vw,185px)}
.emalog-gallery[data-layout=tiles] .eg-gallery-item{aspect-ratio:auto;width:100%;height:100%}
.emalog-gallery[data-layout=tiles] .eg-gallery-item:nth-child(9n+1){grid-column:span 2;grid-row:span 2}
.eg-lightbox .eg-lb-caption[hidden]{display:none}
@media(max-width:700px){.emalog-gallery[data-layout=tiles] .eg-gallery-items{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:clamp(80px,25vw,150px)}.emalog-gallery[data-layout=tiles] .eg-gallery-item:nth-child(9n+1){grid-column:span 2;grid-row:span 2}}
