/* css tweaks to make nested cloner responsive */

/* this css file is setup via html output configuration (custom css file) */
/* and copied on export to output folder as "styles.css"

/* 1st kill absolute positioning */

.cloner-main>div {
    /* comes with inline styles from skin */
    /* so always use "!important" to overwrite */
    position: relative !important;
    float: left !important;
    right: auto !important;
    /* height: 80vh !important; */
    /* make adaptive for var. heights! */
    top: auto !important;
    /* left and width will be handled in the media queries */
}

/* cloner setup in percent gets pixel values from js on runtime! */
/* so overwrite these values */

.scroller-cloner {
    width: 80% !important;
}

.scroller-cloner .ggskin_scrollarea {
    width: inherit !important;
}

/* switch cloner width with screen width */

@media (max-width: 960px) {
    .scroller-cloner {
        width: 95% !important;
    }
}

.cloner-main .cloner-sub {
    height: auto !important;
}

.cloner-sub>div {
    position: relative !important;
    float: left !important;
    clear: both !important;
    top: auto !important;
}

/* die sub-items haben nur rechts und link einen rand, */
/* also beim letzten element rand und rundungen anstückeln */
.cloner-sub>div:last-child > .ggskin_rectangle {
    margin-bottom: 2px !important;
    padding-bottom: 10px !important;
    border-bottom-left-radius: 10px  !important;
    border-bottom-right-radius: 10px !important;
    border-bottom-width: 2px !important;
}

.scroller-cloner .ggskin_subelement {
    margin: 0 auto !important;
    position: relative !important;
}

/* switch column count with screen width */

@media (max-width: 799px) {
    /* one column */
    .cloner-main>div {
        left: 10% !important;
        width: 80% !important;
        max-width: 80% !important;
    }
}

@media (max-width: 959px) AND (min-width: 800px) {
    /* 2 columns */
    .cloner-main>div {
        left: 2% !important;
        width: 48% !important;
        max-width: 48% !important;
    }
}

@media (max-width: 1023px) AND (min-width: 960px) {
    /* 3 columns */
    .cloner-main>div {
        left: 2% !important;
        width: 32% !important;
        max-width: 32% !important;
    }
}

@media (max-width: 1279px) AND (min-width: 1024px) {
    /* 4 columns */
    .cloner-main>div {
        left: 2% !important;
        width: 24% !important;
        max-width: 24% !important;
    }
}

@media (min-width: 1280px) {
    /* 5 columns */
    .cloner-main>div {
        left: 2.5% !important;
        width: 19% !important;
        max-width: 19% !important;
    }
}

