.three-columns {
   column-count: 3;
}

.img-background {
    position: relative;
    width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: center center;
    overflow: hidden;
    background: black;
    z-index: 0;
    top: -16px;
}

.img-background.border-bottom-radius {
    border-radius: 0 0 16px 16px;
}

.img-background.border-radius {
    border-radius: 16px;
}

img.pieza-corporativa-grande {
    object-fit: cover;
    object-position: center center;
}

img.pieza-corporativa-pequena {
    object-fit: cover;
    object-position: center center;
}

.video-background {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    background: black;
    z-index: 0;
    top: -16px;
}

.video-background.border-bottom-radius {
    border-radius: 0 0 16px 16px;
}

.video-background.border-radius {
    border-radius: 16px;
}

@media (min-width: 992px) {
    .video-foreground {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        height: 100%;
        pointer-events: none;
        transform: translate(-50%, -50%);
    }

    .video-foreground iframe {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 177.78vh; /* 100 * (16/9) → mantiene proporción de YouTube */
        height: 100vh;
        transform: translate(-50%, -50%);
        border: 0;
    }
}

.video-box-iframe,
iframe {
    border-radius: 16px;
}

.video-box-iframe {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
}

.video-box-iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

.video-box {
    position: relative;
    width: 100%;
    height: auto;
}

.blockquote {
    background: var(--color-grey);
    border-radius: 16px;
    padding: 15px;
}

.items-proyecto-number-qosmic{
    color: #FF4438;
    font-size: 42px;
    font-weight: 700;
}

.items-proyecto-title-qosmic{
    font-size: 23px;
    font-weight: 700;
}

@media (max-width: 991px) {
    .video-box.video-servicios {
        width: 100%;
        max-width: 280px; 
        margin: 0 auto;
        position: relative;
        aspect-ratio: 9 / 16; 
    }

    .video-box.video-servicios .video-thumbnail {
        width: 100%;
        height: 100%; 
        object-fit: contain; 
        display: block;
    }

    .video-box.video-servicios .video-iframe-wrapper,
    .video-box.video-servicios .video-iframe-wrapper iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}