/* Malpas Prod — fenêtre Video.js de la galerie */
:root {
  --mp-green: #97ef8d;
}

.mp-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(4, 5, 4, .96);
  opacity: 0;
  transition: opacity .22s ease;
}

.mp-modal-overlay.is-open {
  display: flex;
  opacity: 1;
}

.mp-modal-dialog {
  position: relative;
  width: min(1120px, 100%);
  margin: auto;
}

.mp-modal-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin: 0 56px 14px 0;
  color: #fff;
  font-family: inherit;
}

.mp-modal-brand {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
}

.mp-modal-brand strong { color: var(--mp-green); }

.mp-modal-title {
  overflow: hidden;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-modal-close {
  position: absolute;
  top: -8px;
  right: 0;
  z-index: 5;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 29px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.mp-modal-close:hover,
.mp-modal-close:focus-visible {
  border-color: var(--mp-green);
  background: var(--mp-green);
  color: #080a09;
  outline: none;
}

#mp-gallery-video.video-js {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  background: #000;
  box-shadow: 0 20px 80px rgba(0,0,0,.45);
  font-family: inherit;
}

#mp-gallery-video .vjs-tech { object-fit: contain; }

#mp-gallery-video .vjs-big-play-button {
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  margin: 0;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 50%;
  background: rgba(8,10,9,.55);
  color: #fff;
  font-size: 29px;
  line-height: 70px;
}

#mp-gallery-video:hover .vjs-big-play-button {
  border-color: var(--mp-green);
  background: var(--mp-green);
  color: #080a09;
}

#mp-gallery-video .vjs-play-progress,
#mp-gallery-video .vjs-volume-level { background: var(--mp-green); }

#mp-gallery-video .vjs-control-bar {
  background: linear-gradient(transparent, rgba(0,0,0,.9));
}

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

@media (max-width: 600px) {
  .mp-modal-overlay { padding: 14px; }
  .mp-modal-heading { margin-right: 48px; margin-bottom: 10px; }
  .mp-modal-brand { font-size: 9px; }
  .mp-modal-title { font-size: 11px; }
  .mp-modal-close { top: -5px; width: 36px; height: 36px; font-size: 25px; }
  #mp-gallery-video .vjs-big-play-button {
    width: 56px;
    height: 56px;
    line-height: 54px;
    font-size: 22px;
  }
}
