/* Reference details, without changing the established type scale or layout. */
#sg-entry-cover {
  transition: opacity 1.25s cubic-bezier(.22,.61,.36,1), visibility 0s 1.25s !important;
}
#sg-entry-cover.sg-entry-done { opacity:0; visibility:hidden; pointer-events:none; }
@media(min-width:1151px) {
  #project-cases .sg24-case-photos figure { overflow:hidden; border-radius:24px; }
  #project-cases .sg24-case-photos a { display:block; cursor:zoom-in; }
  #project-cases .sg24-case-photos img { transition:transform .35s ease; }
  #project-cases .sg24-case-photos a:hover img { transform:scale(1.025); }
  #project-cases .sg24-case-photos figcaption { cursor:zoom-in; }
  #project-cases .sg24-banner-copy { text-shadow:0 2px 16px #0009; }
  #project-cases .sg24-banner-code { text-shadow:0 1px 8px #000b; }
  .mt-list button:focus-visible,.mt-panel:focus-visible { outline:2px solid var(--blue); outline-offset:4px; }
}
.sg-photo-viewer { box-sizing:border-box;position:fixed;inset:0;width:100vw;max-width:none;height:100vh;max-height:none;margin:0;padding:64px 80px 70px;border:0;background:rgba(10,20,29,.96);color:#fff;overflow:hidden; }
.sg-photo-viewer::backdrop { background:#0a141d; }
.sg-photo-viewer[open] { display:grid;grid-template-rows:minmax(0,1fr) auto;gap:18px; }
.sg-photo-viewer img { display:block;width:100%;height:100%;object-fit:contain;min-height:0; }
.sg-photo-viewer button { position:absolute;display:grid;place-items:center;width:44px;height:44px;border:1px solid #ffffff60;border-radius:50%;background:#152a38;color:#fff;font:24px/1 var(--sg-sans,sans-serif);cursor:pointer; }
.sg-photo-viewer button:focus-visible,.sg-photo-viewer a:focus-visible { outline:2px solid white;outline-offset:5px; }
.sg-photo-close { top:16px;right:24px; }
.sg-photo-prev { top:calc(50% - 22px);left:18px; }
.sg-photo-next { top:calc(50% - 22px);right:18px; }
.sg-photo-viewer footer { display:flex;align-items:center;justify-content:space-between;gap:24px;font:14px/1.5 var(--sg-sans,sans-serif); }
.sg-photo-viewer a { color:inherit;text-decoration:underline;text-underline-offset:5px; }
@media(prefers-reduced-motion:reduce) {
  #sg-entry-cover { transition:none!important; }
  #project-cases .sg24-case-photos img { transition:none; }
}

/* Six material cards: blue depth without decorative chemical lettering. */
.mat-grid .mat .mat-sym{display:none!important}
.mat-grid .mat{
  background:radial-gradient(ellipse at 100% 100%,#d8e9f9 0%,#eaf3fc 42%,#f9fcff 82%)!important;
  border:1px solid #e0ebf5;
}
.mat-grid .mat .mat-h{border-bottom-color:#cbddec}
.mat-grid .mat .mat-chips li{background:rgba(255,255,255,.66)}
