/* Prevent the first heading's margin from shifting the entire showcase down. */
@media (min-width: 801px) {
    .page-template-works-showcase-php #content > .workwrapper:first-child > article > .entry-header {
        margin-top: 0;
    }
}

/* The caption box starts at the same 1rem inset as the top navigation. */
@media (min-width: 801px) {
    .page-template-works-showcase-php .entry-meta,
    .single-works .entry-meta {
        left: 1rem;
        padding-left: 0;
        /* The article ends 1rem below the image, so this leaves 1rem of image below the caption. */
        bottom: 2rem;
    }
}

/* On white (or unset, which defaults to white) galleries, tint the caption box so it stays visible. */
.page-template-works-showcase-php article.bg-white .entry-meta .description,
.single-works article.bg-white .entry-meta .description {
    background-color: #f6f6f6;
}

/* Keep the slideshow count on the same line as the title, even for long titles. */
@media (min-width: 801px) {
    .page-template-works-showcase-php .entry-header,
    .single-works .entry-header {
        width: max-content;
        max-width: 50vw;
    }
    .page-template-works-showcase-php .entry-title > .underline-2,
    .single-works .entry-title > .underline-2 {
        display: inline-flex;
        flex-wrap: nowrap;
        align-items: flex-start;
    }
    .page-template-works-showcase-php .entry-title .slideshow-count,
    .single-works .entry-title .slideshow-count {
        flex-shrink: 0;
        white-space: nowrap;
    }
}

/* Captions slide underneath the sticky title block. */
.page-template-works-showcase-php .entry-meta,
.single-works .entry-meta {
    z-index: 49999;
}


/* Near-fit full-screen images fill the window height; the sides are cropped evenly. */
.full-screen img.gc-cover {
    height: 100vh;
    object-fit: cover;
    object-position: center;
}
