.social-gallery {
  position: relative;
  overflow: clip;
  background: #f7f7f2;
  color: #090909;
}

.offtrack-body.is-gallery-light .offtrack-nav {
  color: #090909;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.42);
}

.offtrack-body.is-gallery-light .offtrack-nav.site-nav--light .site-nav__logo img {
  filter: none;
  opacity: 1;
}

.offtrack-body.is-gallery-light .offtrack-nav.site-nav--light .nav-submenu {
  color: #090909;
}

.social-gallery__header {
  position: relative;
  z-index: 10;
  display: flex;
  min-height: auto;
  align-items: center;
  justify-content: center;
  padding: clamp(78px, 9svh, 108px) clamp(18px, 4vw, 56px) clamp(18px, 3svh, 34px);
  background: #f7f7f2;
}

.social-gallery__header-inner {
  display: grid;
  width: min(1248px, 100%);
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(36px, 8vw, 110px);
  row-gap: 22px;
  align-items: end;
  justify-items: start;
  text-align: left;
}

.social-gallery__title-block {
  display: grid;
  justify-items: start;
}

.social-gallery__eyebrow {
  margin: 0 0 clamp(20px, 2.7svh, 32px);
  color: rgba(9, 9, 9, 0.62);
  font-size: clamp(12px, 0.9vw, 14px);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.social-gallery__title {
  margin: 0;
  font-family: "Mango Grotesque", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(86px, 10.4vw, 156px);
  font-weight: 900;
  line-height: 0.76;
  letter-spacing: 0;
  text-transform: uppercase;
}

.social-gallery__dek {
  width: min(560px, 100%);
  margin: clamp(14px, 2svh, 22px) 0 0;
  color: rgba(9, 9, 9, 0.62);
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 600;
  line-height: 1.45;
}

.social-gallery__view-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: end;
  justify-self: end;
  width: 286px;
  max-width: 100%;
  padding: 5px;
  border: 1px solid rgba(9, 9, 9, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 1px 2px rgba(9, 9, 9, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.social-gallery__view-switch button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #090909;
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  transform: translateY(0);
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.social-gallery__view-switch button:hover,
.social-gallery__view-switch button:focus-visible {
  color: var(--red);
}

.social-gallery__view-switch button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.social-gallery__view-switch button:active {
  transform: translateY(1px);
}

.social-gallery__view-switch button.is-active {
  background: var(--red);
  box-shadow:
    0 12px 26px rgba(255, 0, 47, 0.18),
    0 7px 14px rgba(255, 0, 47, 0.12);
  color: #ffffff;
}

.social-gallery__view-switch button.is-active:hover,
.social-gallery__view-switch button.is-active:focus-visible {
  color: #ffffff;
}

.social-gallery:not([data-gallery-3d-available="true"]) .social-gallery__view-switch {
  display: none;
}

.social-gallery[data-gallery-mode="basic"] .social-gallery__viewport,
.social-gallery[data-gallery-mode="immersive"] .social-gallery__basic {
  display: none;
}

.social-gallery__basic {
  position: relative;
  z-index: 2;
  padding: clamp(14px, 2.8svh, 30px) clamp(10px, 2vw, 28px) calc(clamp(170px, 18svh, 240px) + 18px);
  background: #f7f7f2;
}

.social-gallery__basic-feed {
  position: relative;
  display: block;
  width: min(1248px, 100%);
  margin: 0 auto;
  column-count: 4;
  column-gap: clamp(7px, 0.85vw, 11px);
}

.social-gallery__basic-tile {
  position: relative;
  display: block;
  container-type: inline-size;
  width: 100%;
  margin: 0 0 clamp(7px, 0.85vw, 11px);
  padding: 0;
  overflow: hidden;
  break-inside: avoid;
  border: 0;
  border-radius: 5px;
  background: #e6e6de;
  box-shadow: 0 10px 30px rgba(9, 9, 9, 0);
  color: #ffffff;
  cursor: pointer;
  opacity: 0;
  transform: translateY(18px);
  transition:
    box-shadow 240ms ease,
    filter 240ms ease,
    opacity 420ms ease,
    transform 500ms ease;
  transition-delay: var(--feed-delay, 0ms);
  -webkit-column-break-inside: avoid;
}

.social-gallery__basic-tile.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.social-gallery__basic-tile:hover,
.social-gallery__basic-tile:focus-visible {
  box-shadow: 0 20px 52px rgba(9, 9, 9, 0.16);
  filter: saturate(1.04) brightness(1.03);
  outline: 0;
  transform: translateY(-4px);
}

.social-gallery__basic-media {
  position: relative;
  display: block;
  aspect-ratio: var(--masonry-ratio, 1 / 1.16);
  overflow: hidden;
  background: #e6e6de;
}

.social-gallery__basic-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.social-gallery__basic-tile:hover .social-gallery__basic-media img,
.social-gallery__basic-tile:focus-visible .social-gallery__basic-media img {
  transform: scale(1.06);
}

.social-gallery__basic-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: stretch;
  padding: clamp(16px, 8cqw, 48px);
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.46) 0%,
      rgba(0, 0, 0, 0.2) 34%,
      rgba(0, 0, 0, 0.3) 62%,
      rgba(0, 0, 0, 0.78) 100%
    );
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
  pointer-events: none;
}

