.esvf {
  --esvf-ink: #171313;
  --esvf-muted: #776c68;
  --esvf-border: rgba(23, 19, 19, .12);
  width: 100%;
  clear: both;
  padding: 54px 0 64px;
  background: transparent !important;
}

.esvf__wrap {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.esvf__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.esvf__eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--esvf-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.esvf h2 {
  margin: 0;
  color: var(--esvf-ink);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.esvf__controls {
  display: flex;
  flex: 0 0 auto;
  gap: 9px;
}

.esvf__control {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--esvf-border);
  border-radius: 50%;
  background: #fff;
  color: var(--esvf-ink);
  cursor: pointer;
  transition: .2s ease;
}

.esvf__control:hover,
.esvf__control:focus-visible {
  border-color: var(--esvf-ink);
  background: var(--esvf-ink);
  color: #fff;
}

.esvf__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 80px) / 6);
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 1px 10px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x pan-y pinch-zoom;
}

.esvf__rail::-webkit-scrollbar {
  display: none;
}

.esvf__card {
  position: relative;
  min-width: 0;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 16px;
  background: #e9ddd3;
  box-shadow: 0 16px 38px rgba(49, 35, 27, .1);
  isolation: isolate;
  scroll-snap-align: start;
}

.esvf__card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 38%;
  background: linear-gradient(transparent, rgba(17, 17, 17, .3));
  content: "";
  pointer-events: none;
  z-index: 3;
}

.esvf__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 35%, #fffaf4 0, #eadbd0 46%, #d8c5b7 100%);
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 0;
}

.esvf__fallback span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  padding-left: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: #2c2022;
  font-size: 19px;
  box-shadow: 0 8px 22px rgba(49, 35, 27, .14);
}

.esvf__card.has-frame .esvf__fallback {
  opacity: 0;
}

.esvf__video {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  object-fit: cover;
  z-index: 2;
}

.esvf__error {
  position: absolute;
  right: 12px;
  bottom: 18px;
  left: 12px;
  z-index: 4;
  margin: 0;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(120, 20, 20, .86);
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

.esvf-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 4, 4, .84);
  backdrop-filter: blur(7px);
}

.esvf-modal[hidden] {
  display: none;
}

.esvf-modal__stage {
  position: relative;
  width: min(76vw, 480px, 51.75vh);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 16px;
  background: #080808;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
}

.esvf-modal__video {
  display: block;
  width: 100%;
  height: 100%;
  background: #080808;
  object-fit: contain;
}

.esvf-modal__close {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 3;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .7);
}

.esvf-modal__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 46px;
  height: 70px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, .28);
  color: #fff;
  cursor: pointer;
  font-size: 48px;
  font-weight: 300;
  line-height: 1;
  transform: translateY(-50%);
}

.esvf-modal__nav:hover,
.esvf-modal__nav:focus-visible {
  background: rgba(0, 0, 0, .55);
}

.esvf-modal__nav--prev { left: 24px; }
.esvf-modal__nav--next { right: 24px; }
.esvf-modal-open { overflow: hidden; }

@media (max-width: 1199px) {
  .esvf__rail { grid-auto-columns: calc((100% - 48px) / 4); }
}

@media (max-width: 900px) {
  .esvf__rail { grid-auto-columns: calc((100% - 32px) / 3); }
}

@media (max-width: 640px) {
  .esvf { padding: 38px 0 46px; }
  .esvf__wrap { width: calc(100% - 32px); }
  .esvf__head { align-items: center; margin-bottom: 17px; }
  .esvf__controls { display: none; }
  .esvf__rail { grid-auto-columns: calc((100% - 12px) / 2); gap: 12px; }
  .esvf__card { border-radius: 14px; }
  .esvf-modal__stage { width: 100vw; height: 100vh; border-radius: 0; }
  .esvf-modal__close { top: 10px; right: 10px; }
  .esvf-modal__nav { width: 34px; height: 54px; font-size: 38px; }
  .esvf-modal__nav--prev { left: 6px; }
  .esvf-modal__nav--next { right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .esvf__control { transition: none; }
  .esvf__rail { scroll-behavior: auto; }
}