/* PhotoSwipe5 engine, Koleda editorial controls. Vendor CSS remains untouched. */
/* Reserve the native scrollbar gutter before the viewer locks page scrolling. */
html{scrollbar-gutter:stable}
.koleda-pswp{--pswp-bg:#141414;--pswp-root-z-index:2147483647;color:#eceee7;font:13px/1.5 Arial,Helvetica,sans-serif;color-scheme:dark}
.koleda-pswp .pswp__img{object-fit:contain;max-width:none!important;max-height:none!important}
.koleda-pswp .koleda-viewer-chrome{position:absolute;inset:0;pointer-events:none!important;z-index:30}
.koleda-viewer-chrome header{position:absolute;top:env(safe-area-inset-top,0);left:0;right:0;pointer-events:auto}
.koleda-viewer-chrome footer{position:absolute;bottom:env(safe-area-inset-bottom,0);left:0;right:0;pointer-events:auto}
.koleda-viewer-chrome [hidden]{display:none!important}
.koleda-viewer-toolbar{display:flex;align-items:center;gap:20px;flex-shrink:0;min-height:66px;padding:8px 3vw;background:transparent}
.koleda-pswp button{appearance:none!important;background:transparent!important;color:inherit!important;border:0!important;border-radius:0!important;font:13px/1.4 Arial,Helvetica,sans-serif!important;padding:10px 12px!important;min-width:44px;min-height:44px;box-shadow:none!important;cursor:pointer}
.koleda-pswp button:disabled{opacity:.25;cursor:default}.koleda-pswp :is(button,a,select):focus-visible{outline:2px solid #ecece7;outline-offset:3px}
.koleda-viewer-brand{color:#aaa;font-size:12px}
.koleda-viewer-footer{display:flex;align-items:center;gap:26px;flex-shrink:0;min-width:0;padding:16px 3vw 12px;margin:0;background:transparent}
.koleda-viewer-destinations{display:flex;align-items:center;justify-content:flex-end;gap:20px;flex-wrap:wrap;flex:1;min-width:0}
.koleda-viewer-project-group{display:flex;align-items:center;gap:14px;min-width:0;max-width:100%;flex:0 1 auto}
.koleda-pswp .koleda-viewer-destinations a{display:block;min-width:0;max-width:100%;min-height:44px;padding:10px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#eceee7;text-decoration:none;border-bottom:1px solid #62675a;font-size:12px}
.koleda-pswp .koleda-viewer-offer{color:#dfb58c!important;border-color:#9e7f60!important}.koleda-viewer-sequence{display:flex;gap:8px}.koleda-pswp .koleda-viewer-sequence button{font-size:22px!important}
.koleda-pswp [hidden]{display:none!important}
.koleda-viewer-gesture-hint{position:absolute;z-index:1;left:50%;bottom:26px;transform:translateX(-50%);display:flex;gap:10px;align-items:center;pointer-events:none;padding:9px 14px;background:#111b;color:#eeed;font:12px/1.4 Arial,sans-serif;opacity:0;border-radius:3px}
.koleda-viewer-gesture-hint svg{width:17px;height:25px;fill:none;stroke:currentColor;stroke-width:1.6}.koleda-viewer-gesture-hint.is-visible{animation:koleda-wheel-hint 2.8s both}@keyframes koleda-wheel-hint{0%{opacity:0}12%,72%{opacity:.8}100%{opacity:0}}
@media(max-width:767px){.koleda-viewer-toolbar{min-height:54px;padding:4px 4vw;gap:10px}.koleda-viewer-brand{display:none}.koleda-viewer-stage{margin:0 4vw}.koleda-viewer-footer{padding:10px 4vw 8px;gap:8px;flex-wrap:wrap}.koleda-viewer-sequence{order:2}.koleda-viewer-destinations{order:3;flex:1 1 100%;justify-content:flex-start;gap:8px 18px}.koleda-viewer-project-group{flex:0 1 100%}.koleda-pswp .koleda-viewer-destinations a{font-size:11px;min-height:36px;padding:8px 0}}
@media(max-height:480px){.koleda-viewer-toolbar{min-height:44px;padding:0 3vw}.koleda-viewer-footer{flex-wrap:nowrap;padding:4px 3vw;gap:14px}.koleda-viewer-destinations{flex:1;flex-wrap:nowrap;order:0}.koleda-viewer-project-group{flex:1;max-width:100%}.koleda-viewer-sequence{order:0}.koleda-pswp .koleda-viewer-destinations a{font-size:11px}}
@media(hover:none){.koleda-viewer-gesture-hint{display:none}}
@media(prefers-reduced-motion:reduce){.koleda-viewer-gesture-hint.is-visible{animation:none;opacity:.75}}

.koleda-viewer-journal-group{display:flex;align-items:center;gap:12px;min-width:0;max-width:100%;flex:0 1 auto}.koleda-pswp .koleda-viewer-project{max-width:260px!important}.koleda-journal-photographs{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(250px,100%),1fr));gap:18px;margin:24px 0}.koleda-journal-photographs a{display:block}.koleda-journal-photographs img{display:block;width:100%;height:40vh;object-fit:contain;background:#11120f}@media(max-width:767px){.koleda-viewer-journal-group{flex:0 1 100%}.koleda-pswp .koleda-viewer-project{max-width:80vw!important}}@media(max-height:480px){.koleda-viewer-destinations{flex-wrap:wrap;gap:0 12px}.koleda-viewer-project-group,.koleda-viewer-journal-group{flex:0 1 auto}.koleda-pswp .koleda-viewer-project{max-width:160px!important}}

/* L05-VCTA2: direct public story links, no file caption/counter or native select. */
.koleda-viewer-toolbar{justify-content:space-between}
.koleda-viewer-destinations{justify-content:flex-start;max-height:28svh;overflow-y:auto;align-content:flex-start}
.koleda-viewer-project-group,.koleda-viewer-journal-group{display:flex;flex-wrap:wrap;gap:6px 22px;flex:0 1 auto}
.koleda-pswp .koleda-viewer-destinations a{border:0;white-space:normal;text-overflow:clip;line-height:1.5;color:#ecece7;opacity:.8;transition:opacity .18s}
.koleda-pswp .koleda-viewer-destinations a:hover{opacity:1}
.koleda-pswp .koleda-viewer-offer{color:#ecece7!important;border:0!important}
.koleda-pswp :is(button,a):focus-visible{outline-color:#ecece7}
@media(max-width:767px){.koleda-viewer-footer{flex-wrap:nowrap;align-items:flex-end}.koleda-viewer-destinations{order:0;flex:1;gap:0 18px}.koleda-viewer-sequence{order:1;flex-shrink:0}.koleda-viewer-project-group,.koleda-viewer-journal-group{flex:0 1 auto;gap:0 14px}.koleda-pswp .koleda-viewer-project{max-width:100%!important}}
@media(prefers-reduced-motion:reduce){.koleda-pswp .koleda-viewer-destinations a{transition:none}}

/* Artwork caption stays outside the frame and disappears while zoomed in. */
.koleda-viewer-caption {
    position: absolute;
    inset-inline: 4vw;
    margin-inline: auto;
    max-width: 760px;
    visibility: hidden;
    color: #eeebe6;
    text-align: center;
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.koleda-viewer-caption.is-positioned { visibility: visible; }
.koleda-viewer-caption-text,
.koleda-viewer-caption-technical { display: inline; }
.koleda-viewer-caption-technical { color: #bfbbb4; }
.koleda-viewer-caption-technical::before { content: " · "; white-space: pre; }
.koleda-pswp .koleda-viewer-info-toggle {
    flex: 0 0 auto;
    font-size: 13px !important;
    color: #e3ddd3 !important;
    border: 1px solid #5b5651 !important;
    border-radius: 3px !important;
}
.koleda-pswp .koleda-viewer-info-toggle[aria-expanded="true"],
.koleda-pswp .koleda-viewer-info-toggle:hover { background: #2c2b28 !important; }
.koleda-viewer-info-panel {
    position: absolute;
    z-index: 1;
    inset-inline-end: max(3vw, env(safe-area-inset-right, 0px));
    bottom: var(--koleda-viewer-info-bottom, 76px);
    width: min(390px, 94vw);
    max-height: 60dvh;
    padding: 15px 18px;
    border: 1px solid #55504b;
    border-radius: 4px;
    background: #201f1e;
    color: #f0eee9;
    box-shadow: 0 8px 30px #0007;
    overflow: auto;
    overscroll-behavior: contain;
    overflow-wrap: anywhere;
    pointer-events: auto;
    touch-action: pan-y;
    scrollbar-color: #69645d #201f1e;
}
.koleda-viewer-info-panel h2 { margin: 0 0 8px; color: inherit; font-size: 16px; line-height: 1.4; }
.koleda-viewer-info-panel p { margin: 8px 0; white-space: pre-line; }
.koleda-viewer-info-panel dl { display: grid; grid-template-columns: minmax(75px,max-content) minmax(0,1fr); gap: 4px 12px; margin: 10px 0; }
.koleda-viewer-info-panel dt { color: #c6c1b9; }
.koleda-viewer-info-panel dd { margin: 0; }
@media(max-width:767px) {
    .koleda-viewer-caption { font-size: 11px; }
    .koleda-viewer-caption-technical { display: none; }
    .koleda-viewer-caption-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
    .koleda-viewer-info-toggle { align-self: flex-end; }
}

/* Contextual destinations have the same quiet, visible outline as Info. */
.koleda-pswp .koleda-viewer-destinations a {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 10px 14px; opacity: 1;
    border: 1px solid #5b5651 !important; border-radius: 3px;
    color: #e3ddd3 !important; font-size: 13px; background: #201f1e;
    text-decoration: none; transition: background .18s, border-color .18s;
}
.koleda-pswp .koleda-viewer-destinations a:hover { background: #2c2b28; border-color: #aaa39a !important; }
.koleda-pswp .koleda-viewer-project { font-weight: 600; }
@media(max-width:767px) {
    .koleda-viewer-footer { flex-wrap: wrap; align-items: center; gap: 8px 12px; }
    .koleda-viewer-destinations { flex-basis: 100%; max-height: 28svh; gap: 8px; }
    .koleda-viewer-project-group,.koleda-viewer-journal-group { flex: 0 1 auto; }
    .koleda-pswp .koleda-viewer-destinations a { padding: 9px 12px; font-size: 12px; }
    .koleda-viewer-sequence { margin-inline-start: auto; }
}
@media(prefers-reduced-motion:reduce) { .koleda-pswp .koleda-viewer-destinations a { transition: none; } }
