/* Images Grid */
.house-images-row {
    position: relative;
}
.house-images-row.hidden {
    max-height: 500px;
    overflow: hidden;
    pointer-events: none;
}
.house-images-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
    z-index: 2;
}
.house-images-fade.hidden {
    display: none;
}
/* Create four equal columns that sits next to each other */
.house-images-column {
    position: relative;
    z-index: 1;
    padding: 2px;
    margin-top: 10px;
    height: 300px;
}
.house-images-column {
    overflow: hidden;
}
.house-images-column-img {
    width: 100%;
    max-width: 100%;
    transition-duration: 0.2s;
    transform: scale(1);
    object-fit: cover;
    object-position: center;
    height: 100%;
    max-height: 100%;
    transform-origin: center center;
}
.house-images-column-img:hover {
    cursor: pointer;
    transition-duration: 0.4s;
    transform: scale(1.05);
}
/* Gallery modal */
#galleryModal .modal-dialog{
    width: auto;
    max-width: 100%;
}
#galleryModal .carousel,
#galleryModal .carousel-inner,
#galleryModal .carousel-item {
    height: 100%;
}

#galleryModal .modal-content{
    border: 0;
    background-color: transparent !important;
}
#galleryModal .carousel-item {
    align-items: center;
    align-content: center;
    justify-content: center;
}
#galleryModal .carousel-item.active,
#galleryModal .carousel-item-next,
#galleryModal .carousel-item-prev {
    display: flex;
}
#galleryModal img {
    height: auto;
    object-fit: fill;
    max-height: 90vh;
}

@media (max-width: 600px){
    #galleryModal img {
        width: 100%;
    }
}