/*Blog Post detail page START*/
.blogpost-detail-page .hero-img {
    border-radius: var(--border-small-radius) var(--border-big-radius) var(--border-small-radius) var(--border-small-radius);
    height: 620px;
    background-size: cover;
    background-position: center;
    margin-bottom: var(--block-bottom-space-xsm);
    position: relative;
    background-repeat: no-repeat;
}
.blogpost-detail-page .hero-img .info {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    box-sizing: border-box;
}
.blogpost-detail-page .hero-img .info .left {
    display: flex;
    gap: 27px;
}
.blogpost-detail-page .hero-img .info .date {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: bold;
}
.blogpost-detail-page .hero-img .info .views {
    font-size: var(--font-size-small);
    display: flex;
    gap: 10px;
    align-items: center;
}
.blogpost-detail-page .hero-img .info .date .text,
.blogpost-detail-page .hero-img .info .views .text {
    margin-top: 4px;
}
/*Blog Post detail page END*/

/*Blog Post list page START*/
.blog-posts-list {
    row-gap: 60px;
}
.blog-posts-list .items-list {
    row-gap: 60px;
}
.blog-posts-list .last-iteration .blog-item {
    margin-bottom: 0;
}
.recently-watch.popular-posts {
    margin-bottom: 40px;
}
/*Blog Post list page END*/

/*Blog index page START*/
.blog-index-page .blog-section-list {
    margin-bottom: var(--block-bottom-space-md);
}
.blog-index-page .blog-section-list .flex-row {
    row-gap: var(--grid-col-gap);
}

.blog-index-page .section-header  {
    margin-bottom: var(--header-bottom-space-sm);
    text-transform: uppercase;
}
.blog-index-page .blog-section-list .blog-section {
    min-height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-position: center;
    background-size: cover;
    text-decoration: none;
    border-radius: var(--border-small-radius);
    position: relative;
    box-sizing: border-box;
    padding: 10px;
}
.blog-index-page .blog-section-list .blog-section:after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    background: var(--color-goal);
    transition: var(--transition-base);
}
.blog-index-page .blog-section-list .blog-section:hover:after {
    opacity: 0.2;
}
.blog-index-page .blog-section-list .blog-section .small-header {
    color: var(--color-strong-light);
    margin: 0;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 2;
}
/*Blog index page END*/


/*Block editor START*/
.content-blocks {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    width: 100%;
}
.content-blocks .content-blocks-item {
    margin-bottom: 20px;
}
.content-blocks .content-blocks-row:first-child .content-blocks-item > * {
    margin-top: 0;
}
.content-blocks .content-blocks-row:last-child .content-blocks-item {
    margin-bottom: 0;
}
.content-blocks .content-blocks-row:last-child .content-blocks-item > * {
    margin-bottom: 0;
}
.content-blocks .content-blocks-item.block-b-margin-s {
    margin-bottom: 40px;
}
.content-blocks .content-blocks-item.block-b-margin-m {
    margin-bottom: 60px;
}
.content-blocks .content-blocks-item.block-b-margin-xl {
    margin-bottom: 80px;
}

.content-blocks .content-blocks-item.block-b-margin-xxl {
    margin-bottom: 120px;
}


.content-blocks .content-blocks-item h2,
.content-blocks .content-blocks-item h3,
.content-blocks .content-blocks-item h4 {
    margin-bottom: 20px;
}

.content-blocks .content-blocks-item h2,
.content-blocks .content-blocks-item h3,
.content-blocks .content-blocks-item h4,
.content-blocks .content-blocks-item p {
    margin-top: 0;
}


.content-blocks .content-blocks-item.image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-small-radius);
}
.content-blocks .content-blocks-item.image img {
    border-radius: var(--border-small-radius);
    display: block;
}
.content-blocks .content-blocks-item.image img.stretched {
    margin-top: 10px;
    margin-bottom: 40px;
    border-radius: var(--border-small-radius) var(--border-big-radius) var(--border-small-radius) var(--border-small-radius);
}


