/**
 * CTA Block Styles
 */

/* Editor specific styles */

.vh-cta-editor.bg-dark {
    background-color: #000;
}

.vh-cta-editor.bg-green {
    background-color: #00513b;
}

.vh-cta-editor.bg-dark-green {
    background-color: #003327;
}

/* Media previews */
.media-preview {
    margin-top: 10px;
    max-width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.video-preview video {
    max-width: 100%;
    max-height: 200px;
}

.image-preview img {
    max-width: 100%;
    height: auto;
}

.cta {
    position: relative;
    min-height: 60vh;
    overflow: hidden;
    height: 100%;
}

.cta + .page-hero {
    padding-top: 40px;
}

.cta:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(13, 13, 13, 0.6);
    width: 100%;
    transition: 0.3s ease-out;
    transform: translateY(-100%);
    z-index: 10;
}

.cta:hover:before {
    transform: translateY(0);
}

.cta-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-repeat: no-repeat;
    background-size: cover;
}

.vh-cta-editor .cta .btn,
.cta .btn {
    position: absolute;
    z-index: 11;
    left: calc(50% - 85px);
    top: calc(50% - 24px);
    cursor: pointer;
}

.cta a.btn[href="#"] {
    pointer-events: none;
}

.cta .btn:hover {
    transition: 0.2s ease;
}

.cta .btn-white-outline:hover {
    border-color: #000;
}

@media only screen and (min-width: 1200px) {
    .cta {
        padding-bottom: 70px;
    }
}