/* === Intro paragraph === */

p.intro {
    color: #666666;
    font-size: 0.9em;
}

p.intro img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(15cm, 100%);
    max-height: 15cm;
    margin: 0 auto 0.5cm auto;
    border: 1px solid #444444;
    border-radius: 0.1cm;
}

p.intro a:has(> img) {
    display: table;
    max-width: min(15cm, 100%);
    margin: 0 auto 0.5cm auto;
}

p.intro a:has(> img) > img {
    max-width: 100%;
    margin: 0;
}

/* === Blog post action buttons === */

#main article ul.actions {
    justify-content: center;
}

/* === Blog post image cards === */

div.blog-post-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5cm;
    justify-content: center;
    margin: 0 0 0.5cm 0;
}

div.blog-post-card {
    display: flex;
    align-items: center;
    justify-content: center;
}

div.blog-post-card a {
    display: block;
}

div.blog-post-card img {
    display: block;
    width: auto;
    height: auto;
    max-width: 8cm;
    max-height: 8cm;
    border: 1px solid #444444;
    border-radius: 0.1cm;
}

/* === Blog post carousel === */

/* A card inside a slideshow is the post's lead image rather than a thumbnail, so it
   takes the size the intro image would have had. This overrides both the thumbnail
   cap above and the slide cap in greenleaf.css, which is sized for the landscape
   screenshots the games pages put in a slideshow. */

div.glide div.blog-post-card img {
    max-width: min(15cm, 100%);
    max-height: 15cm;
}

/* === Art slideshow figcaption dimensions === */

span.slideshow-dimensions {
    display: block;
    margin: 0.1cm 0;
    font-size: 0.8em;
    color: #888;
}

/* === Blog post artwork details === */

p.artwork-details {
    margin-top: 1cm;
    padding-top: 0.4cm;
    border-top: 1px solid #dddddd;
    text-align: center;
}

p.artwork-details .artwork-work {
    display: block;
    margin: 0.2cm 0;
}

p.artwork-details .artwork-title {
    font-weight: bold;
}

p.artwork-details .artwork-dimensions {
    display: block;
    font-size: 0.85em;
    color: #888888;
}
/* === Work pages (paintings, jewelry, gifts and decor, photography) === */

/* The photos with the facts and the Buy button under them, and the text about the piece: one column
   on a phone, side by side on a wider screen. A piece with no text has no div.work-about, and its
   photos keep the full width. min-width: 0 lets the carousel shrink to its column; without it, Glide
   measures the slides wider than the column and the page scrolls sideways. */
@media (min-width: 50em) {
    div.work-top:has(> div.work-about) {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 1cm;
        align-items: start;
    }

    div.work-about > h3:first-child {
        margin-top: 0;
    }

    div.work-top > * {
        min-width: 0;
    }
}

dl.work-facts {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.1cm 0.5cm;
    margin: 0 0 0.5cm 0;
}

dl.work-facts dt {
    margin: 0;
    padding: 0;
}

dl.work-facts dt::before {
    content: none;
}

dl.work-facts dd {
    margin: 0;
}

/* The status or, on a shop card, the price under each gallery card, so a visitor sees it without
   opening the piece. */
span.work-status,
span.work-price {
    display: block;
    font-size: 0.85em;
}

span.work-status-available {
    color: var(--greenleaf-dark-green);
    font-weight: 600;
}
