/* CMS-owned no-JavaScript HTML fallback. These selectors only style the
   canonical server markup before the approved photographic runtime mounts. */
.cms-server-photo-list {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(32px,6vw,96px);
  width:min(100% - 80px,1400px);
  margin:60px auto 120px;
}
.cms-server-photo-list a,
.cms-server-photo-list figure {
  min-width:0;
  color:inherit;
}
.cms-server-photo-list figure {margin:0}
.cms-server-photo-list img {
  width:100%;
  height:auto;
  max-width:100%;
  display:block;
}
.cms-server-photo-list figcaption {
  font-size:14px;
  line-height:1.5;
  margin-top:12px;
}
.cms-server-photo-list a:hover figcaption {text-decoration:underline}
.cms-about-fallback {
  margin:clamp(40px,8vw,100px) auto;
  width:min(100% - 40px,780px);
  font-size:clamp(18px,2vw,24px);
  line-height:1.55;
}
.cms-about-fallback h1 {font-size:clamp(42px,7vw,100px);margin:0 0 36px}
.cms-about-fallback p {margin:0 0 1.3em}
@media(max-width:700px) {
  .cms-server-photo-list {
    grid-template-columns:minmax(0,1fr);
    gap:48px;
    width:calc(100% - 40px);
    margin:40px auto 70px;
  }
}

/* Shared photographic corner contract. Kept in the existing CMS stylesheet
   until the pinned upstream Layout 02 source is next refreshed. No new request. */
/* Shared photograph edge treatment.
   This is deliberately late in the existing shell bundle: photography keeps
   one 1px corner regardless of route, small-thumbnail rules or image overlays.
   Circular voice-note/profile badges and non-photographic UI are unchanged. */
body[data-variant="site"] img:not(.cg-voice-avatar img):not(.cg-mini-images img),
body[data-variant="site"] #app img:not(.cg-voice-avatar img):not(.cg-mini-images img),
body[data-variant="site"] :is(
  .homepage-source .project img,
  .cg-home-arrival-photo,
  .cg-work-representative,
  .cg-work-representative img,
  .cg-work-branch-photo,
  .cg-work-branch-photo img,
  .cg-hb-photo img,
  .cg-hb-terminal-image,
  .cg-hb-terminal-image img,
  .cg-archive-photo-image,
  .cg-archive-photo-image img,
  .cg-reel-card,
  .cg-reel-card img,
  .profile-panel,
  .profile-panel > figure,
  .profile-panel > figure img,
  .hero,
  .hero-info,
  .hero-info img,
  .philosophy-mosaic figure,
  .project-card,
  .project-info .info-hero,
  .brief-photos figure,
  .project-quote figure,
  .cg-gallery-item,
  .cg-gallery-item figure,
  .cg-neighbor-card-image,
  .cg-viewer-embedded .serial-stage figure,
  .cg-project-viewer #sequence-rail a,
  .cg-project-rail-portal #sequence-rail a,
  .contact-photo,
  .note-card,
  .journal-index-image,
  .essay-hero figure,
  .collection-card > div,
  .image-cta
) {
  border-radius:1px!important;
}
/* The About reel's expanded layout has an ID-qualified legacy square-corner
   rule, so match that specificity without changing its animated outer mask. */
body[data-variant="site"] #cg-media.cg-reel.cg-reel-archive[data-reel-layout="fuller"] .cg-reel-card,
body[data-variant="site"] #cg-media.cg-reel.cg-reel-archive[data-reel-layout="fuller"] .cg-reel-card img {
  border-radius:1px!important;
}
/* The full-bleed CTA has an ID-qualified footer radius rule. Only its
   photographic frame and image edges change, not the footer geometry. */
body[data-variant="site"] #main .image-cta[data-section="cta"],
body[data-variant="site"] #main .image-cta[data-section="cta"] > img {
  border-radius:1px!important;
}
/* Preserve the approved Work/Project thumbnail sizing while replacing only
   their deliberate 0px corner overrides. */
body[data-variant="site"] .cg-work-representative[data-compact-photo="true"],
body[data-variant="site"] .cg-work-representative[data-compact-photo="true"] img,
body[data-variant="site"] .cg-work-branch img,
body[data-variant="site"] .cg-project-viewer #sequence-rail img,
body[data-variant="site"] .cg-project-rail-portal #sequence-rail img {
  border-radius:1px!important;
}

/* The final About photographic profile is intentionally framed, not part of
   the uniform 1px gallery treatment. Restore the original concentric
   10px black frame / 6px photo corners with its unchanged 4px inset. */
body[data-variant="site"] #app #main .profile-panel {
  border-radius:calc(var(--cg-profile-photo-radius, 6px) + var(--cg-profile-frame, 4px))!important;
}
body[data-variant="site"] #app #main .profile-panel > figure,
body[data-variant="site"] #app #main .profile-panel > figure img {
  border-radius:var(--cg-profile-photo-radius, 6px)!important;
}
