.gallery {
    /* height wird im Javascript gesetzt */
    overflow: hidden;
    text-align: center;
    box-sizing: border-box;
}

.gallery img { /* update */
    width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    position: relative; /* wird per JS NACH dem Laden in absolute gesetzt, sonst kann aber die Höhe nicht bestimmt werden */
    left: 0px;
    display: inline-block;
    box-sizing: border-box;
}

.galleryNav {
    font-size: 1.7em;
    font-weight: bold;
    cursor: pointer;
}

.galleryNav .icon {
}

.bildunterschrift .small {
    font-size: 0.4em;
}

.bb, .bb img {
    box-sizing: border-box;
}

.inline {
    display: inline;
}

.transparent {
    opacity: 0;
    height: 0px !important;
    display: none !important;
}

.transparent_anim {
    opacity: 0;
    height: 0px !important;
    transition: opacity 0.5s linear;
}

.solid {
    opacity: 1;
    height: auto !important;
}

.solid_anim {
    opacity: 1;
    height: auto !important;
    transition: opacity 0.5s linear;
}

.gallery.slider { height: auto;
    box-sizing: border-box;
}

.preview {
    margin: inherit;
    display: flex;
    flex-direction: row;
}

.preview li {
    flex-grow: 1;
    padding: 5px;
}

.preview li img {
    width: 100%;
}

/* customizing */
.texte {
    padding-top: 40px;
    padding-left: 4%;
    position: absolute;
    font-size: 2.4em;
    white-space: nowrap;
    text-align: left;
    line-height: 1.3em;
    z-index: 2;
    background-color: white;
    height: 200px;
}

.texte:after {
    content: ' ';
    height: 200px;
    width: 200px;
    background-image: url('../images/background/dreieck_weiss.html');
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    right: -200px;
    display: inline-block;
}

.gallery dt { /* update */
    /* breite und höhe wird per JS gesetzt */
    position: relative;
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: 100%;
}

/* Custom */
.imgcaption {
    margin: 10px 0;
}

.gallery img {
    max-width: 100%;
    max-height: 100% !important;
    width: auto;
    height: auto !important;
}

.gallery .img {
    width: 100%;
    height: 250px;
    position: relative;
    background: #eaeaea;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Unfertige Referenzen nur auf Live ausblenden.
.Landwirtschaft .referenz:nth-of-type(n+16), 
.Gewerbe .referenz:nth-of-type(n+17){
    display: none;
}

.Pferde .referenz:nth-of-type(n+17) {
    display: none;
}
*/

/*
#Produktdetails .imagegallery {
	text-align:left;
	box-sizing:border-box;
}
#Produktdetails .imagegallery ul {
	list-style-type:none;
	box-sizing:border-box;
	margin-top:20px;
}
#Produktdetails .imagegallery li {
	display:inline-block;
	box-sizing:border-box;
	cursor:pointer;
	width:17%;
}
#Produktdetails .imagegallery li:first-child, 
#Produktdetails .imagegallery li:last-child {
	width:2.4%;
	display:none;
}
#Produktdetails .imagegallery li:first-child img, 
#Produktdetails .imagegallery li:last-child img {
	width:100%;
}
#Produktdetails .imagegallery .box {
}
#Produktdetails .imagegallery .box img {
	width:100%;
}
*/
