.boldr-card-stack-layout-elements {
    position: relative;
    padding-bottom: calc(530 / 470 * 100%);
}

.boldr-card-stack-layout-element {
    position: absolute;
}

.boldr-card-stack-layout-element img {
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Sizing */
.boldr-card-stack-layout-element:first-child {
    width: 83%;
}
.boldr-card-layout-first .boldr-card-stack-layout-element:first-child {
    z-index: 9;
}

.boldr-card-stack-layout-element-content {
    position: relative;
}

.boldr-card-stack-layout-element-content-inner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.boldr-card-stack-layout-element:first-child .boldr-card-stack-layout-element-content {
    padding-bottom: calc(530 / 470 * 100%);
}

.boldr-card-stack-layout-element:last-child {
    width: 66%;
}
.boldr-card-stack-layout-element:last-child .boldr-card-stack-layout-element-content {
    padding-bottom: calc(270 / 370 * 100%);
}

/* Positioning */
.boldr-card-stack-top .boldr-card-stack-layout-element:first-child,
.boldr-card-stack-bottom .boldr-card-stack-layout-element:last-child {
    top: 0;
}
.boldr-card-stack-bottom .boldr-card-stack-layout-element:first-child,
.boldr-card-stack-top .boldr-card-stack-layout-element:last-child {
    bottom: 0;
}

.boldr-card-stack-left .boldr-card-stack-layout-element:first-child,
.boldr-card-stack-right .boldr-card-stack-layout-element:last-child {
    left: 0;
}
.boldr-card-stack-left .boldr-card-stack-layout-element:last-child,
.boldr-card-stack-right .boldr-card-stack-layout-element:first-child {
    right: 0;
}
