/* Reviews page layout: two columns from 768px up, slightly smaller type,
   and a Load more control. Scoped to the Reviews page. */

.page-template-reviews .alena-reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25em;
    justify-items: center;
}

.page-template-reviews .review {
    box-sizing: border-box;
}

.page-template-reviews .review-date {
    margin-top: 0.4em;
    color: #555;
}

.alena-reviews-more {
    text-align: center;
    margin: 2.5em 0 3em;
}

.alena-reviews-load-more,
a.alena-reviews-all-link {
    font-family: Heebo, sans-serif;
    font-weight: 300;
    font-size: 1em;
    line-height: 1.4;
    background: #eee;
    color: #333;
    border: none;
    padding: 0.6em 1.4em;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.alena-reviews-load-more:hover,
.alena-reviews-load-more:focus,
a.alena-reviews-all-link:hover,
a.alena-reviews-all-link:focus {
    background: #ddd;
    color: #333;
}

/* Show the button only when JavaScript is available. */
.alena-reviews-load-more {
    display: none;
}

html.alena-reviews-js .alena-reviews-load-more {
    display: inline-block;
}

html.alena-reviews-js .alena-reviews-load-more[hidden] {
    display: none;
}

.alena-reviews-load-more:disabled {
    opacity: 0.65;
    cursor: default;
}

@media screen and (min-width: 768px) {
    .page-template-reviews .alena-reviews-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5em;
        justify-items: stretch;
        align-items: stretch;
    }

    .page-template-reviews .review {
        width: 100% !important;
        max-width: none;
        margin: 0 !important;
    }

    /* About 13% smaller than the existing 1.5em quote size. */
    .page-template-reviews .review-text {
        font-size: 1.3em;
        line-height: 1.45em;
    }

    /* Credits scaled in proportion (about 13% down from 1em). */
    .page-template-reviews .review-name,
    .page-template-reviews .review-person,
    .page-template-reviews .review-date,
    .page-template-reviews .review-link {
        font-size: 0.875em;
    }
}

@media screen and (max-width: 767px) {
    .page-template-reviews .review {
        width: 80% !important;
        margin: 0 !important;
    }
}
