* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  text-rendering: geometricPrecision;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--header-height);
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

main {
  min-height: 100vh;
}

.home-main {
  margin-top: calc(var(--header-height) * -1);
}

.touch-trail-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 75;
  opacity: 1;
}

@media (min-width: 981px) {
  .touch-trail-canvas {
    display: none;
  }
}

.about-image,
.project-list-card__image,
.publication-card__cover,
.publication-block--image img,
.project-single-slider__viewport,
.project-slide__media,
.preview-card__image,
.project-stack__visual {
  border-radius: 0 !important;
}

/* Final client revisions: image lightbox */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.86);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.image-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.image-lightbox__frame {
  max-width: min(100%, 1600px);
  max-height: calc(100svh - 56px);
  display: grid;
  place-items: center;
}

.image-lightbox__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100svh - 56px);
  object-fit: contain;
}

.image-lightbox__close {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 201;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 34px;
  line-height: 1;
  color: #fff;
}

.project-slide__media img,
.publication-block--image img,
.about-image img,
[data-lightbox-image] {
  cursor: zoom-in;
}

body.page-home {
  padding-top: 0;
  overflow: hidden;
  background: #111;
}

/* Final client batch: every public inner page uses the same grey as Projects */
body.has-header-fill:not(.admin-body) {
  --bg: var(--page-grey);
  background: var(--page-grey);
}

body.has-header-fill:not(.admin-body) main {
  background: var(--page-grey);
}

/* Final client batch: lightbox arrows */
.image-lightbox__nav {
  position: fixed;
  top: 50%;
  z-index: 201;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  color: transparent;
}

.image-lightbox__nav::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  border-top: 3px solid rgba(255, 255, 255, 0.86);
  border-left: 3px solid rgba(255, 255, 255, 0.86);
}

.image-lightbox__nav--prev {
  left: 22px;
}

.image-lightbox__nav--prev::before {
  transform: rotate(-45deg);
}

.image-lightbox__nav--next {
  right: 22px;
}

.image-lightbox__nav--next::before {
  transform: rotate(135deg);
}

.image-lightbox__nav:disabled {
  opacity: 0.24;
  cursor: default;
}

@media (max-width: 980px) {
  .image-lightbox__nav {
    width: 48px;
    height: 48px;
  }

  .image-lightbox__nav--prev {
    left: 6px;
  }

  .image-lightbox__nav--next {
    right: 6px;
  }
}


/* 0104.8 simple centered footer requested by client */
.site-footer {
  width: 100%;
  padding: 72px 16px 48px;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer p {
  margin: 0;
  font-family: var(--font-light);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: 0.02em;
}

@media (max-width: 980px) {
  .site-footer {
    padding: 58px 16px 42px;
  }
}
