.block {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
}
.block:nth-child(odd) {
    flex-direction: row-reverse;
}
.block-resource {
    line-height: 0;
    flex: 1;
    max-height: 50vw;
    overflow: hidden;
}
.block-resource.half-width {
    flex: 1 1 50%;
}
.block-resource img,
.block-resource video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.block-text {
    flex: 1 1 50%;
    height: 50vw;
    font-size: var(--font-size-2xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem 3rem;
    overflow: hidden auto;
    margin: 0;
}
.block-name {
    font-size: var(--font-size-3xl);
    font-family: var(--font-family-lg);
}
.block-text a {
    padding: 1.4rem 0;
    display: inline-block;
    width: 12rem;
    margin: 0 auto;
    font-family: var(--font-family-md);
    font-size: var(--font-size-md);
    line-height: var(--line-height-sm);
}
.block-description {
    text-align: justify;
    -moz-text-align-last: center;
    text-align-last: center;
    line-height: var(--line-height-lg);
    font-family: var(--font-family-sm);
}

@media only screen and (max-width: 1199px) {
    .block-description {
        font-size: var(--font-size-xl);
        line-height: var(--line-height-lg);
    }
    .block-name h3 {
        font-size: var(--font-size-2xl);
    }
}
@media only screen and (max-width: 767px) {
    .block {
        max-height: inherit;
        flex-direction: column;
        width: 100%;
    }
    .block-resource {
        max-height: inherit;
        height: 100%;
    }
    #cat-name {
        border-bottom: 1px solid rgb(216, 216, 216);
        margin-bottom: 1rem;
        padding: 0 1rem 1rem;
    }
}