@font-face {
  font-family: 'Gambarino';
  src: url('../assets/fonts/Gambarino-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Times Newer Roman';
  src: url('../assets/fonts/TimesNewerRoman-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  min-height: 100vh;
  min-width: 100%;
  width: 100%;
  background: #000 url('../assets/images/landingpage.jpg') center center / cover no-repeat fixed;
  font-family: 'Gambarino', serif;
  color: #901313;
  position: relative;
}

body.is-lightbox-open {
  overflow: hidden;
}

.page,
.card {
  background: none;
  box-shadow: none;
  border: none;
  padding: 0;
  margin: 0;
}

.page {
  min-height: 100vh;
}

.card {
  position: relative;
  min-height: 100vh;
}

.footer-row {
  position: absolute;
  left: 4.2vw;
  right: 5vw;
  bottom: 4.2vh;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  z-index: 10;
}

.footer-row h1,
.footer-row h1 a {
  font-family: 'Gambarino', serif;
  position: relative;
  margin: 0;
  font-size: clamp(4.8rem, 9.2vw, 10rem);
  line-height: 0.82;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: #901313;
  text-decoration: none;
}

.page-footer {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin: 0 0 0.65rem;
  padding: 0;
  color: #901313;
  font-size: clamp(1rem, 1.65vw, 1.8rem);
  font-family: 'Gambarino', serif;
  white-space: nowrap;
}

.page-footer .footer-contact {
  color: #901313;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.1em;
}

.page-footer .footer-separator {
  text-decoration: none;
}

nav.button-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

nav.button-grid a {
  position: absolute;
  display: block;
  pointer-events: auto;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  color: #901313;
  font-family: 'Gambarino', serif;
  font-size: 32px;
  font-style: normal;
  font-weight: 400;
  line-height: 88%;
  letter-spacing: 0.01em;
  text-align: left;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
}

nav.button-grid a:hover,
nav.button-grid a:focus {
  color: #7d0b0d;
}

nav.button-grid a[aria-disabled="true"] {
  cursor: default;
}

nav.button-grid a[aria-disabled="true"]:hover,
nav.button-grid a[aria-disabled="true"]:focus {
  color: #901313;
}

.nav-about {
  top: 27.2%;
  left: 48.1%;
}

.nav-film {
  top: 9.7%;
  left: 74%;
}

.nav-motion {
  top: 51.4%;
  left: 61.3%;
}

.nav-photo {
  top: 33.2%;
  left: 82.7%;
  transform: translateX(-50%);
}

.nav-more {
  top: 60%;
  left: 81.5%;
  transform: translateX(-50%);
}

.nav-about br + span {
  display: block;
  margin-top: 0.28em; /* Slightly more vertical gap */
  margin-left: 2.1em; /* Move 'ME' more to the left */
}

.nav-more br + span {
  display: block;
  margin-top: 0.28em; /* Slightly more vertical gap */
  margin-left: -1.2em; /* Move 'MORE' a bit more left */
  text-align: center;
}

.lang-btn {
  position: absolute;
  right: 4.8vw;
  bottom: 18.2vh;
  display: grid;
  place-items: center;
  width: clamp(3.2rem, 4.3vw, 4.6rem);
  height: clamp(3.2rem, 4.3vw, 4.6rem);
  border: 1.25px solid #901313;
  border-radius: 50%;
  background: none;
  color: #901313;
  font-family: 'Gambarino', serif;
  font-size: clamp(1.35rem, 1.9vw, 2rem);
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
  z-index: 11;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  color: #7d0b0d;
  border-color: #7d0b0d;
}

@media (max-width: 700px) {
  body {
    background-position: 38% center;
    overflow-x: hidden;
  }

  .footer-row {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    min-height: 100vh;
    padding: 0 1.25rem 1.5rem;
    flex-direction: column-reverse;
    align-items: flex-start;
    justify-content: flex-end;
  }

  .footer-row h1,
  .footer-row h1 a {
    width: 100%;
    font-size: clamp(4.5rem, 22vw, 7rem);
    line-height: 0.88;
    white-space: normal;
  }

  .page-footer {
    width: 100%;
    margin: 0 0 1rem;
    font-size: clamp(0.95rem, 4vw, 1.2rem);
    flex-wrap: wrap;
    gap: 0.3rem;
    white-space: normal;
  }

  nav.button-grid a {
    font-size: clamp(1.65rem, 7vw, 2.15rem);
  }

  .nav-about {
    top: 20%;
    left: 55%;
  }

  .nav-film {
    top: 10%;
    left: 70%;
  }

  .nav-photo {
    top: 29%;
    left: 79%;
  }

  .nav-motion {
    top: 47%;
    left: 58%;
  }

  .nav-more {
    top: 60%;
    left: 79%;
  }

  .lang-btn {
    right: 1.5rem;
    bottom: 12.5rem;
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.55rem;
  }
}

.about-page-body {
  min-height: 100vh;
  background: #fffcee;
  color: #111;
  display: flex;
  flex-direction: column;
}

.about-page {
  flex: 1;
  min-height: calc(100vh - clamp(3.4rem, 4.5vw, 4.6rem));
  padding: clamp(2rem, 4vw, 3rem) clamp(2rem, 4.2vw, 3.75rem) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(16rem, 22vw);
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
  --about-sidebar-pad-top: clamp(0.5rem, 2vh, 1.25rem);
  --about-nav-film-top: 11.4rem;
}

.about-copy {
  align-self: start;
  max-width: min(40rem, 100%);
  padding-top: calc(var(--about-sidebar-pad-top) + var(--about-nav-film-top));
  padding-bottom: clamp(3rem, 6vh, 4.5rem);
  margin-bottom: 0;
  font-family: 'Times Newer Roman', serif;
  font-size: clamp(1.15rem, 1.55vw, 1.65rem);
  font-weight: 400;
  line-height: 1.34;
  letter-spacing: 0.01em;
  word-spacing: 0.08em;
}

.about-copy p {
  margin: 0;
}

.about-copy p + p {
  text-indent: 1.1em;
  margin-top: 0.12em;
}

.about-copy-intro {
  margin-bottom: 0.1em;
}

.about-copy-intro + p {
  text-indent: 0;
}

.about-copy-first-paragraph {
  text-indent: 0 !important;
}

.about-sidebar {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding-top: var(--about-sidebar-pad-top);
  padding-bottom: clamp(3rem, 7vh, 4.5rem);
}

.about-nav {
  position: relative;
  width: clamp(12rem, 16vw, 15rem);
  height: clamp(24rem, 39vw, 31rem);
}

.about-nav a {
  position: absolute;
  color: #901313;
  font-family: 'Gambarino', serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 88%;
  letter-spacing: -0.015em;
  text-align: right;
  text-decoration: underline;
  text-underline-offset: 0.08em;
  text-decoration-thickness: 1px;
}

.about-nav a:hover,
.about-nav a:focus {
  color: #000;
}

.about-nav a[aria-disabled="true"] {
  cursor: default;
}

.about-nav a[aria-disabled="true"]:hover,
.about-nav a[aria-disabled="true"]:focus {
  color: #901313;
}


.about-nav a.is-active {
  color: #000;
}
.about-nav a:not(.is-active) {
  color: #901313;
}

.about-nav span {
  display: block;
}

.about-nav a:nth-child(1) span {
  margin-top: 0.42em;
  margin-right: -0.2em;
}

.about-nav a:nth-child(5) span {
  margin-top: 0.42em;
  margin-right: 0.95em;
}

.about-nav a:nth-child(1) {
  top: 0;
  right: 2.25rem;
}

.about-nav a:nth-child(2) {
  top: 6.2rem;
  right: -1rem;
}

.about-nav a:nth-child(3) {
  top: 11.4rem;
  right: 4rem;
}

.about-nav a:nth-child(4) {
  top: 15.6rem;
  right: 0;
}

.about-nav a:nth-child(5) {
  top: 20.1rem;
  right: 5.4rem;
}

.about-lang-btn {
  position: absolute;
  top: 27.6rem !important;
  right: 0.2rem;
  margin: 0;
  width: 63px;
  height: 63px;
  border: 1.25px solid #901313;
  border-radius: 50%;
  background: transparent;
  color: #901313;
  font-family: 'Gambarino', serif;
  font-size: clamp(1.65rem, 2vw, 2.1rem);
  line-height: 1;
  cursor: pointer;
}

.about-footer {
  margin-top: auto;
  position: relative;
  top: -18px;
  padding: 0 clamp(2rem, 4.2vw, 3.75rem) 0.45rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.about-signature,
.about-signature a {
  margin: 0;
  color: #901313;
  text-decoration: none;
  font-family: 'Gambarino', serif;
  font-size: clamp(2.45rem, 3.35vw, 3.75rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.about-contact {
  margin: 0 0 0.15rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  color: #901313;
  font-family: 'Gambarino', serif;
  font-size: clamp(0.9rem, 1.1vw, 1.1rem);
}

.about-contact a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.08em;
}

.detail-page-body {
  min-height: 100vh;
  background: #fffcee;
  color: #111;
  display: flex;
  flex-direction: column;
}

.detail-page {
  flex: 1;
  padding: clamp(2rem, 4vw, 3rem) clamp(2rem, 4.2vw, 3.75rem) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 18vw);
  column-gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.detail-content {
  grid-column: 1 / 2;
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 3.8vh, 2.6rem);
  padding-bottom: calc(clamp(3.5rem, 7vh, 5rem) + 6rem);
}

.detail-header {
  display: grid;
  grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr);
  column-gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  padding-top: clamp(1rem, 2.4vh, 1.75rem);
}

.detail-title {
  margin: 0;
  color: #000;
  font-family: 'Gambarino', serif;
  font-size: clamp(3.1rem, 4.6vw, 4.2rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.detail-date {
  margin: 1.25rem 0 0;
  color: #901313;
  font-family: 'Gambarino', serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 88%;
  white-space: nowrap;
}

.detail-description {
  max-width: 58rem;
  font-family: 'Times Newer Roman', serif;
  font-size: clamp(1.15rem, 1.45vw, 1.6rem);
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: 0.01em;
  word-spacing: 0.08em;
  padding-top: 1.1rem;
  width: 100%;
}

.detail-description p {
  margin: 0;
}

.detail-description p + p {
  text-indent: 1.1em;
  margin-top: 0.12em;
}

.detail-credits {
  margin: 1.35rem 0 0;
  max-width: 14rem;
  font-family: 'Times Newer Roman', serif;
  font-size: clamp(1.15rem, 1.35vw, 1.5rem);
  line-height: 1.14;
}

.detail-subtitle {
  margin: 0.75rem 0 0;
  color: #901313;
  font-family: 'Times Newer Roman', serif;
  font-size: clamp(1.05rem, 1.25vw, 1.35rem);
}

.detail-credits-block {
  margin: 1.25rem 0 0;
  font-family: 'Times Newer Roman', serif;
  font-size: clamp(1.05rem, 1.25vw, 1.35rem);
  line-height: 1.3;
  white-space: pre-line;
}

.detail-media {
  padding: 0;
  display: flex;
  justify-content: flex-start;
}

.detail-video {
  width: min(100%, 64rem);
  aspect-ratio: 16 / 9;
  background: #000;
}

.detail-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.detail-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: min(100%, 64rem);
  margin: 0;
}

.detail-video-grid .detail-video {
  width: 100%;
}

.detail-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: min(100%, 64rem);
  margin: 0;
}

.detail-media-grid video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.detail-video-fallback {
  margin: 0.75rem 0 0;
  font-family: 'Times Newer Roman', serif;
  font-size: clamp(1rem, 1.15vw, 1.25rem);
}

.detail-video-fallback a {
  color: #901313;
  text-decoration: underline;
  text-underline-offset: 0.08em;
}

.detail-stills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  width: min(100%, 58rem);
  margin: 0;
}

.detail-stills.is-3-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-stills .gallery-img,
.detail-backstage .gallery-img,
.detail-media-grid .gallery-img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.detail-stills .gallery-img.is-span-2 {
  grid-column: 1 / -1;
}

.detail-section-title {
  margin: 0 0 1rem;
  font-family: 'Times Newer Roman', serif;
  font-size: clamp(1.15rem, 1.35vw, 1.5rem);
  font-weight: 400;
}

.detail-backstage {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  width: min(100%, 58rem);
  margin: 0;
}

.detail-gallery {
  margin-top: 0.25rem;
  padding: clamp(1.4rem, 3.2vh, 2.4rem) 0 clamp(3.5rem, 7vh, 5rem);
}

.detail-hero,
.detail-poster {
  width: min(100%, 58rem);
  margin: 0;
}

.detail-hero img,
.detail-poster img {
  width: 100%;
  height: auto;
  display: block;
}

.detail-page .project-sidebar {
  grid-column: 2 / 3;
  min-height: auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 64rem;
}

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

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

.gallery-img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
}

