.header-image {
    width: 100vw;
    height: 80vh;
    background-image: url("../media/optimised/006.webp");
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    margin-bottom: 2em;
}

.header-image.homepage {
    height: 100vh;
}

.header-image .content {
    position: absolute;
    background-color: rgba(255, 255, 255, .5);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-image .content h1 {
    font-size: 4em;
    color: var(--dark);
    font-family: "Roboto", sans-serif;
    width: 70%;
}

.header-image#outside {
    background-image: url("../media/optimised/144.webp");
}

.header-image#garden {
    background-image: url("../media/optimised/017.webp");
}

.header-image#ground-floor {
    background-image: url("../media/optimised/043.webp");
}

.header-image#first-floor {
    background-image: url("../media/optimised/108.webp");
}

h2 {
    text-align: center;
    font-size: 3em;
    color: var(--dark);
}

#image-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 5em 0;
}

#image-cards .card {
    width: calc(49% - .5em);
    background-color: var(--secondary);
    margin-bottom: 2em;
    box-sizing: border-box;
    padding: 1.5em;
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
    gap: 2em;
}

#image-cards .card img {
    height: 40vh;
    border-radius: .5em;
    object-fit: cover;
    object-position: top center;
}

#image-cards .card div h2 {
    font-size: 1.8em;
    text-align: left;
}


#image-cards .card a {
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: gap .3s cubic-bezier(0.175, 0.885, 0.32, 1.5);
}

#image-cards .card a:hover {
    gap: 2.5rem;
}

#interested {
    background-color: var(--primary);
    text-align: center;
    font-size: 1em;
    color: var(--light);
    padding: 2em 10vw 3em 10vw;
}

#interested h2 {
    font-size: 2em;
    color: var(--light);
}

#interested a {
    color: var(--primary);
    background-color: var(--light);
    font-size: 1em;
    font-family: "Playfair Display", serif;
    padding: .6em .8em;
    text-transform: uppercase;
    border-radius: .3em;
}

#contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 5vh 0 10vh 0;
}

#contact-info a {
    padding: 1rem 2rem;
    background-color: var(--primary);
    color: var(--light);
    border-radius: .3em;
    transition: .2s;
}

#contact-info a:hover {
    filter: brightness(.9);
}

@media screen and (max-width: 1000px) {
    .header-image {
        background-attachment: unset;
    }
}

@media screen and (max-width: 700px) {
    .header-image {
        height: 80vw;
    }

    .header-image .content h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 2em;
    }

    #image-cards {
        flex-direction: column;
    }
    
    #image-cards .card {
        width: 100%;
        gap: 1.5em;
    }
    
    #image-cards .card img {
        height: 40vh;
    }
    
    
    #image-cards .card a {
        gap: 1rem;
    }

    #image-cards .card a:hover {
        gap: 1.6rem
    }

    #interested {
        font-size: 1.2em;
    }
    
    #interested a {
        font-size: .9em;
        margin-top: 3rem;
    }
}

@media screen and (max-width: 400px) {
    .header-image {
        height: 50vh;
    }

    #interested {
        font-size: 1em;
    }
}