/*--------------------------------------------------------------
# Normalize
--------------------------------------------------------------*/

.wp-block-cover,
.wp-block-cover-image {
    height: unset;
}

.wp-block-cover-image .wp-block-cover__inner-container a, 
.wp-block-cover .wp-block-cover__inner-container a {
    color: white;
}

.entry-content>* {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 670px;
    padding-left: 20px;
    padding-right: 20px;
    display: block;
}

.entry-content>ol,
.entry-content>ul {
    padding-left: 45px;
}

.entry-content>*.fullwidth {
    max-width: 1440px;
    padding: 0px;
}

@media (max-width: 600px) {

    .entry-content>* {
        padding-left: 20px;
        padding-right: 20px;
    }

    .entry-content>.fullwidth {
        padding: 0px;
    }

    /* Hack to avoid right aligned images on mobile */
    .wp-block-column>.wp-block-image>figure.alignright {
        float: none;
        margin: 0px auto;
    }

    .wp-block-column>.wp-block-image>figure.alignright>img {
        margin: 0px;
        float: none;
    }

}

h1 {
    font-family: "IvarHeadline";
    font-size: 36px;
    font-weight: 400;
    line-height: 43px;
}

h2 {
    font-family: "CentraNo2-Medium";
    font-size: 21px;
    line-height: 27px;
}

h3 {
    font-family: "CentraNo2-Medium";
    font-size: 18px;
    line-height: 20px;
}

h4 {
    font-family: "CentraNo2-Medium";
    font-size: 16px;
    line-height: 18px;
}

.wp-block-cover.link {
    cursor: pointer;
}


/*--------------------------------------------------------------
# Font sizes
--------------------------------------------------------------*/

.has-huge-font-size {
    font-size: 24px;
}

.has-large-font-size {
    font-family: "IvarHeadline";
    font-size: 24px;
    line-height: 34px;
}

.has-text-align-left {
    text-align: left;
}

.has-text-align-center {
    text-align: center;
}

.has-text-align-right {
    text-align: right;
}


/*--------------------------------------------------------------
## Paragraph styles
--------------------------------------------------------------*/