.gallery-img.is-span-2 {
  grid-column: 1 / -1;
}

.detail-to-top {
  position: fixed;
  right: clamp(2rem, 4.2vw, 3.75rem);
  bottom: 6.4rem;
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  z-index: 40;
  text-decoration: none;
}

.detail-to-top img {
  width: 1.6rem;
  height: 1.6rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  padding: 3.25rem 3.25rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-image {
  max-width: min(92vw, 1200px);
  max-height: 88vh;
  object-fit: contain;
  display: block;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus-visible,
.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.9);
}

.lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
}

.lightbox-prev {
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.project-page-body {
  height: 100vh;
  background: #fffcee;
  color: #111;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.project-page {
  flex: 1;
  height: 100vh;
  padding: clamp(2rem, 4vw, 3rem) clamp(2rem, 4.2vw, 3.75rem)
    calc(clamp(4.25rem, 7.5vw, 5.25rem) + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 22vw);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: stretch;
}

.project-list {
  padding-top: clamp(1rem, 2.4vh, 1.75rem);
  padding-bottom: clamp(3.5rem, 7vh, 5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.15rem, 2.6vh, 1.75rem);
  max-width: 58rem;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.75rem;
}

.project-row {
  display: grid;
  grid-template-columns: minmax(12rem, 0.78fr) 200px minmax(7rem, 9.5rem);
  gap: clamp(0.9rem, 2.4vw, 1.6rem);
  align-items: center;
}

.project-title {
  margin: 0;
  color: #000;
  font-family: 'Gambarino', serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.22;
  text-align: right;
  justify-self: end;
  text-wrap: balance;
}

.project-list.is-centered {
  justify-content: center;
  padding-top: 0;
  padding-bottom: 0;
}

.project-page-body[data-project="film"] .project-row,
.project-page-body[data-project="motion"] .project-row,
.project-page-body[data-project="more"] .project-row {
  grid-template-columns: minmax(12rem, 0.78fr) 280px minmax(7rem, 9.5rem);
}

.project-page-body[data-project="film"] .project-thumb,
.project-page-body[data-project="motion"] .project-thumb,
.project-page-body[data-project="more"] .project-thumb {
  width: 280px;
  height: 165px;
}

.project-page-body[data-project="more"] .project-title {
  text-align: center;
  justify-self: center;
}

.project-page-body[data-project="more"] .project-date {
  white-space: normal;
}

.project-nav a[aria-disabled="true"] {
  cursor: default;
}

.project-thumb {
  width: 200px;
  height: 118px;
  object-fit: cover;
  display: block;
  justify-self: start;
}

.project-item-link {
  color: inherit;
  text-decoration: none;
  display: inline-block;
}

.project-item-link:hover,
.project-item-link:focus-visible {
  color: #7d0b0d;
}

.project-date {
  margin: 0;
  color: #901313;
  font-family: 'Gambarino', serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 88%;
  text-align: left;
  white-space: nowrap;
  justify-self: start;
}

.project-date:empty {
  visibility: hidden;
}

.project-sidebar {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding-top: clamp(0.5rem, 2vh, 1.25rem);
  padding-bottom: clamp(3rem, 7vh, 4.5rem);
}

.project-nav {
  position: relative;
  width: clamp(12rem, 16vw, 15rem);
  height: clamp(24rem, 39vw, 31rem);
}

.project-nav a {
  position: absolute;
  color: #901313;
  font-family: 'Gambarino', serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 88%;
  letter-spacing: -0.015em;
  text-align: right;
  text-decoration: underline;
  text-underline-offset: 0.08em;
  text-decoration-thickness: 1px;
}

.project-nav a:hover,
.project-nav a:focus {
  color: #7d0b0d;
}

.project-nav a[aria-disabled="true"]:hover,
.project-nav a[aria-disabled="true"]:focus {
  color: #901313;
}

.project-nav a[aria-current="page"] {
  color: #000;
}

.project-nav span {
  display: block;
}

.project-nav a:nth-child(1) span {
  margin-top: 0.42em;
  margin-right: -0.2em;
}

.project-nav a:nth-child(5) span {
  margin-top: 0.42em;
  margin-right: 0.95em;
}

.project-nav a:nth-child(1) {
  top: 0;
  right: 2.25rem;
}

.project-nav a:nth-child(2) {
  top: 6.2rem;
  right: -1rem;
}

.project-nav a:nth-child(3) {
  top: 11.4rem;
  right: 4rem;
}

.project-nav a:nth-child(4) {
  top: 15.6rem;
  right: 0;
}

.project-nav a:nth-child(5) {
  top: 20.1rem;
  right: 5.4rem;
}

.project-lang-btn {
  position: absolute;
  top: 27.6rem;
  right: 0.2rem;
  margin: 0;
  width: 63px;
  height: 63px;
  border: 1.25px solid #901313;
  border-radius: 50%;
  background: transparent;
  color: #901313;
  font-family: 'Gambarino', serif;
  font-size: clamp(1.65rem, 2vw, 2.1rem);
  line-height: 1;
  cursor: pointer;
}

.project-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 0 clamp(2rem, 4.2vw, 3.75rem) 0.45rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  background: transparent;
  transform: translateY(-18px);
}

