/*!
Theme Name: ydeal-sonostent
Author: Ydeal
Author URI: https://ydeal.net/
Description: Custom theme for SonoStent by Ydeal
Version: 1.0.0
Tested up to: 6.8.1
Requires PHP: 8.2
Text Domain: ydeal
Domain Path: /languages
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

@view-transition {
    navigation: auto;
}

:root {
    --y-site-size: 1280px;
}

* {
    box-sizing: border-box;
}

.list-unstyled {
    list-style: none;
    padding: 0;
    margin: 0;
}

html,
body {
    scroll-behavior: smooth;
}

a {
    text-decoration: inherit;
}

.y-site-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;

    background-color: transparent;
    transition: all .2s ease-in-out;
}

.admin-bar .y-site-navbar {
    top: 32px;
}

@media only screen and (max-width: 782px) {
    .admin-bar .y-site-navbar {
        top: 46px;
    }
}

.y-site-navbar.site-scrolled-bellow-header {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
}
@media only screen and (max-width: 1169px) and (max-height: 1023px) {
    .y-responsive-nav-expanded {
        background-color: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(5px);
    }
}

.section-navbar-inner {
    padding: 8px 16px;
}

.y-site-navbar .navbar-toggle {
    /*display: none;*/
}

#main-navbar-collapse-check {
    position: fixed;
    top: -250%;
}

.sr-only {
    overflow: hidden;
    display: block;
    height: 1px;
    width: 1px;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
    word-break: keep-all;
    position: fixed;
    top: -150%;
}
/* responsive navbar */
@media screen and (max-width: 1169px) and (max-height: 1023px) {
    .navbar-toggle {
        display: block;
        right: 20px;
        height: auto;
        width: 48px;
        padding: 8px;
        overflow: hidden;
        font-size: 18px;
        line-height: 1;
        border-radius: 1.5em;
        border: none;
        border: 1px solid var(--wp--preset--color--y-primary-light);
        cursor: pointer;
        background-color: transparent;
    }
    #main-navbar-collapse-check:checked ~ .navbar-toggle {
        background-color: var(--wp--preset--color--y-slate-100);
    }

    .navbar-toggle .icon-bar {
        transform: rotate(0) translate(0, 0);
    }

    .icon-bar {
        display: block;
        height: 2px;
        position: relative;
        background-color: var(--wp--preset--color--y-primary-light);
        width: 90%;
        margin: 0 auto 4px;
        transition: transform ease-in-out .3s;
    }
    .icon-bar:last-child {
        margin-bottom: 0;
    }

    #main-navbar-collapse-check:checked ~ .navbar-toggle .icon-bar:nth-child(2) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    #main-navbar-collapse-check:checked ~ .navbar-toggle .icon-bar:nth-child(3) {
        transform: rotate(45deg) translate(0px, 1px);
    }

    #main-navbar-collapse-check:checked ~ .navbar-toggle .icon-bar:last-child {
        margin-bottom: 0;
        transform: rotate(-45deg) translate(4px, -4px);
    }

    .y-site-navbar .navbar {
        justify-content: space-between !important;
    }

    #main-navbar-collapse-check ~ #main-navbar-collapse {
        display: none;
    }

    #main-navbar-collapse-check:checked ~ #main-navbar-collapse {
        display: block;
    }

    #main-navbar-collapse {
        flex-grow: 1;
        width: 100%;
    }
}

/* /responsive navbar */

.y-site-navbar .lang-item a {
    padding: .3em 1em;
    border: 1px solid;
    border-radius: 1.5em;
    font-size: .7em;
    letter-spacing: .05em;
    background-color: var(--wp--preset--color--y-slate-20);
}

.y-site-navbar a {
    white-space: nowrap;
    word-break: keep-all;
    text-decoration: none;
    color: var(--wp--preset--color--y-primary-dark);
    text-shadow:    0px 1px 0px rgba(255,255,255,.25),
                    0px 1px 1px rgba(255,255,255,.25),
                    0px 2px 2px rgba(255,255,255,.25);
}
.y-site-navbar a.active,
.y-site-navbar a:hover {
    text-decoration: none;
    color: var(--wp--preset--color--y-primary-light);
}

