/**
 * Breeds page (/horse-breed-index/) - breed cards.
 *
 * The cards reuse the Stories card (.archive-card in style.css). This file
 * adds the one-column phone grid (archive.css only loads on archives), the
 * panel shown for a breed with no photo yet, and the Read more link in the
 * Stories "Continue reading" style.
 *
 * @package PLEquestrianDestinationsGutenberg
 */

/* One card per row on phones, as on Stories. */
@media (max-width: 767px) {
    .breed-cards.is-layout-grid {
        grid-template-columns: 1fr;
    }
}

/* No photo yet: a sand panel with the horse head, the same 4:3 size as a
   photo, so the grid stays even. It disappears as soon as a photo is set,
   because the card then contains the featured image. */
.breed-card:not(:has(.wp-block-post-featured-image))::before {
    content: "";
    display: block;
    flex: 0 0 auto;
    aspect-ratio: 4 / 3;
    margin-bottom: var(--wp--preset--spacing--2-x);
    border-radius: 6px;
    background:
        linear-gradient(rgba(235, 227, 213, 0.72), rgba(235, 227, 213, 0.72)),
        url(../icons/black-head-horse.svg) center / 64px no-repeat,
        #ebe3d5;
}

/* Read more / Read less: the Stories link look (no underline, gold). */
.breed-card .pl-ed-breed-history__toggle {
    text-decoration: none;
    letter-spacing: 0.02em;
}

.breed-card .pl-ed-breed-history__toggle:hover,
.breed-card .pl-ed-breed-history__toggle:focus-visible {
    color: var(--wp--preset--color--heritage-gold);
}
