/*
 * Vídeos de los artículos (lo que monta video.js). Sin variables del blog: sirve igual en
 * otra web que incluya video.js. Para cambiar el aspecto, sobrescribe estas clases.
 */

.dcms-video {
    margin: 1.5rem 0;
}

.dcms-video-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 0.5rem;
    background: #111;
}

.dcms-video-media > a {
    display: flex;
    width: 100%;
    height: 100%;
    /* Sin miniatura, el texto del enlace queda debajo del botón. */
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    color: #fff;
    text-align: center;
    text-decoration: none;
}

.dcms-video-media > a > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dcms-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4.5rem;
    height: 3.25rem;
    border: 0;
    border-radius: 0.875rem;
    background: rgba(0, 0, 0, 0.75);
    cursor: pointer;
    transform: translate(-50%, -50%);
}

.dcms-video-play::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 54%;
    border-style: solid;
    border-width: 0.75rem 0 0.75rem 1.25rem;
    border-color: transparent transparent transparent #fff;
    transform: translate(-50%, -50%);
}

.dcms-video-play:hover,
.dcms-video-play:focus-visible {
    background: #c00;
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.dcms-video-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.dcms-video-notice {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    opacity: 0.8;
}