.y-site-navbar .navbar {
    font-size: 18px;
    max-width: var(--y-site-size);
    margin: 0 auto;

    gap: 16px;
    display: flex;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.y-site-navbar .navbar-header {
    text-align: center;
}

@media only screen and (min-width: 1170px) {
    .y-site-navbar .navbar {
        justify-content: space-between;
    }
}

@media only screen and (max-width: 1169px) {
    .y-site-navbar .navbar-collapse {
        overflow-x: auto;
    }
    .y-site-navbar .navbar-nav {
        flex-wrap: nowrap;
    }
    .y-site-navbar .navbar-nav {
        padding-top: .5em;
        padding-bottom: .5em;
    }
}


.y-site-navbar .navbar-nav {
    display: flex;
    flex-direction: row;
    gap: 32px;
}

.y-site-navbar ul {
    margin: 0;
    padding: 0;
}
.y-site-navbar .navbar-nav li {
    list-style: none;
}

.is-style-ydeal-team-cards-grid {
    place-items: center;
}

@media only screen and (max-width: 1170px) {
    .is-style-ydeal-team-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: calc(512px + var(--wp--preset--spacing--60));
        margin-left: auto !important;
        margin-right: auto !important;
    }
}
@media only screen and (max-width: 680px) {
    .is-style-ydeal-team-cards-grid {
        grid-template-columns: 1fr !important;
        justify-content: center !important;
    }
}

.is-style-ydeal-team-card {
    max-width: 256px;
    height: 100%;
}

.is-style-ydeal-team-card .wp-block-social-links {
    margin-top: auto !important;
}

.is-style-ydeal-team-card .wp-block-social-link {
    opacity: 0.5;
    transition: all .2s ease-in-out;
}
.is-style-ydeal-team-card .wp-block-social-link:hover {
    opacity: 1;
}

/**
  * animation
  */
@keyframes fadeInUpAndRotate {
    0% {
        transform: translateY(40px) rotate(8deg);
    }
    100% {
        transform: translateY(0) rotate(0);
    }
}
.animate-fade-in-up-and-rotate {
    animation-name: fadeInUpAndRotate;
    animation-duration: .5s;
}

/**
  * block alignments
  */

.is-root-container > :where(:not(.alignleft):not(.alignright):not(.alignfull):not(.alignwide)) {
    max-width: 768px;
    margin-left: auto !important;
    margin-right: auto !important;
}
.alignwide {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 1170px;
}

/* page header */
.y-page-header {
    background-color: var(--wp--preset--color--y-slate-100);
    position: relative;
    padding: var(--wp--preset--spacing--80) var(--wp--preset--spacing--40);
    overflow: hidden;
    min-height: 62vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.y-page-header-figure {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 0;
    filter: grayscale(1);
    opacity: .25;
    margin: 0;
}
.y-page-header-figure img {
    width: 100%;
    height: 100%;
    object-position: center;
    object-fit: cover;
}
.y-page-header-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
    text-align: center;
}
/*.y-page-header-content h1 {*/
/*    font-size: 3.5rem;*/
/*}*/

/* article single.php */
.article-flex-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1170px;
    margin: 0 auto;
    padding-left: var(--wp--preset--spacing--40);
    padding-right: var(--wp--preset--spacing--40);
}
.article-main-content {
    flex-grow: 1;
}
.article-content-container {
    padding: var(--wp--preset--spacing--80) var(--wp--preset--spacing--50) var(--wp--preset--spacing--80) 0;
}
.article-aside {
    position: relative;
    flex-shrink: 0;
    width: 280px;
}

@media only screen and (max-width: 1024px) {
    .article-flex-container {
        flex-direction: column;
        padding: 0;
    }
    .article-aside {
        width: 100%;
        padding-left: var(--wp--preset--spacing--40);
        padding-right: var(--wp--preset--spacing--40);
    }
    .is-y-widget {
        padding-left: 0 !important;
    }
    .article-content-container > *:not(.alignfull) {
        padding-left: var(--wp--preset--spacing--40);
        padding-left: var(--wp--preset--spacing--40);
    }
}

/* aside article single "widget" */

.is-y-widget {
    position: sticky;
    top: 0;
    padding: var(--wp--preset--spacing--80) 0 var(--wp--preset--spacing--80) var(--wp--preset--spacing--50);
}
.is-y-widget-title {
    padding: var(--wp--preset--spacing--40);
    border-radius: var(--wp--preset--spacing--40);
    margin: 0 0 var(--wp--preset--spacing--40);
    font-weight: 400;
    font-size: 1rem;
}
.is-y-widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--40);
}
.is-y-widget-list-item {
    box-shadow: var(--wp--preset--shadow--lg);
    border-radius: var(--wp--preset--spacing--40);
    position: relative;
}
.is-y-widget-list-item article {
    padding: var(--wp--preset--spacing--40);
}
.is-y-widget-list-item h1 {
    margin-top: 0;
    margin-bottom: var(--wp--preset--spacing--20);
    font-weight: 400;
}
.is-y-widget-list-item a {
    text-decoration: none;
}
.is-y-widget-list-item a:hover {
    text-decoration: underline;
}
.is-y-widget-list-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
}

