#vero-liv-case {
  --vl-sand: #faf7f0;
  --vl-gold: #c4a978;
  --vl-wine: #4a2039;
  --vl-sage: #748876;
  --vl-ease: cubic-bezier(.2,.72,.18,1);
  background: #131514;
  color: var(--vl-sand);
  padding-bottom: clamp(26px, 4vw, 62px);
}

.vl-opening {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(390px, 42vw, 610px);
  overflow: hidden;
  overflow: clip;
  background: #111911;
}

.vl-opening-media {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
}

.vl-opening-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 44%;
  transform: translateY(var(--vl-drift, 0px)) scale(1.065);
}

.vl-opening-media::after {
  position: absolute;
  inset: 0;
  content: '';
  background:
    linear-gradient(90deg, #101911 0%, #101911d9 19%, #10191143 51%, transparent 73%),
    linear-gradient(0deg, #1019115e, transparent 25%);
}

.vl-opening-content {
  padding-block: 48px;
}

.vl-kicker {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--vl-sand);
  margin-bottom: 16px;
}

#vl-case-title img {
  width: clamp(245px, 29vw, 450px);
  height: auto;
  max-width: 85%;
}

.vl-opening-summary {
  width: min(33ch, 85%);
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  color: var(--vl-sand);
  margin: 19px 0 24px;
}

#vero-liv-case .vl-action {
  min-height: 56px;
  color: #101512;
  background: var(--cta-rest);
  border-color: var(--cta-rest);
}

#vero-liv-case .vl-action:hover {
  background: var(--cta-hover);
  border-color: var(--cta-hover);
}

.vl-mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(155px, 17vw, 237px);
  gap: clamp(6px, 1vw, 14px);
  margin-top: clamp(14px, 2vw, 28px);
  scroll-margin-top: 20px;
}

.vl-tile {
  appearance: none;
  position: relative;
  min-width: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 0;
  border: 1px solid #ffffff1f;
  border-radius: 12px;
  background: #222821;
  text-align: left;
  color: var(--vl-sand);
}

#vero-liv-case :focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.vl-tile-art {
  display: grid;
  position: absolute;
  inset: 0;
  overflow: hidden;
  transition: transform .65s var(--vl-ease);
}

.vl-tile:hover .vl-tile-art,
.vl-tile:focus-visible .vl-tile-art {
  transform: scale(1.045);
}

.vl-tile-art img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
}

.vl-tile--logo {
  grid-column: span 5;
  background: var(--vl-wine);
  color: var(--vl-sand);
}

.vl-tile--logo .vl-tile-art {
  display: grid;
  place-items: center;
  padding-top: 2%;
}

.vl-tile--logo img {
  width: min(62%, 295px);
  height: auto;
  max-height: 72%;
  object-fit: contain;
}

.vl-tile--pack {
  grid-column: span 7;
}

.vl-tile--pack .vl-tile-art {
  grid-template-columns: 1.35fr 1fr;
}

.vl-tile--pack img:first-child {
  object-position: 53%;
}

.vl-tile--portrait {
  grid-column: span 7;
}

.vl-tile--portrait .vl-tile-art {
  grid-template-columns: 1fr 1fr;
}

.vl-tile--portrait img:first-child {
  object-position: 65%;
}

.vl-tile--portrait img:last-child {
  object-position: 60%;
}

.vl-tile--guide {
  grid-column: span 5;
  background: var(--vl-sage);
}

.vl-tile--guide .vl-tile-art {
  grid-template-columns: 1fr 1.04fr;
}

.vl-tile--guide img:first-child {
  object-position: 82% center;
}

.vl-tile--guide img:last-child {
  object-position: 52% center;
}

.vl-tile-caption {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  inset: auto 0 0;
  padding: 22px clamp(9px, 1.6vw, 21px) clamp(8px, 1.05vw, 13px);
  background: linear-gradient(0deg, #100e0bea, transparent);
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.45rem);
  letter-spacing: -.035em;
  line-height: 1.08;
}

