.contact-page h1 {
    margin-bottom: 48px;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(520px, 1.1fr);
    gap: 64px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Contact block titles: Visit us, General contact, People to contact */
.contact-block h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 30px;
    line-height: 1.2;
}

/* Contact block body text: address, room, email labels, and contact roles */
.contact-block p {
    margin-top: 0;
    margin-bottom: 2px;
    color: #000;
    font-size: 18px;
    line-height: 1.5;
}

/* Contact block links: email addresses */
.contact-block a {
    color: #02cafc;
    font-size: 18px;
    text-decoration: none;
    text-underline-offset: 3px;
}

.contact-block a:hover {
    opacity: 0.6;
}

.contact-map-area {
    min-width: 0;
}

.contact-map {
    width: 100%;
    aspect-ratio: 3 / 2;
    margin-bottom: 16px;
    overflow: hidden;
}

.contact-map a {
    display: block;
    width: 100%;
    height: 100%;
}

.contact-map img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Google Maps link below building photo */
.contact-map-link {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 18px;
}

.contact-map-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: #02cafc;
    text-decoration: none;
    text-underline-offset: 3px;
}

.contact-map-pin {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;

    fill: currentColor;
}

.contact-map-link a:hover {
    opacity: 0.6;
}

@media screen and (max-width: 960px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-map-area {
        order: -1;
    }
}

@media screen and (max-width: 640px) {
    .contact-page h1 {
        margin-bottom: 36px;
    }

    .contact-info {
        gap: 32px;
    }
}