body{
    background-color: white;
}
.house-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.house-block {
    flex: 1 1 calc(33.333% - 20px); /* 3 items per row with 20px gap */
    box-sizing: border-box;
    margin-bottom: 40px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
    min-width: 300px; /* Prevent too small on small screens */
    color: black;
}

.color-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-item {
    text-align: center;
    text-decoration: none;
    color: white;
    font-weight: bold;
}

.color-item .label {
    margin-top: 5px;
    font-size: 10px;
    color: black;
}

img.house-image {
    max-width: 100%;
    display: block;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .house-block {
        flex: 1 1 100%;
    }
}
/* Popup Overlay */
.popup {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Popup Image */
.popup img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(34, 255, 244, 0.4);
}

/* Close Button */
.popup .close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 1001;
}
