/** ===== Wp Reset ===== **/
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;

    &:focus {
        background-color: #f1f1f1;
        border-radius: 3px;
        box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
        clip: auto !important;
        clip-path: none;
        color: #21759b;
        display: block;
        font-size: 0.875rem;
        font-weight: 700;
        height: auto;
        left: 5px;
        line-height: normal;
        padding: 15px 23px 14px;
        text-decoration: none;
        top: 5px;
        width: auto;
        z-index: 100000;
    }
}

#primary[tabindex="-1"]:focus {
    outline: 0;
}

.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
    display: none;
}

.infinity-end.neverending .site-footer {
    display: block;
}

.clearfix {
    &::after {
        content: "";
        clear: both;
        display: block;
    }
}

.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1.5em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5em;
}

.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
    border: none;
    margin-bottom: 0;
    margin-top: 0;
    padding: 0;
}

.custom-logo-link {
    display: inline-block;
}

.wp-caption {
    margin-bottom: 1.5em;
    max-width: 100%;

    img[class*="wp-image-"] {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
}

.wp-caption-text {
    text-align: center;
    font-size: 15px;
    margin: 10px 0;
}

/** ===== Gallery ===== **/
.gallery-caption {
    display: block;
}

.gallery {
    margin-bottom: 1.5em;
    margin-left: -7px;
    margin-right: -7px;
}

.elementor-image-gallery {
    .gallery {
        margin-bottom: 0;

        a {
            display: block;
        }
    }
}

.gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 100%;
    margin: 0;
    padding: 7px;
}

.gallery-columns-2 .gallery-item {
    max-width: 50%;
}

.gallery-columns-3 .gallery-item {
    max-width: 33.33%;
}

.gallery-columns-4 .gallery-item {
    max-width: 25%;
}

.gallery-columns-5 .gallery-item {
    max-width: 20%;
}

.gallery-columns-6 .gallery-item {
    max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
    max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
    max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
    max-width: 11.11%;
}

.gallery-columns-6 .gallery-caption,
.gallery-columns-7 .gallery-caption,
.gallery-columns-8 .gallery-caption,
.gallery-columns-9 .gallery-caption {
    display: none;
}

/** ===== Wp Block Reset ===== **/
.wp-block-button {
    margin-bottom: 20px;
}

.wp-block-button__link {
    font: {
        size: 16px;
        weight: 500;
    }
    line-height: 1.2;
    border-radius: 5px;
    text-decoration: none;
    padding: 15px 30px;
    transition: 0.3s;
    background-color: $color-primary;
    color: $color-white;

    &:hover {
        background-color: $color-secondary;
        border-color: $color-secondary;
        color: $color-white;
    }
}

.is-style-outline .wp-block-button__link {
    padding: 13px 30px;

    &:hover {
        background-color: $color-secondary;
        border-color: $color-secondary;
        color: $color-white;
    }
}

.is-style-squared .wp-block-button__link {
    border-radius: 0;
}

.wp-block-calendar {
    margin: 20px 0;

    caption {
        font-weight: 500;
        font-size: 15px;
        color: $color-heading;
        text-align: left;
        margin-bottom: 5px;
    }

    .wp-calendar-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 15px;
    }

    a {
        text-decoration: none;
    }
}

.blocks-gallery-caption {
    text-align: center;
    width: 100%;
    margin-bottom: 25px;
    font-size: 15px;
}

.blocks-gallery-caption,
.wp-block-embed figcaption,
.wp-block-image figcaption {
    text-align: center;
    font-size: 15px;
}

.wp-block-cover {
    margin-bottom: 1.5em;
}

.wp-block-cover p:not(.has-text-color) {
    color: #fff;
}

.wp-block-separator {
    margin: 40px 0;
}

.wp-block-separator:not(.is-style-dots) {
    background-color: #767676;
    border: 0;
    height: 2px;
    text-align: left;
    border-color: transparent;
    max-width: 100%;
}

.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
    max-width: 150px;
    margin-left: auto;
    margin-right: auto;
}

.wp-block-separator.is-style-dots:before {
    content: "\00b7 \00b7 \00b7 \00b7 \00b7 \00b7 \00b7 \00b7 \00b7 \00b7 \00b7 \00b7 \00b7 \00b7 \00b7";
    color: #767676;
    font-size: 1.6875em;
    letter-spacing: calc(1.5 * 1rem);
    padding-left: calc(1.5 * 1rem);
}

blockquote {
    position: relative;
    font: {
        size: 15px;
        weight: 500;
    }
    line-height: 1.3;
    padding: 5px 25px;
    border-left: 3px solid $color-primary;
    margin: 0 0 30px;
    color: $color-heading;

    p {
        margin: 0;
    }
}

blockquote cite,
.wp-block-quote cite,
.blockquote cite,
.wp-block-pullquote cite {
    font-size: 14px;
    margin-top: 10px;
    display: block;
    line-height: 1;
}

.wp-block-quote.has-text-align-right {
    border-left: none;
    border-right: 3px solid $color-primary;
}

.wp-block-quote.is-large,
.wp-block-quote.is-style-large {
    margin: 0 0 30px;
    padding: 5px 30px;
}

.wp-block-quote.is-large p,
.wp-block-quote.is-style-large p {
    font-style: normal;
    font-size: 24px;
    line-height: 1.6;
}

.wp-block-quote.is-large cite,
.wp-block-quote.is-large footer,
.wp-block-quote.is-style-large cite,
.wp-block-quote.is-style-large footer {
    text-align: left;
    text-align: left;
    font-size: 16px;
    margin-top: 10px;
}

.wp-block-pullquote {
    margin: 0 0 30px;
    border-top: 3px solid $color-primary;
    border-bottom: 3px solid $color-primary;
    color: $color-heading;
    padding: 0;
}

.wp-block-pullquote blockquote {
    margin: 0;
    border: none;
    padding: 35px 25px;
}

.wp-block-pullquote p,
.wp-block-pullquote.is-style-solid-color blockquote p {
    font-size: 20px;
}

.wp-block-pullquote.is-style-solid-color blockquote {
    width: 100%;
    text-align: center;
}

.wp-caption-text,
.sticky,
.gallery-caption,
.bypostauthor,
.screen-reader-text {
    visibility: visible;
}

#wp-admin-bar-elementor_edit_page .elementor-edit-link-title {
    display: initial;
}

.wp-block-group.has-background {
    padding: 15px 15px 1px;
    margin-bottom: 30px;
}

.editor-styles-wrapper .has-large-font-size,
.has-large-font-size {
    font-size: 18px;
}

.wp-block-media-text {
    margin-bottom: 30px;
}

#wp-calendar caption {
    caption-side: top;
}

.wp-block-tag-cloud {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;

    a {
        text-transform: capitalize;
        line-height: 1;
        margin: 0 5px 5px 0;
        font-size: 14px !important;
        color: $color-heading;
        background-color: $color-light;
        padding: 8px 20px;
        border-radius: 25px;
        line-height: 1.5;

        &:hover {
            background-color: $color-secondary;
            color: $color-white;
        }
    }
}

.entry-content .wp-block-search,
.wp-block-categories-dropdown {
    margin-bottom: 20px;
}