.project-signature,
.project-signature a {
  margin: 0;
  color: #901313;
  text-decoration: none;
  font-family: 'Gambarino', serif;
  font-size: clamp(2.45rem, 3.35vw, 3.75rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.project-contact {
  margin: 0 0 0.15rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  color: #901313;
  font-family: 'Gambarino', serif;
  font-size: clamp(0.9rem, 1.1vw, 1.1rem);
}

.project-contact a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.08em;
}

@media (max-width: 900px) {
  .detail-page {
    grid-template-columns: 1fr;
  }

  .detail-page .project-sidebar {
    grid-column: auto;
    grid-row: auto;
  }

  .detail-header {
    grid-template-columns: 1fr;
    row-gap: 1.25rem;
  }

  .detail-gallery {
    grid-column: auto;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    max-width: 34rem;
  }

  .detail-to-top {
    bottom: 5.25rem;
  }

  .project-page-body {
    height: auto;
    overflow: auto;
  }

  .project-page {
    height: auto;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-list {
    overflow: visible;
    padding-right: 0;
  }

  .project-sidebar {
    align-items: flex-start;
    padding-bottom: 2rem;
  }

  .project-nav {
    position: static;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .project-nav a {
    position: static;
    text-align: left;
    font-size: clamp(1.65rem, 7vw, 2rem);
  }

  .project-lang-btn {
    position: static;
    margin-top: 2rem;
  }

  .project-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .project-title {
    font-size: clamp(1.65rem, 6.6vw, 2rem);
    text-align: left;
    justify-self: start;
  }

  .project-date {
    font-size: clamp(1.5rem, 6vw, 1.9rem);
  }

  .project-thumb {
    width: min(100%, 26rem);
    height: auto;
    aspect-ratio: 22 / 13;
  }

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

  .project-contact {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .about-page {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .about-copy {
    max-width: 100%;
    padding-top: 0;
    padding-bottom: 2.5rem;
    margin-bottom: 0;
    order: 2;
    font-size: clamp(1.25rem, 4vw, 1.55rem);
  }

  .about-sidebar {
    order: 1;
    align-items: flex-start;
    padding-bottom: 2rem;
  }

  .about-nav {
    position: static;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .about-nav a {
    position: static;
    text-align: left;
    font-size: clamp(1.65rem, 7vw, 2rem);
  }

  .about-lang-btn {
    position: static;
    margin-top: 2rem;
    margin-right: 0;
  }

  .about-footer {
    top: 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .about-contact {
    justify-content: flex-start;
  }
}