.is-root-container--article-list {
    padding-left: var(--wp--preset--spacing--40);
    padding-right: var(--wp--preset--spacing--40);
}
.is-article-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--wp--preset--spacing--70);
    padding: var(--wp--preset--spacing--80) 0;
}
@media only screen and (max-width: 1024px) {
    .is-article-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media only screen and (max-width: 680px) {
    .is-article-list {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        justify-items: center;
    }
    .is-article-list-item {
        width: 300px;
    }
}
@media only screen and (max-width: 340px) {
    .is-article-list {
        justify-items: stretch;
    }
    .is-article-list-item {
        width: initial;
    }
}

.is-article-list-item {
    box-shadow: var(--wp--preset--shadow--lg);
    border-radius: var(--wp--preset--spacing--40);
    position: relative;
}
.is-article-list-item article {
    padding: var(--wp--preset--spacing--40);
    position: relative;
}

.is-article-list-item article a {
    text-decoration: none;
}
.is-article-list-item article a:hover {
    text-decoration: underline;
}
.is-article-list-item article a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
}

/* posts navigation */
.y-posts-navigation {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 60px;
    padding-bottom: var(--wp--preset--spacing--80);
}
.y-posts-navigation-item:empty {
    display: none;
}
.y-posts-navigation-item a {
    display: inline-block;
    padding: 16px 8px;
    border-radius: 2em;
    border: 1px solid;
    margin: auto;
}
.y-posts-navigation-item a:hover {
    background-color: var(--wp--preset--color--y-slate-100);
}
.y-posts-navigation-item a svg {
    display: block;
    width: 24px;
    height: 24px;
}
.y-posts-navigation-item--previous {
    transform: rotate(90deg);
}
.y-posts-navigation-item--next {
    transform: rotate(-90deg);
}

/* site footer */

.site-footer {
    font-size: .875rem;
}

.site-footer-inner {
    padding: var(--wp--preset--spacing--80) var(--wp--preset--spacing--40);
    max-width: var(--y-site-size);
    margin: 0 auto;
}

.site-footer-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    color: rgba(255,255,255,.9) !important;
}

.footer-brand {
    text-decoration: none;
}

.site-footer-content a {
    color: inherit;
}

.is-style-ydeal-partners {
    place-content: center;
    justify-items: center;
}
.is-style-ydeal-partners figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 200px;
}
.is-style-ydeal-partners img {
    object-fit: contain;
}
.is-style-ydeal-partners a {
    opacity: .6;
    transition: all .2s ease-in-out;
}
.is-style-ydeal-partners a:hover {
    opacity: 1;
}

/* core/image ydeal-grayscale-color */
.is-style-ydeal-grayscale-color {
    filter: grayscale(1);
    transition: filter .3s ease-in-out;
}
.is-style-ydeal-grayscale-color:hover {
    filter: grayscale(0);
}

.wp-block-button__link img {
    width: 44px !important;
    height: auto !important;
}
.wp-block-button__link.has-small-font-size img {
    width: 16px !important;
    height: auto !important;
}
.wp-block-button__link.has-medium-font-size img {
    width: 24px !important;
    height: auto !important;
}
.wp-block-button__link.has-large-font-size img {
    width: 32px !important;
    height: auto !important;
}

.is-style-ydeal-contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.is-style-ydeal-contact-form form nf-fields-wrap {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--wp--preset--spacing--40);
    justify-content: space-between;
}

.is-style-ydeal-contact-form form nf-field {
    width: 48%;
}

.is-style-ydeal-contact-form form nf-field:nth-child(1n+5) {
    flex-grow: 1;
    width: 100%;
}

@media only screen and (max-width: 767px) {
    .is-style-ydeal-contact-form form nf-field {
        width: 100%;
    }
}

.is-style-ydeal-contact-form .nf-response-msg:empty {
    display: none;
}

.is-style-ydeal-contact-form .nf-response-msg {
    background-color:rgba(255, 255, 255, .5);
    border-radius: 1rem;
    display: block;
    margin-top: var(--wp--preset--spacing--60);
    padding: 16px;
    text-align: center;
}

.is-style-ydeal-contact-form .nf-before-form-content {
    margin-bottom: var(--wp--preset--spacing--80);
    font-size: .85rem;
    text-align: center;
}

