.fxb-row > .fxb-wrap {
    display: grid;
    gap: var(--fxb-template-gap, 2em);
}
.fxb-row > .fxb-wrap.fxb-col-align-start {
    align-items: start;
}
.fxb-row > .fxb-wrap.fxb-col-align-center {
    align-items: center;
}
.fxb-row > .fxb-wrap.fxb-col-align-end {
    align-items: end;
}
.fxb-row > .fxb-wrap.fxb-col-align-stretch {
    align-items: stretch;
}
.fxb-row > .fxb-wrap[style*="height:"] {
    overflow: hidden;
}

.fxb-row {
    width: 100%;
    margin-bottom: var(--fxb-template-gap, 2em);
    background-color: var(--fxb-row-bg-color, transparent);
    background-image: var(--fxb-row-bg-image, none);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.fxb-row:last-child {
    margin-bottom: 0;
}
.fxb-row-no-mb {
    margin-bottom: 0;
}

.fxb-row .fxb-col {
    box-sizing: border-box;
    padding: var(--fxb-row-col-padding, 0);
    min-width: 0;
    background-color: var(--fxb-col-bg-color, transparent);
}
.fxb-row > .fxb-wrap.fxb-col-align-stretch > .fxb-col {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Grid templates per layout */
.fxb-row-layout-1 > .fxb-wrap {
    grid-template-columns: 1fr;
}

.fxb-row-layout-12_12 > .fxb-wrap {
    grid-template-columns: 1fr 1fr;
}

.fxb-row-layout-13_23 > .fxb-wrap {
    grid-template-columns: 1fr 2fr;
}

.fxb-row-layout-23_13 > .fxb-wrap {
    grid-template-columns: 2fr 1fr;
}

.fxb-row-layout-13_13_13 > .fxb-wrap {
    grid-template-columns: 1fr 1fr 1fr;
}

.fxb-row-layout-14_14_14_14 > .fxb-wrap {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.fxb-row-layout-15_15_15_15_15 > .fxb-wrap {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}

.fxb-item {
    width: 100%;
}

.fxb-fullwidth {
    box-sizing: border-box;
    position: relative;
    width: 100vw;
    max-width: initial;
    left: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.fxb-fullwidth.fxb-content-contained > .fxb-wrap {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--fxb-content-width, var(--wp--style--global--content-size, 1200px));
    margin-inline: auto;
}

.fxb-wrap img {
    max-width: 100%;
    height: auto;
}
