.atlas-option-image {
  margin: 8px 0 14px;
  display: grid;
  gap: 6px;
  width: min(100%, 290px);
}
.atlas-crop {
  display: block;
  width: 100%;
  aspect-ratio: 237/159;
  overflow: hidden;
  background: #f4eefb;
  border: 1px solid var(--border, #e7dff0);
  border-radius: 13px;
  max-height: 190px;
}
.atlas-crop image {
  pointer-events: none;
}
.atlas-zoom-button {
  padding: 7px 10px;
  background: #eee7fa;
  color: var(--ink, #29213f);
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: left;
  border: 1px solid var(--border, #e7dff0);
}
.atlas-inline-credit {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--ink-soft, #625b72);
}
.atlas-dialog {
  width: min(820px, 94vw);
  max-height: 90dvh;
  border: 1px solid var(--border, #e7dff0);
  border-radius: 24px;
  padding: 22px;
  color: var(--ink, #29213f);
  background: #fff;
  overflow: auto;
}
.atlas-dialog::backdrop {
  background: #29213f99;
}
.atlas-dialog h2 {
  font-size: 1.25rem;
  line-height: 1.5;
  clear: both;
  padding-top: 12px;
}
.atlas-dialog figure {
  margin: 14px 0;
}
.atlas-dialog .atlas-crop-large {
  max-height: 470px;
  width: 100%;
  border-radius: 16px;
}
.atlas-close {
  width: auto;
  float: right;
  padding: 8px 14px;
}
.atlas-credit {
  margin-top: 12px;
  line-height: 1.6;
  font-size: 0.9rem;
  color: var(--ink-soft, #625b72);
}
.atlas-credit details {
  margin-top: 8px;
}
.atlas-credit details summary {
  padding: 5px 0;
  font-size: 0.9rem;
}
.atlas-credit details p {
  font-size: 0.9rem;
  margin: 6px 0;
}
.atlas-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 18px;
}
.atlas-figure {
  margin: 0;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border, #e7dff0);
  border-radius: 22px;
  min-width: 0;
}
.atlas-figure p {
  font-size: 1rem;
  line-height: 1.65;
}
.atlas-full-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 680px;
  margin: 12px 0;
  border-radius: 13px;
}
.atlas-figure .atlas-full-image {
  max-height: 350px;
}
.atlas-figure h3 {
  font-size: 1rem;
}
.atlas-option-image button:focus-visible,
.atlas-dialog button:focus-visible {
  outline: 3px solid var(--teal, #7152cf);
  outline-offset: 3px;
}
@media (max-width: 600px) {
  .atlas-dialog {
    padding: 16px;
  }
  .atlas-dialog .atlas-crop-large {
    max-height: 300px;
  }
  .atlas-gallery {
    grid-template-columns: 1fr;
  }
  .atlas-option-image {
    width: 100%;
  }
}
@media print {
  .atlas-zoom-button,
  .atlas-close {
    display: none;
  }
  .atlas-dialog {
    display: none;
  }
}

/* Pingo shell: reference photography keeps neutral surfaces and full contrast. */
.atlas-zoom-button,
.atlas-close {
  min-height: 44px;
}
.atlas-option-image {
  max-width: 100%;
}
.atlas-inline-credit,
.atlas-credit {
  overflow-wrap: anywhere;
}
.atlas-dialog {
  overscroll-behavior: contain;
}
.atlas-close {
  background: #eee7fa;
  color: var(--ink, #29213f);
}
.atlas-dialog h2 {
  font-weight: 800;
}
.atlas-dialog::backdrop {
  backdrop-filter: blur(5px);
}
.atlas-figure {
  box-shadow: 0 5px 20px #29213f04;
}
@media (max-width: 600px) {
  .atlas-dialog {
    width: 96vw;
    padding: 20px;
    border-radius: 23px;
  }
  .atlas-inline-credit {
    font-size: 0.8rem;
  }
  .atlas-figure {
    padding: 20px;
  }
}
