/* Text on the corners of vehicle photos (see server/lib/overlay.js). Sizes are relative to the photo's width (cqw), so the same
   setting looks right on a small card and on the big detail photo. */
.ph, .car .photo, .gallery .main, .ovl-prev { container-type: inline-size; }
.ovl-holder { display: contents; }
.ovl { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.ovl-t { --c: #16a34a; --o: #fff; position: absolute; font-size: calc(var(--s, 7) * .5vw); font-size: calc(var(--s, 7) * 1cqw); font-weight: 900; font-style: italic; line-height: 1.12; white-space: nowrap; letter-spacing: .01em;
  color: var(--c); -webkit-text-stroke: .17em var(--o); paint-order: stroke fill; text-shadow: 0 .06em .12em rgba(0,0,0,.25); }
.ovl-tl { top: 2.6cqw; left: 3cqw; transform-origin: left top; } .ovl-tr { top: 2.6cqw; right: 3cqw; transform-origin: right top; }
.ovl-bl { bottom: 2.6cqw; left: 3cqw; transform-origin: left bottom; } .ovl-br { bottom: 2.6cqw; right: 3cqw; transform-origin: right bottom; }
/* leave room for the 新着 ribbon (top left) and the badge pills (top right) */
.ribbon ~ .ovl .ovl-tl, .ribbon ~ .ovl-holder .ovl-tl { top: 22cqw; }   /* the corner text starts below the ribbon, still on the left edge */
.badges ~ .ovl .ovl-tr, .badges ~ .ovl-holder .ovl-tr { top: 14cqw; }
/* colours */
.ovl-s-green { --c: #16a34a; --o: #fff; } .ovl-s-yellow { --c: #ffe500; --o: #0b2240; } .ovl-s-red { --c: #e60012; --o: #fff; }
.ovl-s-white { --c: #fff; --o: #0b2240; font-style: normal; } .ovl-s-navy { --c: #0b2240; --o: #fff; font-style: normal; }
.ovl-s-band { color: #fff; -webkit-text-stroke: 0; paint-order: normal; text-shadow: none; background: rgba(11,34,64,.82); padding: .15em .5em; font-style: normal; font-weight: 700; }
.ovl-s-badge { color: #fff; -webkit-text-stroke: 0; paint-order: normal; text-shadow: none; background: #e60012; padding: .12em .55em; border-radius: .5em; font-style: normal; font-weight: 800; }
.ovl-s-custom { font-style: italic; }
/* direction */
.ovl-d-v { writing-mode: vertical-rl; font-style: normal; }
.ovl-d-up.ovl-tl, .ovl-d-up.ovl-bl { transform: rotate(-7deg); } .ovl-d-up.ovl-tr, .ovl-d-up.ovl-br { transform: rotate(7deg); }
.ovl-d-down.ovl-tl, .ovl-d-down.ovl-bl { transform: rotate(7deg); } .ovl-d-down.ovl-tr, .ovl-d-down.ovl-br { transform: rotate(-7deg); }
.ovl-d-up.ovl-tl { top: 4cqw; } .ovl-d-up.ovl-tr { top: 4cqw; }
/* preview box in the admin */
.ovl-prev { position: relative; overflow: hidden; background: #dde3ee; border-radius: 6px; aspect-ratio: 3 / 2; }
.ovl-prev > img { width: 100%; height: 100%; object-fit: cover; display: block; }
