@font-face {
  font-family: Manrope;
  src: url('../fonts/manrope/manrope-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
.work-gallery {
  --work-ink: #123d5e;
  --work-muted: #4d6070;
  --work-blue: #1f57c3;
  --work-pale: #f0f7fb;
  color: var(--work-ink);
  font-family: Manrope, sans-serif;
  line-height: 1.65;
}
.work-gallery *, .work-gallery *::before, .work-gallery *::after { box-sizing: border-box; }
.work-gallery--home { padding: 64px 0; background: var(--work-pale); }
.work-gallery--page { padding: 48px 0 72px; background: #fff; }
.work-gallery__inner { max-width: 1280px; padding: 0 32px; margin: 0 auto; }
.work-gallery__heading { max-width: 760px; margin-bottom: 30px; }
.work-gallery__heading h1, .work-gallery__heading h2 { margin: 0 0 12px; color: var(--work-ink); font-weight: 800; letter-spacing: -.035em; line-height: 1.2; text-wrap: balance; }
.work-gallery__heading h1 { font-size: clamp(32px, 4vw, 48px); }
.work-gallery__heading h2 { font-size: 34px; }
.work-gallery__heading p { margin: 0; font-size: 16px; color: var(--work-muted); }
.work-gallery__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 24px; }
.job-card { min-width: 0; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #dce7ee; }
.job-card__image { aspect-ratio: 4 / 3; overflow: hidden; background: #e4edf2; }
.job-card__image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.job-card__body { padding: 22px; }
.work-gallery .job-card__service { font-size: 13px; font-weight: 800; color: var(--work-blue); margin: 0 0 8px; }
.job-card h3 { margin: 0 0 6px; font-size: 21px; font-weight: 800; line-height: 1.35; letter-spacing: -.02em; overflow-wrap: anywhere; }
.job-card h3 a { display: inline-flex; align-items: center; min-height: 44px; color: var(--work-ink); text-decoration: none; }
.job-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.job-card__suburb { margin: 0; font-size: 14px; color: var(--work-muted); }
.work-gallery__action { margin-top: 32px; text-align: center; }
.work-gallery a:focus-visible { outline: 3px solid var(--work-blue); outline-offset: 4px; }
.work-gallery__button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border: 1px solid var(--work-ink); border-radius: 6px; background: var(--work-ink); color: #fff; font-size: 15px; font-weight: 800; text-decoration: none; text-align: center; }
.work-gallery__button:hover { background: #1b537a; color: #fff; }
.work-gallery__filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; }
.work-gallery__filters a { padding: 10px 16px; min-height: 44px; border-radius: 6px; border: 1px solid #c9d9e3; text-decoration: none; color: var(--work-ink); font-size: 14px; font-weight: 700; }
.work-gallery__filters a[aria-current], .work-gallery__filters a:hover { background: var(--work-ink); border-color: var(--work-ink); color: #fff; }
.work-gallery__empty { grid-column: 1 / -1; padding: 40px; background: var(--work-pale); border-radius: 12px; }
.work-gallery__empty h2 { font-size: 24px; margin: 0 0 12px; }
.work-gallery__empty p { max-width: 640px; margin: 0 0 24px; color: var(--work-muted); }
.work-gallery__pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 32px; }
.work-gallery__pagination a, .work-gallery__back { display: inline-flex; align-items: center; min-height: 44px; color: var(--work-ink); font-weight: 700; text-underline-offset: 4px; }
.work-gallery__back { margin-bottom: 20px; }
.work-gallery__date { display: inline-block; margin-left: 20px; }
.work-gallery__cover { display: block; width: 100%; height: auto; max-height: 680px; object-fit: contain; background: var(--work-pale); border-radius: 12px; }
.work-gallery__story { max-width: 760px; margin: 36px 0 44px; overflow-wrap: anywhere; }
.work-gallery__story h2, .work-gallery__photos-title, .work-gallery__cta h2 { margin: 0 0 12px; font-size: 26px; line-height: 1.3; font-weight: 800; letter-spacing: -.025em; }
.work-gallery__story p { color: var(--work-muted); margin: 0 0 16px; }
.work-gallery__photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.work-gallery__photo { margin: 0; min-width: 0; }
.work-gallery__photo > div { position: relative; background: var(--work-pale); border-radius: 10px; overflow: hidden; }
.work-gallery__photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.work-gallery__photo span { position: absolute; left: 14px; bottom: 14px; padding: 5px 12px; background: #fff; color: var(--work-ink); border-radius: 4px; font-size: 14px; font-weight: 800; }
.work-gallery__photo figcaption { margin-top: 12px; font-size: 15px; color: var(--work-muted); overflow-wrap: anywhere; }
.work-gallery__cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 32px; margin-top: 48px; border-radius: 12px; background: var(--work-pale); }
.work-gallery__cta p { margin: 0; color: var(--work-muted); }
.work-gallery__cta .work-gallery__button { flex-shrink: 0; }
.job-comparison { grid-column: 1 / -1; margin: 0; min-width: 0; }
.job-comparison__images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.job-comparison__images > div { position: relative; min-width: 0; background: var(--work-pale); }
.job-comparison__images img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.job-comparison__label { position: absolute; top: 16px; left: 16px; padding: 5px 12px; background: #fff; color: var(--work-ink); border-radius: 4px; font-size: 14px; font-weight: 800; }
.job-comparison__divider { display: none; }
.job-comparison.is-ready .job-comparison__images { display: block; position: relative; aspect-ratio: 4 / 3; max-height: 680px; overflow: hidden; border-radius: 10px; touch-action: pan-y; cursor: ew-resize; }
.job-comparison.is-ready .job-comparison__images > div { position: absolute; inset: 0; }
.job-comparison.is-ready .job-comparison__images img { width: 100%; height: 100%; }
.job-comparison.is-ready .job-comparison__before { z-index: 2; clip-path: inset(0 calc(100% - var(--comparison-position, 50%)) 0 0); }
.job-comparison__after .job-comparison__label { left: auto; right: 16px; }
.job-comparison.is-ready .job-comparison__divider { display: block; position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--comparison-position, 50%); width: 2px; background: #fff; pointer-events: none; box-shadow: 0 0 3px #123d5e; }
.job-comparison__divider > span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--work-ink); font-size: 26px; }
.job-comparison:focus-within .job-comparison__images { outline: 3px solid var(--work-blue); outline-offset: 4px; }
.job-comparison__controls { padding-top: 16px; }
.job-comparison__controls[hidden] { display: none; }
.job-comparison__controls label { display: block; font-size: 15px; font-weight: 800; }
.job-comparison__controls input { display: block; width: 100%; min-height: 44px; margin: 0; accent-color: var(--work-blue); cursor: ew-resize; }
.job-comparison__controls p, .job-comparison figcaption { margin: 0; font-size: 14px; color: var(--work-muted); }
.job-comparison figcaption p { margin: 12px 0 0; }
.job-card { scroll-margin-top: 100px; }
.job-card__body { padding: 20px 22px 22px; }
.job-card h3 { font-size: 19px; margin: 0 0 8px; }
.work-gallery--home .job-card__body { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.work-gallery--home .job-card h3 { flex: 1; min-width: 0; margin: 0; font-size: 16px; line-height: 1.4; }
.work-gallery--home .job-card__suburb { flex: 0 1 auto; max-width: 45%; font-size: 13px; line-height: 1.4; text-align: right; overflow-wrap: anywhere; }
.job-comparison--card { position: relative; background: var(--work-pale); }
.job-comparison--card .job-comparison__images { aspect-ratio: 4 / 3; gap: 0; }
.job-comparison--card .job-comparison__images > div { height: 100%; }
.job-comparison--card .job-comparison__images img { height: 100%; object-fit: cover; }
.job-comparison--card.is-ready .job-comparison__images { border-radius: 0; }
.job-comparison--card .job-comparison__label { top: 12px; left: 12px; font-size: 12px; padding: 4px 9px; box-shadow: 0 1px 4px rgb(18 61 94 / 12%); }
.job-comparison--card .job-comparison__after .job-comparison__label { left: auto; right: 12px; }
.job-comparison--card .job-comparison__controls { position: absolute; z-index: 4; left: 12px; right: 12px; bottom: 10px; padding: 0 10px; background: rgb(255 255 255 / 94%); border-radius: 5px; }
.job-comparison--card .job-comparison__controls input { min-height: 36px; }
.job-comparison--card .job-comparison__controls label,
.job-comparison--card .job-comparison__controls p { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.job-comparison--card:focus-within .job-comparison__images { outline-offset: -3px; }
@media (max-width: 1000px) { .work-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .work-gallery--home { padding: 44px 0; }
  .work-gallery--page { padding: 28px 0 48px; }
  .work-gallery__inner { padding: 0 20px; }
  .work-gallery__heading { margin-bottom: 24px; }
  .work-gallery__heading h2 { font-size: 28px; }
  .work-gallery__grid, .work-gallery__photos { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .job-card__body { padding: 20px; }
  .work-gallery__empty { padding: 24px; }
  .work-gallery__action .work-gallery__button { width: 100%; }
  .work-gallery__date { display: block; margin: 4px 0 0; }
  .work-gallery__cta { align-items: stretch; flex-direction: column; padding: 24px; }
}
