.works-page {
    --works-gold: #8b7043;
    --works-gray: #737471;
    --works-rule: #e5e6e3;
    display: flex;
    min-height: 100dvh;
    flex-direction: column;
    letter-spacing: 0;
}

.works-page > main {
    flex: 1 0 auto;
}

.works-page [hidden] {
    display: none !important;
}

.works-shell {
    width: calc(100% - 160px);
    max-width: 1440px;
    margin-inline: auto;
}

.works-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.works-page :focus-visible {
    outline: 2px solid #a17e3d;
    outline-offset: 5px;
}

.works-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-block: 18px 0;
    color: var(--works-gray);
    font-size: 11px;
    line-height: 1.5;
}

.works-intro {
    padding: 0 0 12px;
    text-align: center;
}

.works-intro__eyebrow,
.restoration__eyebrow {
    margin: 0 0 4px;
    color: var(--works-gold);
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1.5;
}

.works-intro h1,
.restoration h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: 34px;
    font-weight: 500;
    line-height: 1.4;
}

.works-intro h1::after {
    display: block;
    width: 34px;
    height: 1px;
    margin: 14px auto 0;
    background: #b79958;
    content: "";
}

.works-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    border-bottom: 1px solid var(--works-rule);
}

.works-filter {
    display: flex;
    min-width: 0;
    gap: 32px;
    margin: 0;
    padding: 0;
    border: 0;
}

.works-filter label {
    position: relative;
    cursor: pointer;
}

.works-filter label > span {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 9px;
    border-bottom: 2px solid transparent;
    color: var(--works-gray);
    font-size: 12px;
    transition: color 180ms ease;
    white-space: nowrap;
}

.works-filter small {
    color: #858681;
    font-size: 11px;
    font-weight: 400;
}

.works-filter label:hover > span {
    color: var(--ink);
}

.works-filter .works-filter__pending {
    color: var(--works-gold);
    font-size: 10px;
}

.works-filter input:checked + span {
    border-bottom-color: var(--ink);
    color: var(--ink);
}

.works-filter input:focus-visible + span {
    outline: 2px solid #a17e3d;
    outline-offset: 3px;
}

.works-result-count {
    flex-shrink: 0;
    margin: 0;
    padding-bottom: 11px;
    color: var(--works-gray);
    font-size: 12px;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 32px;
    padding-block: 24px 56px;
}

.works-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin: -24px 0 56px;
}

.works-pagination button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--works-rule);
    border-radius: 2px;
    background: #fff;
    cursor: pointer;
}

.works-pagination button:hover:not(:disabled) {
    border-color: var(--works-gold);
}

.works-pagination button:disabled {
    opacity: 0.3;
    cursor: default;
}

.works-pagination__status {
    min-width: 44px;
    margin: 0;
    color: var(--works-gray);
    font-size: 12px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.restoration {
    padding: 64px 40px 56px;
    border-top: 1px solid var(--works-rule);
    background: #fcfcfb;
    text-align: center;
}

.restoration__inner {
    max-width: 960px;
    margin-inline: auto;
}

.restoration__audience {
    margin: 20px 0 0;
    color: var(--works-gray);
    font-size: 12px;
}

.restoration__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 800px;
    margin: 36px auto 32px;
    font-family: var(--serif);
}

.restoration__stats > div + div {
    border-left: 1px solid var(--works-rule);
}

.restoration__stats dt {
    color: var(--works-gray);
    font-size: 17px;
}

.restoration__stats dd {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 6px;
    margin: 12px 0 0;
    font-size: 20px;
    line-height: 1.3;
    white-space: nowrap;
}

.restoration__stats dd small {
    color: var(--works-gray);
    font-size: 14px;
}

.restoration__stats .restoration__count--partial {
    flex-wrap: wrap;
}

.restoration__stats dd > .restoration__period {
    flex-basis: 100%;
    margin: 4px 8px 0;
    color: var(--works-gray);
    font-family: var(--sans);
    font-size: 11px;
    line-height: 1.8;
    white-space: normal;
    text-wrap: balance;
}

.restoration__stats dd span {
    color: #a18759;
    font-size: 40px;
}