.vl-tile--logo .vl-tile-caption {
  background: linear-gradient(0deg, #2e1625, transparent);
}

.vl-tile-plus {
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(23px, 3.2vw, 38px);
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: color .25s, background-color .25s;
}

.vl-tile-plus::before,
.vl-tile-plus::after {
  content: '';
  grid-area: 1 / 1;
  width: 42%;
  height: 1px;
  background: currentColor;
}

.vl-tile-plus::after {
  rotate: 90deg;
}

.vl-tile:hover .vl-tile-plus,
.vl-tile:focus-visible .vl-tile-plus {
  color: var(--vl-wine);
  background: var(--vl-sand);
}

.vl-motion .vl-opening.is-entered .vl-opening-media {
  animation: vl-open 920ms var(--vl-ease) both;
}

.vl-motion .vl-opening.is-entered .vl-opening-content {
  animation: vl-rise 650ms var(--vl-ease) 130ms both;
}

.vl-motion .vl-mosaic.is-entered .vl-tile {
  animation: vl-rise 560ms var(--vl-ease) both;
}

.vl-motion .vl-mosaic.is-entered .vl-tile:nth-child(2) { animation-delay: 60ms; }
.vl-motion .vl-mosaic.is-entered .vl-tile:nth-child(3) { animation-delay: 120ms; }
.vl-motion .vl-mosaic.is-entered .vl-tile:nth-child(4) { animation-delay: 180ms; }

@keyframes vl-open {
  from { clip-path: inset(100% 0 0); }
  to { clip-path: inset(0 0 0); }
}

@keyframes vl-rise {
  from { opacity: 0; translate: 0 26px; }
  to { opacity: 1; translate: 0 0; }
}

body.vero-viewer-open {
  overflow: hidden;
}

.vl-dialog {
  width: min(94vw, 1180px);
  height: min(86dvh, 850px);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 1px solid #53534a;
  border-radius: 15px;
  color: var(--vl-sand);
  background: #171a17;
  overscroll-behavior: contain;
}

.vl-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.vl-dialog::backdrop {
  background: #080b09e8;
  backdrop-filter: blur(10px);
}

.vl-viewer-head,
.vl-viewer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  min-width: 0;
  padding: 10px clamp(10px, 2vw, 24px);
}

.vl-viewer-head h3 {
  font-size: clamp(1.15rem, 3vw, 1.65rem);
}

.vl-icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #73766e;
  background: #242a24;
  color: inherit;
  font: 400 26px/1 system-ui, sans-serif;
}

.vl-icon-button:hover {
  border-color: var(--vl-gold);
  color: var(--vl-gold);
}

.vl-viewer-media {
  min-height: 0;
  min-width: 0;
  display: grid;
  place-items: center;
  margin-inline: clamp(6px, 1.6vw, 22px);
  overflow: hidden;
  background: #101310;
  touch-action: pan-y pinch-zoom;
}

.vl-viewer-media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  object-fit: contain;
}

.vl-dialog[data-vl-mode="logo"] .vl-viewer-media {
  background: #e9e1d2;
  padding: 22px;
}

.vl-dialog[data-vl-mode="logo"] .vl-viewer-media img {
  max-width: 510px;
  max-height: 65%;
}

.vl-dialog[data-vl-mode="guide"] .vl-viewer-media {
  display: block;
  overflow: auto;
}

.vl-dialog[data-vl-mode="guide"] .vl-viewer-media img {
  margin: auto;
  width: min(100%, 860px);
  height: auto;
}

.vl-viewer-caption {
  flex: 1 1 200px;
  color: #dfddd3;
  font-size: .92rem;
}

.vl-viewer-pdf {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 5px;
  color: var(--vl-sand);
}

.vl-viewer-pdf:hover {
  color: var(--cta-hover);
}

.vl-viewer-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vl-viewer-pdf[hidden],
.vl-viewer-controls[hidden] {
  display: none;
}

.vl-viewer-count {
  min-width: 40px;
  font-size: .83rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 650px) {
  .vl-opening {
    min-height: clamp(395px, 110vw, 495px);
    align-items: end;
  }

  .vl-opening-media img {
    object-position: 64% 39%;
  }

  .vl-opening-media::after {
    background: linear-gradient(0deg, #101911 1%, #101911e8 19%, #10191160 52%, transparent 76%);
  }

  .vl-opening-content {
    padding-block: 28px;
  }

  #vl-case-title img {
    width: min(68vw, 310px);
  }

  .vl-opening-summary {
    margin-block: 12px 14px;
  }

  .vl-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: clamp(112px, 34vw, 185px);
  }

  .vl-tile {
    grid-column: auto;
    border-radius: 8px;
  }

  .vl-tile--pack .vl-tile-art,
  .vl-tile--portrait .vl-tile-art {
    grid-template-columns: 1fr;
  }

  .vl-tile--pack img:last-child,
  .vl-tile--portrait img:last-child {
    display: none;
  }

  .vl-viewer-caption {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #vero-liv-case *, #vero-liv-case *::before, #vero-liv-case *::after {
    animation: none;
    transition: none;
  }

  .vl-opening-media img {
    transform: none;
  }
}
