.js-picture-container{
  aspect-ratio: 1/1;
}

#thumbnail-iframe-modal  {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 9999;
}
#thumbnail-iframe-modal .thumbnail-modal-content{
  max-width: 560px;
  width: 100%;
  padding: 0px;
  background: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  aspect-ratio: 16 / 9;
}
#thumbnail-iframe-modal .thumbnail-video {
  width: 100%;
  height: 100%;
}
.thumbnail-iframe-close {
  position: absolute;
  top: -32px;
  right: 10px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: #6e6d6c;
  font-size: 21px;
  text-align: center;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.thumbnail-video-wrap{
  position: relative;
  display: inline-block;
  width: var(--width-thumbnail);
  height: var(--width-thumbnail);
  overflow: hidden;
}
#thumbnail-video-open{
  height: 100%;
  object-fit: cover;
}
.thumbnail-video-wrap::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  pointer-events: none;
  z-index: 1;
}
.thumbnail-video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
  width: 45% !important;
}
@media screen and (min-width: 768px) {
  .thumbnail-iframe-close{
    right: 0px;
    top: -40px;
  }
}