.arx-video-wrapper {
  max-width: 360px;
  margin: 0 auto;
  position: relative;
}

/* Video inside PiP */
.arx-portrait-video {
  width: 100%;
  aspect-ratio: 9 / 16;
  display: block;
  border-radius: 10px;
}

.arx-pip-box {
  position: fixed;
  height: auto;
  z-index: 9999;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.arx-portrait-video.arx-pip-mode {
  position: fixed;
  height: auto;
  z-index: 9999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
  border-radius: 10px;
}

/* Position classes */
.arx-position-bottom-right .arx-pip-box {
  bottom: 20px;
  right: 20px;
}

.arx-position-bottom-left .arx-pip-box {
  bottom: 20px;
  left: 20px;
}

.arx-position-top-right .arx-pip-box {
  top: 20px;
  right: 20px;
}

.arx-position-top-left .arx-pip-box {
  top: 20px;
  left: 20px;
}

/* Close button on top-right of floating box */
.arx-close-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #000;
  color: #fff;
  border: none;
  font-size: 18px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10000;
}

/* Gestion de la vidéo en paysage */

.arx-portrait-video.is-paysage{
  aspect-ratio: 16 / 9;
}