.edge-gallery {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.edge-thumbnails { display: grid; gap: 8px; }
.edge-thumb {
  display: block;
  width: 100%;
  padding: 3px;
  border: 1px solid #c9dbe8;
  border-radius: 8px;
  background: white;
  cursor: pointer;
}
.edge-thumb[aria-pressed="true"] { border-color: #17639d; box-shadow: 0 0 0 2px #17639d; }
.edge-thumb img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.edge-gallery .rc-photo, .edge-models .rc-photo { margin: 0; }
.edge-gallery .rc-photo img { aspect-ratio: 1.04; object-fit: contain; background: #f4f7fa; }
.edge-details-list { display: grid; gap: 16px; list-style: none; padding: 0; margin: 0 0 26px; }
.edge-details-list li { padding-left: 18px; border-left: 2px solid #b4d0e4; }
.edge-details-list h3 { font-size: 1.075rem; line-height: 1.4; margin: 0 0 4px; }
.edge-details-list p { margin: 0; }
.edge-draft .rc-intro { padding-bottom: 56px; }
.edge-draft .rc-intro-grid > div:last-child p:first-child { margin-top: 0; }
.edge-draft .rc-intro-grid > div:last-child p:last-child { margin-bottom: 0; }
.edge-draft .rc-hero-art img { display: block; height: 100%; width: 100%; object-fit: contain; }
.edge-models .rc-model-photo { margin: 0; border-radius: 12px; background: #f0f4f7; }
.edge-models .rc-model-photo img { object-fit: contain; padding: 10px; }
.edge-models .rc-model-photo figcaption { position: absolute; inset: auto 0 0; background: #fffffff5; padding: 6px 10px; font-size: .75rem; color: #344e62; }
.edge-models .rc-model-link { cursor: pointer; justify-content: center; align-self: start; background: white; }
.edge-models .rc-model-link:hover { background: #eaf3f9; }
.edge-layout { margin: 34px 0 0; padding: 24px; border-radius: 16px; background: #edf4f8; grid-template-columns: minmax(170px, .38fr) 1fr; gap: 30px; }
.edge-layout .rc-photo img { aspect-ratio: 1.8; }
.edge-layout h3 { margin: 0 0 7px; font-size: 1.25rem; }
.edge-layout p { margin: 0; }
.edge-draft #processing-results .rc-photo img { object-fit: contain; }
.edge-review-notice { padding: 9px 20px; text-align: center; color: #304b61; background: #e9f2f8; font: 600 .875rem/1.4 system-ui, sans-serif; }
@media (max-width: 1000px) {
  .edge-gallery { grid-template-columns: minmax(0, 1fr); }
  .edge-thumbnails { grid-row: 2; grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .edge-layout { padding: 16px; grid-template-columns: 1fr; }
  .edge-draft .rc-intro { padding-bottom: 36px; }
  .edge-draft .rc-story .rc-photo { margin: 0; }
  .edge-draft .rc-hero .rc-actions .rc-outline { display: inline-flex; }
}

.collection-model-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: auto;
}
.collection-model-actions .rc-text-link { font-size: .875rem; }

.edge-draft .collection-hero-photos {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}
.edge-draft .collection-hero-photos .rc-photo {
  margin: 0;
  background: #f2f6f9;
  border-radius: 14px;
}
.edge-draft .collection-hero-machine img {
  aspect-ratio: 1.22;
  object-fit: contain;
}
.edge-draft .collection-hero-detail {
  display: grid;
  grid-template-columns: minmax(0, 48%) minmax(0, 1fr);
  align-items: center;
}
.edge-draft .collection-hero-detail img {
  aspect-ratio: 1.6;
  object-fit: contain;
}
.edge-draft .collection-hero-photos figcaption { color: #344e62; }

.collection-enlarge {
  display: block;
  position: relative;
  min-width: 0;
  cursor: zoom-in;
}
.collection-enlarge:focus-visible {
  outline: 3px solid #2689c5;
  outline-offset: -3px;
}
.collection-enlarge-symbol {
  position: absolute;
  z-index: 1;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #14354be8;
  color: white;
  font: 600 17px/1 system-ui, sans-serif;
}
.edge-draft .rc-model-photo { aspect-ratio: auto; }
.edge-draft .rc-model-photo img {
  height: auto;
  aspect-ratio: 1.2;
  object-fit: scale-down;
  padding: 0;
}
.edge-draft .rc-model-photo:hover img { transform: none; }
.edge-draft .rc-model-photo figcaption { position: static; }
.edge-draft .edge-gallery .rc-photo img { object-fit: scale-down; }
.edge-draft #process-1 .rc-photo img,
.edge-draft #process-2 .rc-photo img,
.edge-draft .edge-layout .rc-photo img {
  background: #edf3f7;
  object-fit: contain;
}

.collection-photo-viewer {
  width: max-content;
  max-width: min(1200px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  border: 0;
  border-radius: 14px;
  padding: 0;
  color: #152c40;
  background: #f2f6f9;
  box-shadow: 0 20px 52px #07152480;
}
.collection-photo-viewer::backdrop { background: #091c2bda; }
.collection-viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
}
.collection-viewer-toolbar a { color: #155d91; }
.collection-viewer-toolbar button {
  padding: 6px 12px;
  border: 1px solid #a5bacb;
  border-radius: 6px;
  font: inherit;
  cursor: pointer;
}
.collection-photo-viewer figure { margin: 0; }
.collection-photo-viewer img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 76vh;
  margin-inline: auto;
  object-fit: contain;
}
.collection-photo-viewer figcaption { padding: 10px 16px; font-size: .875rem; }

@media (max-width: 760px) {
  .edge-draft .collection-hero-photos { width: 100%; max-width: 520px; justify-self: center; }
}