.restoration__message h3 {
    margin: 0;
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.7;
}

.restoration__message h3 span {
    display: inline-block;
}

.restoration__message > p {
    margin: 12px 0 0;
    color: var(--works-gray);
    font-family: var(--serif);
    font-size: 14px;
    line-height: 1.9;
}

@media (max-width: 760px) {
    .restoration {
        padding: 48px 24px 40px;
    }

    .restoration__stats {
        margin-block: 30px;
    }

    .restoration__stats dt {
        font-size: 14px;
    }

    .restoration__stats dd {
        gap: 2px;
        font-size: 14px;
    }

    .restoration__stats dd small {
        font-size: 12px;
    }

    .restoration__stats dd span {
        font-size: 24px;
    }

    .restoration__message h3 {
        font-size: 21px;
    }

    .restoration__message > p {
        font-size: 13px;
    }

}

@media (max-width: 380px) {
    .restoration__stats dd span {
        font-size: 22px;
    }

    .restoration__stats dd {
        font-size: 12px;
    }

    .restoration__stats dd small {
        font-size: 11px;
    }
}

.work-card {
    min-width: 0;
}

.work-card__scope {
    margin: 8px 0 0;
    color: var(--works-gray);
    font-size: 12px;
    line-height: 1.7;
}

.work-gallery__construction {
    display: block;
    flex-basis: 100%;
    margin-top: 6px;
}

.works-empty {
    margin: 0;
    padding: 64px 0 80px;
    color: var(--works-gray);
    font-size: 13px;
    text-align: center;
}

.works-upcoming {
    display: grid;
    max-width: 960px;
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
    margin-inline: auto;
    padding-block: 48px 64px;
}

.works-upcoming__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
}

.works-upcoming__eyebrow {
    margin: 0 0 10px;
    color: var(--works-gold);
    font-family: var(--serif);
    font-size: 13px;
    line-height: 1.5;
}

.works-upcoming h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 500;
    line-height: 1.6;
    text-wrap: balance;
}

.works-upcoming h2 span {
    display: inline-block;
}

.works-upcoming__schedule {
    margin: 14px 0 0;
    color: var(--works-gold);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
}

.works-upcoming__description {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}

.works-upcoming__description span {
    display: block;
}

.work-card__photo {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1.92;
    overflow: hidden;
    background: #f0efed;
}

.work-card__photo > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.work-card__photo:hover > img,
.work-card__photo:focus-visible > img {
    transform: scale(1.025);
}

.work-card__photo-count {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 6px;
    color: #595b57;
    font-size: 12px;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
}

.work-card__photo-count img {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.work-card__body {
    padding-top: 8px;
}

.work-card__eyebrow {
    display: flex;
    min-height: 18px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 5px;
}

.work-card__category {
    margin: 0;
    color: var(--works-gold);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
}

.work-card h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 500;
    line-height: 1.5;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.work-card__meta,
.work-gallery__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 3px 12px;
    line-height: 1.5;
}

.work-card__meta {
    margin: 4px 0 0;
    color: var(--works-gray);
    font-size: 12px;
}

