.approved-photo { margin: 0; min-width: 0 }
.approved-photo picture, .approved-photo img { display: block; width: 100%; }
.approved-photo img { height: auto; }
.approved-photo.approved-artwork img { object-fit: contain; }

.pg { padding-bottom: clamp(32px, 4vw, 58px); }
.pg-head { padding: 12px 0 18px; }
.pg-head h1 { font-size: clamp(2.35rem, 4.8vw, 4.55rem); line-height: 1.04; }
.pg-head p { max-width: 69ch; margin-top: 10px; font-size: clamp(1rem, 1.38vw, 1.13rem); color: var(--muted); }
.pg-filters { display: flex; flex-wrap: wrap; gap: 7px; padding: 11px 0; border-block: 1px solid var(--line); }
.pg-filters button {
  min-height: 44px;
  padding: 7px 15px;
  border: 1px solid #c4d1d8;
  border-radius: 5px;
  color: var(--ink);
  background: white;
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.24;
}
.pg-filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: white; }
.pg-filters button:hover:not([aria-pressed="true"]) { color: var(--blue); background: var(--wash); }
.pg-live { margin: 9px 0 13px; font-size: .85rem; color: var(--muted); }

.pg-grid {
  --series-gap: clamp(15px, 1.9vw, 27px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--series-gap);
  margin-bottom: calc(-1 * var(--series-gap));
}
.pg-series {
  --card-inset: clamp(14px, 1.45vw, 20px);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  min-width: 0;
  margin-bottom: var(--series-gap);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
}
@supports (grid-template-rows: subgrid) {
  .pg-series { grid-row: span 4; grid-template-rows: subgrid; }
}
.pg-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 6px 6px 0 0;
  background: var(--wash);
}
.pg-card-copy { padding: 13px var(--card-inset) 0; }
.pg-card-copy h2 { margin-top: 5px; font-size: clamp(1.3rem, 1.9vw, 1.65rem); line-height: 1.19; letter-spacing: -.035em; }
.pg-card-copy p { margin-top: 8px; color: var(--muted); font-size: .94rem; line-height: 1.45; }
.pg-card-copy .pg-count { margin-top: 0; color: var(--blue); font-size: .79rem; font-weight: 650; }
.pg-open { justify-self: start; margin: 13px var(--card-inset) 14px; }
.pg-related.material-links { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 0; margin: 0; padding: 0 var(--card-inset) 8px; }
.pg-related.material-links a { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 6px 24px 8px 0; min-height: 45px; }
.pg-related.material-links a::after { top: calc(50% - 4px); right: 5px; width: 6px; height: 6px; }
.pg-related .material-kind { font-size: .71rem; line-height: 1.3; }
.pg-related .material-title { margin-top: 2px; font-size: .88rem; }

html:has(.pg-dialog[open]) { overflow: hidden; }
body:has(> .pg-dialog[open]) { padding-inline-end: var(--pg-scrollbar-width, 0px); }
.pg-dialog {
  width: min(71rem, calc(100% - 28px));
  max-width: calc(100% - 28px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #c3d0d9;
  border-radius: 8px;
  color: var(--ink);
  background: white;
}
.pg-dialog::backdrop { background: #071627d9; }
.pg-dialog-top, .pg-dialog-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 20px;
  padding: 11px 16px;
}
.pg-dialog-top h2 { max-width: 45ch; font-size: clamp(1.08rem, 2vw, 1.43rem); line-height: 1.24; text-wrap: wrap; }
.pg-dialog button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid #b7c7d0;
  border-radius: 5px;
  color: var(--navy);
  background: #f6f8f9;
  font-size: .91rem;
  font-weight: 650;
  line-height: 1.25;
}
.pg-dialog button:hover:not(:disabled) { background: #ebf1f4; }
.pg-dialog button:disabled { opacity: .48; }
.pg-dialog [data-pg-close] { flex: none; }
.pg-dialog [data-pg-close] span { font-size: 1.25em; }
.pg-image-area { height: min(62dvh, 670px); background: #102235; touch-action: pan-y pinch-zoom; }
.pg-image-area img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pg-photo-name { max-width: 58ch; font-size: .96rem; font-weight: 600; line-height: 1.4; }
.pg-controls { flex: none; display: grid; grid-template-columns: minmax(86px, 1fr) auto minmax(86px, 1fr); gap: 12px; align-items: center; }
.pg-current { color: var(--muted); font-size: .9rem; font-weight: 650; text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 940px) { .pg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .pg-head { padding-top: 7px; padding-bottom: 15px; }
  .pg-head p { margin-top: 8px; }
  .pg-grid { grid-template-columns: minmax(0, 1fr); }
  .pg-filters { gap: 6px; }
  .pg-filters button { padding-inline: 10px; font-size: .84rem; }
  .pg-dialog { width: calc(100% - 12px); max-width: calc(100% - 12px); max-height: calc(100dvh - 12px); }
  .pg-dialog-top, .pg-dialog-bottom { padding: 9px 11px; gap: 8px; }
  .pg-dialog-top h2 { font-size: 1.04rem; }
  .pg-dialog-bottom { align-items: stretch; flex-direction: column; }
  .pg-image-area { height: min(90vw, 52dvh); }
  .pg-dialog button { font-size: .86rem; padding-inline: 8px; }
}
