section.query-page.is-current {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(min(50vw, 100%), 1fr));
    grid-auto-rows: min-content;
    gap: var(--wp--preset--spacing--small) 0px;
    padding-top: 5rem;
}

section.query-page.is-current article {
    min-height: 0;
}

section.query-page.is-current article:nth-child(1) {
    grid-column: 1;
    padding-left: max(var(--wp--style--root--padding-left), calc(50vw - calc(var(--wp--style--global--wide-size) / 2)));
    padding-right: 17vw;
}

section.query-page.is-current article:nth-child(1) .wp-block-image.alignfull img {
    max-height: 20rem;
}

section.query-page.is-current article:nth-child(2) {
    grid-column: 2;
    padding-left: 10vw;
}

section.query-page.is-current article:nth-child(2) .teaser-title {
    padding-right: max(var(--wp--style--root--padding-left), calc(50vw - calc(var(--wp--style--global--wide-size) / 2)));
}

section.query-page.is-current article:nth-child(2) .wp-block-image.alignfull img {
    max-height: 30rem;
}

section.query-page.is-current article:nth-child(3) {
    grid-column: 1 / span 2;
    padding-right: 58vw;
}

section.query-page.is-current article:nth-child(3) .teaser-title {
    padding-left: max(var(--wp--style--root--padding-left), calc(50vw - calc(var(--wp--style--global--wide-size) / 2)));
}

section.query-page.is-current article:nth-child(4) {
    grid-column: 1 / span 2;
    padding-right: max(var(--wp--style--root--padding-right), calc(50vw - calc(var(--wp--style--global--wide-size) / 2)));
    padding-left: 60vw;
    margin-top: -10rem;
}

section.query-page.is-current article:nth-child(5) {
    grid-column: 1 / span 2;
    margin-top: -2rem;
    padding-left: max(var(--wp--style--root--padding-left), calc(50vw - calc(var(--wp--style--global--wide-size) / 2)));
    /* padding-right: max(var(--wp--style--root--padding-right), calc(50vw - calc(var(--wp--style--global--wide-size) / 2))); */
    padding-right: 55vw;
}

section.query-page.is-current article:nth-child(6) {
    grid-column: 1 / span 2;
    padding-left: 70vw;
}

section.query-page.is-current article:nth-child(6) .teaser-title {
    padding-right: max(var(--wp--style--root--padding-left), calc(50vw - calc(var(--wp--style--global--wide-size) / 2)));
}

section.query-page.is-current article:nth-child(7) {
    grid-column: 1 / span 2;
    padding-left: max(var(--wp--style--root--padding-left), calc(50vw - calc(var(--wp--style--global--wide-size) / 2)));
    padding-right: 45vw;
    margin-top: -10rem;
}

section.query-page.is-current article:nth-child(8) {
    grid-column: 1 / span 2;
    margin-top: 5rem;
    padding-right: 15vw;
    padding-left: 45vw;
}

section.query-page.is-current article:nth-child(9) {
    grid-column: 1 / span 2;
    padding-left: max(var(--wp--style--root--padding-left), calc(50vw - calc(var(--wp--style--global--wide-size) / 2)));
    padding-right: 70vw;
    margin-top: -5rem;
}

section.query-page.is-current article:nth-child(10) {
    grid-column: 1 / span 2;
    padding-left: 65vw;
}

section.query-page.is-current article:nth-child(10) .teaser-title {
    padding-right: max(var(--wp--style--root--padding-left), calc(50vw - calc(var(--wp--style--global--wide-size) / 2)));
}


