.gy-content-section--gallery {
  --gy-gallery-canvas: #f3f5f2;
  --gy-gallery-paper: #fff;
  --gy-gallery-line: rgba(7, 17, 29, .14);
  display: block;
  min-height: 0;
  padding: 0;
  overflow: clip;
  color: var(--gy-text);
  background: var(--gy-gallery-canvas);
}

.gy-project-archive {
  position: relative;
}

.gy-project-archive__intro {
  position: relative;
  min-height: 286px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  align-items: end;
  gap: clamp(48px, 7vw, 130px);
  padding: clamp(104px, 9vw, 148px) max(24px, calc((100vw - 1760px) / 2 + 40px)) 94px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 90px 90px,
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 90px 90px,
    linear-gradient(126deg, #07111d 0%, #0c2032 66%, #123146 100%);
}

.gy-project-archive__intro::after {
  content: "";
  position: absolute;
  right: -7vw;
  bottom: -25vw;
  width: min(46vw, 720px);
  aspect-ratio: 1;
  border: 1px solid rgba(180, 218, 86, .2);
  border-radius: 50%;
  box-shadow: 0 0 0 6vw rgba(255,255,255,.018), 0 0 0 13vw rgba(255,255,255,.012);
  pointer-events: none;
}

.gy-project-archive__heading,
.gy-project-archive__lead {
  position: relative;
  z-index: 1;
}

.gy-project-archive__heading > p {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
  font-size: 10px;
  letter-spacing: .18em;
}

.gy-project-archive__heading > p b {
  color: var(--gy-lime);
  font-weight: 700;
}

.gy-project-archive__heading > p span {
  color: rgba(255,255,255,.66);
}

.gy-project-archive__heading h2 {
  max-width: 900px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.55rem, 5.4vw, 6.5rem);
  font-weight: 650;
  line-height: .96;
  letter-spacing: -.065em;
  word-break: keep-all;
}

.gy-project-archive__lead {
  max-width: 510px;
  justify-self: end;
  padding-bottom: 4px;
}

.gy-project-archive__lead p {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.85;
  word-break: keep-all;
}

.gy-project-archive__lead a {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  padding: 0 0 10px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.42);
  font-size: 12px;
  text-decoration: none;
  transition: color .25s ease, border-color .25s ease, gap .25s ease;
}

.gy-project-archive__lead a:hover,
.gy-project-archive__lead a:focus-visible {
  gap: 32px;
  color: var(--gy-lime);
  border-color: var(--gy-lime);
}

.gy-gallery-shell {
  position: relative;
  z-index: 3;
  width: min(100%, 1760px);
  min-width: 0;
  margin: 0 auto;
  padding: 0 clamp(24px, 3vw, 52px) clamp(90px, 9vw, 150px);
}

.gy-gallery-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 16px);
  margin: 0;
  transform: translateY(-48px);
}

.gy-gallery-tabs button {
  position: relative;
  min-width: 0;
  min-height: clamp(240px, 20vw, 340px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  padding: 0;
  overflow: hidden;
  color: #fff;
  text-align: left;
  background: #102130;
  border: 0;
  border-radius: 0;
  box-shadow: 0 16px 36px rgba(7,17,29,.14);
  cursor: pointer;
}

.gy-gallery-tabs button::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.2);
  pointer-events: none;
  transition: border-color .3s ease, box-shadow .3s ease;
}

.gy-gallery-tabs button[aria-selected="true"]::after {
  border-color: var(--gy-lime);
  box-shadow: inset 0 -4px 0 var(--gy-lime);
}

.gy-gallery-tabs__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #142a3d, #647786);
}

.gy-gallery-tabs__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,11,18,.04) 12%, rgba(4,11,18,.18) 48%, rgba(4,11,18,.92) 100%);
  transition: background .35s ease;
}

.gy-gallery-tabs__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(.8) contrast(1.02);
}

.gy-gallery-tabs__copy {
  position: relative;
  z-index: 1;
  align-self: end;
  min-height: 122px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: end;
  column-gap: 12px;
  padding: 20px 18px 18px;
}

