/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

 .agi-post-grid {
    margin: 30px 0;
}

.agi-post-grid .pagination {
    margin-top: 15px;
}

.grid-row.grid-image {
    margin: 10px 0;
}

.grid-row a {
    text-decoration: none;
}

h4.agi-grid-title {
    margin-bottom: 0;
}

.grid-thumbnail-1.grid-image img {
    aspect-ratio: 4 / 3;
}

.grid-thumbnail-2.grid-image img {
    aspect-ratio: 1 / 1;
}

.grid-thumbnail-3.grid-image img {
    aspect-ratio: 16 / 9;
}

.grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: auto;
}

.grid-row,
.grid-row>* {
    line-height: 1;
}

.grid-row {
    margin-bottom: 10px;
}

.grid-row:last-child {
    margin-bottom: 0;
}

.alignfull figcaption {
    text-align: center;
}

body .agi-post-grid.alignfull {
    margin: 30px calc(50% - 50vw);
    max-width: 100vw;
    width: 100vw;
}

body .agi-post-grid.alignwide {
    margin: 30px calc(50% - 50vw + 47px) !important;
    max-width: calc(100vw - 94px) !important;
}

@media(max-width: 768px) {
    body .agi-post-grid.alignwide {
        margin: 30px calc(50% - 50vw + 27px) !important;
        max-width: calc(100vw - 54px) !important;
    }
}

.agi-filter-term {
    margin-bottom: 5px;
}