/* Videomodal för företagsfilmen */

.video-modal{
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.video-modal.open{ display: flex; }
.video-modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(42,35,32,0.86);
}
.video-modal-panel{
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.video-modal-frame{ position: relative; width: 100%; padding-top: 56.25%; }
.video-modal-frame video{ position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
/* Stående video (t.ex. den hemliga videon): rutan blir stående och ryms på skärmens höjd */
.video-modal.is-staende .video-modal-panel{ max-width: min(440px, calc((100vh - 64px) * 9 / 16)); }
.video-modal.is-staende .video-modal-frame{ padding-top: 177.78%; }
/* Krysset ligger i rutans hörn (panelen klipper allt som sticker ut) */
.video-modal-close{
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--chip);
  color: var(--ink);
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, color .2s ease;
}
.video-modal-close:hover{ background: var(--orange); color: #fff; }