.social-gallery__basic-tile:hover .social-gallery__basic-overlay,
.social-gallery__basic-tile:focus-visible .social-gallery__basic-overlay {
  opacity: 1;
  transform: translateY(0);
}

.social-gallery__basic-details {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  gap: clamp(6px, 2cqw, 10px);
  text-align: left;
}

.social-gallery__basic-kicker,
.social-gallery__basic-index {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.social-gallery__basic-title {
  align-self: start;
  margin: 0;
  font-family: "Mango Grotesque", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(32px, 17cqw, 72px);
  font-weight: 900;
  line-height: 0.84;
  letter-spacing: 0;
  text-transform: uppercase;
}

.social-gallery__basic-index {
  align-self: end;
  justify-self: end;
}

.social-gallery__basic-tile[data-title-density="balanced"] .social-gallery__basic-title {
  font-size: clamp(28px, 14cqw, 60px);
  line-height: 0.86;
}

.social-gallery__basic-tile[data-title-density="dense"] .social-gallery__basic-title {
  font-size: clamp(24px, 11.2cqw, 52px);
  line-height: 0.9;
}

.social-gallery__basic-tile[data-title-density="balanced"] .social-gallery__basic-overlay {
  padding: clamp(13px, 5.8cqw, 32px);
}

.social-gallery__basic-tile[data-title-density="dense"] .social-gallery__basic-overlay {
  padding: clamp(12px, 4.8cqw, 24px);
}

.social-gallery__basic-tile[data-title-density="panoramic"] .social-gallery__basic-overlay {
  padding: clamp(8px, 3.4cqw, 14px);
}

.social-gallery__basic-tile[data-title-density="panoramic"] .social-gallery__basic-details,
.social-gallery__basic-tile[data-title-density="dense"] .social-gallery__basic-details {
  gap: clamp(4px, 1.6cqw, 8px);
}

.social-gallery__basic-tile[data-title-density="panoramic"] .social-gallery__basic-title {
  font-size: clamp(18px, 8.8cqw, 38px);
  line-height: 0.92;
}

.social-gallery__basic-empty {
  display: none;
  width: min(360px, 80vw);
  margin: 0 auto;
  color: rgba(9, 9, 9, 0.62);
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
}

.social-gallery__basic-empty.is-visible {
  display: block;
}

.social-gallery__lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(22px, 4vw, 56px);
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  pointer-events: none;
  transition:
    background 240ms ease,
    opacity 240ms ease,
    visibility 240ms ease;
  visibility: hidden;
}

