.casa-galerie-wrapper {
	width: 100%;
}

.casa-galerie-wrapper img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* General styles for .tiles (Kacheln) */
.tiles {
    clear: both;
    display: flex;
}
.tiles h3 {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    font-size: 23px;
}
.tiles p {
    margin-bottom: 2rem;
}
.tiles button {
    margin-top: -25px;
    font-size: 14px !important;
}
.tiles img {
    margin-top: -15px;
    z-index: -1;
    position: relative;
}
.tiles ul {
    padding: 0;
    margin-bottom: 0;
}
.tiles ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}
.tiles ul li {
    list-style: none;
    float: left;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 28px;
}
.tiles .untertitel {
    display: none;
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .tiles ul li {
        width: 50%;
    }
    .tiles ul li:nth-of-type(odd) {
        padding-right: 16px;
    }
    .tiles ul li:nth-of-type(even) {
        padding-left: 16px;
    }
}

@media (min-width: 992px) {
    .tiles ul li {
        width: 25%;
    }
    .tiles ul li:nth-of-type(4n+1) {
        padding-right: 24px;
    }
    .tiles ul li:nth-of-type(4n+2) {
        padding-right: 16px;
        padding-left: 8px;
    }
    .tiles ul li:nth-of-type(4n+3) {
        padding-right: 8px;
        padding-left: 16px;
    }
    .tiles ul li:nth-of-type(4n) {
        padding-left: 24px;
    }
}

.tiles ul li:nth-of-type(even) {
    margin-top: -25px;
}


/* Anpassungen für Projekt-Kacheln */
.tiles .wein-text {
    background: var(--wrp-color-secondary-btn);
    padding: 1px 20px;
    text-align: center;
    height: 100%;
}

.wine-projects > ul {
    display: block;
}

.wine-projects > ul > li {
    margin-top: 0 !important;
}

.wine-projects .tile {
    display: flex;
    opacity: .99;
    position: relative;
}

.wine-projects .tile img {
    margin: 0;
}

.wine-projects .tile .details {
    padding: 100px 20px 20px;
    color: #CCCCCC;
    position: absolute;
    bottom: 0;
    z-index: 3;
    text-align: center;
    width: -webkit-fill-available;
    width: -moz-available;
    background: linear-gradient(to bottom,rgba(0,0,0,0) 0%,rgba(0,0,0,.7) 100%);
}

.wine-projects .tile .details span {
    display: block;
    opacity: 1;
    position: relative;
    top: 0;
}

.wine-projects .tile .details .title {
    line-height: 1;
    font-weight: 600;
    font-size: 18px;
    text-transform: uppercase;
}

.wine-projects .tile .details .info {
    line-height: 1.2;
    margin-top: 5px;
    font-size: 13px;
}