.work-card__age,
.work-gallery__age,
.work-gallery__collection {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.work-card__age::before,
.work-gallery__age::before,
.work-gallery__collection::before {
    width: 1px;
    height: 10px;
    flex: 0 0 1px;
    background: #d7d5cf;
    content: "";
}

html.works-gallery-open {
    overflow: hidden;
}

.work-gallery {
    width: min(1020px, calc(100% - 80px));
    max-width: none;
    height: min(900px, calc(100dvh - 64px));
    max-height: none;
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #fff;
    color: var(--ink);
}

.work-gallery::backdrop {
    background: rgb(15 14 13 / 80%);
}

.work-gallery__layout {
    display: flex;
    height: 100%;
    flex-direction: column;
}

.work-gallery__header {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 25px 30px 18px;
}

.work-gallery__header h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: 23px;
    font-weight: 500;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.work-gallery[data-view="completed"] .work-gallery__header {
    border-bottom: 1px solid var(--works-rule);
}

.work-gallery__meta {
    margin: 5px 0 0;
    color: var(--works-gray);
    font-size: 12px;
}

.work-gallery__close {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.work-gallery__close img {
    width: 25px;
    height: 25px;
}

.work-gallery__tabs {
    display: flex;
    flex: 0 0 auto;
    gap: 24px;
    padding-inline: 30px;
    border-bottom: 1px solid var(--works-rule);
}

.work-gallery__tabs button {
    min-height: 44px;
    padding: 0 4px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--works-gray);
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
}

.work-gallery__tabs button[aria-selected="true"] {
    border-bottom-color: var(--ink);
    color: var(--ink);
}

.work-gallery__tabs small {
    margin-left: 8px;
    font-size: 11px;
}

.work-gallery__panel {
    min-height: 0;
    flex: 1 1 auto;
    padding: 24px 30px 36px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.work-gallery__photos {
    display: grid;
    gap: 30px;
}

.work-gallery__photos figure {
    margin: 0;
}

.work-gallery__photos img {
    width: 100%;
    height: auto;
    max-height: 70dvh;
    object-fit: contain;
    background: #f6f5f3;
}

.work-gallery__photos figcaption {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-top: 9px;
    color: var(--works-gray);
    font-size: 11px;
}

.work-gallery__photo-number {
    flex-shrink: 0;
    margin-inline-start: auto;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.work-gallery__status {
    margin: 30px 0;
    color: var(--works-gray);
    font-size: 13px;
}

.work-gallery__error a {
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (min-width: 761px) {
    .work-gallery__photos figure {
        width: 100%;
        max-width: 720px;
        margin-inline: auto;
    }

    .work-gallery__photos img {
        display: block;
        width: auto;
        max-width: 100%;
        max-height: min(480px, calc(100dvh - 320px));
        margin-inline: auto;
    }
}

@media (max-width: 1100px) {
    .works-shell {
        width: calc(100% - 64px);
    }

    .works-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 760px) {
    .works-shell {
        width: calc(100% - 48px);
    }

    .works-breadcrumb {
        margin-top: 18px;
        font-size: 10px;
    }

    .works-intro {
        padding-block: 16px 22px;
    }

    .works-intro h1,
    .restoration h2 {
        font-size: 30px;
    }

    .works-intro__eyebrow,
    .restoration__eyebrow {
        font-size: 14px;
    }

    .works-toolbar {
        display: block;
        border: 0;
    }

    .works-filter {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 16px;
    }

    .works-filter label {
        border-bottom: 1px solid var(--works-rule);
    }

    .works-filter label > span {
        min-height: 48px;
        justify-content: center;
        gap: 7px;
        font-size: 11px;
    }

    .works-result-count {
        padding: 18px 0 0;
        font-size: 11px;
        text-align: right;
    }

    .works-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        padding-block: 16px 40px;
    }

    .works-upcoming {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding-block: 28px 44px;
        text-align: center;
    }

    .works-upcoming__image {
        max-width: 360px;
        margin-inline: auto;
    }

    .works-upcoming h2 {
        font-size: 24px;
    }

    .work-card h2 {
        min-height: 0;
        font-size: 18px;
        text-wrap: wrap;
    }

    .work-card__title-part {
        display: inline-block;
        white-space: nowrap;
    }

    .work-card__photo {
        aspect-ratio: 3 / 2;
    }

    .work-card__meta {
        margin-top: 4px;
    }

    .work-gallery {
        width: 100%;
        height: 100dvh;
    }

    .work-gallery__header {
        gap: 8px;
        padding: 18px 16px 12px 20px;
    }

    .work-gallery__header h2 {
        font-size: 18px;
        text-wrap: wrap;
    }

    .work-gallery__meta {
        font-size: 11px;
    }

    .work-gallery__tabs {
        padding-inline: 20px;
    }

    .work-gallery__panel {
        padding: 18px 16px max(28px, env(safe-area-inset-bottom));
    }

    .work-gallery__photos {
        gap: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .work-card__photo > img {
        transition: none;
    }

    .work-card__photo:hover > img,
    .work-card__photo:focus-visible > img {
        transform: none;
    }
}
