/**
 * Editor and Front-end Styles for Gutenberg
 *
 * This file contains styles that are applied to both the WordPress block editor
 * and the front-end of the website.
 */

/* Main column width */
html {
    scroll-behavior: smooth;
}

html :where(.wp-block) {
    max-width: 1200px;
}

.editor-styles-wrapper,
.editor-post-title__input {
    font-family: 'Open Sans', sans-serif !important;
}

/* Width of "wide" and "full-width" blocks */
@media screen and (min-width: 960px) {

    .alignwide,
    .alignfull {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
    }
}

.insider {
    max-width: 1100px;
    margin: auto;
    padding: 6rem 0;
}

.fit-footer {
    margin-bottom: -40px !important;
}

/* Block specific styles */
.wp-block-quote {
    padding: 2.5em 2em;
    background-color: white;
    box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.2);
    /* Overwrite Bootsrap */
    border-left: none;
}

.wp-block-pullquote {
    padding: 0;
    margin: 0;
}

.wp-block-pullquote blockquote {
    /* Overwrite Bootstrap */
    border-left: none;
}

.wp-block-button__link {
    background-color: #0073aa;
    color: #ffffff;
    border-radius: 4px;
}

/* Table styles */
.wp-block-table table {
    border-collapse: collapse;
}

.wp-block-table td,
.wp-block-table th {
    border: 1px solid #ddd;
    padding: 8px;
}

.wp-block-table th {
    background-color: #f8f8f8;
}

/* Image styles */
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

/* Cover block styles */
.wp-block-cover {
    min-height: 300px;
}

/* Responsive embeds */
.wp-block-embed.is-type-video .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.wp-block-embed.is-type-video .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media screen and (max-width 800px) {
    .is-layout-flex .wp-block-cb-carousel {
        width: 90% !important;
        margin: 30px auto 0 !important;
    }
}