/* Video modal — popup YouTube (index.html) */
.visually-hidden{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.video-modal{
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.video-modal[hidden]{
  display: none !important;
}

.video-modal.open{
  display: flex;
}

.video-modal__backdrop{
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.82);
}

.video-modal__dialog{
  position: relative;
  width: min(960px, 100%);
  z-index: 1;
}

.video-modal__close{
  position: absolute;
  top: -52px;
  right: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.video-modal__close:hover{
  background: #fff;
  color: #EE3124;
}

.video-modal__embed{
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.video-modal__embed iframe{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

body.video-modal-open{
  overflow: hidden;
}

@media (max-width: 640px){
  .video-modal{
    padding: 16px;
  }

  .video-modal__close{
    top: -44px;
    width: 38px;
    height: 38px;
  }
}