.gy-gallery-tabs__copy small {
  grid-row: 1 / span 2;
  padding-top: 4px;
  color: var(--gy-lime);
  font-size: 9px;
  font-style: normal;
  letter-spacing: .1em;
}

.gy-gallery-tabs__copy strong {
  color: #fff;
  font-size: clamp(15px, 1.2vw, 20px);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.025em;
  word-break: keep-all;
}

.gy-gallery-tabs__copy em,
.gy-gallery-tabs__copy i {
  display: block;
  color: rgba(255,255,255,.62);
  font-size: 10px;
  font-style: normal;
  line-height: 1.35;
}

.gy-gallery-tabs__copy i {
  grid-column: 2;
  margin-top: 12px;
  color: rgba(255,255,255,.48);
  font-size: 8px;
  letter-spacing: .14em;
}

.gy-gallery-filter-area {
  min-width: 0;
  display: flex;
  align-items: center;
  margin: 0;
}

.gy-gallery-filter-area[hidden] {
  display: none;
}

.gy-gallery-filters {
  max-width: 100%;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0;
  scrollbar-width: none;
}

.gy-gallery-filters::-webkit-scrollbar {
  display: none;
}

.gy-gallery-filters[hidden] {
  display: none;
}

.gy-gallery-filters button {
  min-width: max-content;
  min-height: 38px;
  padding: 0 17px;
  color: #586671;
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(7,17,29,.15);
  border-radius: 99px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: color .22s ease, background .22s ease, border-color .22s ease;
}

.gy-gallery-filters button:hover {
  color: var(--gy-text);
  border-color: rgba(7,17,29,.35);
}

.gy-gallery-filters button[aria-pressed="true"] {
  color: #fff;
  background: var(--gy-navy);
  border-color: var(--gy-navy);
}

.gy-gallery-grid-meta {
  display: flex;
  align-items: end;
  justify-content: flex-start;
  gap: 30px;
  margin: -8px 0 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gy-gallery-line);
  scroll-margin-top: 112px;
}

.gy-gallery-grid-meta__main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.gy-gallery-grid-meta b {
  color: var(--gy-red);
  font-size: 9px;
  letter-spacing: .18em;
}

.gy-gallery-grid-meta__title-row {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px clamp(18px, 2.5vw, 42px);
}

.gy-gallery-grid-meta__title-row > strong {
  color: var(--gy-text);
  font-size: clamp(24px, 2.4vw, 42px);
  font-weight: 650;
  line-height: 1.16;
  letter-spacing: -.045em;
}

.gy-gallery-grid-meta small {
  margin-top: 5px;
  color: #74808a;
  font-size: 11px;
  line-height: 1.55;
}

.gy-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(38px, 4.5vw, 72px) clamp(18px, 2.2vw, 38px);
}

.gy-gallery-card {
  min-width: 0;
  scroll-margin-top: 112px;
}

.gy-gallery-card[hidden] {
  display: none;
}

.gy-gallery-card > button {
  width: 100%;
  height: auto;
  display: block;
  padding: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.gy-gallery-card__media {
  position: relative;
  aspect-ratio: 16 / 11;
  display: block;
  overflow: hidden;
  background: #dce1e4;
}

.gy-gallery-card__media > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* YouTube maxres removes HQ's 4:3 padding; keep the full thumbnail visible. */
.gy-gallery-card__media > img[src*="i.ytimg.com/vi/"][src*="/maxresdefault."] {
  object-fit: contain;
  background: #000;
}

.gy-gallery-card__placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: #203140;
  text-align: center;
  letter-spacing: .15em;
  background: linear-gradient(145deg, #eef0ef, #d9dedf);
}

.gy-gallery-card__play,
.gy-gallery-card__3d {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  min-width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--gy-red);
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 50%;
  font-size: 14px;
  font-style: normal;
  pointer-events: none;
}

.gy-gallery-card__3d {
  width: auto;
  padding: 0 11px;
  border-radius: 99px;
  font-size: 11px;
}

.gy-gallery-card__copy {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  padding: 18px 3px 0;
  border-top: 3px solid transparent;
}

.gy-gallery-card__copy small {
  color: var(--gy-red);
  font-size: 9px;
  letter-spacing: .14em;
}

