@font-face {
  font-family: Raleway;
  src: url(raleway-200.woff2) format("woff2");
  font-weight: 200;
  font-display: block;
}
@font-face {
  font-family: Raleway;
  src: url(raleway-300.woff2) format("woff2");
  font-weight: 300;
  font-display: block;
}
@font-face {
  font-family: Raleway;
  src: url(raleway-400.woff2) format("woff2");
  font-weight: 400;
  font-display: block;
}
* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
@supports not (scrollbar-gutter: stable) {
  html { overflow-y: scroll; }
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: #f8f8f8;
  color: #080808;
  font-family: "Helvetica Neue", Arial, sans-serif;
}
a { color: inherit; }
.header {
  --header-height: 100px;
  position: relative;
  z-index: 1;
  background: #f8f8f8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
  flex-shrink: 0;
  padding: 0 4%;
  border: 1px solid #ddd;
  box-shadow: 0 6px 24px #00000004;
}
.brand {
  font: 200 clamp(25px, 3.5vw, 40px)/1 Raleway, sans-serif;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.desktop-menu { display: none; }
.menu summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  list-style: none;
  cursor: pointer;
}
.menu summary::-webkit-details-marker { display: none; }
.menu span {
  width: 35px;
  height: 3px;
  background: currentColor;
  box-shadow: 0 -9px, 0 9px;
}
.menu[open] summary span {
  transform: rotate(45deg);
  box-shadow: none;
}
.menu[open] summary span::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
  transform: rotate(90deg);
}
.menu[open] nav {
  position: absolute;
  inset: 100% 0 auto;
  height: calc(100dvh - var(--header-height));
  padding: 60px 8vw;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 36px;
  overflow: auto;
  background: #f6f6f6;
}
.header nav a {
  padding-block: 3px;
  border-bottom: 1px solid transparent;
  font: 400 clamp(23.4px, 18px + .36vw, 27px)/2 Raleway, sans-serif;
  text-transform: uppercase;
  text-decoration: none;
}
.menu nav a { font-size: clamp(24px, 7vw, 30px); line-height: 1.3; }
.header nav a:hover,
.header nav a:focus-visible,
.header nav a[aria-current="page"] {
  border-bottom-color: #646464;
}
@media (min-width: 1200px) {
  .desktop-menu { display: flex; align-items: center; gap: 2vw; }
  .menu { display: none; }
}
main { margin-inline: auto; width: 94%; max-width: 1600px; }
h1 {
  margin: 57px 0 120px;
  text-align: center;
  font: 300 clamp(31px, 3.7vw, 54px)/1.2 Raleway, sans-serif;
  text-transform: uppercase;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.gallery a {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 2px;
  cursor: zoom-in;
}
.gallery img { width: 100%; height: 100%; display: block; object-fit: cover; }
.no-js [data-src] { display: none; }
[data-src], .stage img { opacity: 0; transition: opacity 350ms ease-out; }
img.is-loaded { opacity: 1; }
.gallery img[hidden] { display: none; }
.gallery a.is-unavailable { background: #eee; display: grid; place-items: center; }
.next-project { display: block; text-align: right; padding: 60px 0; text-transform: uppercase; }
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin-top: auto;
  padding: 52px 15px 22px;
}
footer a {
  font-size: 17px;
  text-transform: uppercase;
  text-decoration: none;
}
body:has(.lightbox[open]) { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  margin: 0;
  border: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 0;
  background: rgba(248, 248, 248, .98);
  color: #555;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.stage {
  display: grid;
  place-items: center;
  width: 90%;
  height: 90%;
  min-height: 0;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
}
.stage img {
  grid-area: 1 / 1;
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.lightbox button {
  position: absolute;
  width: 55px;
  height: 55px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.close { top: 3%; right: 3%; opacity: .6; }
.close:hover, .close:focus-visible { opacity: 1; }
.close::before, .close::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  top: calc(50% - 1.5px);
  left: 0;
  background: currentColor;
  transform: rotate(45deg);
}
.close::after { transform: rotate(-45deg); }
.lightbox :is(.previous, .next) {
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #f8f8f8;
  color: #333;
  box-shadow: 0 1px 5px #0002;
}
.lightbox :is(.previous, .next):hover { background: #fff; }
.lightbox :is(.previous, .next)[hidden] { display: none; }
.previous { left: 1%; }
.next { right: 1%; }
.previous::before, .next::before {
  content: "";
  display: inline-block;
  width: 19px;
  height: 19px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(135deg);
}
.next::before { transform: rotate(-45deg); }
.status { position: absolute; bottom: 0; margin: 0 0 8px; }
@media (max-width: 600px) {
  .header { --header-height: 76px; }
  .lightbox :is(.previous, .next) { width: 44px; height: 44px; }
  .previous::before, .next::before { width: 14px; height: 14px; }
  .menu span { width: 28px; }
  h1 { margin: 42px 0 65px; }
  .gallery { gap: 12px; }
  .lightbox .close { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-src], .stage img { transition: none; }
}


.gallery + .gallery { margin-top: 54px; }
.portfolio-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.portfolio-list a { text-decoration: none; }
.portfolio-list img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.portfolio-list h2, .text-page h2 { font: 300 30px/1.3 Raleway, sans-serif; text-transform: uppercase; }
.portfolio-list h2 { text-align: center; }
.text-page { max-width: 750px; margin: 0 auto 70px; font-size: 18px; line-height: 1.65; }
.portrait { display: block; width: min(100%, 440px); aspect-ratio: 4/3; object-fit: cover; margin: 0 auto 48px; }
@media (max-width: 600px) {
  .gallery + .gallery { margin-top: 30px; }
  .portfolio-list { grid-template-columns: 1fr; }
}

.contact-form { display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 6px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #707070;
  background: #fff;
  color: inherit;
  font: inherit;
}
.contact-form button {
  justify-self: start;
  padding: 8px 22px;
  border: 1px solid #555;
  border-radius: 30px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
