
section.infoblock {
    margin: 3em 0;
    --items-gapX: 2em;
    --items-gapY: 2em;
}

section.infoblock.withBack {
    background-color: #f2f2f2;
    padding: 3em 0;
    margin: 0;
}

section.infoblock .blockTitle:empty,
section.infoblock .blockDescription:empty,
section.infoblock .item-description:empty {
    display: none;
}

section.infoblock .blockTitle {
    text-align: center;
    margin: 0 auto 2em;
    max-width: 960px;
}

section.infoblock.align-left .blockTitle {
    text-align: left;
    margin: 0 0 2em 0;
    max-width: unset;
}

section.infoblock .blockDescription {
    margin: 2em auto;
    max-width: 960px;
    text-align: center;
}

section.infoblock.align-left .blockDescription {
    margin: 2em 0;
    max-width: unset;
    text-align: left;
}

section.infoblock .items {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-flow: row;
    flex-wrap: wrap;
    gap: var(--items-gapY) var(--items-gapX);
}

section.infoblock .items.textAlignX-center .text-wrapper {
    text-align: center;
    flex-grow: 1;
}

section.infoblock .items.textAlignX-center .text-wrapper .item-description {
    text-align: center;
}

section.infoblock .items.textAlignY-center,
section.infoblock .items.textAlignY-center .item {
    align-items: center;
}

section.infoblock.columnView .items .item {
    align-items: center;
    justify-content: flex-start;
    flex-flow: column;
}

section.infoblock.columnView .items .item .img + .text-wrapper {
    margin-top: 1em;
}

section.infoblock.withBack.columnView .items .item .img + .text-wrapper {
    margin: 0;
}

section.infoblock.align-left .items {
    justify-content: flex-start;
}

section.infoblock .item {
    /*width: calc(50% - 2em);*/
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-flow: row;
    flex-wrap: nowrap;
    width: var(--minWidth);
    flex-grow: 1;
    flex-shrink: 0;
    gap: 0 calc(var(--items-gapX) / 2);
}

section.infoblock .items .item:first-child {
    max-width: min(100%, var(--maxWidth));
}

section.infoblock.withBack .item {
    background-color: #fff;
    gap: 0;
}

section.infoblock.withBack .item .text-wrapper {
    padding: 2em;
    flex-grow: 1;
}

section.infoblock.columnView .item .text-wrapper {
}

section.infoblock.columnView.withBack .item .text-wrapper {
}

section.infoblock .item .text-wrapper > .button {
    margin-top: 1em;
}

section.infoblock .item-title {
    margin: 0;
}

section.infoblock .item-title:not(:empty) + .item-description:not(:empty) {
    margin-top: 1em;
}

section.infoblock .item .img {
    align-self: stretch;
    display: block;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat !important;
    width: 30%;
    flex-grow: 0;
    flex-shrink: 0;
    min-height: var(--minImageHeight);
    position: relative;
    text-align: center;
}

section.infoblock.columnView .item .img {
    height: var(--maxImageHeight);
    max-height: var(--maxImageHeight);
    width: 100%;
    overflow: hidden;
}

section.infoblock .item .img.with-background {
    border-radius: var(--box-radius);
}

section.infoblock .item .img.with-background:after {
    content: '';
    position: absolute;
    background-color: rgba(0, 0, 0, 0.05);
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
}

section.infoblock .item .img.pure {
    min-height: unset;
    /*height: unset;  */
    display: flex;
    align-items: center;
    justify-content: center;
}

section.infoblock .item .img img {
    max-width: 100%;
    max-height: 100%;
}

@media screen and (max-width: 1000px) {
    section.infoblock .item {
        /*width: 100%;*/
        /*margin: 1em 0;*/
        /*max-width: 600px;*/
    }
}

@media screen and (max-width: 500px) {
    section.infoblock.rowView .item {
        flex-flow: column;
        align-items: center;
    }

    section.infoblock.rowView .item .img {
        width: 100%;
        height: var(--maxImageHeight);
    }

    section.infoblock.rowView .item .item-title {
        text-align: center;
    }
}