.is-style-ydeal-contact-form .nf-field-label label,
.is-style-ydeal-contact-form .nf-after-field {
    padding-left: 1rem;
}
.is-style-ydeal-contact-form .ninja-forms-field {
    background-color: rgba(240, 249, 255, .2);
    border-radius: 1.5rem;
    border: 1px solid var(--wp--preset--color--y-primary-light);
    font-size: 16px;
    line-height: 1.5;
    padding: .5em 1em;
    color: var(--wp--preset--color--y-primary-light);
}
.is-style-ydeal-contact-form .ninja-forms-field:focus {
    outline-color: var(--wp--preset--color--y-primary-light);
}
.is-style-ydeal-contact-form textarea.ninja-forms-field {
    border-radius: 1.25rem;
}
.is-style-ydeal-contact-form .nf-after-field {
    font-size: 13px;
}
.is-style-ydeal-contact-form .ninja-forms-field[type=submit] {
    background: var(--wp--preset--color--y-primary-light);
    color: var(--wp--preset--color--y-white);
    font-size: 1.15rem;
    padding: .6em 1.5em;
    font-weight: bold;
    transition: box-shadow .2s ease-in-out;
}
.is-style-ydeal-contact-form .ninja-forms-field[type=submit]:hover {
    box-shadow: var(--wp--preset--shadow--lg);
}

.is-style-ydeal-latest-posts.is-grid {
    display: grid;
}
.is-style-ydeal-latest-posts.is-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}
.is-style-ydeal-latest-posts.is-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}
.is-style-ydeal-latest-posts.is-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.is-style-ydeal-latest-posts {
    gap: var(--wp--preset--spacing--60);
}

