/* WBF Product Videos - front office */
.wbf-pv-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 900px;
}

.wbf-pv-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.wbf-pv-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.wbf-pv-frame iframe,
.wbf-pv-frame video,
.wbf-pv-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.wbf-pv-frame video {
  object-fit: contain;
  background: #000;
}

.wbf-pv-facade {
  display: block;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: #000;
}

.wbf-pv-facade img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wbf-pv-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 48px;
  margin: -24px 0 0 -34px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.7);
  transition: background-color 0.15s ease;
}

.wbf-pv-play::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 27px;
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #fff;
}

.wbf-pv-facade:hover .wbf-pv-play,
.wbf-pv-facade:focus-visible .wbf-pv-play {
  background: #f00;
}

.wbf-pv-facade:focus-visible {
  outline: 3px solid #1f6feb;
  outline-offset: 2px;
}

.wbf-pv-desc {
  margin-top: 10px;
}

/* MP4 opened from the gallery "Vezi video" button, in the theme modal.
   The modal body keeps a 16:9 box with padding-top and expects an absolutely
   positioned child, exactly like the YouTube iframe. */
#modal-iframe-content .wbf-pv-modal-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  background: #000;
}
