/* ================================================
   WORKS ARCHIVE — works.css
   Loaded by archive-work.php
   ================================================ */

/*body, .mainContent	{
	background: #666;
}*/

/* Category section */
.work-cat-section {
    margin-bottom: 3.5rem;
}

.work-cat-title {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0 0 0.75rem;
}

.work-cat-title a {
    text-decoration: none;
    color: inherit;
}

.work-cat-title a:hover {
    text-decoration: underline;
}

/* Thumbnail rows. The clipping to two rows (debmb 2026-10-07; one row before) lives
   on .is-collapsed, which the main archive's markup carries from the start (closed by
   default, debmb 2026-09-24) and its JS adds and removes. The height is two thumbnail
   heights plus the one 30px gap between the rows: 630px below, 430px in the 601-768px
   block. Both must stay in step with collapsedHeight in that JS. */
.work-thumbs-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center; /* debmb 2026-09-24: each row centered, gaps unchanged */
    align-items: flex-start;
    max-height: none;
    overflow: visible;
    transition: max-height 0.5s ease;
}

.work-thumbs-wrap.is-collapsed {
    max-height: 630px; /* 2 x 300px thumbnails + 30px gap */
    overflow: hidden;
}

.work-thumb-item {
    flex: 0 0 auto;
    line-height: 0; /* removes gap under inline images */
}

.work-thumb-item a {
    display: block;
}

/* Image sizing: fixed height, auto width on wide screens */
.work-thumb-img {
    height: 300px;
    width: auto;
    display: block;
    box-shadow: 0 0 7px rgba(35, 40, 35, 0.18);
}

/* View more */
.view-more-wrap {
    margin-top: 0.6rem;
}

.view-more-link,
.view-fewer-link {
    font-size: 0.85rem;
    color: #555;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.view-more-link:hover,
.view-fewer-link:hover {
    color: #000;
    text-decoration: underline;
}

/* Medium — reduce thumbnail height to avoid very-wide images overflowing */
@media (min-width: 601px) and (max-width: 768px) {
    .work-thumbs-wrap.is-collapsed {
        max-height: 430px; /* 2 x 200px thumbnails + 30px gap */
    }

    .work-thumb-img {
        height: 200px;
    }
}

/* Mobile — stacked images, first 4 visible by default (debmb 2026-10-07; was 3); sticky navbar */
@media (max-width: 600px) {
    .navbar-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        background-color: var(--color-background) !important;
    }

    .work-thumbs-wrap,
    .work-thumbs-wrap.is-collapsed { /* phones use the first-4 rule below, not the height clip */
        flex-direction: column;
        max-height: none;
        overflow: visible;
    }

    .work-thumb-item {
        width: 100%;
    }

    .work-thumb-img {
        height: auto;
        width: 100%;
    }

    /* Hide thumbnails beyond the first 4 until "view more" is clicked.
       The 4 must stay in step with mobileVisible in archive-work.php. */
    .work-thumbs-wrap:not(.mobile-expanded) .work-thumb-item:nth-child(n+5) {
        display: none;
    }
}

/* ================================================
   CATEGORY AND SERIES PAGES (debmb, 2026-09-24)
   taxonomy-work_cat.php / taxonomy-work_tag.php, via
   template-parts/sections/work-term-archive.php.
   The thumbnail grid reuses the archive rules above.
   ================================================ */

/* Title in the same place as on Contact and About: those pages have no top
   padding on this wrapper, only the empty breadcrumbs div above the title.
   .works-archive-head is the "Work" title on the main archive; .works-archive
   covers both the archive's thumbnails and the category/series pages. */
.works-archive-head .sectionInner {
    padding: 0;
}

.works-archive .sectionInner {
    padding-top: 0;
}

/* Breadcrumb trail on category and series pages (two or more categories only) */
.work-term-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.work-term-breadcrumb a:hover {
    color: #000;
    text-decoration: underline;
}

/* Title sits closer to the description when there is one */
.pageTitle.has-term-description {
    margin-bottom: 1.5rem;
}

.work-term-description {
    max-width: 46rem;
    margin: 0 auto 3rem;
    text-align: center;
    line-height: 1.6;
}

.work-term-description p {
	text-align: justify;
}

.work-term-description p:last-child {
    margin-bottom: 0;
}

.work-term-empty {
    text-align: center;
}


