.av-dialog {
  --av-bg: #101214; --av-text: #f4f3ee; --av-muted: #a5a6a1; --av-accent: #d3ba8e;
  position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none;
  margin: 0; padding: 0; border: 0; background: var(--av-bg); color: var(--av-text);
  font-family: inherit; overscroll-behavior: contain; overflow-x: hidden; overflow-anchor: none;
}
.av-dialog::backdrop { background: #090b0eeb; }
.av-dialog.av-warm { --av-bg: #faf9f6; --av-text: #292a25; --av-muted: #71726a; --av-accent: #8b7048; }
.av-dialog button, .av-dialog a { font: inherit; color: inherit; }
.av-dialog :focus-visible { outline: 2px solid var(--av-accent); outline-offset: 5px; }
.av-bar {
  position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px clamp(20px, 4vw, 72px); background: var(--av-bg);
}
.av-brand { font-size: 13px; letter-spacing: .16em; font-weight: 500; }
.av-actions { display: flex; align-items: center; gap: 22px; }
.av-button {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  padding: 8px 4px; border: 0; border-radius: 0; background: transparent; text-decoration: none;
  cursor: pointer; transition: opacity .2s;
}
.av-button:hover { opacity: .6; }
.av-button[hidden] { display: none; }
.av-intro { max-width: 1800px; margin: auto; padding: clamp(32px, 5vw, 72px) clamp(20px, 4vw, 72px) clamp(28px, 4vw, 56px); }
.av-kicker { color: var(--av-muted); font-size: 12px; letter-spacing: .2em; margin: 0 0 20px; }
.av-title { font-size: clamp(30px, 4vw, 60px); font-weight: 400; line-height: 1.18; letter-spacing: -.035em; max-width: 1120px; margin: 0 0 24px; overflow-wrap: anywhere; }
.av-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--av-muted); font-size: 14px; }
.av-grid { max-width: 1800px; margin: auto; padding: 0 clamp(20px, 4vw, 72px); }
.av-row { display: flex; align-items: flex-start; gap: clamp(10px, 1.8vw, 30px); margin-bottom: clamp(10px, 1.8vw, 30px); }
.av-tile {
  --ratio: 1.5; position: relative; flex: var(--ratio) 1 0; min-width: 0;
  aspect-ratio: var(--ratio); height: auto; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: transparent; box-shadow: none; cursor: zoom-in; overflow: hidden;
  opacity: 1; transform: translateY(0); transition: opacity .65s ease, transform .65s ease;
}
.av-row-single .av-tile { flex-grow: 0; flex-basis: 66%; }
.av-tile.av-pending { opacity: 0; transform: translateY(24px); }
.av-tile img, .av-tile video { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .7s ease; }
.av-tile span { position: absolute; right: 12px; bottom: 12px; padding: 8px 12px; background: #101214c9; color: white; font-size: 14px; pointer-events: none; }
.av-end { padding: 24px 24px 72px; text-align: center; color: var(--av-muted); font-size: 14px; }
.av-progress { margin: 16px 0; }
.av-end .av-button { border-bottom: 1px solid currentColor; }
.av-focus { background: #090b0e; color: #fff; overflow: hidden; }
.av-focus[open] { display: flex; flex-direction: column; }
.av-focus .av-bar { flex-shrink: 0; background: transparent; }
.av-stage { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; overflow: auto; touch-action: pan-x pan-y pinch-zoom; padding: 16px 72px; }
.av-stage img, .av-stage video { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; flex-shrink: 1; }
.av-stage.av-zoom { justify-content: flex-start; align-items: flex-start; }
.av-stage.av-zoom img { max-width: none; max-height: none; width: 200%; flex-shrink: 0; cursor: zoom-out; }
.av-prev, .av-next { position: fixed; top: 50%; z-index: 2; padding: 12px; background: #090b0e99 !important; color: #fff !important; }
.av-prev { left: 12px; } .av-next { right: 12px; }
.av-caption { font-size: 14px; color: #bbb; }
.av-description { flex-shrink: 0; margin: 0; padding: 18px clamp(70px, 8vw, 120px) 26px; font-size: 16px; line-height: 1.6; text-align: center; color: #efefef; overflow-wrap: anywhere; max-height: 28dvh; overflow: auto; }
.av-description[hidden] { display: none; }
@media (hover:hover) { .av-tile:hover img { transform: scale(1.015); } }
@media (max-width: 600px) {
  .av-brand { display: none; } .av-bar { padding: 10px 16px; justify-content: flex-end; }
  .av-actions { gap: 16px; } .av-button { font-size: 14px !important; }
  .av-intro { padding-top: 24px; } .av-meta { flex-direction: column; gap: 6px; }
  .av-grid { padding: 0 12px; } .av-row { gap: 10px; margin-bottom: 10px; }
  .av-row-single .av-tile { flex-basis: 100%; }
  .av-focus .av-bar { justify-content: space-between; }
  .av-stage { padding: 18px 16px 64px; }
  .av-prev, .av-next { top: auto; bottom: 18px; }
  .av-description { padding: 10px 20px 82px; max-height: 32dvh; }
  .av-focus:has(.av-description:not([hidden])) .av-stage { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .av-tile, .av-tile img { transition: none; transform: none; } }