@media only screen and (max-width: 1170px) {
    .is-style-ydeal-latest-posts {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.is-style-ydeal-latest-posts.wp-block-latest-posts__list > li {
    background-color: var(--wp--preset--color--y-white);
    box-shadow: var(--wp--preset--shadow--lg);
    border-radius: var(--wp--preset--spacing--40);
    position: relative;
    padding: var(--wp--preset--spacing--40);
    margin: 0 !important;
    width: initial;
    min-width: 256px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media only screen and (max-width: 680px) {
    .is-style-ydeal-latest-posts.wp-block-latest-posts__list {
        grid-template-columns: 1fr !important;
        /*align-items: center;*/
        justify-items: center;
    }
    *.is-style-ydeal-latest-posts.wp-block-latest-posts__list > li {
        max-width: 256px;
        grid-grow: initial !important;
        grid-column: 1;
    }
}

.is-style-ydeal-latest-posts .wp-block-latest-posts__post-title {
    text-decoration: none;
    font-size: var(--wp--preset--font-size--medium);
}
.is-style-ydeal-latest-posts .wp-block-latest-posts__post-date {
    font-size: .8rem;
    margin-top: 1rem;
}

.y-post-date,
.is-style-ydeal-latest-posts .wp-block-latest-posts__post-date {
    color: #697885;
}

@keyframes y-bounce {
    0%, to {
        animation-timing-function: cubic-bezier(.8,0,1,1);
        transform: translateY(-25%)
    }
    50% {
        animation-timing-function: cubic-bezier(0,0,.2,1);
        transform:none
    }
}
.is-style-ydeal-animated-button {
    animation: y-bounce 1s infinite;
}

.is-style-ydeal-homepage-banner {
    align-items: stretch;
}
.is-style-ydeal-homepage-banner > .wp-block-cover__inner-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    margin: 0;
}

.is-style-ydeal-homepage-banner > .wp-block-cover__inner-container > .wp-block-group {
    align-self: stretch;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.is-style-ydeal-homepage-banner > .wp-block-cover__inner-container > .wp-block-group > .wp-block-media-text {
    flex-grow: 1;
}

.is-style-ydeal-homepage-banner > .wp-block-cover__inner-container > .wp-block-group > .wp-block-media-text > .wp-block-media-text__media {
    height: 100%;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: var(--wp--preset--shadow--lg);
    animation-name: fadeInUpAndRotate;
    animation-duration: .5s;
}
.is-style-ydeal-homepage-banner > .wp-block-cover__inner-container > .wp-block-group > .wp-block-media-text > .wp-block-media-text__media > img {
    object-fit: cover;
    height: 100%;
}

/*.wp-block-cover .wp-block-media-text__media {*/
/*    border-radius: 2rem;*/
/*    overflow: hidden;*/
/*    box-shadow: var(--wp--preset--shadow--lg);*/
/*}*/

@media only screen and (max-height: 1024px) {
    .is-style-ydeal-homepage-banner {
        min-height: 98vh !important;
    }
}

@media only screen and (max-width: 1169px) {
    .is-style-ydeal-homepage-banner {
        padding-top: 9.5rem !important;
    }
}
@media only screen and (max-width: 1023px) {
    .is-stacked-on-mobile.is-style-ydeal-media-text-responsive {
        grid-template-columns: 1fr;
        gap: var(--wp--preset--spacing--80);
    }
    .is-stacked-on-mobile.is-style-ydeal-media-text-responsive > .wp-block-media-text__content {
        grid-row: 2;
        grid-column: 1;
    }
}

.no-margin-top {
    margin-top: 0 !important;
}
.no-margin-bottom {
    margin-bottom: 0 !important;
}
.no-margin {
    margin: 0 !important;
}

@media only screen and (max-width: 540px) {
    .wp-block-gallery.is-layout-flex {
        justify-content: center !important;
    }
    .wp-block-gallery.is-layout-flex > * {
        flex-grow: 1 !important;
        width: 100% !important;
        max-width: 320px !important;
    }
}

@keyframes ySlideshowIn {
    0% {opacity: 0}
    100% {opacity: 1}
}

@keyframes yFadeSlide {
    0%, 5% {opacity: 0}
    5%, 32% { opacity: 1; }
    42%, 100% { opacity: 0; }
}

.ydeal-hero-slideshow {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    animation: ySlideshowIn 1.5s forwards;
}
.ydeal-hero-slideshow__figure {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
    display: block !important;
    filter: grayscale(1);
    opacity: .25;
}
.ydeal-hero-slideshow__figure .wp-block-image,
.ydeal-hero-slideshow__figure .wp-block-image > img {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    object-fit: cover;
    width: 100% !important;
    height: 100% !important;
}

.ydeal-hero-slideshow__figure .wp-element-caption {
    color: #222 !important;
    text-shadow: -1px -1px 0 rgba(255,255,255,.5),
                1px -1px 0 rgba(255,255,255,.5),
                -1px 1px 0 rgba(255,255,255,.5),
                1px 1px 0 rgba(255,255,255,.5) !important;
    text-align: right !important;
    background: none !important;
    user-select: none !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    font-weight: bold;
}

.ydeal-hero-slideshow-content {
    position: relative;
    padding: var(--wp--preset--spacing--60);
    z-index: 2;
}

.ydeal-hero-slideshow__figure .wp-block-image {
    animation: yFadeSlide 15s ease-in-out infinite;
    max-width: 100% !important;
    min-width: 100% !important;
    width: 100% !important;
}
.ydeal-hero-slideshow__figure .wp-block-image:nth-child(1) {
    animation-delay: 0s;
    z-index: 3;
}
.ydeal-hero-slideshow__figure .wp-block-image:nth-child(2) {
    animation-delay: 5s;
    z-index: 2;
}
.ydeal-hero-slideshow__figure .wp-block-image:nth-child(3) {
    animation-delay: 10s;
    z-index: 1;
}

.is-style-ydeal-latest-posts:has(li:nth-child(4)) {
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
}
.is-style-ydeal-latest-posts > li:nth-child(1),
.is-style-ydeal-latest-posts > li:nth-child(2) {
    grid-row: 1 / -1;
}
.is-style-ydeal-latest-posts > li:nth-child(3),
.is-style-ydeal-latest-posts > li:nth-child(4),
.is-style-ydeal-latest-posts > li:nth-child(5) {
    grid-column: span 1 / span 1;
}

.is-style-ydeal-latest-posts .wp-block-latest-posts__featured-image {
    display: none;
}

.is-style-ydeal-latest-posts > li:nth-child(1) .wp-block-latest-posts__featured-image,
.is-style-ydeal-latest-posts > li:nth-child(2) .wp-block-latest-posts__featured-image{
    display: block;
}

.is-style-ydeal-latest-posts > li {
    overflow: hidden;
}

.is-style-ydeal-latest-posts .wp-block-latest-posts__featured-image {
    position: relative;
    width: calc(100% + (1rem * 2));
    margin: -1rem 0 0 -1rem;
}

.is-style-ydeal-latest-posts .wp-block-latest-posts__featured-image a {
    display: block;
    width: 100%;
}
.is-style-ydeal-latest-posts .wp-block-latest-posts__featured-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media screen and (max-width: 680px) {
    .home #news-and-publications .wp-block-cover__inner-container .is-layout-grid,
    .home #news-and-publications .wp-block-cover__inner-container .is-layout-flow {
        max-width: 300px;
        margin: 0 auto;
    }
    .home #news-and-publications > .wp-block-cover__inner-container > .wp-block-group > .is-layout-flow > .wp-block-group {
        flex-direction: column;
    }
}
