/* Cards and modals used by the homepage carousel and the reviews page. */
:is(.fp-home, .fr-preview) .fp-review { border: 0; border-radius: 0; background: transparent; overflow: visible; }
:is(.fp-home, .fr-preview) .fp-review-photo { border-radius: 16px; overflow: hidden; }
:is(.fp-home, .fr-preview) .fp-review-copy { padding: 22px 0 0; }
:is(.fp-home, .fr-preview) .fp-review-link { text-decoration: none; color: inherit; }
:is(.fp-home, .fr-preview) .fp-review-author { margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--fp-line); font-size: 12px; }
:is(.fp-home, .fr-preview) .fp-review-author small { display: block; }
:is(.fp-home, .fr-preview) .fp-review-source { display: inline-flex; align-items: center; gap: 8px; }
:is(.fp-home, .fr-preview) .fph-review-open { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; font: inherit; cursor: pointer; }
:is(.fp-home, .fr-preview) .fph-review-open .fp-review-copy { padding-bottom: 18px; }
:is(.fp-home, .fr-preview) .fph-review-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden; line-height: 1.8; max-height: 9em; }
:is(.fp-home, .fr-preview) .fph-review-read-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; color: #8b7965; }
:is(.fp-home, .fr-preview) .fph-review-open:is(:hover,:focus-visible) .fph-review-read-more { text-decoration: underline; text-underline-offset: 4px; }
:is(.fp-home, .fr-preview) .fph-review-footer { margin-top: auto; }
:is(.fp-home, .fr-preview) .fp-review-photo { position: relative; }
:is(.fp-home, .fr-preview) .fph-review-image-note { position: absolute; bottom: 10px; left: 10px; right: 10px; width: fit-content; max-width: calc(100% - 20px); padding: 4px 8px; border-radius: 6px; background: rgb(28 27 23 / .7); color: #fff; font-size: 9px; line-height: 1.5; }
:is(.fp-home, .fr-preview) .fph-review-modal .modal-dialog { max-width: 760px; }
:is(.fp-home, .fr-preview) .fph-review-modal .modal-content { border: 1px solid var(--fp-line); border-radius: 16px; background: var(--fp-paper); color: var(--fp-ink); }
:is(.fp-home, .fr-preview) .fph-review-modal .modal-header { padding: 24px; gap: 20px; border: 0; }
:is(.fp-home, .fr-preview) .fph-review-modal .modal-title { margin: 0; font-size: clamp(20px,2vw,26px); font-weight: 400; line-height: 1.4; }
:is(.fp-home, .fr-preview) .fph-review-modal .modal-body { padding: 0 24px 24px; }
:is(.fp-home, .fr-preview) .fph-review-modal .fp-review-photo { aspect-ratio: 2; margin-bottom: 20px; }
:is(.fp-home, .fr-preview) .fph-review-modal-meta { font-size: 12px; color: #6c757d; }
:is(.fp-home, .fr-preview) .fph-review-full-text { margin: 20px 0 28px; font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; }
:is(.fp-home, .fr-preview) .fph-review-full-text p:last-child { margin-bottom: 0; }

/* The standalone page lays out the cards as a grid, outside the carousel. */
main.pt-main:has(> .fr-preview) { padding-top: 0; }
body:has(.fason-preview.fr-preview) #headerMain.fp-preview-header { background-color: #242424 !important; }
.fr-preview .fr-hero { padding: clamp(136px, 12vw, 180px) 0 clamp(36px, 4vw, 56px); background: var(--fp-sand); }
.fr-preview .fr-breadcrumb { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; color: #6c757d; font-size: 12px; }
.fr-preview .fr-breadcrumb .bi { font-size: 9px; }
.fr-preview .fr-breadcrumb a:hover { text-decoration: underline; }
.fr-preview .fr-hero h1 { margin: 0 0 16px; font-size: clamp(34px, 4vw, 54px); }
.fr-preview .fr-hero p { max-width: 57ch; margin: 0; font-size: 15px; line-height: 1.85; }
.fr-preview #fp-reviews { padding-top: clamp(36px, 5vw, 68px); }
.fr-preview .fr-review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; }
.fr-preview .fp-review-photo { background: var(--fp-sand); }
@media (max-width: 991.98px) {
    .fr-preview .fr-review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .fr-preview .fr-hero { padding-top: 116px; }
    .fr-preview .fr-review-grid { grid-template-columns: 1fr; gap: 36px; }
    .fr-preview .fph-review-modal .modal-header { padding: 18px; }
    .fr-preview .fph-review-modal .modal-body { padding: 0 18px 18px; }
}
