/* Navigation */
.primary-nav-desktop-nav-search {
    position: relative;
}

/* Single Posts */
.single-post .single-post-content.wp-block-group,
.single-equipment-resources .single-post-content.wp-block-group,
.single-case-study .single-post-content.wp-block-group {
    margin: 0 auto;
    max-width: calc(800px + 5rem);
    padding: 0 1rem;
    padding-bottom: 3rem;
}

.single-post .single-post-related.wp-block-group > *,
.single-equipment-resources .single-post-related.wp-block-group > *,
.single-podcast .single-podcast-related.wp-block-group > *,
.single-case-study .single-post-related.wp-block-group > * {
    margin: 0 auto;
    max-width: calc(1400px + 5rem);
    padding: 0 1rem;
}

@media (min-width: 768px) {

    .single-post .single-post-content.wp-block-group,
    .single-equipment-resources .single-post-content.wp-block-group,
    .single-case-study .single-post-content.wp-block-group {
        padding: 0 2.5rem;
    }

    .single-post .single-post-related.wp-block-group > *,
    .single-equipment-resources .single-post-related.wp-block-group > *,
    .single-podcast .single-podcast-related.wp-block-group > *,
    .single-case-study .single-post-related.wp-block-group > * {
        padding: 0 2.5rem;
    }
}

/* Possibly move these into different files */
.wp-block-post-terms a {
    background-color: var(--heritage);
    border-radius: 1rem;
    color: var(--white);
    font-size: 0.875rem;
    margin-right: 0.5rem;
    padding: 0.25rem 0.75rem;
}

.single-post .single-post-content.wp-block-group .wp-block-post-title,
.single-equipment-resources .single-post-content.wp-block-group .wp-block-post-title,
.single-case-study .single-post-content.wp-block-group .wp-block-post-title {
    font-size: 1.8125rem;
    line-height: 2.25rem;
    margin: 0.5rem 0 3rem;
}

.single-post .single-post-content.wp-block-group .wp-block-post-featured-image,
.single-equipment-resources .single-post-content.wp-block-group .wp-block-post-featured-image,
.single-case-study .single-post-content.wp-block-group .wp-block-post-featured-image {
    margin-bottom: 2.25rem;
}

.single-post .single-post-content.wp-block-group .entry-content > .wp-block-group > *,
.single-equipment-resources .single-post-content.wp-block-group .entry-content > .wp-block-group > *,
.single-case-study .single-post-content.wp-block-group .entry-content > .wp-block-group > * {
    margin-bottom: 1rem;
    margin-top: 0;
}

.single-post .single-post-related.wp-block-group,
.single-equipment-resources .single-post-related.wp-block-group,
.single-podcast .single-podcast-related.wp-block-group,
.single-case-study .single-post-related.wp-block-group {
    background-color: var(--lightest-grey);
    padding-bottom: 3rem;
    padding-top: 3rem;
}

.single-post .single-post-related.wp-block-group ul.wp-block-post-template > li.wp-block-post,
.single-equipment-resources .single-post-related.wp-block-group ul.wp-block-post-template > li.wp-block-post,
.single-podcast .single-podcast-related.wp-block-group ul.wp-block-post-template > li.wp-block-post,
.single-case-study .single-post-related.wp-block-group ul.wp-block-post-template > li.wp-block-post {
    margin-bottom: 2.5rem;
}

.single-post .single-post-related.wp-block-group ul.wp-block-post-template > li.wp-block-post:last-of-type,
.single-equipment-resources .single-post-related.wp-block-group ul.wp-block-post-template > li.wp-block-post:last-of-type,
.single-podcast .single-podcast-related.wp-block-group ul.wp-block-post-template > li.wp-block-post:last-of-type,
.single-case-study .single-post-related.wp-block-group ul.wp-block-post-template > li.wp-block-post:last-of-type {
    margin-bottom: 0;
}

.single-post .single-post-related.wp-block-group .wp-block-heading,
.single-post .single-post-related.wp-block-group .wp-block-group,
.single-equipment-resources .single-post-related.wp-block-group .wp-block-heading,
.single-equipment-resources .single-post-related.wp-block-group .wp-block-group,
.single-podcast .single-podcast-related.wp-block-group .wp-block-heading,
.single-podcast .single-podcast-related.wp-block-group .wp-block-group,
.single-case-study .single-post-related.wp-block-group .wp-block-heading,
.single-case-study .single-post-related.wp-block-group .wp-block-group {
    background-color: transparent;
}

.single-post .single-post-related.wp-block-group .wp-block-heading,
.single-equipment-resources .single-post-related.wp-block-group .wp-block-heading,
.single-podcast .single-podcast-related.wp-block-group .wp-block-heading,
.single-case-study .single-post-related.wp-block-group .wp-block-heading {
    font-size: 1.8125rem;
    line-height: 2.25rem;
    margin-bottom: 2rem;
}

.single-post .single-post-related.wp-block-group .wp-block-post-featured-image,
.single-equipment-resources .single-post-related.wp-block-group .wp-block-post-featured-image,
.single-podcast .single-podcast-related.wp-block-group .wp-block-post-featured-image,
.single-case-study .single-post-related.wp-block-group .wp-block-post-featured-image {
    align-items: center;
    aspect-ratio: 16 / 9;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    overflow: hidden;
    text-align: center;
}

