.ndhv-wrap{
  --ndhv-overlay: .18;
  position: relative;
  width: 100%;
}

.ndhv-stage{
  position: relative;
  display: inline-block;
  max-width: 100%;
  overflow: visible;
  background: transparent;
  isolation: isolate;
  cursor: pointer;
  line-height: 0;
}

.ndhv-media{
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.ndhv-ratio-16-9 .ndhv-stage,
.ndhv-ratio-4-3 .ndhv-stage,
.ndhv-ratio-1-1 .ndhv-stage,
.ndhv-ratio-3-4 .ndhv-stage,
.ndhv-ratio-21-9 .ndhv-stage{
  aspect-ratio: auto;
}

.ndhv-image{
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  opacity: 1;
  transition: opacity .28s ease, transform .45s ease;
}

.ndhv-video{
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity .28s ease;
}

.ndhv-overlay{
  position:absolute;
  inset:0;
  z-index:3;
  opacity:0;
  background:linear-gradient(to top, rgba(0,0,0,calc(var(--ndhv-overlay) + .28)) 0%, rgba(0,0,0,var(--ndhv-overlay)) 45%, rgba(0,0,0,calc(var(--ndhv-overlay) * .75)) 100%);
  pointer-events:none;
  transition:opacity .25s ease;
}

.ndhv-cta{
  position:absolute;
  right:16px;
  bottom:16px;
  z-index:5;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:12px 16px;
  color:#fff !important;
  text-decoration:none !important;
  font-weight:700;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.28);
  box-shadow:0 12px 30px rgba(0,0,0,.25);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  opacity:0;
  visibility:hidden;
  transform:translateY(12px);
  pointer-events:none;
  transition:transform .22s ease, background .2s ease, border-color .2s ease, opacity .2s ease, visibility .2s ease;
}

.ndhv-close{
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(.92);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease, background .2s ease;
}

.ndhv-close:hover,
.ndhv-close:focus{
  background: rgba(0,0,0,.75);
}

.ndhv-active .ndhv-video,
.ndhv-has-video.ndhv-active .ndhv-video{
  opacity:1;
}

.ndhv-active .ndhv-overlay,
.ndhv-has-video.ndhv-active .ndhv-overlay{
  opacity:1;
}

.ndhv-active .ndhv-cta,
.ndhv-has-video.ndhv-active .ndhv-cta{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
  pointer-events:auto;
}

.ndhv-active .ndhv-image,
.ndhv-has-video.ndhv-active .ndhv-image{
  opacity:0;
  transform:scale(1.005);
}

.ndhv-wrap:hover .ndhv-image,
.ndhv-wrap:focus-within .ndhv-image{
  transform:scale(1.01);
}

.ndhv-cta:hover,
.ndhv-cta:focus{
  background:rgba(255,255,255,.22);
  border-color:rgba(255,255,255,.4);
}

@media (max-width: 980px){
  .ndhv-cta{
    right:12px;
    bottom:12px;
    min-height:42px;
    padding:10px 14px;
    font-size:14px;
  }

  .ndhv-touch.ndhv-active .ndhv-close{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
  }
}
