.modal{
  padding:20px;
  border:0;
  // position: relative;
  background-color:#fff;
  background-color: transparent;
  // border-radius: 3px;
  // box-shadow: 0 2px 5px rgba(0,0,0,0.8);
  opacity: 0;
  transition: all .2s ease-in-out;
  transform: translateY(-20px);
  overscroll-behavior: contain;
}
.modal[data-state="fade"]{
  opacity: 0; 
  transform: translateY(20px);
}
.modal[data-state="open"]{
  opacity: 1; 
  transform: translateY(0px);
}
.modal[data-state="close"]{
  opacity: 0; 
  transform: translateY(-20px);
}
.modal::backdrop{
  transition: all .2s ease-in-out;
  background-color:rgba(0,0,0,0);
  cursor:pointer;
}

.modal[data-state="open"]::backdrop{
  background-color:rgba(0,0,0,0.4);
}

.modal__wrapper{
  padding:10px;
  border-radius: 3px;
  background-color: #fff;
  box-shadow: 0 5px 10px rgba(0,0,0,0.6);
}

.modal__close{
  margin: 0;
  padding: 5px;
  width: 22px;
  height: 22px; 
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  display: flex;
  place-items: center;
  justify-content: center;
  background: #000;
  box-shadow: 0px 0px 4px 2px rgba(0,0,0,.6);
  border-radius: 50%;
  border: 2px solid #fff;
  z-index: 2;
  position: absolute;
  top: 8px;
  right: 8px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.modal__video{
  width: min(850px, calc(100vw - 100px));
  aspect-ratio: 16/9;
  vertical-align: top;
}

.modal__youtube-video{
  width: min(850px, calc(100vw - 100px));
  aspect-ratio: 16/9;
  vertical-align: top;
}
.modal__youtube-video-iframe{
  width: 100%;
  aspect-ratio: 16/9;
  vertical-align: top;
}