/* A photographic opening and a generous, natural-proportion project gallery. */
.smph-site.page-work { background: var(--deep, #10191e); color: var(--ink, #f3f1eb); }
.smph-site .work-hero { position: relative; height: min(760px, 78svh); min-height: 520px; isolation: isolate; overflow: hidden; background: var(--navy, #16242c); }
.smph-site .work-featured { position: absolute; inset: 0; display: block; color: #fff; }
.smph-site .work-featured > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; border-radius: 0; }
.smph-site .work-featured::after { position: absolute; inset: 0; content: ''; background: linear-gradient(0deg, #071015c9, #0710151c 38%, transparent 65%); pointer-events: none; }
.smph-site .work-intro { position: relative; z-index: 2; height: 100%; display: flex; align-items: flex-end; padding-top: 0; padding-bottom: 48px; pointer-events: none; }
.smph-site .work-intro-copy { max-width: 680px; }
.smph-site .work-intro-copy > .section-label { margin: 0 0 17px; color: #e2e8e9; font-size: 11px; letter-spacing: .13em; line-height: 1.6; }
.smph-site .work-intro h1 { margin: 0; color: #fff; font-family: var(--display, 'Mangan Sans', Arial, sans-serif); font-size: clamp(46px, 5vw, 68px); font-weight: 500; line-height: 1.04; letter-spacing: -.04em; }
.smph-site .work-featured-caption { position: absolute; z-index: 3; top: 24px; right: max(30px, calc((100vw - 1320px) / 2)); display: inline-flex; align-items: center; gap: 14px; padding: 8px 12px 8px 17px; background: #10191e94; color: #fff; font-size: 12px; line-height: 1.5; }
.smph-site .work-featured-caption .project-open-icon { width: 28px; height: 28px; color: #fff; }
.smph-site .work-hero .work-featured:focus-visible { outline-offset: -5px; }
.smph-site .work-overview { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding-top: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--line, #ffffff24); }
.smph-site .work-overview p { max-width: 620px; margin: 0; color: var(--muted, #b2bec2); font-size: 16px; line-height: 1.7; }
.smph-site .work-overview .text-link { flex-shrink: 0; color: var(--ink, #f3f1eb); }
.smph-site .work-collection { padding-top: 64px; padding-bottom: 72px; }
.smph-site #work-gallery { scroll-margin-top: 110px; }
.smph-site .work-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--line, #ffffff24); }
.smph-site .work-toolbar h2 { margin: 0 0 8px; color: var(--ink, #f3f1eb); font-size: 32px; font-weight: 500; line-height: 1.12; letter-spacing: -.035em; }
.smph-site .work-toolbar p { margin: 0; color: var(--muted, #b2bec2); font-size: 13px; line-height: 1.5; }
.smph-site .work-filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 21px; }
.smph-site .work-filters[hidden], .smph-site .project-card[hidden] { display: none !important; }
.smph-site .work-filters button { min-height: 44px; padding: 9px 0; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--muted, #b2bec2); font: inherit; font-size: 14px; font-weight: 500; line-height: 1.4; cursor: pointer; }
.smph-site .work-filters button:hover { color: #fff; }
.smph-site .work-filters button[aria-pressed="true"] { color: #fff; border-bottom-color: var(--blue, #6fbed8); font-weight: 650; }
.smph-site .project-grid { display: block; columns: 2; column-gap: 28px; }
.smph-site .project-card { display: inline-block; width: 100%; margin: 0 0 46px; vertical-align: top; break-inside: avoid; color: var(--ink, #f3f1eb); }
.smph-site .project-card > img { display: block; width: 100%; height: auto; max-height: none; aspect-ratio: auto; border-radius: 0; }
.smph-site .project-caption { display: grid; grid-template-columns: minmax(0, 1fr) 36px; align-items: center; gap: 6px 14px; padding: 18px 0 0; color: var(--ink, #f3f1eb); }
.smph-site .project-category { grid-column: 1; color: var(--muted, #b2bec2); font-size: 10px; font-weight: 600; letter-spacing: .10em; line-height: 1.5; text-transform: uppercase; }
.smph-site .project-caption strong { grid-column: 1; font-family: var(--display, 'Mangan Sans', Arial, sans-serif); font-size: 23px; line-height: 1.3; font-weight: 500; letter-spacing: -.025em; overflow-wrap: anywhere; }
.smph-site .project-open-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border: 0; border-radius: 0; background: transparent; color: var(--ink, #f3f1eb); font-family: Arial, sans-serif; font-size: 27px; line-height: 1; }
.smph-site .project-caption .project-open-icon { grid-column: 2; grid-row: 1 / 3; }
.smph-site .project-card:hover .project-open-icon, .smph-site .project-card:hover .project-caption strong { color: var(--blue, #6fbed8); }
.smph-site .work-featured:hover .work-featured-caption { background: #10191edb; }
.smph-site .project-card[data-project-type="video"] .project-open-icon { font-size: 13px; }
.smph-site .project-video-label { display: inline-flex; align-items: center; gap: 7px; margin-top: 15px; color: var(--blue, #6fbed8); font-size: 12px; font-weight: 600; line-height: 1.5; }
.smph-site .project-video-label > span { font-size: 10px; }
.smph-site .project-card[data-project-type="video"] .project-caption { padding-top: 9px; }
.smph-site .work-gallery-note { margin: 0; padding-top: 22px; border-top: 1px solid var(--line, #ffffff24); color: var(--muted, #b2bec2); font-size: 13px; line-height: 1.7; }
.smph-site .work-enquiry { padding: 60px 0; background: var(--navy, #16242c); border-top: 1px solid var(--line, #ffffff24); color: #fff; }
.smph-site .work-enquiry-inner { display: flex; justify-content: space-between; align-items: center; gap: 48px; }
.smph-site .work-enquiry .section-label { color: var(--blue, #6fbed8); }
.smph-site .work-enquiry h2 { margin-bottom: 17px; color: #fff; font-size: 36px; font-weight: 500; line-height: 1.12; letter-spacing: -.035em; }
.smph-site .work-enquiry p:last-child { margin: 0; color: var(--muted, #b2bec2); font-size: 15px; line-height: 1.7; }
.smph-site .work-enquiry .button { flex-shrink: 0; background: var(--blue, #6fbed8); border-color: var(--blue, #6fbed8); color: var(--deep, #10191e); }
.smph-site .work-enquiry .button:hover { background: #b0dfec; border-color: #b0dfec; }
.smph-site .gallery-screen-reader { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

/* The native dialog preserves keyboard focus and gives each image the full available area. */
.smph-site .project-lightbox {
  position: fixed;
  inset: 0;
  width: min(1200px, calc(100vw - 40px));
  max-width: calc(100vw - 40px);
  height: calc(100vh - 40px);
  height: calc(100dvh - 40px);
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #4b5e6a;
  border-radius: 0;
  background: var(--deep, #10191e);
  color: #fff;
  box-shadow: 0 20px 80px #0005;
}
.smph-site .project-lightbox::backdrop { background: rgba(5, 16, 24, .9); }
.smph-site .project-lightbox:not([open]) { display: none; }
.smph-site .project-lightbox-shell { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.smph-site .project-lightbox-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 18px; border-bottom: 1px solid #ffffff24; }
.smph-site .project-lightbox-top p { margin: 0; color: #dce6ec; font-size: 13px; line-height: 1.5; }
.smph-site .project-close { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; min-width: 82px; padding: 7px; border: 0; background: transparent; color: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.smph-site .project-close > span { font-family: Arial, sans-serif; font-size: 29px; line-height: 1; }
.smph-site .project-lightbox-media { display: flex; align-items: center; justify-content: center; overflow: hidden; min-height: 0; padding: 15px; }
.smph-site .project-lightbox-media > img,
.smph-site .project-lightbox-media > video { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; margin: auto; }
.smph-site .project-lightbox-media > video { width: 100%; height: 100%; }
.smph-site .project-lightbox-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 18px; border-top: 1px solid #ffffff24; }
.smph-site .project-lightbox-bottom h2 { margin: 0; color: #fff; font-family: var(--sans, 'Mangan Sans', Arial, sans-serif); font-size: 21px; font-weight: 550; line-height: 1.4; letter-spacing: -.015em; }
.smph-site .project-lightbox-controls { display: flex; gap: 10px; flex: none; }
.smph-site .project-lightbox-controls button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid #8c9ca6; border-radius: 0; background: transparent; color: #fff; font-family: Arial, sans-serif; font-size: 25px; line-height: 1; cursor: pointer; }
.smph-site .project-lightbox-controls button:hover { background: #ffffff16; }
.smph-site .project-lightbox-controls button:disabled { opacity: .35; cursor: default; }
.smph-site .work-filters button:focus-visible,
.smph-site .project-close:focus-visible,
.smph-site .project-lightbox-controls button:focus-visible,
.smph-site .project-card:focus-visible,
.smph-site .work-featured:focus-visible { outline: 3px solid var(--blue, #6fbed8); outline-offset: 4px; }
.smph-site .project-lightbox button:focus-visible { outline-color: #82d7f5; outline-offset: 2px; }

@media (max-width: 1020px) {
  .smph-site .work-hero { min-height: 500px; height: 70svh; }
  .smph-site .work-toolbar { align-items: flex-start; flex-direction: column; gap: 21px; }
  .smph-site .work-filters { justify-content: flex-start; }
  .smph-site .work-overview { gap: 30px; }
  .smph-site .project-grid { column-gap: 22px; }
  .smph-site .work-enquiry h2 { font-size: 33px; }
}
@media (max-width: 680px) {
  .smph-site .work-hero { min-height: 480px; height: 68svh; max-height: 640px; }
  .smph-site .work-featured > img { object-position: 43% 50%; }
  .smph-site .work-intro { padding-bottom: 30px; }
  .smph-site .work-intro-copy > .section-label { margin-bottom: 14px; font-size: 9px; letter-spacing: .1em; }
  .smph-site .work-intro h1 { font-size: 44px; }
  .smph-site .work-featured-caption { top: 18px; right: 18px; padding: 6px 9px 6px 13px; font-size: 11px; }
  .smph-site .work-overview { display: block; padding-top: 25px; padding-bottom: 25px; }
  .smph-site .work-overview p { margin-bottom: 17px; font-size: 15px; }
  .smph-site .work-collection { padding-top: 39px; padding-bottom: 45px; }
  .smph-site .work-toolbar { gap: 17px; margin-bottom: 24px; padding-bottom: 19px; }
  .smph-site .work-toolbar h2 { margin-bottom: 7px; font-size: 28px; }
  .smph-site .work-toolbar p { font-size: 12px; }
  .smph-site .work-filters { gap: 3px 19px; }
  .smph-site .work-filters button { min-height: 44px; padding: 9px 0; font-size: 13px; }
  .smph-site .project-grid { columns: 1; }
  .smph-site .project-card { margin-bottom: 35px; }
  .smph-site .project-caption { padding-top: 15px; gap: 6px 14px; }
  .smph-site .project-caption strong { font-size: 21px; line-height: 1.3; }
  .smph-site .project-category { font-size: 9px; }
  .smph-site .work-gallery-note { padding-top: 20px; font-size: 12px; }
  .smph-site .work-enquiry { padding: 44px 0; }
  .smph-site .work-enquiry-inner { display: block; }
  .smph-site .work-enquiry h2 { max-width: 350px; font-size: 31px; }
  .smph-site .work-enquiry p:last-child { font-size: 14px; }
  .smph-site .work-enquiry .button { margin-top: 23px; min-height: 48px; }
  .smph-site .project-lightbox { width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
  .smph-site .project-lightbox-top { padding: 8px 14px; padding-top: max(8px, env(safe-area-inset-top)); }
  .smph-site .project-lightbox-media { padding: 8px; }
  .smph-site .project-lightbox-bottom { gap: 15px; padding: 13px 14px; padding-bottom: max(13px, env(safe-area-inset-bottom)); }
  .smph-site .project-lightbox-bottom h2 { font-size: 17px; line-height: 1.4; }
  .smph-site .project-lightbox-controls { gap: 8px; }
}
@media (max-width: 360px) {
  .smph-site .work-intro h1 { font-size: 39px; }
  .smph-site .work-filters { gap: 3px 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .smph-site .project-card, .smph-site .work-featured { transition: none; }
}
@media print {
  .smph-site.page-work { background: #fff; color: #111; }
  .smph-site .work-filters, .smph-site .project-lightbox, .smph-site .work-enquiry { display: none !important; }
  .smph-site .project-card[hidden] { display: inline-block !important; }
  .smph-site .work-hero { height: 360px; min-height: 360px; }
  .smph-site .project-grid { columns: 2; }
  .smph-site .project-caption, .smph-site .project-category, .smph-site .work-toolbar h2 { color: #111; }
}
