/* Sprint 169: a definite 4:3 viewport, independent of intrinsic image dimensions.
   Source images remain unchanged; no cropping, filters or resampling on the server. */
.atlas-page .atlas-card-picture,
.atlas-page .atlas-card-text .atlas-card-picture {
  display:flex; flex-direction:column; flex:none; position:relative;
  aspect-ratio:auto; min-height:0; min-width:0; background:#1b171e;
}
.atlas-page .atlas-media-frame {
  display:block; position:relative; flex:none; width:100%; min-width:0;
  aspect-ratio:4 / 3; overflow:hidden; background:#151218;
  --atlas-image-inset:0px;
}
.atlas-page .atlas-media-frame.atlas-media-external {
  background:#fff; --atlas-image-inset:clamp(10px,1.4vw,18px);
}
.atlas-page .atlas-media-frame > img {
  position:absolute; display:block; inset:var(--atlas-image-inset);
  width:calc(100% - 2 * var(--atlas-image-inset));
  height:calc(100% - 2 * var(--atlas-image-inset));
  min-width:0; min-height:0; max-width:none; max-height:none;
  margin:0; padding:0; border:0; border-radius:0;
  aspect-ratio:auto; object-fit:contain; object-position:50% 50%;
  background:transparent;
}
.atlas-page .atlas-card-meta {
  display:flex; align-items:center; justify-content:space-between;
  gap:6px 10px; flex-wrap:wrap; padding:9px 13px;
  min-height:40px; box-sizing:border-box; border-top:1px solid var(--atlas-border);
  border-bottom:1px solid var(--atlas-border); background:#211b23;
}
.atlas-page .atlas-card-tag {
  position:static; flex:none; padding:3px 7px; border-radius:5px;
  background:#30252d; font-size:.68rem; line-height:1.45;
}
.atlas-page .atlas-card-credit {font-size:.68rem; color:var(--atlas-muted); line-height:1.4; overflow-wrap:anywhere;}
.atlas-page .atlas-card-copy {padding:16px 19px 19px;}
.atlas-page .atlas-media-placeholder {
  background:radial-gradient(ellipse at 18% 0%,#382932 0,transparent 70%),#1c1820;
}
.atlas-page .atlas-media-frame .atlas-text-cover {
  position:absolute; inset:0; min-height:0; width:auto; height:auto;
  background:transparent; padding:clamp(14px,2.1vw,28px);
  display:flex; align-items:flex-start; justify-content:center; gap:7px; overflow:hidden;
}
.atlas-page .atlas-cover-label {font-size:.65rem; letter-spacing:.13em; color:var(--atlas-gold); text-transform:uppercase; font-weight:750;}
.atlas-page .atlas-text-cover strong {font-size:clamp(1.45rem,2.8vw,2.1rem); line-height:1.15;}
.atlas-page .atlas-cover-code {font-size:.88rem; color:#e7d6cf; overflow-wrap:anywhere;}
.atlas-page .atlas-text-cover small {font-size:.75rem; color:var(--atlas-muted);}
.atlas-page .atlas-profile-image {min-width:0;}
.atlas-page .atlas-profile-image .atlas-media-external {--atlas-image-inset:clamp(14px,2.4vw,28px);}
.atlas-page .atlas-profile-image figcaption {display:grid; gap:4px; padding:11px 15px; line-height:1.5; overflow-wrap:anywhere;}
.atlas-page .atlas-profile-image figcaption strong {font-weight:650; color:#e7d6cf;}
.atlas-page .atlas-profile-hero > div {min-width:0;}
.atlas-page .atlas-compare-table .atlas-media-frame {margin-bottom:9px; border-radius:7px;}
.atlas-page .atlas-compare-table .atlas-media-external {--atlas-image-inset:8px;}
.atlas-page .atlas-compare-no-photo {position:absolute; inset:0; display:grid; place-items:center; padding:6px; font-size:.72rem; color:var(--atlas-muted); text-align:center; font-weight:400;}
.atlas-page .atlas-compare-credit {display:block; font-size:.69rem; font-weight:400; line-height:1.4; margin:0 0 7px; color:var(--atlas-muted);}
.atlas-page .atlas-offer > div .atlas-offer-illustrated {display:inline-block; margin:4px 0; color:var(--atlas-gold); font-size:.72rem; font-weight:650;}
@media (max-width:690px) {
  .atlas-page .atlas-card-meta {padding:8px 11px;}
  .atlas-page .atlas-card-copy {padding:14px;}
  .atlas-page .atlas-media-frame.atlas-media-external {--atlas-image-inset:12px;}
  .atlas-page .atlas-profile-image .atlas-media-external {--atlas-image-inset:16px;}
  .atlas-page .atlas-compare-table .atlas-media-external {--atlas-image-inset:6px;}
}
