.tl_editable img {
    max-width: 100%;    
}

.tl_image > img {
    display: block;    
}

.template {
    margin-bottom: 20px;    
}

/***********************************************************************************
*   TEMPLATE TEXT
*/

.template_text .tl_empty {
    min-height: 100px;                
}

/***********************************************************************************
*   TEMPLATE IMAGE
*/

.template_image {
    margin-bottom: 20px;    
}

.template_image .tl_image.tl_empty {
    min-height: 100px;    
}

.template_image .tl_image {
    text-align: center;    
}

.template_image .tl_image > img {
    max-width: 100%;   
}

/***********************************************************************************
*   TEMPLATE IMAGE + TEXT
*/

.template_image_text .tl_image_cont {
    float: left;
    padding-right: 10px;
    padding-bottom: 10px;
    min-width: 100px;
    z-index: 10;
    position: relative;
    max-width: 50%;
}

.template_image_text .tl_content {
    min-height: 20px;    
    z-index: 5;
    margin-bottom: 20px;
    overflow: hidden;
}

.site .template_image_text .tl_image.tl_empty {
    display: none;    
}

.template_image_text .tl_image.tl_empty {
    width: 100px;
    height: 100px;    
}

.template_image_text .tl_desc.tl_empty {
    height: 20px;            
}

.template_image_text .tl_content.tl_empty {
    height: 100px;    
}

.template_image_text.tls_medium .tl_image_cont {
    max-width: 50%;
}

.template_image_text.tls_small .tl_image_cont {
    float: none;
    max-width: none;
    padding: 0;
    padding-bottom: 10px;
}

.template_image_text.tls_small .tl_image > img {
    padding-left: 0 !important;    
    padding-right: 0 !important;    
    margin: auto !important;    
    display: block;
}

/***********************************************************************************
*   TEMPLATE TEXT + IMAGE
*/

.template_text_image .tl_image_cont {
    float: right;
    padding-left: 10px;
    padding-bottom: 10px;
    min-width: 100px;
    min-height: 100px;
    z-index: 10;
    position: relative;
    max-width: 50%;
}

.template_text_image .tl_content {
    min-height: 20px;    
    z-index: 5;
    margin-bottom: 20px;
    overflow: hidden;
}

.site .template_text_image .tl_image.tl_empty {
    display: none;    
}

.template_text_image .tl_image.tl_empty {
    width: 100px;
    height: 100px;    
}

.template_text_image .tl_desc.tl_empty {
    height: 20px;    
}

.template_text_image .tl_content.tl_empty {
    height: 100px;    
}

.template_text_image.tls_medium .tl_image_cont {
    max-width: 50%;
}

.template_text_image.tls_small .tl_image_cont {
    float: none;
    max-width: none;
    padding: 0;
    padding-bottom: 10px;
}

.template_text_image.tls_small .tl_image > img {
    padding-left: 0 !important;    
    padding-right: 0 !important;    
    margin: auto !important;    
    display: block;
}


/***********************************************************************************
*   COLUMN2
*/

.template_column2 > .tl_column {
    width: 49%;
}

.template_column2 > .tl_column > .tl_empty {
    min-height: 100px;    
}

.template_column2 > .tl_left {
    float: left;    
}

.template_column2 > .tl_right {
    float: right;    
}

.template_column2.tls_small > .tl_column {
    float: none;
    width: auto;
    padding-bottom: 20px;
}

/***********************************************************************************
*   COLUMN3
*/

.template_column3 {
    text-align: justify; 
}

.template_column3:after {
    content: "";
    display: inline-block;
    width: 100%;    
}

.template_column3 > * {
    display: inline-block;
    vertical-align: top;
    width: 32%;    
}

.template_column3 > .tl_column > .tl_empty {
    min-height: 100px;    
}

.template_column3 .tl_column {
    text-align: left;    
}

.template_column3.tls_medium .tl_column {
    width: 49%;
}
.template_column3.tls_small .tl_column {
    width: 100%;    
}

.template_column4 {
    text-align: justify; 
}

.template_column4:after {
    content: "";
    display: inline-block;
    width: 100%;    
}

.template_column4 > * {
    display: inline-block;
    vertical-align: top;
    width: 24%;    
}

.template_column4 > .tl_column > .tl_empty {
    min-height: 100px;    
}

.template_column4 .tl_column {
    text-align: left;    
}

.template_column4.tls_medium .tl_column {
    width: 49%;
}
.template_column4.tls_small .tl_column {
    width: 100%;    
}

.template_icon_text { background-image: url(../img/template-text.png) }
.template_icon_image { background-image: url(../img/template-image.png) }
.template_icon_image_text { background-image: url(../img/template-image-text.png) }
.template_icon_text_image { background-image: url(../img/template-text-image.png) }
.template_icon_column2 { background-image: url(../img/template-column2.png) }
.template_icon_column3 { background-image: url(../img/template-column3.png) }

