@import '../../../styles/definitions/breakpoints';
@import '../../../styles/definitions/colors';
@import '../../../constants/modifiers';
@import '../../../styles/mixins';
@import "../../../styles/grid.scss";

$namespace: ".carouselSlideVideo";

// Component Styles
#{$namespace} {
    &_wrapper {
        position: relative;
        margin: 0 $grid-gutter-width * -1;
        background-color: var(--background-color, transparent);
        border-radius: 8px;

        @include media-md-up {
            height: var(--height, 555px);
        }
    }
    &_content {
        display: block;
        height: 100%;
        font-size: 20px;
        background: var(--image-url) no-repeat center/cover;
        text-decoration: none;
    }
    &_text {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        height: 100%;
        padding: 0 20%;
        text-align: center;
    }
    &_title {
        color: var(--text-color, $body-color);

        @include title(1.3em);
        font-size: 1.3em;
        @include media-md-up {
            font-size: 2em;
        }

        &, &:hover, &:active, &:visited {
            text-decoration: none;
        }
    }
    &_description {
        opacity: 0.8;
        line-height: 1.5em;
        color: var(--text-color, $body-color);
       
        @include text(0.9em);
        font-size: 0.9em;
        @include media-md-up {
            font-size: 1em;
        }
    }
    &_btnPlay {
        @extend %reset-button;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        cursor: pointer;
        outline: 0;

        &:focus {
            background: rgba($white, 0.02)
        }

        &Text {
            @extend %sr-only;
        }
    }
}