.social-gallery__lightbox.is-open {
  background: rgba(0, 0, 0, 0.86);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.social-gallery__lightbox-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  width: min(1240px, 94vw);
  max-height: min(760px, 86svh);
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  transform: translateY(10px) scale(0.985);
  transition: transform 260ms ease;
}

.social-gallery__lightbox.is-open .social-gallery__lightbox-shell {
  transform: translateY(0) scale(1);
}

.social-gallery__lightbox-media {
  display: grid;
  place-items: center;
  min-height: 0;
  max-height: min(760px, 86svh);
  overflow: hidden;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
}

.social-gallery__lightbox-image {
  display: block;
  max-width: 100%;
  max-height: min(760px, 86svh);
  border-radius: 5px;
  object-fit: contain;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.48);
}

.social-gallery__lightbox-caption {
  display: grid;
  align-content: start;
  gap: clamp(14px, 2svh, 20px);
  max-height: min(760px, 86svh);
  padding: clamp(20px, 3vw, 30px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  background: rgba(9, 9, 9, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 80px rgba(0, 0, 0, 0.32);
  color: #ffffff;
  pointer-events: auto;
}

.social-gallery__lightbox-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.social-gallery__lightbox-source-text,
.social-gallery__lightbox-date {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.social-gallery__lightbox-date::before {
  margin: 0 8px 0 0;
  content: "/";
  color: rgba(255, 255, 255, 0.34);
}

.social-gallery__lightbox-title {
  margin: 0;
  font-family: "Mango Grotesque", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(48px, 5vw, 74px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.78;
  text-transform: uppercase;
}

.social-gallery__lightbox-copy {
  max-width: 32rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(15px, 1.15vw, 17px);
  font-weight: 600;
  line-height: 1.42;
}

.social-gallery__lightbox-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
}

.social-gallery__lightbox-details div {
  display: grid;
  gap: 8px;
  padding: 13px 12px;
  background: rgba(255, 255, 255, 0.045);
}

.social-gallery__lightbox-details dt {
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.social-gallery__lightbox-details dd {
  margin: 0;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.social-gallery__lightbox-actions {
  display: grid;
  gap: 12px;
}

.social-gallery__lightbox-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-gallery__lightbox-social-link {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.social-gallery__lightbox-social-link svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.social-gallery__lightbox-social-link:hover,
.social-gallery__lightbox-social-link:focus-visible {
  border-color: rgba(255, 0, 47, 0.72);
  background: rgba(255, 0, 47, 0.16);
  color: #ffffff;
  outline: 0;
}

.social-gallery__lightbox-social-link:active {
  transform: translateY(1px);
}

.social-gallery__lightbox-count {
  display: inline-grid;
  min-width: 48px;
  min-height: 30px;
  justify-self: start;
  place-items: center;
  margin: 0;
  padding: 0 9px;
  background: var(--red);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.social-gallery__lightbox-close,
.social-gallery__lightbox-nav {
  position: fixed;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.social-gallery__lightbox-close:hover,
.social-gallery__lightbox-close:focus-visible,
.social-gallery__lightbox-nav:hover,
.social-gallery__lightbox-nav:focus-visible {
  border-color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.18);
  outline: 0;
}

.social-gallery__lightbox-close:focus-visible,
.social-gallery__lightbox-nav:focus-visible {
  box-shadow:
    0 0 0 2px #090909,
    0 0 0 4px #f0b533,
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.social-gallery__lightbox-close:active,
.social-gallery__lightbox-nav:active {
  transform: scale(0.96);
}

.social-gallery__lightbox-close {
  top: clamp(18px, 3vw, 32px);
  right: clamp(18px, 3vw, 32px);
}

.social-gallery__lightbox-close::before,
.social-gallery__lightbox-close::after {
  position: absolute;
  width: 21px;
  height: 2px;
  content: "";
  background: #ffffff;
}

.social-gallery__lightbox-close::before {
  transform: rotate(45deg);
}

.social-gallery__lightbox-close::after {
  transform: rotate(-45deg);
}

.social-gallery__lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}

.social-gallery__lightbox-nav:active {
  transform: translateY(-50%) scale(0.96);
}

.social-gallery__lightbox-nav--previous {
  left: clamp(18px, 3vw, 40px);
}

.social-gallery__lightbox-nav--next {
  right: clamp(18px, 3vw, 40px);
}

.social-gallery__lightbox-nav::before {
  width: 13px;
  height: 13px;
  content: "";
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
}

.social-gallery__lightbox-nav--previous::before {
  transform: translateX(3px) rotate(-45deg);
}

.social-gallery__lightbox-nav--next::before {
  transform: translateX(-3px) rotate(135deg);
}

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

.social-gallery__viewport {
  position: relative;
  z-index: 1;
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
  cursor: grab;
  perspective: 1000px;
  transform-style: preserve-3d;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
  background: #f7f7f2;
}

.social-gallery[data-gallery-mode="immersive"] .social-gallery__viewport {
  margin-top: clamp(22px, 4svh, 48px);
}

.social-gallery__viewport::before,
.social-gallery__viewport::after {
  position: absolute;
  inset: 0;
  z-index: 8;
  content: "";
  pointer-events: none;
}

.social-gallery__viewport::before {
  background:
    linear-gradient(90deg, rgba(247, 247, 242, 0.46) 0%, rgba(247, 247, 242, 0) 4%, rgba(247, 247, 242, 0) 96%, rgba(247, 247, 242, 0.46) 100%),
    linear-gradient(180deg, rgba(247, 247, 242, 0.42) 0%, rgba(247, 247, 242, 0) 5%, rgba(247, 247, 242, 0) 95%, rgba(247, 247, 242, 0.42) 100%);
}

.social-gallery__viewport::after {
  background: none;
}

.social-gallery__viewport.is-dragging {
  cursor: grabbing;
}

.social-gallery__deck {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  transform-style: preserve-3d;
}

.social-gallery__deck.is-enhanced {
  display: block;
}

.social-gallery__card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(9, 9, 9, 0.16);
}

.social-gallery__deck.is-enhanced .social-gallery__card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--cell-width, 226px);
  min-height: auto;
  aspect-ratio: var(--cell-ratio, 1 / 1.16);
  border: 1px solid rgba(9, 9, 9, 0.08);
  box-shadow: none;
  cursor: pointer;
  transform-style: preserve-3d;
  transition:
    border-color 180ms ease,
    filter 180ms ease,
    opacity 160ms ease;
}

.social-gallery__viewport.is-animating .social-gallery__deck.is-enhanced .social-gallery__card {
  will-change: transform, opacity;
}

.social-gallery__card[data-social-static-card] {
  cursor: pointer;
}

.social-gallery__deck.is-enhanced .social-gallery__card:hover,
.social-gallery__deck.is-enhanced .social-gallery__card.is-pressed {
  border-color: rgba(9, 9, 9, 0.26);
  filter: brightness(1.03) saturate(1.04);
}

.social-gallery__viewport.is-dragging .social-gallery__deck.is-enhanced .social-gallery__card {
  cursor: grabbing;
}

.social-gallery__card.is-hidden {
  display: none;
}

.social-gallery__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.social-gallery__deck.is-enhanced .social-gallery__card img {
  transform: translate3d(var(--media-x, 0), var(--media-y, 0), 0) scale(1.08);
  transition: transform 140ms ease-out;
}

.social-gallery__card::after {
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  content: "";
  background:
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.24) 30%, rgba(0, 0, 0, 0.84) 100%);
  pointer-events: none;
}

.social-gallery__deck.is-enhanced .social-gallery__card::after,
.social-gallery__deck.is-enhanced .social-gallery__card-copy {
  display: none;
}

.social-gallery__card-copy {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 2;
}

.social-gallery__location {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.social-gallery__card h3 {
  margin: 12px 0 6px;
  font-size: clamp(20px, 1.8vw, 30px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0;
}

.social-gallery__card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.35;
}

.social-gallery__empty {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 14;
  display: none;
  width: min(360px, 80vw);
  margin: 0;
  color: rgba(9, 9, 9, 0.62);
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
  transform: translate(-50%, -50%);
}

.social-gallery__empty.is-visible {
  display: block;
}

@media (max-width: 1080px) {
  .social-gallery__basic-feed {
    column-count: 3;
  }
}

@media (max-width: 1024px) {
  .social-gallery__view-switch {
    display: none;
  }
}

@media (max-width: 900px) {
  .social-gallery__header-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .social-gallery__title-block {
    justify-items: center;
  }

  .social-gallery__view-switch {
    justify-self: center;
  }
}

@media (max-width: 760px) {
  .social-gallery__viewport {
    min-height: 720px;
  }

  .social-gallery__header {
    min-height: auto;
    padding-top: 104px;
    padding-bottom: 18px;
  }

  .social-gallery__header-inner {
    row-gap: 20px;
  }

  .social-gallery__title-block {
    justify-items: center;
  }

  .social-gallery__dek {
    width: min(360px, 100%);
  }

  .social-gallery__basic {
    padding-top: 20px;
    padding-bottom: 150px;
  }

  .social-gallery__basic-feed {
    column-count: 2;
  }

  .social-gallery__basic-overlay {
    min-height: 58%;
    padding: 10px;
    opacity: 1;
    transform: none;
  }

  .social-gallery__basic-details {
    gap: 5px;
  }

  .social-gallery__basic-kicker,
  .social-gallery__basic-index {
    font-size: 8px;
    letter-spacing: 0.08em;
    line-height: 1.15;
  }

  .social-gallery__basic-title {
    font-size: clamp(22px, 7vw, 32px);
  }

  .social-gallery__lightbox {
    align-items: start;
    padding: 72px 14px 18px;
  }

  .social-gallery__lightbox-shell {
    grid-template-columns: 1fr;
    width: min(100%, 460px);
    max-height: calc(100svh - 96px);
    gap: 12px;
    overflow: auto;
  }

  .social-gallery__lightbox-media,
  .social-gallery__lightbox-image {
    max-height: 38svh;
  }

  .social-gallery__lightbox-caption {
    max-height: none;
    overflow: visible;
    padding: 18px;
    background: rgba(9, 9, 9, 0.96);
  }

  .social-gallery__lightbox-title {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: clamp(36px, 11vw, 46px);
  }

  .social-gallery__lightbox-details {
    grid-template-columns: 1fr;
  }

  .social-gallery__lightbox-nav {
    top: clamp(170px, calc(72px + 19svh), 260px);
    bottom: auto;
    width: 44px;
    height: 44px;
    transform: none;
  }

  .social-gallery__lightbox-nav:active {
    transform: scale(0.96);
  }
}

@media (max-width: 360px) {
  .social-gallery__basic-feed {
    column-count: 1;
  }

  .social-gallery__lightbox {
    padding-right: 10px;
    padding-left: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .social-gallery {
    min-height: 100svh;
  }

  .social-gallery__viewport,
  .social-gallery__deck {
    position: relative;
    inset: auto;
  }

  .social-gallery__viewport {
    height: auto;
    min-height: auto;
    padding: 0 clamp(18px, 4vw, 56px) clamp(64px, 8svh, 96px);
    overflow: visible;
    cursor: default;
    perspective: none;
    touch-action: auto;
  }

  .social-gallery__viewport::before,
  .social-gallery__viewport::after {
    display: none;
  }

  .social-gallery__deck {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .social-gallery__basic-tile,
  .social-gallery__basic-media img,
  .social-gallery__basic-overlay,
  .social-gallery__lightbox,
  .social-gallery__lightbox-image {
    transition: none;
  }
}

@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .social-gallery__deck {
    grid-template-columns: 1fr;
  }
}
