:root {
  --background: oklch(.979 0 0);
  --foreground: oklch(.19 0 0);
  --primary: oklch(.19 0 0);
  --primary-foreground: oklch(.99 0 0);
  --secondary: oklch(.93 0 0);
  --muted-foreground: oklch(.49 0 0);
  --border: oklch(.85 0 0);
  --image-caption: oklch(.99 0 0);
  --overlay: oklch(.09 0 0 / .96);
  --hero-shade: oklch(.1 0 0 / .13);
}

:root.dark {
  --background: oklch(.17 0 0);
  --foreground: oklch(.95 0 0);
  --primary: oklch(.95 0 0);
  --primary-foreground: oklch(.17 0 0);
  --secondary: oklch(.24 0 0);
  --muted-foreground: oklch(.67 0 0);
  --border: oklch(.33 0 0);
}

* {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 5px;
}

.site-header {
  height: 83px;
  background: var(--background);
  position: relative;
  z-index: 20;
}

.header-inner {
  max-width: 1420px;
  padding: 0 52px;
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.wordmark span {
  font-weight: 400;
  font-size: 10px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 13px;
  padding: 6px 0;
  text-underline-offset: 5px;
}

.nav-link:hover,
.nav-link.active {
  text-decoration: underline;
}

.theme-button {
  margin-left: 15px;
  border-left: 1px solid var(--border);
  padding-left: 24px;
  display: flex;
}

.menu-button {
  display: none;
}

.mobile-controls {
  display: none;
}

.hero {
  height: min(740px, calc(100svh - 140px));
  min-height: 480px;
  position: relative;
  overflow: hidden;
}

.hero-image {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center 44%;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-shade);
  pointer-events: none;
}

.hero-caption {
  position: absolute;
  top: 46%;
  left: max(calc((100% - 1120px)/2), 11%);
  margin: 0;
  z-index: 1;
  color: var(--image-caption);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
}

.hero-caption small {
  display: block;
  font-size: 10px;
  margin-top: 9px;
}

.gallery-section {
  padding: 74px 52px 90px;
  max-width: 1530px;
  margin: auto;
}

.section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 29px;
}

.section-top h2,
.section-top p {
  margin: 0;
  font-weight: 400;
  font-size: 12px;
}

.section-top h2 {
  text-transform: uppercase;
}

.section-top a {
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.photo-gallery {
  columns: 3;
  column-gap: 22px;
}

.photo-gallery .photo-button {
  break-inside: avoid;
  margin-bottom: 22px;
}

.photo-button {
  height: auto;
  padding: 0;
  width: 100%;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  position: relative;
  display: block;
}

.photo-button img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .6s ease, filter .6s ease;
}

.photo-button:hover img {
  transform: scale(1.025);
  filter: brightness(.9);
}

.photo-title {
  position: absolute;
  left: 22px;
  bottom: 20px;
  color: var(--image-caption);
  font-size: 11px;
  font-weight: 400;
  opacity: 0;
  transition: opacity .3s;
}

.photo-button:hover .photo-title,
.photo-button:focus-visible .photo-title {
  opacity: 1;
}

.gallery-bottom {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--foreground);
  padding-bottom: 8px;
  font-size: 12px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 35px 52px;
}

.footer-inner {
  max-width: 1426px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-credit {
  font-size: 10px;
  color: var(--muted-foreground);
}

.footer-nav {
  display: flex;
  gap: 28px;
  font-size: 11px;
}

.page-wrap {
  max-width: 1420px;
  margin: auto;
  padding: 76px 52px 100px;
  min-height: 70svh;
}

.page-heading {
  font-size: 30px;
  font-weight: 400;
  margin: 0 0 18px;
  line-height: 1.3;
}

.page-intro {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted-foreground);
  max-width: 510px;
  margin: 0;
}

.page-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 25px;
  margin-bottom: 45px;
}

.filter-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-list button {
  font-weight: 400;
  font-size: 12px;
}

.filter-list .selected {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.lightbox {
  margin: 0;
  border: 0;
  padding: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--overlay);
  color: var(--image-caption);
  display: grid;
  grid-template-rows: 70px minmax(0, 1fr) 70px;
}

.lightbox-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 28px;
  font-size: 12px;
}

.lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 25px;
  min-height: 0;
}

.lightbox-stage img {
  max-height: 100%;
  max-width: calc(100% - 120px);
  object-fit: contain;
  width: auto;
}

.lightbox-caption {
  text-align: center;
  font-size: 12px;
  padding: 25px;
}

.lightbox button {
  color: inherit;
}

.print-image {
  background: var(--secondary);
  padding: 28px;
}

.print-image img {
  width: 100%;
  height: auto;
  display: block;
}

.print-info {
  margin: 20px 0 42px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.print-info h2 {
  font-size: 14px;
  font-weight: 400;
  margin: 0 0 7px;
}

.print-info p {
  font-size: 11px;
  color: var(--muted-foreground);
  margin: 0;
}

.print-status {
  font-size: 11px;
  color: var(--muted-foreground);
  white-space: nowrap;
}

.shop-note {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted-foreground);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 90px;
  align-items: center;
}

.about-grid img {
  width: 100%;
  height: 800px;
  object-fit: cover;
  object-position: 65% center;
}

.about-copy p {
  font-size: 14px;
  line-height: 2;
  max-width: 420px;
  color: var(--muted-foreground);
}

