/* MSB */

.vsc-main > .vsc-video {
 width: 100%;
 max-width: var(--vsc-content-max);
 margin-inline: auto;
 margin-block: 24px;
 padding-inline: var(--vsc-content-pad);
 box-sizing: border-box;
}

.vsc-video {
 display: block;
 margin: 0;
 width: 100%;
 box-sizing: border-box;
}

.vsc-video__frame {
 position: relative;
 display: block;
 width: 100%;
 aspect-ratio: 16 / 9;
 overflow: hidden;
 border-radius: 8px;
 background: var(--color-bg-hover-muted, #ececec);
}

.vsc-video__media {
 display: block;
 width: 100%;
 height: 100%;
 object-fit: cover;
 background: var(--color-bg-hover-muted, #ececec);
}

.vsc-video__frame::after {
 content: "";
 position: absolute;
 inset: 0;
 background: rgba(0, 0, 0, 0.15);
 pointer-events: none;
 transition: opacity 200ms var(--cubic-bezier, ease);
}

.vsc-video--playing .vsc-video__frame::after {
 opacity: 0;
}

/* Width / align apply inside the content column */
.vsc-video--width-full .vsc-video__frame { width: 100%; }
.vsc-video--width-1-2 .vsc-video__frame { width: 50%; }
.vsc-video--width-1-3 .vsc-video__frame { width: calc(100% / 3); }
.vsc-video--width-1-4 .vsc-video__frame { width: 25%; }

.vsc-video--align-left .vsc-video__frame { margin-inline: 0 auto; }
.vsc-video--align-center .vsc-video__frame { margin-inline: auto; }
.vsc-video--align-right .vsc-video__frame { margin-inline: auto 0; }

.vsc-video__play {
 position: absolute;
 top: 50%;
 left: 50%;
 z-index: 2;
 transform: translate(-50%, -50%);
 display: inline-flex;
 align-items: center;
 justify-content: center;
 width: 72px;
 height: 72px;
 margin: 0;
 padding: 0;
 border: 0;
 border-radius: 999px;
 background: var(--color-brand-primary);
 color: var(--color-white);
 cursor: pointer;
 transition:
 transform 200ms var(--cubic-bezier, ease),
 background-color 200ms var(--cubic-bezier, ease);
}

.vsc-video__play:hover {
 transform: translate(-50%, -50%) scale(1.04);
}

.vsc-video__play:focus-visible {
 outline: 2px solid var(--color-brand-primary);
 outline-offset: 3px;
}

.vsc-video__play-icon {
 display: flex;
 align-items: center;
 justify-content: center;
 width: 28px;
 height: 28px;
}

.vsc-video__play-icon svg {
 display: block;
 width: 28px;
 height: 28px;
}

.vsc-video--playing .vsc-video__play {
 display: none;
}

@media (max-width: 767px) {
 .vsc-video--width-1-2 .vsc-video__frame,
 .vsc-video--width-1-3 .vsc-video__frame,
 .vsc-video--width-1-4 .vsc-video__frame {
 width: 100%;
 }
}

@media (prefers-reduced-motion: reduce) {
 .vsc-video__play,
 .vsc-video__frame::after {
 transition: none;
 }

 .vsc-video__play:hover {
 transform: translate(-50%, -50%);
 }
}
