/* Avoid the other FontAwesome declarations in the shared page footer. */
@font-face {
    font-family: GuioesIcons;
    src: url('../fonts/fontawesome-webfont.woff2?v=4.6.2') format('woff2'),
         url('../fonts/fontawesome-webfont.woff?v=4.6.2') format('woff');
    font-style: normal;
    font-weight: normal;
    font-display: block;
}

.container.guioes-highlights,
#maincontainer .container.guioes-highlights {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 1170px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
}

#js-grid-lightbox-gallery {
    --guioes-columns: 1;
    /* Cube Portfolio measures the outer width, so padding clips its cards. */
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 0;
}

/* Keep the title and subtitle together in both caption states. */
#js-grid-lightbox-gallery .guioes-card-content {
    box-sizing: border-box;
    display: grid;
    grid-template-rows: minmax(0, 1fr) 44px;
    gap: 20px;
    width: 100%;
    height: 300px;
    padding: 28px 20px 24px;
    text-align: center;
}

#js-grid-lightbox-gallery .guioes-card-content h1,
#js-grid-lightbox-gallery .guioes-card-content p,
#js-grid-lightbox-gallery .guioes-card-content i {
    display: block;
    min-width: 0;
    margin: 0;
}

#js-grid-lightbox-gallery .guioes-card-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

#js-grid-lightbox-gallery .guioes-card-text h1 {
    font-size: 28px !important;
    line-height: 1.15;
    hyphens: none;
    overflow-wrap: break-word;
}

#js-grid-lightbox-gallery .guioes-card-text p {
    margin-top: 8px;
}

#js-grid-lightbox-gallery .guioes-card-text p:empty {
    display: none;
}

#js-grid-lightbox-gallery .guioes-card-content i {
    justify-self: center;
    align-self: end;
    font-family: GuioesIcons;
    font-size: 44px;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
}

@media (min-width: 768px) {
    #js-grid-lightbox-gallery {
        --guioes-columns: 2;
        max-width: none;
    }

    #js-grid-lightbox-gallery .guioes-card-content {
        height: 280px;
        grid-template-rows: minmax(0, 1fr) 40px;
        padding: 24px 20px 20px;
    }

    #js-grid-lightbox-gallery .guioes-card-text h1 {
        font-size: 32px !important;
    }

    #js-grid-lightbox-gallery .guioes-card-content i {
        font-size: 40px;
    }
}

@media (min-width: 1200px) {
    #js-grid-lightbox-gallery {
        --guioes-columns: 4;
    }

    #js-grid-lightbox-gallery .guioes-card-content {
        height: 400px;
        grid-template-rows: minmax(0, 1fr) 56px;
        gap: 24px;
        padding: 40px 16px 32px;
    }

    #js-grid-lightbox-gallery .guioes-card-text h1 {
        font-size: 40px !important;
    }

    #js-grid-lightbox-gallery .guioes-card-content i {
        font-size: 56px;
    }
}

@media (max-width: 767px) {
    .container.guioes-highlights,
    #maincontainer .container.guioes-highlights {
        padding-right: 20px !important;
        padding-left: 20px !important;
    }

    .guioes-highlights > p {
        text-align: left !important;
        line-height: 1.6;
    }
}