.content-blocks .content-blocks-item.quote {
    display: flex;
    gap: 30px;
    align-items: center;
    padding: 20px 0 20px;
}
.content-blocks .content-blocks-item.quote .quotes-icon {
    align-self: stretch;
    padding-right: 30px;
    border-right: 2px solid var(--color-dark-grey);
    min-height: 100%;
    display: flex;
    align-items: center;
}
.content-blocks .content-blocks-item.quote .quotes-text {
    padding: 40px 0;
}

.content-blocks .content-blocks-item.list ul {
    margin-top: 0;
    margin-bottom: 30px;
}
.content-blocks .content-blocks-item.list li {
    margin-bottom: 15px;
}

/*Block editor - Scroll image text block*/
.content-blocks .content-blocks-item.scroll-image-text-block {
    margin-top: 20px;
    background: rgb(45,41,41, .73);
    border-radius: var(--border-big-radius);
}

.content-blocks .content-blocks-item.scroll-image-text-block .fly-image-wrapper {
    position: relative;
}
.content-blocks .content-blocks-item.scroll-image-text-block .fly-image {
    width: 400px;
    height: 305px;
    position: absolute;
    bottom: calc(-305px/2 + 50px + var(--onscroll-top)*0.8 );
    left: calc(50% - 360px/2);
    transform:
        scale( calc(1 + var(--onscroll-top-raw) * 0.0003) )
        /*rotate( calc(var(--onscroll-top-raw) * 0.05deg ) )*/;
    opacity: calc(var(--onscroll-top-raw)/200 + 0.05);
}
.content-blocks .content-blocks-item.scroll-image-text-block .overflow-hidden-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}
.content-blocks .content-blocks-item.scroll-image-text-block .fly-image-2 {
    width: 700px;
    position: absolute;
    bottom: calc(-520px + var(--onscroll-top)*0.5 );
    left: 30%;
    opacity: 0.05;
}
@media (max-height: 800px) {
    .content-blocks .content-blocks-item.scroll-image-text-block .fly-image {
        width: 340px;
        height: 258px;
        left: calc(50% - 300px/2);
        bottom: calc(-305px/2 + 50px + var(--onscroll-top)*0.8 );
        transform:
            scale( calc(1 + var(--onscroll-top-raw) * 0.0002) )
            rotate( calc(var(--onscroll-top-raw) * 0.02deg ) );
    }
}
.content-blocks .content-blocks-item.scroll-image-text-block .text {
    padding: 100px 50px 100px 20px;
}

/*Block editor - Left image with text block*/
.content-blocks .content-blocks-item.left-image-with-text {
    display: flex;
}
.content-blocks .content-blocks-item.left-image-with-text .image {
    width: 50%;
    background-size: cover;
    background-position: right 50% center;
    border-radius: var(--border-big-radius) 0 0 var(--border-small-radius);
    position: relative;
    overflow: hidden;
}
.content-blocks .content-blocks-item.left-image-with-text .image .quote {
    padding: 30px 100px;
    position: absolute;
    display: flex;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    bottom: 0;
    right: 0;
    left: 0;
    background: rgba(28, 27, 26, 0.8);
    flex-direction: column;
    justify-content: center;
}
.content-blocks .content-blocks-item.left-image-with-text .image .quote p {
    font-style: italic;
}
.content-blocks .content-blocks-item.left-image-with-text .text {
    width: 50%;
    background: var(--color-light-gray);
    padding: 80px 40px;
    border-radius: 0 var(--border-small-radius) var(--border-small-radius) 0;
}