.gy-gallery-card__copy strong {
  margin-top: 9px;
  color: var(--gy-text);
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.34;
  letter-spacing: -.025em;
  word-break: keep-all;
}

.gy-gallery-card__copy em {
  max-height: 3em;
  overflow: hidden;
  margin-top: 7px;
  color: #74808a;
  font-size: 12px;
  font-style: normal;
  line-height: 1.5;
}

.gy-gallery-card[data-gallery-mode="youtube"] {
  grid-column: auto;
}

.gy-gallery-card[data-gallery-mode="youtube"] .gy-gallery-card__media {
  aspect-ratio: 16 / 11;
}

.gy-gallery-card[data-gallery-mode="youtube"] .gy-gallery-card__copy {
  min-height: 0;
  padding-bottom: 10px;
}

.gy-gallery-card[data-gallery-mode="youtube"] .gy-gallery-card__copy strong {
  margin-top: 0;
  font-size: clamp(20px, 2vw, 30px);
}

.gy-gallery-card[data-gallery-mode="youtube"] .gy-gallery-card__copy em {
  display: none;
}

.gy-gallery-card[data-gallery-mode="youtube"] .gy-gallery-card__play {
  top: 50%;
  right: 50%;
  bottom: auto;
  width: 72px;
  height: 72px;
  transform: translate(50%, -50%);
  font-size: 20px;
}

.gy-gallery-empty {
  position: relative;
  min-height: clamp(330px, 38vw, 560px);
  display: grid;
  place-content: center;
  margin-top: 4px;
  overflow: hidden;
  color: #65727c;
  text-align: center;
  background:
    linear-gradient(120deg, rgba(255,255,255,.92), rgba(255,255,255,.55)),
    linear-gradient(90deg, transparent 49.9%, rgba(7,17,29,.06) 50%, transparent 50.1%);
  border: 1px solid var(--gy-gallery-line);
}

.gy-gallery-empty::before,
.gy-gallery-empty::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.gy-gallery-empty::before {
  inset: 22px;
  border: 1px solid rgba(7,17,29,.06);
}

.gy-gallery-empty::after {
  top: 50%;
  left: 50%;
  width: min(28vw, 340px);
  aspect-ratio: 1;
  border: 1px solid rgba(7,17,29,.07);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 60px rgba(7,17,29,.018);
}

.gy-gallery-empty > * {
  position: relative;
  z-index: 1;
}

.gy-gallery-empty span {
  margin-bottom: 18px;
  color: var(--gy-red);
  font-size: 9px;
  letter-spacing: .18em;
}

.gy-gallery-empty strong {
  display: block;
  color: var(--gy-text);
  font-size: clamp(24px, 3vw, 44px);
  font-weight: 650;
  letter-spacing: -.045em;
}

.gy-gallery-empty p {
  max-width: 560px;
  margin: 14px auto 0;
  padding: 0 24px;
  color: #76828b;
  font-size: 13px;
  line-height: 1.7;
  word-break: keep-all;
}

.gy-gallery-empty[hidden] {
  display: none;
}

.gy-gallery-detail {
  width: 100%;
  min-width: 0;
  grid-column: 1 / -1;
  margin: clamp(46px, 6vw, 92px) 0 0;
  padding: clamp(20px, 3vw, 42px);
  color: var(--gy-text);
  background: #f8f7f3;
  border: 1px solid var(--gy-gallery-line);
  scroll-margin-top: 150px;
}

.gy-gallery-detail[hidden] {
  display: none;
}

.gy-gallery-grid > .gy-gallery-detail {
  margin: 0;
}

.gy-gallery-detail__close {
  display: block;
  margin: 0 0 18px auto;
  padding: 8px 0;
  color: #5f6b74;
  background: none;
  border: 0;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.gy-gallery-viewer {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr);
  gap: clamp(28px, 4vw, 56px);
}

.gy-gallery-viewer__media {
  min-width: 0;
}

.gy-gallery-video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.gy-gallery-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.gy-gallery-viewer model-viewer {
  width: 100%;
  height: min(68vh, 720px);
  display: block;
  background: #e9edef;
  touch-action: pan-y;
}

