.dl-catalogue .dl-card-visual {
  height: auto;
  aspect-ratio: 4 / 3;
  background: #f1f1f1;
}

.track-photo-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  background: transparent;
}

.dl-card-visual .track-photo-frame {
  width: min(68%, 245px);
}

.dl-catalogue .track-photo-frame img,
#dlDetail .track-photo-frame img,
#trackPhotoDialog .track-photo-frame img {
  position: absolute;
  top: var(--track-image-top, 0);
  left: var(--track-image-left, 0);
  width: var(--track-image-width, 100%);
  height: var(--track-image-height, 100%);
  max-width: none;
  padding: 0;
  object-fit: contain;
  mix-blend-mode: normal;
  mask-image: var(--track-image-mask, none);
  mask-mode: alpha;
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}

.track-photo-zoom {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 8px;
  width: 100%;
  max-width: 360px;
  justify-self: center;
  margin-inline: auto;
  font-size: .875rem;
  text-decoration: none;
}

.track-photo-zoom > span:last-child {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.track-photo-zoom:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

#dlDetail .track-photo-zoom {
  margin-block: 16px 24px;
}

@media (max-width: 680px) {
  .dl-model-summary .track-photo-zoom {
    grid-row: 1;
    max-width: 260px;
  }
}

#trackPhotoDialog {
  box-sizing: border-box;
  width: min(90vw, 800px, 86dvh);
  max-height: 92dvh;
  border: 0;
  padding: 14px;
  background: #f1f1f1;
  color: #181818;
}

#trackPhotoDialog::backdrop {
  background: rgb(0 0 0 / .65);
}

#trackPhotoDialog button {
  position: absolute;
  z-index: 1;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border: 1px solid #d1d1d1;
  border-radius: 50%;
  background: #fff;
  color: inherit;
  font-size: 24px;
  cursor: pointer;
}

.track-views {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  height: auto;
  margin: 0 0 24px;
  border-bottom: 1px solid #dedede;
}

.track-views a {
  display: inline-block;
  padding: 10px 2px;
  color: #555;
  text-decoration: none;
  font-size: .875rem;
}

.track-views a[aria-current='page'] {
  border-bottom: 2px solid #161616;
  color: #161616;
  font-weight: 600;
}