.content-blocks .content-blocks-item .typed-text-wrapper {
    gap: 10px;
}
.content-blocks .content-blocks-item .typed-text {
    background: var(--color-primary);
    border-radius: 6px;
    padding: 5px 16px;
    text-align: center;
}
/*Block editor - Left text with bg block*/
.blogpost-detail-page .left-text-with-bg-wrapper {
    background-position: center calc(50% - 50px);
    background-repeat: no-repeat;
    /*background-attachment: fixed;*/
    position: relative;
    margin-bottom: 80px;
}
.blogpost-detail-page .left-text-with-bg-wrapper:before {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 200px;
    top: 0;
    left: 0;
    background: linear-gradient(to bottom, #1a1a1e 0px, transparent 200px);
    z-index: 1;
}
.blogpost-detail-page .left-text-with-bg-wrapper:after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 200px;
    bottom: 0;
    left: 0;
    background: linear-gradient(to top, #1a1a1e 0px, transparent 200px);
    z-index: 1;
}
.blogpost-detail-page .left-text-with-bg-wrapper .flex-row {
    position: relative;
    z-index: 9;
}
.blogpost-detail-page .left-text-with-bg-wrapper .left-text-with-bg {
    padding: 80px 0;
    position: relative;
    z-index: 2;
}
.blogpost-detail-page .left-text-with-bg-wrapper .left-text-with-bg .content-blocks-item {
    width: 60%;
}
/*Block editor - Right text with bg block*/
.blogpost-detail-page .right-text-with-bg-wrapper {
    background-position: center calc(50% - 100px);
    background-repeat: no-repeat;
    /*background-attachment: fixed;*/
    position: relative;
    margin-bottom: 80px;
}
.blogpost-detail-page .right-text-with-bg-wrapper:before {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 200px;
    top: 0;
    left: 0;
    background: linear-gradient(to bottom, #1a1a1e 0px, transparent 200px);
    z-index: 1;
}
.blogpost-detail-page .right-text-with-bg-wrapper:after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 200px;
    bottom: 0;
    left: 0;
    background: linear-gradient(to top, #1a1a1e 0px, transparent 200px);
    z-index: 1;
}
.blogpost-detail-page .right-text-with-bg-wrapper .flex-row {
    position: relative;
    z-index: 9;
}

.blogpost-detail-page .right-text-with-bg-wrapper .right-text-with-bg {
    padding: 80px 0;
    position: relative;
    z-index: 2;
}
.blogpost-detail-page .right-text-with-bg-wrapper .right-text-with-bg .content-blocks-item {
    width: 50%;
    margin-left: 50%;
}

/*Block editor - Small image block*/
.content-blocks .content-blocks-item.small-image {
    text-align: center;
    margin-bottom: 40px;
}

/*Block editor - Center text with bg image block*/
.blogpost-detail-page .center-text-with-bg-wrapper {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}
.blogpost-detail-page .center-text-with-bg-wrapper .center-text-with-bg {
    padding: 160px 0;
}
.blogpost-detail-page .center-text-with-bg-wrapper:before {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 200px;
    top: 0;
    left: 0;
    background: linear-gradient(to bottom, #1a1a1e 0px, transparent 200px);
    z-index: 1;
}
.blogpost-detail-page .center-text-with-bg-wrapper:after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 200px;
    bottom: 0;
    left: 0;
    background: linear-gradient(to top, #1a1a1e 0px, transparent 200px);
    z-index: 1;
}
.blogpost-detail-page .center-text-with-bg-wrapper .flex-row {
    position: relative;
    z-index: 9;
}
.blogpost-detail-page .center-text-with-bg-wrapper .center-text-with-bg {
    position: relative;
    z-index: 2;
}
/*Block editor END*/

@media (max-width: 1279px) {
    /*Blog global START*/
    .blogpost-detail-page .hero-img {
        height: 400px;
    }
    /*Blog global END*/

    /*Blog index page START*/
    .content-blocks .content-blocks-item.block-b-margin-xxl {
        margin-bottom: 100px;
    }

    /*Block editor - Left image with text block*/
    .content-blocks .content-blocks-item.left-image-with-text .image .quote {
        padding: 30px 30px 20px 30px;
    }
    /*Block editor - Left text with bg block*/
    .blogpost-detail-page .left-text-with-bg-wrapper {
        margin-bottom: 60px;
    }
    /*Block editor - Right text with bg block*/
    .blogpost-detail-page .right-text-with-bg-wrapper {
        margin-bottom: 60px;
    }
    /*Block editor - Center text with bg image block*/
    .blogpost-detail-page .center-text-with-bg-wrapper .center-text-with-bg {
        padding: 100px 0;
    }
    /*Blog index page END*/




}
/*max-width: 1279px END*/

@media (max-width: 1023px) {
    /*Blog global START*/
    .blogpost-detail-page .hero-img {
        margin-bottom: 10px;
    }
    /*Blog global END*/

    /*Block editor START*/
    .content-blocks .content-blocks-item.image img.stretched {
        border-radius: var(--border-small-radius);
        margin-bottom: 30px;
    }
    /*Block editor END*/

    /*Blog Post list page START*/
    .blog-posts-list {
        row-gap: 20px;
    }
    .blog-posts-list .items-list {
        row-gap: 20px;
    }
    /*Blog Post list page END*/

    /*Blog index page START*/
    .blog-index-page .section-header  {
        text-transform: none;
    }
    /*Blog index page END*/
}
/*max-width: 1023px END*/

@media (max-width: 799px) {
    /*Blog Post detail page START*/
    .blogpost-detail-page .hero-img {
        height: 260px;
    }
    .blogpost-detail-page .hero-img .info {
        padding: 15px;
    }
    /*Blog Post detail page END*/

    /*Blog index page START*/
    .blog-index-page .blog-section-list .blog-section {
        min-height: 120px;
    }
    /*Blog index page END*/

    /*Block editor START*/
    .content-blocks .content-blocks-item.block-b-margin-s {
        margin-bottom: 30px;
    }
    .content-blocks .content-blocks-item.block-b-margin-m {
        margin-bottom: 40px;
    }
    .content-blocks .content-blocks-item.block-b-margin-xl {
        margin-bottom: 60px;
    }
    .content-blocks .content-blocks-item.block-b-margin-xxl {
        margin-bottom: 80px;
    }

    .content-blocks .content-blocks-item.image img.stretched {
        margin-top: 0;
    }

    .content-blocks .content-blocks-item.quote {
        gap: 20px;
        padding: 10px 0 10px;
    }
    .content-blocks .content-blocks-item.quote .quotes-icon {
        padding-right: 10px;
    }
    .content-blocks .content-blocks-item.quote .quotes-icon svg {
        transform: scale(0.6);

    }

    /*Block editor - Scroll image text block*/
    .content-blocks .content-blocks-item.scroll-image-text-block .text {
        padding: 60px 20px 40px 20px;
    }

    /*Block editor - Left image with text block*/
    .content-blocks .content-blocks-item.left-image-with-text {
        flex-direction: column;
    }
    .content-blocks .content-blocks-item.left-image-with-text .image {
        width: 100%;
        height: 460px;
        border-radius: var(--border-big-radius) var(--border-small-radius) 0 0;
    }
    .content-blocks .content-blocks-item.left-image-with-text .text {
        width: 100%;
        box-sizing: border-box;
        border-radius: 0  0 var(--border-small-radius) var(--border-small-radius);
        padding: 40px 20px;
    }
    /*Block editor - Left image with text block*/
    .content-blocks .content-blocks-item .typed-text-wrapper {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    /*Block editor - Left text with bg block*/
    .blogpost-detail-page .left-text-with-bg-wrapper {
        margin-bottom: 0;
        background-position: top center;
        background-size: cover;
    }
    .blogpost-detail-page .left-text-with-bg-wrapper .left-text-with-bg {
        padding: 0px 0 20px 0;
    }
    .blogpost-detail-page .left-text-with-bg-wrapper .left-text-with-bg .content-blocks-item {
        width: 100%;
    }
    /*Block editor - Right text with bg block*/
    .blogpost-detail-page .right-text-with-bg-wrapper {
        background-position: 20% calc(50% - 100px);
        background-size: 300%;
        margin-bottom: 20px;
    }

    .blogpost-detail-page .right-text-with-bg-wrapper .right-text-with-bg {
        padding: 40px 0;
    }
    .blogpost-detail-page .right-text-with-bg-wrapper .right-text-with-bg .content-blocks-item {
        width: 100%;
        margin-left: 0;
    }
    /*Block editor - Center text with bg image block*/
    .blogpost-detail-page .center-text-with-bg-wrapper .center-text-with-bg {
        padding: 100px 0 0 0;
    }
    .about-us-page .project-summary-text .block-b-margin-xl {
        margin-bottom: 0;
    }

    /*Block editor END*/

    /*Blog Post list page START*/
    .blog-index-page .latest-blog {
        padding-top: calc(var(--block-bottom-space-md));
    }
    /*Blog Post list page END*/

}
/*max-width: 799px END*/