@media (max-width: 992px) {

section.query-page.is-current {
    gap: var(--wp--preset--spacing--large) 0px;
}

section.query-page.is-current article:nth-child(1) {
    grid-column: 1 / span 2;
    padding-left: max(var(--wp--style--root--padding-left), calc(50vw - calc(var(--wp--style--global--wide-size) / 2)));
    padding-right: 30vw;
}

section.query-page.is-current article:nth-child(1) .wp-block-image.alignfull img {
    max-height: 25rem;
}

section.query-page.is-current article:nth-child(2) {
    grid-column: 1 / span 2;
    padding-left: 20vw;
}

section.query-page.is-current article:nth-child(2) .wp-block-image.alignfull img {
    max-height: 25rem;
}

section.query-page.is-current article:nth-child(3) {
    grid-column: 1 / span 2;
    padding-left: max(var(--wp--style--root--padding-left), calc(50vw - calc(var(--wp--style--global--wide-size) / 2)));
    padding-right: max(var(--wp--style--root--padding-right), calc(50vw - calc(var(--wp--style--global--wide-size) / 2)));
}

section.query-page.is-current article:nth-child(3) .teaser-title {
    padding-left: max(var(--wp--style--root--padding-left), calc(50vw - calc(var(--wp--style--global--wide-size) / 2)));
}

section.query-page.is-current article:nth-child(4) {
    grid-column: 1 / span 2;
    padding-right: 25vw;
    padding-left: 0;
    margin-top: 0rem;
}

section.query-page.is-current article:nth-child(4) .teaser-title {
    padding-left: max(var(--wp--style--root--padding-left), calc(50vw - calc(var(--wp--style--global--wide-size) / 2)));
}   

section.query-page.is-current article:nth-child(5) {
    grid-column: 1 / span 2;
    margin-top: 0rem;
    padding-left: 15vw;
    padding-right: 0;
}

section.query-page.is-current article:nth-child(5) .teaser-title {
    padding-right: max(var(--wp--style--root--padding-right), calc(50vw - calc(var(--wp--style--global--wide-size) / 2)));
}   

section.query-page.is-current article:nth-child(6) {
    grid-column: 1 / span 2;
    padding-left: max(var(--wp--style--root--padding-left), calc(50vw - calc(var(--wp--style--global--wide-size) / 2)));
    padding-right: 30vw;
}

section.query-page.is-current article:nth-child(6) .wp-block-image.alignfull img {
    max-height: 25rem;
}

section.query-page.is-current article:nth-child(7) {
    grid-column: 1 / span 2;
    padding-right: max(var(--wp--style--root--padding-right), calc(50vw - calc(var(--wp--style--global--wide-size) / 2)));
    margin-top: 0rem;
}

section.query-page.is-current article:nth-child(7) .wp-block-image.alignfull img {
    max-height: 25rem;
}

section.query-page.is-current article:nth-child(8) {
    grid-column: 1 / span 2;
    padding-left: max(var(--wp--style--root--padding-left), calc(50vw - calc(var(--wp--style--global--wide-size) / 2)));
    padding-right: 10vw;
    margin-top: 0rem;
}

section.query-page.is-current article:nth-child(8) .teaser-title {
    padding-left: max(var(--wp--style--root--padding-left), calc(50vw - calc(var(--wp--style--global--wide-size) / 2)));
}

section.query-page.is-current article:nth-child(9) {
    grid-column: 1 / span 2;
    padding-right: 25vw;
    padding-left: 0;
    margin-top: 0rem;
}

section.query-page.is-current article:nth-child(9) .teaser-title {
    padding-left: max(var(--wp--style--root--padding-left), calc(50vw - calc(var(--wp--style--global--wide-size) / 2)));
}   

section.query-page.is-current article:nth-child(10) {
    grid-column: 1 / span 2;
    margin-top: 0rem;
    padding-left: 15vw;
    padding-right: 0;
}

section.query-page.is-current article:nth-child(10) .teaser-title {
    padding-right: max(var(--wp--style--root--padding-right), calc(50vw - calc(var(--wp--style--global--wide-size) / 2)));
} 
}


@media (max-width: 576px) {
section.query-page.is-current {
    display: grid !important;
    grid-template-columns: repeat(1, minmax(min(50vw, 100%), 1fr));
    grid-auto-rows: min-content;
    gap: var(--wp--preset--spacing--large) 0px;
    padding-top: 5rem;
}

section.query-page.is-current article:nth-child(1),
section.query-page.is-current article:nth-child(2),
section.query-page.is-current article:nth-child(3), 
section.query-page.is-current article:nth-child(4),
section.query-page.is-current article:nth-child(5),
section.query-page.is-current article:nth-child(6),
section.query-page.is-current article:nth-child(7),
section.query-page.is-current article:nth-child(8),
section.query-page.is-current article:nth-child(9),
section.query-page.is-current article:nth-child(10) {
    grid-column: 1;
    padding-left: max(var(--wp--style--root--padding-left), calc(50vw - calc(var(--wp--style--global--wide-size) / 2)));
    padding-right: max(var(--wp--style--root--padding-right), calc(50vw - calc(var(--wp--style--global--wide-size) / 2)));
    margin-top: 0;
}

section.query-page.is-current article:nth-child(1) .teaser-title,
section.query-page.is-current article:nth-child(2) .teaser-title,
section.query-page.is-current article:nth-child(3) .teaser-title, 
section.query-page.is-current article:nth-child(4) .teaser-title,
section.query-page.is-current article:nth-child(5) .teaser-title,
section.query-page.is-current article:nth-child(6) .teaser-title,
section.query-page.is-current article:nth-child(7) .teaser-title,
section.query-page.is-current article:nth-child(8) .teaser-title,
section.query-page.is-current article:nth-child(9) .teaser-title,
section.query-page.is-current article:nth-child(10) .teaser-title {
    padding-left: 0;
    padding-right: 0;
}


