/* Native WordPress integration and the original, editable hero. */
body{--admin-height:0px;--header-height:60px}body.admin-bar{--admin-height:32px}
body.admin-bar #wpadminbar{position:fixed}
/* Hostinger's admin-only floating assistant otherwise covers SK/EN.
   It remains available throughout wp-admin. */
body.jak-plagat #vue-app:has(.kodee-fab){display:none!important}
html:has(body.admin-bar){scroll-padding-top:92px}
body[data-design="plagat"] .identity{top:var(--admin-height);width:100%;height:var(--header-height);z-index:40;background:var(--paper)}
body[data-design="plagat"] .identity :is(.jak,.evom){text-transform:capitalize}
body[data-design="plagat"] .navigation{top:calc(var(--admin-height) + var(--header-height));bottom:0;height:auto}
.nav-secondary{display:flex;flex-direction:column;gap:28px}.languages{display:flex;gap:12px}
.navigation .nav-secondary>a{text-transform:capitalize}.languages a{font-size:13px}
body[data-design="plagat"] #home{width:100%;height:calc(100svh - var(--admin-height));padding:0}
#home .hero-foil-field{position:absolute;inset:0}
#home .hero-image-field,.hero-slide{position:absolute;inset:0}
.hero-slide{opacity:0;transition:opacity 1.2s ease}
.hero-slide.is-active{opacity:1}
#home .hero-image-field img{height:100%;width:100%;object-fit:cover;padding:0}
body.jak-intro-disabled:not(.jak-hero-ready) #home .hero-frosted-object{animation-play-state:running}
body #home.hero-still .hero-frosted-object,body #home.is-paused .hero-frosted-object{animation-play-state:paused!important}
.collection-intro{padding:18px var(--inset);font:400 var(--text-size)/1.08 var(--font-serif)}
.collection-intro p+p{margin-top:16px}
.older .work-grid:empty{display:none}.older details[open]:has(.work-grid:empty)>summary{color:#a7a7a2}
.about p+p{margin-top:16px}.information-content>p,.information-group>p{white-space:normal}
.information-content blockquote{margin:24px 0;font:400 var(--text-size)/1 var(--font-serif)}
.project-notes dd,.project-notes a{overflow-wrap:anywhere}
.work-info h3{overflow-wrap:anywhere}
.lightbox-caption{position:absolute;bottom:52px;left:22px;right:22px;text-align:center;font:14px/1.3 var(--font-sans);max-height:42px;overflow:auto}
body:has(.lightbox[open]){overflow:hidden}
.about-page>h1,.text-page>h1{padding:28px var(--inset);font:400 var(--title-size)/1 var(--font-sans)}
.about-page>p,.text-page>p,.text-page>article{padding:0 var(--inset) 28px;font:400 var(--text-size)/1.08 var(--font-serif)}
.text-page{min-height:calc(100svh - 60px)}
.gallery-toolbar button{min-height:42px}.footer a{overflow-wrap:anywhere}
.lightbox [hidden]{display:none}
.painting-detail .main-photo img{object-fit:contain;aspect-ratio:1.5;max-height:80svh}

/* Opaque black surfaces; only the original stencil's openings are transparent. */
body[data-design="plagat"] .navigation {
  --nav-inset: 18px;
  padding: 0;
  border: 0;
  gap: 0;
  justify-content: flex-start;
  overflow: hidden;
  background: transparent;
}
.navigation-frame {
  display: flex;
  flex-direction: column;
  flex: none;
  width: 100%;
  height: 100%;
  min-height: 0;
}
/* Fill any extra space exposed when the mobile browser toolbar retracts. */
.navigation::after {
  content: '';
  flex: 1;
  width: 100%;
  background: var(--paper);
}
.navigation-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: none;
  width: 100%;
  max-height: 100%;
  min-height: 0;
  padding: 32px var(--nav-inset) max(38px, env(safe-area-inset-bottom));
  gap: 42px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
}
body[data-design="plagat"] .navigation a { gap: 8px; }
body[data-design="plagat"] .navigation a:focus-visible,
body[data-design="plagat"] .nav-toggle:focus-visible {
  outline: 1px solid rgb(238 234 227 / 85%);
  outline-offset: 3px;
}
/* A close crop of the original hero silhouette, contained above the links. */
.navigation-art {
  flex: 1;
  align-self: stretch;
  min-height: 0;
  overflow: hidden;
  pointer-events: none;
}
.navigation-outline {
  display: block;
  width: 100%;
  height: 100%;
}
.nav-primary { width: 100%; }
.nav-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 20px;
  height: 26px;
  opacity: .72;
}
.nav-symbol img { width: 100%; height: 100%; object-fit: contain; }
.navigation a:is([aria-current], :hover, :focus-visible) .nav-symbol { opacity: 1; }
.nav-text { min-width: 0; }
.nav-toggle { display: none; }
@media (max-width: 1000px) {
  body[data-design="plagat"] .navigation { --nav-inset: 12px; }
  body[data-design="plagat"] .navigation a { gap: 6px; font-size: 15px; }
  .nav-symbol { width: 16px; }
}
@media (max-width: 680px) {
  body { --header-height: 48px; }
  body[data-design="plagat"].has-navigation-toggle { --rail: 52px; }
  body[data-design="plagat"].has-navigation-toggle .identity { padding-right: calc(var(--rail) + 14px); }
  body[data-design="plagat"]:not(.has-navigation-toggle) .nav-symbol { display: none; }
  body[data-design="plagat"].has-navigation-toggle .navigation {
    --nav-inset: 0px;
    width: var(--rail);
  }
  /* svh keeps the artwork and links still while browser chrome changes height. */
  .navigation-frame {
    height: min(100%, calc(100svh - var(--admin-height) - var(--header-height)));
  }
  body[data-design="plagat"].has-navigation-toggle .nav-toggle:not([hidden]) {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--rail);
    height: var(--header-height);
    padding: 0;
    background: var(--paper);
  }
  .nav-toggle-icon { position: relative; display: block; width: 22px; height: 18px; }
  .nav-toggle-icon span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transition: transform .16s ease, opacity .16s ease;
  }
  .nav-toggle-icon span:nth-child(1) { top: 2px; }
  .nav-toggle-icon span:nth-child(2) { top: 8px; }
  .nav-toggle-icon span:nth-child(3) { top: 14px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  body[data-design="plagat"].has-navigation-toggle .navigation-content {
    gap: 24px;
    padding: 14px 0 max(14px, env(safe-area-inset-bottom));
  }
  body[data-design="plagat"].has-navigation-toggle .navigation a {
    width: 100%;
    min-height: 44px;
    gap: 0;
    font-size: 16px;
  }
  body[data-design="plagat"].has-navigation-toggle .nav-symbol {
    width: 52px;
    height: 44px;
    padding: 12px 14px;
  }
  body[data-design="plagat"].has-navigation-toggle .navigation.has-motifs:not(.is-open) .nav-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  body[data-design="plagat"].has-navigation-toggle .nav-secondary { gap: 18px; }
  body[data-design="plagat"].has-navigation-toggle .languages { flex-direction: column; gap: 0; }
  body[data-design="plagat"].has-navigation-toggle .languages a { justify-content: center; font-size: 12px; }
  body[data-design="plagat"].has-navigation-toggle .navigation.is-open {
    width: min(252px, calc(100vw - 44px));
  }
  body[data-design="plagat"].has-navigation-toggle .navigation.is-open .languages {
    flex-direction: row;
    padding-inline: 18px;
    gap: 16px;
  }
  body[data-design="plagat"].has-navigation-toggle .navigation.is-open .languages a {
    width: auto;
    min-width: 28px;
  }
  body[data-design="plagat"].has-navigation-toggle .navigation a:focus-visible,
  body[data-design="plagat"].has-navigation-toggle .nav-toggle:focus-visible { outline-offset: -3px; }
  body[data-design="plagat"].has-navigation-toggle:has(.navigation:not(.has-motifs)) { --rail: 78px; }
  body[data-design="plagat"].has-navigation-toggle .navigation:not(.has-motifs) .nav-text { padding-inline: 10px; font-size: 13px; }
}
@media(max-width:782px){body.admin-bar{--admin-height:46px}html:has(body.admin-bar){scroll-padding-top:106px}}
@media(max-width:680px){.nav-secondary{gap:14px}.languages{gap:8px}.languages a{font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media(max-width:680px){html:has(body.admin-bar){scroll-padding-top:94px}}