.gy-gallery-gesture {
  margin: 10px 0 0;
  color: #7b8790;
  font-size: 11px;
}

.gy-gallery-ar {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 11px 14px;
  color: #fff;
  background: var(--gy-red);
  border: 0;
  border-radius: 4px;
}

.gy-gallery-images__stack {
  display: grid;
  gap: 16px;
}

.gy-gallery-image {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--gy-gallery-canvas);
}

.gy-gallery-image img {
  width: var(--gy-gallery-image-width, auto);
  max-width: 100%;
  margin-inline: auto;
  height: auto;
  display: block;
  object-fit: contain;
  background: transparent;
}

/* Photo descriptions flow directly between images without numbered banners. */
.gy-gallery-image figcaption {
  width: var(--gy-gallery-image-width, 1200px);
  max-width: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(18px, 2vw, 28px) 0;
  color: #5f6b74;
  background: transparent;
  border: 0;
}

.gy-gallery-image figcaption strong {
  color: var(--gy-text);
  font-size: clamp(17px, 1.25vw, 20px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -.02em;
  word-break: keep-all;
}

.gy-gallery-image figcaption em,
.gy-gallery-image figcaption p {
  margin: 0;
  color: #5f6b74;
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.8;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.gy-gallery-viewer__copy {
  align-self: start;
}

.gy-gallery-viewer__copy small {
  color: var(--gy-red);
  font-size: 9px;
  letter-spacing: .14em;
}

.gy-gallery-viewer__copy h3 {
  margin: 12px 0 22px;
  color: var(--gy-text);
  font-size: clamp(1.6rem, 2.6vw, 2.7rem);
  line-height: 1.2;
  letter-spacing: -.04em;
}

.gy-gallery-viewer__copy > div {
  color: #5f6b74;
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-line;
}

.gy-gallery-viewer__copy img {
  max-width: 100%;
  height: auto;
}

.gy-gallery-viewer__empty {
  min-height: 360px;
  display: grid;
  place-items: center;
  color: #65727c;
  background: #ece9e2;
}

.gy-gallery-detail[data-gallery-detail-mode="image"] {
  padding: 0;
  background: transparent;
  border: 0;
}

.gy-gallery-detail[data-gallery-detail-mode="image"] .gy-gallery-detail__close {
  margin: 0 0 14px auto;
}

.gy-gallery-viewer.gy-gallery-viewer--image {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.gy-gallery-viewer--image .gy-gallery-viewer__media,
.gy-gallery-viewer--image .gy-gallery-images,
.gy-gallery-viewer--image .gy-gallery-images__stack {
  display: contents;
}

.gy-gallery-viewer--image .gy-gallery-image {
  order: 3;
  margin-top: 16px;
}

.gy-gallery-viewer--image .gy-gallery-image:first-child {
  order: 1;
  margin-top: 0;
}

.gy-gallery-viewer--image .gy-gallery-image:first-child figcaption {
  text-align: center;
}

.gy-gallery-viewer--image .gy-gallery-viewer__copy {
  position: static;
  order: 2;
  width: var(--gy-gallery-photo-width, 1200px);
  max-width: 100%;
  text-align: center;
  margin-inline: auto;
  padding: 26px 0 34px;
  border: 0;
}

.gy-gallery-viewer--image .gy-gallery-viewer__copy h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
}

@media (min-width: 1181px) {
  .gy-gallery-viewer:not(.gy-gallery-viewer--image) .gy-gallery-viewer__copy {
    position: sticky;
    top: 158px;
  }
}

@media (max-width: 1180px) {
  .gy-gallery-tabs {
    grid-template-columns: repeat(5, minmax(178px, 1fr));
  }

  .gy-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gy-gallery-viewer {
    grid-template-columns: 1fr;
  }

  .gy-gallery-viewer__copy {
    max-width: 800px;
  }
}

@media (max-width: 920px) {
  .gy-project-archive__intro {
    min-height: 310px;
    grid-template-columns: 1fr;
    align-items: end;
    gap: 24px;
    padding: 112px 24px 84px;
  }

  .gy-project-archive__heading h2 {
    font-size: clamp(2.65rem, 9vw, 5rem);
  }

  .gy-project-archive__lead {
    max-width: 620px;
    justify-self: start;
  }

  .gy-project-archive__lead a {
    margin-top: 18px;
  }

  .gy-gallery-shell {
    padding-right: 24px;
    padding-left: 24px;
  }

  .gy-gallery-tabs {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: clamp(210px, 42vw, 290px);
    gap: 10px;
    margin-right: -24px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .gy-gallery-tabs::-webkit-scrollbar {
    display: none;
  }

  .gy-gallery-tabs button {
    min-height: 270px;
    scroll-snap-align: start;
  }

  .gy-gallery-grid-meta {
    margin-top: -4px;
    scroll-margin-top: 96px;
  }

  .gy-gallery-card {
    scroll-margin-top: 96px;
  }

  .gy-gallery-detail {
    margin-right: -24px;
    margin-left: -24px;
  }
}

@media (max-width: 620px) {
  .gy-project-archive__intro {
    min-height: 300px;
    padding-top: 104px;
    padding-bottom: 80px;
  }

  .gy-project-archive__heading > p {
    margin-bottom: 18px;
  }

  .gy-project-archive__heading h2 {
    font-size: clamp(2.35rem, 12vw, 3.8rem);
  }

  .gy-project-archive__lead p {
    font-size: 13px;
    line-height: 1.7;
  }

  .gy-gallery-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: 8px;
    margin-right: 0;
    overflow: visible;
    scroll-snap-type: none;
    transform: translateY(-42px);
  }

  .gy-gallery-tabs button {
    min-height: 172px;
    scroll-snap-align: none;
  }

  .gy-gallery-tabs button:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    min-height: 158px;
  }

  .gy-gallery-tabs__copy {
    min-height: 82px;
    column-gap: 8px;
    padding: 12px 11px 11px;
  }

  .gy-gallery-tabs__copy strong {
    font-size: 14px;
  }

  .gy-gallery-tabs__copy em {
    font-size: 9px;
  }

  .gy-gallery-tabs__copy i {
    display: none;
  }

  .gy-gallery-filter-area {
    min-height: 0;
    padding: 3px 0 1px;
  }

  .gy-gallery-filters {
    flex-wrap: wrap;
    overflow: visible;
  }

  .gy-gallery-filters button {
    min-height: 34px;
    padding: 0 14px;
    font-size: 11px;
  }

  .gy-gallery-grid-meta {
    align-items: start;
    gap: 18px;
    margin-top: -6px;
    padding-bottom: 17px;
  }

  .gy-gallery-grid-meta__title-row {
    align-items: flex-start;
    gap: 12px;
  }

  .gy-gallery-grid-meta__title-row > strong {
    font-size: 23px;
  }

  .gy-gallery-grid-meta small {
    max-width: 235px;
  }

  .gy-gallery-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .gy-gallery-card__media {
    aspect-ratio: 4 / 3;
  }

  .gy-gallery-card__copy {
    min-height: 0;
    padding-top: 15px;
  }

  .gy-gallery-card__copy strong {
    font-size: 19px;
  }

  .gy-gallery-card__copy em {
    font-size: 13px;
  }

  .gy-gallery-card[data-gallery-mode="youtube"] .gy-gallery-card__media {
    aspect-ratio: 16 / 9;
  }

  .gy-gallery-card[data-gallery-mode="youtube"] .gy-gallery-card__play {
    width: 60px;
    height: 60px;
  }

  .gy-gallery-empty {
    min-height: 390px;
  }

  .gy-gallery-detail {
    margin-top: 38px;
    padding: 18px;
  }

  .gy-gallery-viewer model-viewer {
    height: 58vh;
    min-height: 390px;
  }

  .gy-gallery-images__stack {
    gap: 10px;
  }

  .gy-gallery-image figcaption {
    padding: 18px 0 21px;
  }

  .gy-gallery-viewer__copy h3 {
    font-size: 1.8rem;
  }
}

.gy-gallery-image figcaption em, .gy-gallery-image figcaption p { white-space: pre-line; overflow-wrap: anywhere; }
