:root {
    --fwitem-width: var(--page-width);
    --fwitem-maxwidth: 100vw;
    --fwitem-left: 50%;
    --fwitem-transform: translateX(-50%);
    --fwitem-position: relative;
    --default-border: 1px solid var(--color-stroke);
 }
/* FONTS AND HEADINGS */

.sp-pre-header {
 	color: var(--color-pre-header);
    font: var(--p-small-font);
    text-transform: uppercase;
 }
.sp-main-header {
    color: var(--color-heading-dark);
    text-decoration: unset;
    margin-top: 0;
    margin-bottom: 12px;
}
.sp-hero .sp-main-header {
    color: white;
}
 h1.sp-main-header {
    font: var(--h1-font);
}
h2.sp-main-header {
    font: var(--h2-font);
}
h3.sp-main-header {
    font: var(--h3-font);
}
.sp-intro {
    font: var(--intro-font);
    margin-bottom: 4px;
}
.sp-content-text p:first-of-type {
    margin-top: 0;
}
.sp-content-text p:last-of-type {
    margin-bottom: 0;
}
/* IMAGES */
.sp-image-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-width: 100%;
    min-height: 100%;
    max-width: unset;
}
.sp-contain img {
    object-fit:contain;
 
}
@media (min-width: 768px) {
    .sp-contain img {
        margin-left: var(--text-photo-text-padding);
    }
}
.sp-wide .sp-image-content {
    aspect-ratio: var(--wide-image-aspect);
}
.sp-square .sp-image-content, .sp-product-block .sp-image-content {
    aspect-ratio: 1 / 1;    
}
.sp-tall .sp-image-content {
    aspect-ratio: var(--tall-image-aspect);    
}
.sp-effect-image .sp-image-content img {
    transition: transform 0.6s ease;
}
.sp-effect-image .sp-image-content:hover img {
    transform: scale(1.05); 
}

/* IMAGE BORDER RADIUS */
.sp-image-content {
    border-radius: var(--border-radius-default);
    overflow: hidden;
}
.sp-border .sp-image-content,
.sp-bgcolor .sp-image-content {
    border-radius: unset;
}
.sp-tfpadding .sp-image-content {
    border-radius: unset;
}
/* FULL WITH BLOCKS AND ITEMS - covers the whole page area */
.sp-breaker, 
.sp-hero {
    width: var(--fwitem-width);
    max-width: var(--fwitem-maxwidth);
    left: var(--fwitem-left);
    transform: var(--fwitem-transform);
    position: var(--fwitem-position);
}
/* item spacings */
.sp-text-foto,
.sp-article, .sp-multi-block-wrapper {
    margin-top: var(--block-spacing);
    margin-bottom: var(--block-spacing);
}
.sp-multi-block-wrapper {
    display: flex;
    flex-direction: column;
    gap: calc(var(--block-spacing) / 2);
}
/* ITEMS INSIDE BREAKERS AND OTHER FULLWITH BLOCKS */
.sp-breaker .sp-text-foto,
.sp-breaker .sp-article,
.sp-hero .sp-text-box {
    width: var(--content-width);
    max-width: calc(100% - 2 * var(--mobile-margins));
    margin: 0 auto;
}

/* BREAKERS */
.sp-breaker {
    padding: var(--breaker-padding) var(--mobile-margins);
}
/* HERO */
.sp-hero {
    height: var(--hero-big-height);
}
.sp-hero.sp-hero-small {
    height: var(--hero-small-height);
}
.sp-hero .sp-image-container,
.sp-hero .sp-image-content {
    height: 100%;
    width: 100%;
    border-radius: unset;
}
.sp-hero .sp-text-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-overlay);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
/* TEXT FOTO */
.sp-text-foto {
    border-radius: var(--border-radius-default);
    overflow: hidden;
    display: grid;
}
@media (min-width: 768px) {
    .sp-text-foto {
        grid-template-columns: repeat(2, 1fr);
    }
}
.sp-text-foto.sp-border {
    border: var(--default-border);
}

.sp-text-foto.sp-bgcolor .sp-text-container,
.sp-text-foto.sp-border .sp-text-container {
    padding: var(--mobile-margins);
}
@media (min-width: 768px) {
    .sp-text-foto .sp-text-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-right: var(--text-photo-text-padding);
        paddding-left: 0px !important;
    }
    .sp-text-foto.sp-flipright .sp-text-container {
        order: 2;
        padding-right: unset;
        padding-left: var(--text-photo-text-padding);
    }
    .sp-text-foto.sp-bgcolor .sp-text-container,
    .sp-text-foto.sp-border .sp-text-container {
        padding: var(--text-photo-text-padding);
    }
}

.sp-text-foto.sp-text-over-image {
    display: block;
    position: relative;
}
.sp-text-foto.sp-text-over-image .sp-text-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-overlay);
    color: white !important;
    padding: var(--text-photo-text-padding);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .sp-text-foto.mobile-img-top .sp-image-container {
        order: 1;
    }
    .sp-text-foto.mobile-img-top .sp-text-container {
        order: 2;
    }
}
/* ARTICLE */
.sp-article.sp-bgcolor {
    padding: var(--text-photo-text-padding);
}
.sp-article .sp-text-container {
    width: var(--text-width);
    max-width: 100%;
}
.sp-article.sp-center .sp-text-container {
    margin: 0 auto;
}
.sp-article.sp-right .sp-text-container {
    margin-left: auto;
    margin-right: unset;
}
/* LOOP BLOCKS */
.sp-repeater, ul.products {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
}
@media (min-width: 768px) {
    .sp-col-2 .sp-repeater, ul.products.columns-2, .sp-repeater.sp-col-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .sp-col-3 .sp-repeater, ul.products.columns-3, .sp-repeater.sp-col-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .sp-col-4 .sp-repeater, ul.products.columns-4, .sp-repeater.sp-col-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .sp-col-5 .sp-repeater, ul.products.columns-5, .sp-repeater.sp-col-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    .sp-col-6 .sp-repeater, ul.products.columns-6, .sp-repeater.sp-col-6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}
.sp-repeater-item {
    border-radius: var(--border-radius-default);
    overflow: hidden;
}
.sp-border .sp-repeater-item {
    border: var(--default-border);
}
.sp-border .sp-repeater-item .sp-text-container,
.sp-bgcolor .sp-repeater-item .sp-text-container {
    padding: var(--text-photo-text-padding);
}