.about-copy .text-link {
  margin-top: 30px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: var(--foreground);
  padding: 13px;
  width: 100%;
  font: inherit;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.form-notice {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted-foreground);
}

.mobile-nav {
  position: fixed;
  top: 72px;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: var(--background);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-nav .nav-link:first-child {
  margin-top: 50px;
}

.mobile-nav .nav-link:last-child {
  margin-bottom: auto;
}

.mobile-nav .nav-link {
  font-size: 24px;
}

.skip-link {
  position: absolute;
  left: 20px;
  top: -60px;
  z-index: 200;
  background: var(--background);
  padding: 12px;
}

.skip-link:focus {
  top: 10px;
}

@media (min-width: 1600px) {
  .hero {
    height: min(850px, calc(100svh - 145px));
  }
}

@media (max-width: 900px) {
  .header-inner {
    padding: 0 30px;
  }

  .desktop-nav {
    gap: 22px;
  }

  .gallery-section,
  .page-wrap {
    padding-left: 30px;
    padding-right: 30px;
  }

  .photo-grid {
    gap: 16px;
  }

  .photo-gallery {
    column-gap: 16px;
  }

  .photo-gallery .photo-button {
    margin-bottom: 16px;
  }

  .about-grid {
    gap: 40px;
  }

  .contact-layout {
    gap: 40px;
  }

  .print-image {
    padding: 23px;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 72px;
  }

  .header-inner {
    padding: 0 23px;
  }

  .wordmark {
    font-size: 21px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-controls {
    display: flex;
    align-items: center;
    gap: 0px;
  }

  .menu-button {
    display: inline-flex;
  }

  .hero {
    height: calc(82svh - 72px);
    min-height: 420px;
    max-height: 680px;
  }

  .hero-image {
    object-position: 58% center;
  }

  .hero-caption {
    left: 8%;
    top: auto;
    bottom: 12%;
    font-size: 16px;
  }

  .hero-caption small {
    font-size: 9px;
  }

  .gallery-section {
    padding: 42px 20px 55px;
  }

  .section-top {
    margin-bottom: 23px;
  }

  .section-top h2 {
    font-size: 10px;
  }

  .section-top a {
    font-size: 10px;
    gap: 7px;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .photo-gallery {
    columns: 2;
    column-gap: 12px;
  }

  .photo-gallery .photo-button {
    margin-bottom: 12px;
  }

  .photo-title {
    display: none;
  }

  .site-footer {
    padding: 30px 23px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-nav {
    gap: 24px;
  }

  .page-wrap {
    padding: 46px 23px 65px;
  }

  .page-heading {
    font-size: 27px;
  }

  .page-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
  }

  .filter-list {
    gap: 0;
    margin-left: -12px;
  }

  .about-grid,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .about-grid img {
    height: 410px;
  }

  .print-image {
    padding: 18px;
  }

  .print-info {
    flex-direction: column;
    margin-top: 14px;
    gap: 12px;
  }

  .print-info h2 {
    font-size: 12px;
  }

  .lightbox-stage {
    padding: 0 8px;
    gap: 0;
  }

  .lightbox-stage img {
    max-width: calc(100% - 76px);
  }

  .lightbox-top {
    padding: 12px 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  border-radius: 2px;
}

.icon-btn:hover {
  background: var(--secondary);
}

.lightbox .icon-btn:hover {
  background: oklch(1 0 0 / .1);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.photo-button {
  border: 0;
  cursor: pointer;
  margin: 0;
}

.filter-list button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  min-height: 44px;
  padding: 0 12px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: inherit;
  padding: 0 18px;
  min-height: 44px;
  font: inherit;
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--secondary);
}

.btn-outline svg,
.text-link svg,
.section-top a svg {
  width: 14px;
  height: 14px;
}

.lightbox:not([open]) {
  display: none;
}

.mt-8 {
  margin-top: 32px;
}

.mobile-nav[hidden],
[hidden] {
  display: none !important;
}

/* Shop buy button */
.buy-btn {
  min-height: 24px;
  padding: 0 10px;
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.buy-btn.is-disabled {
  opacity: .45;
  cursor: not-allowed;
}

.buy-btn.is-disabled:hover {
  background: transparent;
}

/*logo svg*/
.logo-link {
  display: inline-flex;
  align-items: center;
}

.logo-img {
  display: block;
  width: auto;
}

.logo-header {
  height: 24px;
}

.logo-footer {
  height: 24px;
}

.logo-dark {
  display: none;
}

.dark .logo-light {
  display: none;
}

.dark .logo-dark {
  display: block;
}

/* Photo gallery: rows fill left to right in the same order as photographs.js, no cropping */
.photo-gallery {
  columns: auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.photo-gallery .photo-button {
  margin-bottom: 0;
}

.photo-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.print-info {
  flex-wrap: wrap;
}

@media (max-width: 1200px) {

  .photo-gallery,
  .photo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {

  .photo-gallery,
  .photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {

  .photo-gallery,
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

/* ===== Smooth photo loading ===== */
/* photos are always visible; when one finishes loading it fades in */
@keyframes photoIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.photo-gallery .photo-button img.is-loaded,
.print-image img.is-loaded,
.project-media img.is-loaded {
  animation: photoIn .7s ease both;
}