/*------------------------------------*\
    Gutenberg Core Blocks (front end)
    Loaded after all-styles.min.css
\*------------------------------------*/

/* Spacing - match .content p rhythm */
.content .wp-block-columns,
.content .wp-block-group,
.content .wp-block-cover,
.content .wp-block-gallery,
.content .wp-block-image,
.content .wp-block-embed,
.content .wp-block-buttons,
.content .wp-block-table,
.content .wp-block-media-text {
    margin-top: 0;
    margin-bottom: 30px;
}

.content .wp-block-column > *:last-child,
.content .wp-block-group > *:last-child,
.content .wp-block-cover__inner-container > *:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
}

.content .wp-block-image img {
    max-width: 100%;
    height: auto;
}

.content .wp-block-image figcaption,
.content .wp-block-embed figcaption {
    font-size: 14px;
    line-height: 1.3;
    margin-top: 8px;
}

/* Buttons - match .button */
.content .wp-block-button__link,
.content .wp-block-button .wp-block-button__link {
    background-color: #ffcd15;
    color: #000;
    padding: 17px 30px;
    font-family: "arial_nova", sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.2;
    border-radius: 8px;
    border: 0;
    text-decoration: none;
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
}

.content .wp-block-button__link:hover,
.content .wp-block-button__link:focus {
    background-color: #222e59;
    color: #fff !important;
}

.content .wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent;
    color: #222e59;
    border: 2px solid #222e59;
}

.content .wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: #222e59;
    color: #fff !important;
}

/* Lists inside blocks shouldn't inherit the large .content ul indent twice */
.content .wp-block-gallery,
.content ul.wp-block-gallery {
    margin-left: 0;
    list-style: none;
}

/* Separator */
.content hr.wp-block-separator {
    border: 0;
    border-top: 1px solid #222e59;
    opacity: .2;
    margin: 20px 0 40px;
}

/* Quote - existing .content blockquote styles apply, just reset block borders */
.content .wp-block-quote {
    border-left: 0;
    padding-left: 0;
}

/* Alignments */
.content .alignwide {
    width: auto;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.content .alignfull {
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    margin-right: 0;
}

.content .alignfull img,
.content .alignwide img {
    width: 100%;
}

/* Two-column / CTA layouts are too narrow for wide/full breakouts */
.content .flex .alignwide,
.content .flex .alignfull {
    width: auto;
    max-width: 100%;
    left: auto;
    margin-left: 0;
}

@media (max-width: 781px) {
    .content .wp-block-columns {
        gap: 0;
    }

    .content .wp-block-column {
        margin-bottom: 20px;
    }
}