.headline {
    font-family: "IvarHeadline";
    font-size: 24px;
    font-weight: 500;
    line-height: 34px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.byline {
    font-family: "CentraNo2-Medium";
    font-size: 16px;
    font-weight: 500;
    line-height: 30px;
}

.is-style-teaser {
    font-size: 18px;
    line-height: 28px;
}

.is-style-label {
    text-transform: uppercase;
    margin-bottom: -10px;
    font-family: "CentraNo2";
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
}

@media (max-width: 896px) {

    .headline {
        font-size: 21px;
        line-height: 34px;
    }

}


/*--------------------------------------------------------------
# Button styles
--------------------------------------------------------------*/

ul.is-style-link-button>li a,
.site button,
.site input[type="button"],
.site input[type="reset"],
.site input[type="submit"],
.site-footer input[type="submit"],
.wp-block-button__link {
    background-color: #D64353;
    border-radius: 5px;
    margin-right: 10px;
    margin-bottom: 10px;
    border: 1px solid transparent;
    color: #ffffff;
    font-family: "CentraNo2-Medium";
    font-size: 16px;
    line-height: 21px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    display: inline-block;
    overflow-wrap: normal;
    word-break: keep-all;
}

.site-footer input[type="submit"]:hover,
.site-footer input[type="submit"]:focus,
.site-footer input[type="submit"]:active,
.wp-block-button__link:hover,
.wp-block-button__link:focus,
.wp-block-button__link:active {
    background-color: #F6988D;
    color: #fff;
    text-decoration: none;
}


/*--------------------------------------------------------------
# Block Color Palette Colors
--------------------------------------------------------------*/

.fritanke-red,
.has-fritanke-red-background-color {
    background-color: #E85127 !important;
}

.fritanke-purple-bg,
.has-fritanke-purple-background-color {
    background-color: #38132F !important;
}

.black-bg,
.has-black-background-color {
    color: #fff;
    background-color: #000 !important;
}

.white-bg,
.has-white-background-color {
    color: #000;
    background-color: #fff !important;
}

.has-fritanke-red-color {
    color: #E85127 !important;
}

.has-fritanke-purple-color {
    color: #38132F !important;
}

.has-black-color {
    color: #000 !important;
}

.has-white-color {
    color: #fff !important;
}


/*--------------------------------------------------------------
# Fritanke Custom Blocks
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Flickity
--------------------------------------------------------------*/

.flickity-page-dots .dot {
    background: #9c9d9e !important;
    opacity: 1 !important;
    /* NEL 201117: Hack to make touch area bigger */
    padding: 5px !important;
    margin: 0 2px !important;
    border: 6px solid white !important;
}

.flickity-page-dots .dot.is-selected {
    background: #D64353 !important  ;
}


/*--------------------------------------------------------------
# Hero
--------------------------------------------------------------*/

section.hero {
    padding: 20px;
    margin-top: 70px;
    margin-bottom: 80px;
    padding-bottom: 0px !important;
}

section.hero .item {
    width: 100%;
}

@media (max-width: 896px) {

    section.hero {
        padding: 30px;
    }

}

@media (max-width: 600px) {

    section.hero {
        padding: 20px;
    }

}


/*--------------------------------------------------------------
# Three cover images on front page - Block pattern
--------------------------------------------------------------*/

.three-cover {
    height: calc(100vw / 2.12);
    max-height: 680px;
    gap: 0;
}

.three-cover .wp-block-column {
    margin-bottom: 2px;
    overflow: hidden;
}

.three-cover .wp-block-column:not(:first-child) {
    margin-left: 2px;
    display: flex;
    flex-direction: column;
}

.three-cover .wp-block-column:not(:first-child) .wp-block-cover:nth-child(1) {
    margin-bottom: 2px;
}

.three-cover .wp-block-cover {
    align-items: flex-end;
    justify-content: flex-start;
    position: relative;
    background-size: cover;
    background-position: 50%;
    width: 100%;
    display: flex;
    padding: 40px;
    height: 100%;
    min-height: unset;
}

.three-cover .wp-block-cover p {
    font-family: "CentraNo2";
    font-size: 21px;
    font-weight: 400;
    line-height: 27px;
    margin: 0px;
    margin-top: 10px;
}

.three-cover .wp-block-cover h2 {
    font-family: "IvarHeadline";
    font-size: 42px;
    font-weight: 400;
    line-height: 50px;
    margin: 0px;
}

.three-cover .wp-block-image {
    margin: 0 !important;
}

@media (max-width: 960px) and (min-width: 600px) {

    .three-cover {
        max-height: none;
        height: auto;
        flex-wrap: wrap !important;
        overflow: visible;
    }

    .three-cover .wp-block-column:nth-child(1) {
        flex-basis: calc(100%)!important;
        height: calc(100vw / 1.42);
    }

    .three-cover .wp-block-column:nth-child(2) {
        flex-basis: calc(100%)!important;
        flex-direction: row;
        margin-left: 0px;
        height: calc(50vw / 1.42);
    }

    .three-cover .wp-block-column:nth-child(2) .wp-block-cover:nth-child(1) {
        margin-right: 2px;
    }

}

@media (max-width: 600px) {

    .three-cover {
        overflow: visible;
        height: auto;
        max-height: none;
    }

    .three-cover .wp-block-column {
        margin-left: 0px !important;
        overflow: visible;
    }

    .three-cover .wp-block-cover {
        padding: 20px;
        padding-top: 70px;
    }

    .three-cover .wp-block-column:nth-child(1) {
        min-height: 400px;
    }

    .three-cover .wp-block-column:nth-child(2) {
        min-height: 400px;
    }

}


/*--------------------------------------------------------------
# Double cover images on front page - Block pattern
--------------------------------------------------------------*/

.double-cover {
    min-height: calc(100vw / 3.2);
}

.double-cover .wp-block-column {
    margin-bottom: 2px;
}

.double-cover .wp-block-column:not(:first-child) {
    margin-left: 2px;
}

.double-cover .wp-block-cover {
    align-items: flex-end;
    justify-content: flex-start;
    position: relative;
    background-size: cover;
    background-position: 50%;
    width: 100%;
    display: flex;
    padding: 40px;
    height: 100%;
    min-height: 245px;
}

.double-cover .wp-block-cover p {
    font-family: "CentraNo2";
    font-size: 21px;
    font-weight: 400;
    line-height: 27px;
    margin: 0px;
    margin-top: 20px;
}

.double-cover h3 {
    font-family: "IvarHeadline";
    font-size: 28px;
    font-weight: 400;
    line-height: 34px;
    margin: 0px;
}

@media (max-width: 781px) and (min-width: 600px) {

    .double-cover .wp-block-column {
        flex-basis: calc(50% - 1px)!important;
    }

}

@media (max-width: 600px) {

    .double-cover .wp-block-column {
        margin-left: 0px !important;
    }

}


/*--------------------------------------------------------------
# Teaser section
--------------------------------------------------------------*/

.wp-block-group.teaser p {
    margin-top: 70px;
    margin-bottom: 40px;
}

.wp-block-group.teaser .wp-block-button {
    margin-bottom: 70px;
}
