
section.infoblock {
    margin-top: 2em;
}

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

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

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

section.infoblock.align-left .blockTitle {
    text-align: left;
    margin: 0 0 0.5em 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;
    margin: 0 -1em;
}

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

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

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

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

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

section.infoblock .item .text-wrapper {
    padding: 2em;
}

section.infoblock.columnView .item .text-wrapper {
    padding: 2em 0;
}

section.infoblock.columnView.withBack .item .text-wrapper {
    padding: 2em;
}

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

section.infoblock .item-title {
    margin-bottom: 1em;
    font-weight: bold;
}

section.infoblock .item .img {
    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%;
}

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;
    }
}
