.rg7-page.rgw {
  --rgw-ink: var(--rg6-navy, #0c1728);
  --rgw-paper: #f6f4ee;
  color: var(--rgw-ink);
  background: var(--rgw-paper);
}
.rgw .rgw-ace__copy > p:not(.rgw-course) {
  max-width: 34ch;
  margin: clamp(20px, 2.2vw, 34px) 0 0;
  font-size: clamp(16px, 1.4vw, 21px);
  line-height: 1.55;
}
.rgw .rgw-photo { display: block; position: relative; cursor: zoom-in; }
.rgw .rgw-photo img { width: 100%; height: auto; }
/* Keep the original rg7 hero layout. Only the portrait needs a different frame.
   The left edge of the same photograph fills the space behind the lettering. */
.rgw .rg7-hero__media {
  top: var(--rg6-header-height);
  container-type: size;
  background: url("winners/photo-01.webp") left 27% / 480% auto no-repeat;
}
.rgw .rg7-hero__media .rgw-photo { position: absolute; inset: 0; }
.rgw .rg7-hero__media img {
  position: absolute;
  right: 0;
  width: min(72%, 130svh, 1260px);
  width: min(74%, 160cqh, 1260px);
  height: 100%;
  object-fit: cover;
  object-position: center top;
  mask-image: linear-gradient(to right, transparent, black 23%);
}
.rgw .rg7-hero__veil, .rgw .rg7-hero__content { pointer-events: none; }
.rgw .rg7-hero__content a { pointer-events: auto; color: inherit; text-decoration: underline !important; text-underline-offset: .15em; }
.rgw .rgw-section { padding-block: clamp(44px, 5.6vw, 90px); scroll-margin-top: calc(var(--rg6-header-height) + 20px); }
.rgw .rgw-section h2, .rgw .rgw-ace h2 {
  font-size: clamp(36px, 4.4vw, 72px);
  line-height: 1;
  letter-spacing: -.063em;
  font-weight: 850;
  color: inherit;
}
.rgw .rgw-section h2 {
  border-top: 2px solid var(--rgw-ink);
  padding-top: clamp(16px, 2vw, 28px);
  margin-bottom: clamp(24px, 3vw, 44px);
}
.rgw-posters, .rgw-candids { display: grid; gap: clamp(14px, 2.4vw, 36px); align-items: start; }
.rgw-posters, .rgw-candids { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rgw-posters + .rgw-posters { margin-top: clamp(26px, 4vw, 60px); }
.rgw-posters--tall { grid-template-columns: .456fr .667fr .444fr; }
.rgw figure { min-width: 0; }
.rgw figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  font-size: clamp(15px, 1.35vw, 21px);
  font-weight: 700;
  line-height: 1.23;
  letter-spacing: -.025em;
}
.rgw figcaption span, .rgw .rgw-course, .rgw-ace dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.rgw figcaption span { color: #526070; }
.rgw .rgw-ace { background: var(--rgw-ink); color: #fff; }
.rgw-ace__inner {
  padding-block: clamp(40px, 6vw, 90px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 7vw, 108px);
  align-items: center;
}
.rgw-ace__photo { width: min(100%, 500px); justify-self: end; }
.rgw .rgw-ace h2 { color: white; font-size: clamp(48px, 6.6vw, 108px); }
.rgw .rgw-course { color: #dfbe80; margin-bottom: 18px; }
.rgw-ace dl { margin: 32px 0 0; border-top: 1px solid #6d7783; padding-top: 18px; display: flex; gap: clamp(20px, 3vw, 46px); }
.rgw-ace dt { color: #d6dce3; }
.rgw-ace dd { margin: 4px 0 0; font-size: clamp(22px, 2.6vw, 38px); font-variant-numeric: tabular-nums; }
.rgw-candids { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 32px; }
.rgw-candids figure { grid-column: span 2; }
.rgw-candids figure:nth-last-child(-n+2) { grid-column: span 3; }
.rgw .rgw-candids img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.rgw .rgw-candids figure:nth-last-child(-n+2) img { aspect-ratio: 5 / 4; object-position: 50% 36%; }
body #rgw-winners a:focus-visible, body #rgw-viewer button:focus-visible {
  outline: 3px solid #c29951 !important;
  outline-offset: 3px !important;
}
html:has(#rgw-viewer[open]) { overflow: hidden; }
#rgw-viewer {
  box-sizing: border-box;
  width: min(100% - 24px, 1000px);
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: 14px clamp(12px, 2vw, 26px);
  border: 0;
  margin: auto;
  background: #101923;
  color: white;
  font: 16px/1.4 Arial, Helvetica, sans-serif;
}
#rgw-viewer::backdrop { background: rgb(5 11 18 / 88%); }
.rgw-viewer__bar, .rgw-viewer__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rgw-viewer__bar { margin-bottom: 8px; }
.rgw-viewer__foot { margin-top: 10px; }
.rgw-viewer__foot div { display: flex; gap: 6px; }
#rgw-viewer button {
  padding: 4px 12px; min-width: 44px; min-height: 44px; border: 1px solid #788591;
  background: transparent; color: white; cursor: pointer; font: inherit; border-radius: 0;
}
#rgw-viewer button:hover { background: #334455; }
#rgw-viewer img { display: block; width: 100%; height: min(72vh, 800px); height: min(72dvh, calc(100dvh - 168px), 800px); object-fit: contain; }
@media (max-width: 700px) {
  .rgw-ace__inner { grid-template-columns: 1fr; }
  .rgw .rg7-hero__media { background: var(--rgw-ink); }
  .rgw .rg7-hero__media img { width: 100%; mask-image: none; }
  .rgw-ace__copy { grid-row: 1; }
  .rgw-ace__photo { justify-self: center; }
  .rgw-candids { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rgw-candids figure, .rgw-candids figure:nth-last-child(-n+2) { grid-column: auto; }
  .rgw-candids figure:last-child { grid-column: 1 / -1; }
  .rgw .rgw-candids figure:nth-last-child(2) img { aspect-ratio: 4 / 5; }
}
@media (max-width: 600px) {
  .rgw-viewer__foot { flex-wrap: wrap; }
  .rgw-posters, .rgw-posters--tall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rgw-posters figure:first-child { grid-column: 1 / -1; }
  .rgw-posters--tall { grid-template-columns: .667fr .444fr; }
  .rgw-posters--tall figure:first-child { width: min(100%, 330px); justify-self: center; }
}
