/* ==========================================================================
   Home page: building gallery
   Heading row (title/subtitle + desktop "view gallery" link) above a grid
   of building cards (photo + title + Type/Owner/Size meta). Desktop wraps
   everything in a dashed border, like home-promises. Mobile stacks the
   cards and the link becomes a full-width bordered button below.
   ========================================================================== */

.home-building-gallery {
    padding: 80px 0;
}

.home-building-gallery__heading {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-building-gallery__title {
    color: var(--hpb-color-dark);
}

.home-building-gallery__text {
    margin-top: 16px;
}

.home-building-gallery__link--desktop {
    display: none;
}

.home-building-gallery__items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
}

.home-building-gallery__item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    background: var(--hpb-color-blue-light);
    text-decoration: none;
}

.home-building-gallery__image {
    display: block;
    width: 100%;
    height: 200px;
}

.wrapper .home-building-gallery__image img,
.home-building-gallery__image img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    vertical-align: top;
}

.home-building-gallery__content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: space-between;
    flex-grow: 1;
}

.home-building-gallery__item-title {
    color: var(--hpb-color-dark);
}

.home-building-gallery__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.home-building-gallery__meta-row {
    font-family: var(--hpb-font-family-base);
    font-size: var(--hpb-font-size-12);
    line-height: 20px;
    color: var(--hpb-color-dark-70);
}

.home-building-gallery__meta-label {
    font-weight: var(--hpb-fw-bold);
    text-transform: uppercase;
}

.home-building-gallery__link--mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 40px;
}

@media (min-width: 750px) {
    .home-building-gallery__items {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .home-building-gallery__item {
        width: calc(50% - 8px);
    }
    .home-building-gallery__image {
        height: 287px;
    }
    .home-building-gallery__meta-row {
        font-weight: var(--hpb-fw-medium);
        display: flex;
        gap: 16px;
    }
    .home-building-gallery__meta-label {
        width: 56px;
        font-weight: var(--hpb-fw-medium);
        color: var(--hpb-color-dark-50);
    }
}

@media (min-width: 992px) {
    .home-building-gallery {
        padding: 120px 0;
    }

    .home-building-gallery__heading {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }

    .home-building-gallery__link--desktop {
        display: inline-flex;
        flex-shrink: 0;
        text-decoration: underline;
    }

    .home-building-gallery__link--mobile {
        display: none;
    }

    .home-building-gallery__items {
        margin-top: 64px;
    }

    .home-building-gallery__item {
        width: calc(25% - 12px);
    }
    .home-building-gallery__content {
        padding: 24px;
        gap: 16px;
    }
    .home-building-gallery__meta-row {
        font-size: var(--hpb-font-size-14);
    }
}
