.detail-layout {
  position: absolute;
  inset: 0;
}

.detail-main-region {
  position: absolute;
  top: 23.4%;
  left: 6.2%;
  width: 53.1%;
  height: 63.5%;
  display: grid;
  place-items: center;
}

.detail-main {
  position: relative;
  box-sizing: content-box;
  border: 2px solid var(--blue);
  background: transparent;
}

.detail-main img { display: block; width: 100%; height: 100%; object-fit: contain; }
.detail-resize-handle {
  position: absolute;
  width: 17px;
  height: 17px;
  border: 2px solid var(--blue);
  background: #fff;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.detail-resize-handle:nth-child(2) { left: 0; top: 0; }
.detail-resize-handle:nth-child(3) { left: 50%; top: 0; }
.detail-resize-handle:nth-child(4) { left: 100%; top: 0; }
.detail-resize-handle:nth-child(5) { left: 0; top: 50%; }
.detail-resize-handle:nth-child(6) { left: 100%; top: 50%; }
.detail-resize-handle:nth-child(7) { left: 0; top: 100%; }
.detail-resize-handle:nth-child(8) { left: 50%; top: 100%; }
.detail-resize-handle:nth-child(9) { left: 100%; top: 100%; }
.detail-related { position: absolute; inset: 0; pointer-events: none; }
.related-card { position: absolute; width: 23%; aspect-ratio: 4/3; padding: 0; overflow: hidden; border: 1px solid var(--black); background: var(--gray); transform: skewY(10deg); transform-origin: center; pointer-events: auto; cursor: pointer; }
.related-card img { width: 100%; height: 100%; object-fit: cover; }
.related-card:nth-child(1) { top: 7%; left: 70%; z-index: 3; }
.related-card:nth-child(2) { top: 2%; left: 76.5%; z-index: 2; }
.related-card:nth-child(3) { top: -3%; left: 83%; z-index: 1; }

.detail-meta {
  position: absolute;
  right: 6.6%;
  bottom: 12.8%;
  display: grid;
  grid-template-columns: 95px minmax(280px, auto);
  gap: 8px 18px;
  font-size: 16px;
  text-transform: uppercase;
}
.detail-meta dt { margin: 0; font-family: var(--mono-font); }
.detail-meta dd { margin: 0; }