.single-post .single-post-related.wp-block-group .wp-block-post-title,
.single-equipment-resources .single-post-related.wp-block-group .wp-block-post-title,
.single-podcast .single-podcast-related.wp-block-group .wp-block-post-title,
.single-case-study .single-post-related.wp-block-group .wp-block-post-title {
    font-size: 1.5rem;
    line-height: 1.75rem;
    margin-top: 1rem;
}

@media (min-width: 768px) {

    .single-post .single-post-content.wp-block-group .wp-block-post-title,
    .single-equipment-resources .single-post-content.wp-block-group .wp-block-post-title,
    .single-case-study .single-post-content.wp-block-group .wp-block-post-title {
        font-size: 3.375rem;
        line-height: 4rem;
        margin: 1rem 0 3.5rem;
    }

    .single-post .single-post-content.wp-block-group .wp-block-post-featured-image,
    .single-equipment-resources .single-post-content.wp-block-group .wp-block-post-featured-image,
    .single-case-study .single-post-content.wp-block-group .wp-block-post-featured-image {
        margin-bottom: 3.5rem;
    }

    .single-post .single-post-content.wp-block-group,
    .single-equipment-resources .single-post-content.wp-block-group,
    .single-case-study .single-post-content.wp-block-group {
        margin-bottom: 6.5rem;
    }

    .single-post .single-post-related.wp-block-group,
    .single-equipment-resources .single-post-related.wp-block-group,
    .single-podcast .single-podcast-related.wp-block-group,
    .single-case-study .single-post-related.wp-block-group {
        padding-bottom: 6.5rem;
        padding-top: 6.5rem;
    }

    .single-post .single-post-related.wp-block-group li.wp-block-post > .wp-block-group,
    .single-equipment-resources .single-post-related.wp-block-group li.wp-block-post > .wp-block-group,
    .single-podcast .single-podcast-related.wp-block-group li.wp-block-post > .wp-block-group,
    .single-case-study .single-post-related.wp-block-group li.wp-block-post > .wp-block-group {
        display: flex;
        justify-content: space-between;
    }

    .single-post .single-post-related.wp-block-group li.wp-block-post > .wp-block-group > .wp-block-post-featured-image,
    .single-equipment-resources .single-post-related.wp-block-group li.wp-block-post > .wp-block-group > .wp-block-post-featured-image,
    .single-podcast .single-podcast-related.wp-block-group li.wp-block-post > .wp-block-group > .wp-block-post-featured-image,
    .single-case-study .single-post-related.wp-block-group li.wp-block-post > .wp-block-group > .wp-block-post-featured-image {
        flex-basis: 34%;
        margin-bottom: 0;
    }

    .single-post .single-post-related.wp-block-group li.wp-block-post > .wp-block-group > .wp-block-group,
    .single-equipment-resources .single-post-related.wp-block-group li.wp-block-post > .wp-block-group > .wp-block-group,
    .single-podcast .single-podcast-related.wp-block-group li.wp-block-post > .wp-block-group > .wp-block-group,
    .single-case-study .single-post-related.wp-block-group li.wp-block-post > .wp-block-group > .wp-block-group {
        flex-basis: 62.5%;
    }

    .single-post .single-post-related.wp-block-group .wp-block-heading,
    .single-equipment-resources .single-post-related.wp-block-group .wp-block-heading,
    .single-podcast .single-podcast-related.wp-block-group .wp-block-heading,
    .single-case-study .single-post-related.wp-block-group .wp-block-heading {
        font-size: 3.375rem;
        line-height: 4rem;
        margin-bottom: 4rem;
    }
}

