.op-img-detail-container {
  container-type: inline-size;
}

.op-img-detail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.op-img-detail-title {
  font-size: 1.375rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.op-img-detail-artist {
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.op-img-detail-related {
  margin-top: 2rem;
}

.op-img-detail-related-title {
  font-size: 1.05rem;
  font-weight: bold;
  margin-bottom: 0.125rem;
}

.op-img-detail-cta {
  margin-top: 1rem;
}

.op-img-detail-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@container (min-width: 1200px) {
  .op-img-detail {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .op-img-detail-display {
    flex: 1 1 750px;
    order: 1;
    display: flex;
    justify-content: center;
    overflow: hidden;
  }

  .op-img-detail-content {
    flex: 1 0 350px;
    max-width: 400px;
    order: 0;
  }
}

.op-img-detail-related-items {
  --img-size: 15cqmin;
  --img-size-min: 60px;
  --img-size-max: 100px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: calc((var(--img-size-max) + 0.5em) * 3);

  .op-img-detail-related-item {
    display: block;
    height: clamp(var(--img-size-min), var(--img-size), var(--img-size-max));
    background-color: #595959;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 3px;
  }

  .op-img-detail-related-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: mix-blend-mode 2s;
    &:hover {
      mix-blend-mode: color-dodge;
      opacity: 0.8;
    }
  }
}

.op-img-detail-cta-btn {
  margin-top: 1rem;
}
