.truncate-multi-line {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    /* Adjust the number of lines as needed */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: justify;
}

.d-flex {
    display: flex;
}

.mb-list__image {
    margin-bottom: 2rem;
}

a.btn.btn-hover-white:hover {
    color: #fff;
}

a.btn:hover {
    color: #fff;
}

.mt-5 {
    margin-top: 5rem;
}





@media (min-width: 992px) {
    .pay-it-forward .images-collage {
        margin-bottom: -70px;
    }
}





.section-gallery .img-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 250px;
    gap: 1.5em;
}

.section-gallery .img-gallery__item {
    position: relative;
    overflow: hidden;
    height: 100%;
    border-radius: 0.4em;
}

.section-gallery .img-gallery__item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Aplicar diseño especial solo a los 3 primeros elementos */
.section-gallery .img-gallery__item:nth-child(3) {
    grid-column: 1 / -1;
    /* Toma las 2 columnas */
    height: 250px;
}

/* Figcaption hover effect */
.section-gallery .img-gallery__item figure {
    margin: 0;
    height: 100%;
    position: relative;
}

.section-gallery .img-gallery__item figcaption {
    position: absolute;
    inset: auto auto 0 0;
    width: 100%;
    padding: 1rem;
    color: white;
    background-color: hsl(0 0% 0% / 90%);
    transition: opacity 0.25s ease-in-out;
    opacity: 0;
}

.section-gallery .img-gallery__item:hover figcaption {
    opacity: 1;
}

/* Contenedor centrado */
.section-gallery .page-container {
    padding: 1.5em;
    max-width: 670px;
    margin: 0 auto;
}





.single-office-title {
    display: flex;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
}

.single-office-title__image {
    width: 20%;
}