/* Presentation only: no account, source, privacy, ordering or download changes. */
/* Both rows remain over the existing hero image. In-flow controls reserve space
   for wrapped mobile links and long headings instead of covering the title. */
.ksg-review .hero{height:auto;min-height:max(420px,80svh);grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(min-content,1fr);gap:24px;padding:max(16px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) 40px max(20px,env(safe-area-inset-left))}
.ksg-review .hero .hero-copy{grid-row:2;min-width:0;max-width:100%}
.ksg-review .hero .ksg-hero-controls{position:relative;z-index:3;grid-row:1;align-self:start;width:100%;display:flex;align-items:flex-start;justify-content:space-between;gap:12px 24px;pointer-events:none}
.ksg-review .hero .ksg-hero-controls>*{pointer-events:auto}
.ksg-review .hero .ksg-hero-controls .kg-hero-back,.ksg-review .hero .ksg-hero-controls .ksg-site-links,.ksg-review .ksg-viewer-navigation{border:1px solid rgba(255,255,255,.23);border-radius:12px;background:linear-gradient(145deg,rgba(55,66,71,.72),rgba(17,25,29,.78));box-shadow:inset 0 1px 0 rgba(255,255,255,.13),0 8px 26px rgba(0,0,0,.15);-webkit-backdrop-filter:blur(18px) saturate(145%);backdrop-filter:blur(18px) saturate(145%);color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.45)}
.ksg-review .hero .ksg-hero-controls .kg-hero-back{position:static;flex:none;display:inline-flex;align-items:center;min-height:44px;margin:0;padding:6px 14px;font-size:13px}
.ksg-review .hero .ksg-hero-controls .ksg-site-links{margin:0;padding:4px 16px;gap:0 22px;max-width:100%;justify-content:center}
.ksg-review .hero .ksg-hero-controls .ksg-site-links a,.ksg-review .ksg-viewer-navigation a{display:inline-flex;align-items:center;min-height:44px;border:0;padding:0;font-size:12px;text-decoration:none;white-space:nowrap;color:inherit}
.ksg-review .hero .ksg-hero-controls a:focus-visible,.ksg-review .ksg-viewer-navigation a:focus-visible{outline:2px solid #fff;outline-offset:3px}
.ksg-review .hero .ksg-hero-controls a:hover,.ksg-review .ksg-viewer-navigation a:hover{text-decoration:underline;text-underline-offset:4px}
/* Reserve separate rows for navigation, loading feedback, photo and actions.
   The loading element is added by the existing viewer and may have inline positioning. */
.ksg-review dialog.viewer[open]{display:grid!important;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(20px,auto) minmax(0,1fr) auto;gap:6px;width:100%;height:100svh;height:100dvh;max-height:100dvh;padding:max(10px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));overflow:hidden}
.ksg-review .ksg-viewer-navigation{grid-row:1;justify-self:center;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:0 20px;width:max-content;max-width:calc(100% - 92px);margin:0 46px;padding:2px 16px;font:12px ksRoboto,Arial,sans-serif}
.ksg-review dialog.viewer .close{top:max(10px,env(safe-area-inset-top));right:max(10px,env(safe-area-inset-right));z-index:2}
.ksg-review dialog.viewer>[data-photo-loading]{grid-row:2;position:static!important;inset:auto!important;justify-self:center;align-self:center;width:auto;max-width:100%!important;margin:0!important;padding:0;line-height:20px;font-size:12px;text-align:center;overflow-wrap:anywhere}
.ksg-review dialog.viewer>img{grid-row:3;display:block;min-width:0;min-height:0;width:100%;height:100%!important;max-width:100%;max-height:100%;margin:0;object-fit:contain}
.ksg-review dialog.viewer>.viewer-actions{grid-row:4;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:0 16px;margin:0;min-width:0}
.ksg-review dialog.viewer>.viewer-actions button,.ksg-review dialog.viewer>.viewer-actions a{min-height:44px;padding:10px 8px}
@media(max-width:700px){
 .ksg-review .hero{min-height:max(360px,80svh);padding-top:max(12px,env(safe-area-inset-top));padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}
 .ksg-review .hero .ksg-hero-controls{flex-wrap:wrap;gap:10px}
 .ksg-review .hero .ksg-hero-controls .ksg-site-links{order:-1;flex:1 0 100%;width:100%;gap:0 16px;padding:2px 12px}
 /* Latest mobile direction: quiet text over the image, not glass containers. */
 .ksg-review .hero .ksg-hero-controls .kg-hero-back,.ksg-review .hero .ksg-hero-controls .ksg-site-links,.ksg-review .ksg-viewer-navigation{border:0;border-radius:0;background:transparent;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;text-shadow:0 1px 3px rgba(0,0,0,.6)}
 .ksg-review .hero .ksg-hero-controls .kg-hero-back{padding:0;min-height:44px}
 .ksg-review .ksg-viewer-navigation{max-width:calc(100% - 48px);margin:0 48px 0 0;gap:0 14px;padding:2px 10px}
 .ksg-review dialog.viewer>.viewer-actions{gap:0 4px}
 .ksg-review dialog.viewer>.viewer-actions button,.ksg-review dialog.viewer>.viewer-actions a{font-size:12px}
 html body.ksg-live-index .kg .kg-top nav.ksg-index-site-links a{text-shadow:0 1px 3px rgba(0,0,0,.45)}
}
@media(min-width:701px) and (prefers-reduced-transparency:reduce){
 .ksg-review .hero .ksg-hero-controls .kg-hero-back,.ksg-review .hero .ksg-hero-controls .ksg-site-links,.ksg-review .ksg-viewer-navigation{background:#202c30;-webkit-backdrop-filter:none;backdrop-filter:none}
}

/* Keep the existing World of Ken glyph independent from the full-size photo rule. */
.ksg-review .ksg-viewer-navigation .ks-world-glyphs img{width:24px;height:24px;margin:0;max-width:none;max-height:none;object-fit:contain}

/* Wrap unusually long gallery-title words on narrow screens. */
.ksg-review .hero .hero-copy h1{overflow-wrap:anywhere}
