/* Match the supplied Our Work reference; isolate all changes to this template. */
.work-page { background: var(--work-bg, #fff); color: var(--work-text, #111); }
.work-container { width: 85%; max-width: 1250px; margin-inline: auto; }
.work-hero { position: relative; isolation: isolate; min-height: 320px; height: clamp(320px, 41vw, 610px); display: grid; place-items: center; overflow: hidden; }
.work-hero-picture { position: absolute; inset: 0; z-index: -2; }
.work-hero-picture img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.work-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, var(--work-overlay, .25)); z-index: -1; }
.work-hero h1 { font-family: 'Anton', var(--font-hero); color: var(--work-hero-text, #fff); font-size: clamp(64px, 9.6vw, 140px); font-weight: normal; line-height: 1; text-align: center; margin: 0; padding: 24px; max-width: 100%; overflow-wrap: anywhere; }
.work-gallery { padding: 46px 0 160px; }
.work-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin-bottom: 38px; }
.work-filter { appearance: none; font-family: var(--font-body); font-size: 14px; line-height: 1.35; padding: 10px 22px; border: 1px solid var(--work-accent); border-radius: 999px; color: var(--work-accent); background: transparent; cursor: pointer; transition: background-color .18s, color .18s; }
.work-filter[data-work-filter="all"] { min-width: 108px; }
.work-filter.is-active, .work-filter:hover { background: var(--work-accent); color: var(--work-bg); }
.work-filter:focus-visible, .work-card-inner:focus-visible, .work-cta .cta-link:focus-visible { outline: 3px solid var(--work-accent); outline-offset: 5px; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; row-gap: 48px; }
.work-card { min-width: 0; border: 1px solid #eee; border-radius: 16px; background: var(--work-bg); padding: 16px; transition: transform .3s, box-shadow .3s, border-color .3s; }
.work-card:hover, .work-card:focus-within { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,.08); border-color: var(--teal); }
.work-card.yy-reveal { transition: opacity 650ms ease, translate 650ms cubic-bezier(.2,.65,.3,1), transform .3s, box-shadow .3s, border-color .3s; }
.work-card-inner { display: block; color: inherit; text-decoration: none; }
.work-card-head { margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.work-card-head h2 { font-family: var(--font-body); font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 6px; line-height: 1.4; min-width: 0; overflow-wrap: anywhere; }
.work-card-arrow { width: 16px; height: 16px; display: block; flex-shrink: 0; }
.work-card-year { font-family: var(--font-hero); color: #888; font-size: 16px; flex-shrink: 0; line-height: 1.4; }
.work-card-image { aspect-ratio: 1.79; background: color-mix(in srgb, var(--work-accent) 7%, var(--work-bg)); overflow: hidden; border-radius: 12px; }
.work-card-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .3s ease; }
a.work-card-inner:hover .work-card-image img { transform: scale(1.025); }
.work-empty { text-align: center; padding: 48px 16px; font-size: 16px; line-height: 1.6; }
.work-page [hidden] { display: none !important; }
.work-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.work-page .work-cta { --cta-bg: inherit; --cta-glow: inherit; --cta-text: inherit; }
/* CTA variables inherit from main, rather than the shared About default values. */
.work-page .work-cta { background: var(--cta-bg); }
body.page-template-page-our-work .site-footer, body.page-template-page-work-collection .site-footer { padding-top: 64px; }
html[dir="rtl"] .work-hero h1 { font-family: var(--font-ar); font-weight: 800; }
@media (max-width: 900px) {
    .work-filters { gap: 10px; }
    .work-filter { padding: 8px 16px; }
    .work-filter[data-work-filter="all"] { min-width: 80px; }
    .work-grid { row-gap: 30px; gap: 30px 16px; }
    .work-gallery { padding-bottom: 100px; }
}
@media (max-width: 600px) {
    .work-container { width: 90%; }
    .work-hero { height: 300px; min-height: 300px; }
    .work-hero h1 { font-size: clamp(50px, 13vw, 78px); }
    .work-gallery { padding-top: 28px; padding-bottom: 70px; }
    .work-filters { gap: 8px; margin-bottom: 26px; }
    .work-filter { font-size: 14px; padding: 9px 13px; }
    .work-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .work-page *, .work-page *::before, .work-page *::after { transition: none !important; animation: none !important; }
}