@media (min-width: 1200px) {

    .single-post .single-post-related.wp-block-group,
    .single-equipment-resources .single-post-related.wp-block-group,
    .single-podcast .single-podcast-related.wp-block-group,
    .single-case-study .single-post-related.wp-block-group {
        padding-bottom: 4rem;
    }

    .single-post .single-post-related.wp-block-group ul.wp-block-post-template,
    .single-equipment-resources .single-post-related.wp-block-group ul.wp-block-post-template,
    .single-podcast .single-podcast-related.wp-block-group ul.wp-block-post-template,
    .single-case-study .single-post-related.wp-block-group ul.wp-block-post-template {
        display: flex;
        flex-wrap: wrap;
    }

    .single-post .single-post-related.wp-block-group ul.wp-block-post-template > li.wp-block-post,
    .single-equipment-resources .single-post-related.wp-block-group ul.wp-block-post-template > li.wp-block-post,
    .single-podcast .single-podcast-related.wp-block-group ul.wp-block-post-template > li.wp-block-post,
    .single-case-study .single-post-related.wp-block-group ul.wp-block-post-template > li.wp-block-post {
        flex-basis: calc(33.3333% - 1.6666rem);
        margin-right: 2.5rem;
    }

    .single-post .single-post-related.wp-block-group ul.wp-block-post-template > li.wp-block-post:nth-of-type(3n),
    .single-equipment-resources .single-post-related.wp-block-group ul.wp-block-post-template > li.wp-block-post:nth-of-type(3n),
    .single-podcast .single-podcast-related.wp-block-group ul.wp-block-post-template > li.wp-block-post:nth-of-type(3n),
    .single-case-study .single-post-related.wp-block-group ul.wp-block-post-template > li.wp-block-post:nth-of-type(3n) {
        margin-right: 0;
    }

    .single-post .single-post-related.wp-block-group li.wp-block-post > .wp-block-group,
    .single-equipment-resources .single-post-related.wp-block-group li.wp-block-post > .wp-block-group,
    .single-podcast .single-podcast-related.wp-block-group li.wp-block-post > .wp-block-group,
    .single-case-study .single-post-related.wp-block-group li.wp-block-post > .wp-block-group {
        display: block;
    }

    .single-post .single-post-related.wp-block-group li.wp-block-post > .wp-block-group > .wp-block-post-featured-image,
    .single-equipment-resources .single-post-related.wp-block-group li.wp-block-post > .wp-block-group > .wp-block-post-featured-image,
    .single-podcast .single-podcast-related.wp-block-group li.wp-block-post > .wp-block-group > .wp-block-post-featured-image,
    .single-case-study .single-post-related.wp-block-group li.wp-block-post > .wp-block-group > .wp-block-post-featured-image {
        margin-bottom: 1.5rem;
    }
}

/* Single Podcasts */
.single-podcast-content .wp-block-post-date,
.single-podcast-content .wp-block-post-title,
.single-podcast-content .entry-content > p,
.single-podcast-content .wp-block-buttons > .wp-block-button {
    margin-bottom: 1rem;
}

.single-podcast-content .wp-block-button {
    width: 100%;
}

.single-podcast-content .wp-block-button__link {
    display: block;
    text-align: center;
}

.single-podcast-content > p {
    font-size: 0.875rem;
    line-height: 1.25rem;
    margin-bottom: 3rem !important;
}

.single-podcast-authors > .wp-block-group {
    flex-direction: column;
}

.single-podcast-authors > .wp-block-group {
    margin-bottom: 3rem !important;
    margin-left: auto;
    margin-right: auto;
    max-width: 1400px;
}

.single-podcast-authors .wp-block-image {
    margin-bottom: 1rem;
}

.single-podcast-authors .wp-block-heading {
    font-size: 1.3125rem;
    line-height: 1.5rem;
    margin-bottom: 0.5rem;
}

.single-podcast-related .media-hub-archive .wp-block-post-template > li.wp-block-post.podcast:not(:first-of-type) .wp-block-post-featured-image {
    display: block;
}

.single-podcast-related .media-hub-archive .wp-block-post-template > li.wp-block-post.podcast:not(:last-of-type) {
    border-bottom: none;
}

@media (max-width: 767px) {

    .single-podcast-content .wp-block-group,
    .single-podcast-authors .wp-block-group,
    .single-podcast-authors .wp-block-heading {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (min-width: 768px) {

    .single-podcast-content > *,
 
    .single-podcast-authors > * {
        padding-left: 2.5rem !important;
        padding-right: 2.5rem !important;
    }

    .single-podcast-content .entry-content > p {
        margin-bottom: 2.5rem;
    }

    .single-podcast-content > .wp-block-buttons {
        margin-top: 2.5rem;
    }

    .single-podcast-content .wp-block-buttons > .wp-block-button {
        margin-bottom: 2rem;
    }

    .single-podcast-content > p {
        font-size: 0.9375rem;
    }

    .single-podcast-authors > .wp-block-group {
        margin-bottom: 6.5rem !important;
    }

    .single-podcast-authors .wp-block-image {
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .single-podcast-authors .wp-block-heading {
        font-size: 2.3125rem;
        line-height: 2.75rem;
        margin-bottom: 1rem;
    }
}

@media (min-width: 1024px) {

    .single-podcast-content > *,
 
    .single-podcast-authors > * {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .single-podcast-content > p {
        margin-bottom: 6.5rem !important;
    }

    .single-podcast-authors > .wp-block-group {
        flex-direction: row;
        gap: 5rem;
        justify-content: space-between;
    }

    .single-podcast-authors > .wp-block-group:first-of-type {
        flex-direction: row-reverse;
    }

    .single-podcast-authors > .wp-block-group > * {
        flex-basis: 47%;
    }
}

/* Single Webinars */
.webinar-single-meta.webinar-single-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.5rem auto 3rem;
}

.webinar-single-meta > *,
 
.webinar-single-meta .webinar-date {
    font-size: 1rem;
    line-height: 1.5rem;
}

@media (min-width: 768px) {

    .webinar-single-meta.webinar-single-meta {
        flex-direction: row;
        margin: 1rem auto 3.5rem;
    }

    .webinar-single-meta > * {
        position: relative;
    }

    .webinar-single-meta > *,
 
    .webinar-single-meta .webinar-date {
        font-size: 1.125rem;
    }

    .webinar-single-meta > *:not(:last-of-type)::after {
        content: "•";
        margin-left: 0.5rem;
    }
}

