/* Position the mark relative to the image, never to the lightbox viewport. */
.dl-detail .dl-modal-figure .dl-modal-image-stack {
  inline-size:fit-content;
  max-inline-size:100%;
  margin-inline:auto;
}
.dl-detail .dl-modal-figure .dl-modal-photo > img[data-dl-large] {
  display:block;
  inline-size:auto;
  block-size:auto;
  max-inline-size:100%;
  max-block-size:min(62vh,800px);
  max-block-size:min(62dvh,800px);
  object-fit:contain;
}
.dl-detail .dl-modal-figure .dl-modal-photo > img.dl-brand-logo {
  position:absolute;
  inline-size:clamp(39px,8vw,84px);
  block-size:auto;
  max-inline-size:21%;
  aspect-ratio:1;
  object-fit:contain;
  pointer-events:none;
}
.dl-modal-brand-contact { contain:inline-size; }
.dl-modal-brand-contact[hidden] { display:none!important; }
.dl-detail .dl-modal-photo:has(+ .dl-modal-brand-contact:not([hidden])) {
  overflow:hidden;
  border-start-start-radius:9px;
  border-start-end-radius:9px;
}
.dl-detail .dl-modal-brand-contact > .dl-brand-contact {
  margin-block-start:0;
  border-block-start-width:0;
  border-radius:0 0 9px 9px;
}
