body .page-hero-tertiary {
    display: grid;
    max-width: var(--wide-width);
    margin: 0 auto;
    padding: var(--block-margin) 0;
    position: relative;
    column-gap: var(--column-gap);
    row-gap: var(--item-row-gap);
}

body .modules-hero {
	padding: var(--padding-xl) 0 96px 0 !important;
}

body .hero-tertiary-v2 {
	padding: var(--padding-xl) 0 128px 0 !important;
}

.page-hero-tertiary:is([data-media-position="top"], [data-media-position="bottom"]) {
    display: grid;
    grid-template-columns: 1fr;
}

.page-hero-tertiary:is([data-media-position="top"]) .page-hero-tertiary-wrapper {
    grid-column: 1;
    grid-row: 2;
}

.page-hero-tertiary:is([data-media-position="bottom"]) .page-hero-tertiary-media {
    grid-column: 1;
    grid-row: 2;
}

.page-hero-tertiary:is([data-media-position="top"], [data-media-position="bottom"]) .page-hero-tertiary-media {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-flow: column;
    height: auto;
}

.page-hero-tertiary:is([data-media-position="top"], [data-media-position="bottom"]) .page-hero-tertiary-media div:nth-child(3n+1) {
    grid-row: span 2;
    max-height: calc(40rem + (var(--item-row-gap) / 2));
}

.page-hero-tertiary:is([data-media-position="top"], [data-media-position="bottom"]) .page-hero-tertiary-media div:nth-child(3n+2) {
    grid-column: span 2;
    grid-row: span 1;
    height: 20rem;
}

.page-hero-tertiary:is([data-media-position="top"], [data-media-position="bottom"]) .page-hero-tertiary-media div:nth-child(3n+3) {
    grid-column: span 2;
    height: 20rem;
}

.page-hero-tertiary:is([data-media-position="left"]) .page-hero-tertiary-wrapper {
    order: 2;
}

.page-hero-tertiary-wrapper{
    margin: 0;
    position: relative;
    display: flex;
    align-items: center;
}

.page-hero-tertiary-wrapper.alignment-left {
    justify-content: flex-start;
    text-align: left;
}

.page-hero-tertiary-wrapper.alignment-center {
    justify-content: center;
    text-align: center;
}

.page-hero-tertiary-wrapper.alignment-right {
    justify-content: flex-end;
    text-align: right;
}

.page-hero-tertiary-wrapper.alignment-left .page-hero-tertiary-buttons {
    justify-content: flex-start;
}

.page-hero-tertiary-wrapper.alignment-center .page-hero-tertiary-buttons {
    justify-content: center;
}

.page-hero-tertiary-wrapper.alignment-right .page-hero-tertiary-buttons {
    justify-content: flex-end;
}

.page-hero-tertiary-inner {
    display: flex;
    flex-direction: column;
    row-gap: var(--padding-lg);
}

.page-hero-tertiary-inner>*:last-child{
    margin-bottom: 0;
}

.page-hero-tertiary-title {
    margin-bottom: 0;
}

.page-hero-tertiary-title strong {
    color: var(--primary-button-background-color);
    font-weight: 600;
}

.page-hero-tertiary-content p {
    font: var(--font-body-large);
    margin-bottom: 0;
}

.page-hero-tertiary .page-hero-tertiary-media {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    row-gap: calc( var(--item-row-gap) / 2);
    column-gap: calc( var(--item-column-gap) / 2);
    grid-auto-flow: dense;
}

.page-hero-tertiary .page-hero-tertiary-media div:only-child {
    grid-row: span 3;
    grid-column: span 3;
}

.page-hero-tertiary .page-hero-tertiary-media div:nth-child(3n+1) {
    grid-row: span 2;
}

.page-hero-tertiary .page-hero-tertiary-media div:nth-child(3n+2) {
    grid-row: span 3;
}

.page-hero-tertiary .page-hero-tertiary-media div:nth-child(3n+3) {
    grid-row: span 1;
}

.page-hero-tertiary .page-hero-tertiary-media div:nth-child(3n+4) {
    grid-row: span 3;
}

.page-hero-tertiary .page-hero-tertiary-media div:nth-child(3n+6) {
    grid-row: span 6;
}

.page-hero-tertiary .page-hero-tertiary-video-player :is(iframe, video){
    display: block;
    border: none;
}

.page-hero-tertiary .page-hero-tertiary-media :is(img, iframe, video) {
    width: 100%;
    height: 100%;
    border-radius: var(--element-border-radius);
    object-fit: cover;
}

.page-hero-tertiary-buttons{
    display: flex;
    flex-wrap: wrap;
    column-gap: 8px;
    row-gap: var(--xsmall-column-gap);
    align-items: center;
    margin-top: var(--padding-xs);
}

.page-hero-tertiary-buttons > .secondary-button{
    min-width: auto;
}

@media (max-width: 1025px) {
	body .page-hero-tertiary {
		grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
		padding: 96px 0 80px 0 !important;
	}
	.page-hero-tertiary-title h1 {
		font-size: 40px;
	}
	.page-hero-tertiary-content p {
		font-size: 20px;
	}
	.page-hero-tertiary-buttons {
		column-gap: 8px;
	}
	body .page-hero-tertiary .eyebrow {
		margin-bottom: 0;
	}
}

@media (max-width: 767px) {
    .page-hero-tertiary .page-hero-tertiary-media {
        height: 60rem;
    }
}

@media (min-width: 768px) {
	.page-hero-tertiary-wrapper {
		justify-content: center;
	}
    body .page-hero-tertiary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 568px) {
	body .page-hero-tertiary {
		padding: 64px 0 48px 0 !important;
	}
	.single-use-case .page-hero-tertiary {
		padding-bottom: 0 !important;
	}
	.page-hero-tertiary .page-hero-tertiary-media {
        height: fit-content;
    }
	.page-hero-tertiary-title h1 {
		font-size: 36px;
	}
	.page-hero-tertiary-buttons {
		row-gap: 8px;
		margin-top: 16px;
	}
}
