/* TASK-228: full artwork, comfortable touch targets, compact navigation. */
.compact-nav { position: fixed; z-index: 45; inset: 0 0 auto; display: flex; justify-content: center; align-items: center; min-height: 48px; padding: env(safe-area-inset-top, 0px) max(4px, env(safe-area-inset-right, 0px)) 0 max(4px, env(safe-area-inset-left, 0px)); background: var(--header-surface); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.compact-nav a, .compact-nav button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; min-width: 44px; flex: 0 1 140px; gap: 4px; padding: 4px 12px; white-space: nowrap; font-size: 13px; font-weight: 550; background: transparent; color: var(--ink); }
.compact-nav [aria-current="page"] { color: var(--accent); }
body.is-scrolled .site-header { visibility: hidden; }
[data-swipe-gallery] { touch-action: pan-y pinch-zoom; }
[data-swipe-gallery] img { -webkit-user-drag: none; user-select: none; }
.set-gallery .product-stage { aspect-ratio: auto; min-height: 0; }
.set-gallery .product-stage > .image-button { position: relative; inset: auto; }
.set-gallery .product-stage .image-button, .set-gallery .product-stage .image-button img { height: auto; width: 100%; }
.set-gallery-controls .swipe-note { color: var(--muted); font-size: 11px; }
.viewer-thumbnails { display: flex; gap: 8px; padding: 6px 16px 12px; overflow-x: auto; flex: 0 0 auto; overscroll-behavior-x: contain; }
.viewer-thumbnails button { flex: 0 0 56px; width: 56px; height: 56px; background: var(--viewer-bg); border: 2px solid transparent; border-radius: 5px; overflow: hidden; padding: 0; }
.viewer-thumbnails [aria-pressed="true"] { border-color: var(--viewer-text); }
.viewer-thumbnails img { width: 100%; height: 100%; object-fit: contain; }
.video-launch { display: block; position: relative; width: 100%; padding: 0; overflow: hidden; background: var(--viewer-bg); color: var(--viewer-text); }
.video-launch img { display: block; width: 100%; height: 100%; object-fit: contain; }
.video-launch.is-portrait { aspect-ratio: 9 / 16; max-height: 72dvh; }
.video-launch.is-landscape { aspect-ratio: 16 / 9; }
.video-launch .film-play { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%); display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid var(--viewer-text); border-radius: 50%; background: var(--overlay); font-size: 20px; padding-left: 3px; }
.video-launch .film-open { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: 16px; background: var(--overlay); color: var(--viewer-text); font-size: 12px; white-space: nowrap; }
.video-work-player .video-frame { aspect-ratio: auto; }
.video-work-grid { align-items: start; }
.video-contexts { gap: 4px 16px; }
.video-contexts .text-link { white-space: normal; overflow-wrap: anywhere; min-width: 0; max-width: 100%; gap: 4px; }
.model-film-section .video-work-grid { margin-top: 24px; }
.model-video-link { font-size: 12px; color: var(--accent); min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 760px) {
  html { scroll-padding-top: calc(56px + env(safe-area-inset-top, 0px)); }
  .compact-nav a, .compact-nav button { flex: 1 1 0; padding-inline: 4px; font-size: 13px; }
  .detail-page.set-detail, .detail-page.model-detail, .detail-page.package-detail { padding-inline: var(--gutter); }
  .set-gallery, .product-gallery, .model-profile-visual, .detail-stage, .set-detail-stack, .product-detail-stack, .detail-image-stack, .model-card-gallery, .wear-grid, .set-grid, .model-grid, .video-work-grid, .discover-visual { width: calc(100% + var(--gutter) * 2); max-width: none; margin-inline: calc(var(--gutter) * -1); }
  .set-gallery .product-stage, .product-gallery .product-stage, .model-profile-visual, .detail-stage { border-radius: 0; }
  .product-gallery .product-stage { aspect-ratio: auto; }
  .product-gallery .product-stage .image-button, .product-gallery .product-stage .image-button img { width: 100%; height: auto; }
  .set-gallery-controls, .set-gallery .product-thumbnails, .product-gallery .product-thumbnails { padding-inline: 10px; }
  .set-grid, .model-grid { column-gap: 6px; }
  .set-card > :not(.set-link), .set-title, .model-meta, .model-card-tags, .video-work-info { padding-inline: 10px; }
  .set-cover, .model-cover, .work-cover, .video-frame, .video-launch { border-radius: 0; }
  .wear-grid, .model-card-gallery { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .wear-item .image-button { aspect-ratio: auto; border-radius: 0; }
  .wear-item img, .model-card-gallery img { width: 100%; height: auto; max-height: none; object-fit: contain; }
  .wear-item figcaption, .model-card-gallery figcaption { padding-inline: var(--gutter); }
  .set-detail-stack img, .product-detail-stack img, .detail-image-stack img { width: 100%; height: auto; }
  .media-dialog { width: 100%; max-width: none; height: 100dvh; max-height: 100dvh; margin: 0; padding: env(safe-area-inset-top,0px) 0 env(safe-area-inset-bottom,0px); border: 0; border-radius: 0; overflow: hidden; }
  .media-dialog[open] { display: flex; flex-direction: column; }
  .media-dialog .dialog-head { padding: 6px 12px; flex: 0 0 auto; min-height: 48px; }
  .media-dialog .dialog-head h2 { font-size: 12px; line-height: 1.4; max-height: 34px; overflow: hidden; }
  .viewer-content { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; }
  .viewer-content .viewer-image, .viewer-content .viewer-image.is-tall { width: 100%; height: auto; max-width: none; max-height: none; }
  .viewer-toolbar { flex: 0 0 auto; gap: 8px; padding: 4px 8px; }
  .viewer-toolbar button { min-height: 44px; padding: 6px 12px; font-size: 12px; }
  .viewer-toolbar [data-viewer-size] { display: none; }
  .viewer-caption { display: none; }
  .viewer-thumbnails { padding: 4px 10px 8px; }
  .video-launch.is-portrait { max-height: 76dvh; }
  .home-video-showcase .video-work-grid { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 6px; }
  .home-video-showcase .video-launch { aspect-ratio: 3/4; }
  .home-video-showcase .film-open { display: none; }
  .home-video-showcase .video-work-info h3 { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
