.gallery-mosaic {
  --gallery-mosaic-gap: 1.25rem;
  --gallery-mosaic-intro-justify: start;
  --gallery-mosaic-intro-text-align: left;
  background: var(--theme-surface-fill);
  box-sizing: border-box;
  color: var(--theme-body-readable);
  isolation: isolate;
  margin-inline: calc(50% - 50vw);
  padding: calc(var(--theme-surface-section-padding-block) + var(--theme-surface-text-safe-block))
    var(--section-rail-padding-inline);
  position: relative;
  width: 100vw;
}

@supports (width: 100dvw) {
  .gallery-mosaic {
    margin-inline: calc(50% - 50dvw);
    width: 100dvw;
  }
}

.gallery-mosaic::before {
  background: var(--theme-surface-fill);
  content: "";
  inset-block: 0;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 100vw;
  z-index: -1;
}

@supports (width: 100dvw) {
  .gallery-mosaic::before {
    width: 100dvw;
  }
}

.gallery-mosaic.surface-blush {
  background: transparent;
}

.gallery-mosaic.surface-blush::before {
  background: var(--surface-canvas);
}

.gallery-mosaic.surface-blush::after {
  background: var(--theme-card-bg-strong);
  border-radius: 8px;
  box-shadow: var(--theme-card-shadow);
  content: "";
  inset-block: var(--theme-surface-panel-inset-block);
  inset-inline: var(--theme-surface-panel-inset-inline);
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.gallery-mosaic__inner {
  display: grid;
  gap: 2.85rem;
  margin-inline: 0;
  max-width: none;
  position: relative;
  width: 100%;
  z-index: 1;
}

.gallery-mosaic__intro {
  container-type: inline-size;
  display: grid;
  justify-items: var(--gallery-mosaic-intro-justify);
  text-align: var(--gallery-mosaic-intro-text-align);
  width: 100%;
}

.gallery-mosaic--intro-center .gallery-mosaic__intro {
  justify-items: center !important;
  text-align: center !important;
}

.gallery-mosaic__heading {
  display: grid;
  justify-items: var(--gallery-mosaic-intro-justify);
  max-width: 100%;
  text-align: var(--gallery-mosaic-intro-text-align);
  width: 100%;
}

.gallery-mosaic__heading-copy {
  display: inline-grid;
  gap: 0.85rem;
  justify-items: start;
  max-width: 100%;
  min-width: 0;
  width: fit-content;
}

.gallery-mosaic--intro-center .gallery-mosaic__heading {
  justify-items: center !important;
  text-align: center !important;
}

.gallery-mosaic--intro-center .gallery-mosaic__heading-copy {
  justify-items: center;
}

.gallery-mosaic--intro-center .gallery-mosaic__heading :is(h1, h2, h3, h4, h5, h6, p) {
  text-align: center !important;
}

.gallery-mosaic--intro-left .gallery-mosaic__heading {
  justify-items: start;
  text-align: left;
}

.gallery-mosaic__heading :is(h1, h2, h3, h4, h5, h6, p),
.gallery-mosaic__tile-eyebrow,
.gallery-mosaic__title,
.gallery-mosaic__body :is(p, ul, ol),
.gallery-mosaic__action {
  margin: 0;
}

.gallery-mosaic__heading :is(h1, h2, h3, h4, h5, h6, p) {
  color: var(--theme-heading-strong);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-mosaic__heading-copy::after {
  background: var(--color-primary);
  content: "";
  display: block;
  height: 2px;
  max-width: 100%;
  width: min(100%, 26rem);
  width: min(100%, 33.333cqw);
}

.gallery-mosaic__heading h1 {
  font-size: 2.4rem;
}

.gallery-mosaic__heading h2 {
  font-size: 1.75rem;
}

.gallery-mosaic__heading :is(h3, h4, h5, h6, p) {
  font-size: 1.45rem;
}

.gallery-mosaic__grid {
  display: grid;
  gap: var(--gallery-mosaic-gap);
  grid-auto-flow: dense;
  grid-auto-rows: minmax(6rem, auto);
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.gallery-mosaic__item {
  background: color-mix(in srgb, var(--theme-card-bg) 94%, var(--theme-surface-fill));
  border: 1px solid color-mix(in srgb, var(--color-outline) 78%, transparent);
  border-radius: 8px;
  color: var(--theme-body-readable);
  display: grid;
  grid-column: span 4;
  grid-row: span 3;
  min-height: 16rem;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.gallery-mosaic__item--linked {
  cursor: pointer;
}

.gallery-mosaic__item-link {
  border-radius: inherit;
  color: inherit;
  inset: 0;
  position: absolute;
  text-decoration: none;
  z-index: 2;
}

.gallery-mosaic__item-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--color-primary-accent) 74%, #fffaf5);
  outline-offset: -4px;
}

.gallery-mosaic__item {
  animation: none;
}

.smartify-motion-ready .gallery-mosaic:not(.smartify-motion-visible) .gallery-mosaic__item {
  opacity: 0;
  transform: translate3d(-10.5rem, -6.75rem, 0);
}

.smartify-motion-ready .gallery-mosaic:not(.smartify-motion-visible) .gallery-mosaic__item:nth-child(4n + 2) {
  transform: translate3d(10.5rem, -6.75rem, 0);
}

.smartify-motion-ready .gallery-mosaic:not(.smartify-motion-visible) .gallery-mosaic__item:nth-child(4n + 3) {
  transform: translate3d(-10.5rem, 6.75rem, 0);
}

.smartify-motion-ready .gallery-mosaic:not(.smartify-motion-visible) .gallery-mosaic__item:nth-child(4n) {
  transform: translate3d(10.5rem, 6.75rem, 0);
}

.gallery-mosaic.smartify-motion-visible .gallery-mosaic__item {
  animation: gallery-mosaic-fly-from-top-left 1800ms cubic-bezier(0.18, 0.86, 0.22, 1) both;
}

.gallery-mosaic.smartify-motion-visible .gallery-mosaic__item:nth-child(4n + 2) {
  animation-name: gallery-mosaic-fly-from-top-right;
}

.gallery-mosaic.smartify-motion-visible .gallery-mosaic__item:nth-child(4n + 3) {
  animation-name: gallery-mosaic-fly-from-bottom-left;
}

.gallery-mosaic.smartify-motion-visible .gallery-mosaic__item:nth-child(4n) {
  animation-name: gallery-mosaic-fly-from-bottom-right;
}

.gallery-mosaic.smartify-motion-visible .gallery-mosaic__item:nth-child(2) {
  animation-delay: 230ms;
}

.gallery-mosaic.smartify-motion-visible .gallery-mosaic__item:nth-child(3) {
  animation-delay: 460ms;
}

.gallery-mosaic.smartify-motion-visible .gallery-mosaic__item:nth-child(4) {
  animation-delay: 690ms;
}

.gallery-mosaic.smartify-motion-visible .gallery-mosaic__item:nth-child(5) {
  animation-delay: 920ms;
}

.gallery-mosaic.smartify-motion-visible .gallery-mosaic__item:nth-child(n + 6) {
  animation-delay: 1150ms;
}

@keyframes gallery-mosaic-fly-from-top-left {
  from {
    opacity: 0;
    transform: translate3d(-10.5rem, -6.75rem, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes gallery-mosaic-fly-from-top-right {
  from {
    opacity: 0;
    transform: translate3d(10.5rem, -6.75rem, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes gallery-mosaic-fly-from-bottom-left {
  from {
    opacity: 0;
    transform: translate3d(-10.5rem, 6.75rem, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes gallery-mosaic-fly-from-bottom-right {
  from {
    opacity: 0;
    transform: translate3d(10.5rem, 6.75rem, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.gallery-mosaic--preset-editorial .gallery-mosaic__item:nth-child(1) {
  grid-column: span 7;
  min-height: 28rem;
}

.gallery-mosaic--preset-editorial .gallery-mosaic__item:nth-child(2) {
  grid-column: span 5;
  min-height: 28rem;
}

.gallery-mosaic--preset-editorial .gallery-mosaic__item:nth-child(3) {
  grid-column: span 4;
}

.gallery-mosaic--preset-editorial .gallery-mosaic__item:nth-child(4) {
  grid-column: span 8;
}

.gallery-mosaic--preset-showcase .gallery-mosaic__item:nth-child(1) {
  grid-column: span 8;
  min-height: 26rem;
}

.gallery-mosaic--preset-showcase .gallery-mosaic__item:nth-child(2) {
  grid-column: span 4;
  min-height: 26rem;
}

.gallery-mosaic--preset-showcase .gallery-mosaic__item:nth-child(n + 3) {
  grid-column: span 6;
}

.gallery-mosaic--preset-compact .gallery-mosaic__item {
  grid-column: span 4;
}

.gallery-mosaic.gallery-mosaic--count-1 .gallery-mosaic__item--width-auto:nth-child(1) {
  grid-column: span 12;
}

.gallery-mosaic.gallery-mosaic--count-2 .gallery-mosaic__item--width-auto:nth-child(1) {
  grid-column: span 7;
}

.gallery-mosaic.gallery-mosaic--count-2 .gallery-mosaic__item--width-auto:nth-child(2) {
  grid-column: span 5;
}

.gallery-mosaic.gallery-mosaic--count-3 .gallery-mosaic__item--width-auto {
  grid-column: span 4;
}

.gallery-mosaic.gallery-mosaic--count-4 .gallery-mosaic__item--width-auto {
  grid-column: span 6;
}

.gallery-mosaic.gallery-mosaic--count-5 .gallery-mosaic__item--width-auto:nth-child(1) {
  grid-column: span 7;
}

.gallery-mosaic.gallery-mosaic--count-5 .gallery-mosaic__item--width-auto:nth-child(2) {
  grid-column: span 5;
}

.gallery-mosaic.gallery-mosaic--count-5 .gallery-mosaic__item--width-auto:nth-child(n + 3) {
  grid-column: span 4;
}

.gallery-mosaic.gallery-mosaic--count-6 .gallery-mosaic__item--width-auto {
  grid-column: span 4;
}

.gallery-mosaic.gallery-mosaic--count-7 .gallery-mosaic__item--width-auto:nth-child(-n + 3) {
  grid-column: span 4;
}

.gallery-mosaic.gallery-mosaic--count-7 .gallery-mosaic__item--width-auto:nth-child(n + 4) {
  grid-column: span 3;
}

.gallery-mosaic.gallery-mosaic--count-8 .gallery-mosaic__item--width-auto {
  grid-column: span 3;
}

.gallery-mosaic .gallery-mosaic__item.gallery-mosaic__item--custom-width.gallery-mosaic__item--width-full {
  grid-column: span 12;
}

.gallery-mosaic .gallery-mosaic__item.gallery-mosaic__item--custom-width.gallery-mosaic__item--width-two_thirds {
  grid-column: span 8;
}

.gallery-mosaic .gallery-mosaic__item.gallery-mosaic__item--custom-width.gallery-mosaic__item--width-half {
  grid-column: span 6;
}

.gallery-mosaic .gallery-mosaic__item.gallery-mosaic__item--custom-width.gallery-mosaic__item--width-third {
  grid-column: span 4;
}

.gallery-mosaic .gallery-mosaic__item.gallery-mosaic__item--shape-standard {
  grid-row: span 3;
  min-height: 16rem;
}

.gallery-mosaic .gallery-mosaic__item.gallery-mosaic__item--shape-compact {
  grid-row: span 2;
  min-height: 12.5rem;
}

.gallery-mosaic .gallery-mosaic__item.gallery-mosaic__item--shape-tall {
  grid-row: span 4;
  min-height: 28rem;
}

.gallery-mosaic .gallery-mosaic__item.gallery-mosaic__item--shape-media_led {
  grid-row: span 4;
  min-height: 24rem;
}

.gallery-mosaic__item--shape-media_led .gallery-mosaic__media {
  aspect-ratio: 16 / 9;
}

.gallery-mosaic__item--surface-canvas {
  background: color-mix(in srgb, var(--surface-canvas) 96%, var(--theme-surface-fill));
}

.gallery-mosaic__item--surface-paper {
  background: color-mix(in srgb, var(--surface-paper) 92%, var(--theme-surface-fill));
}

.gallery-mosaic__item--surface-blush {
  background: color-mix(in srgb, var(--surface-blush) 84%, var(--theme-surface-fill));
}

.gallery-mosaic__item--surface-accent {
  background:
    radial-gradient(circle at 84% 82%, color-mix(in srgb, #fffaf5 10%, transparent) 0 14%, transparent 38%),
    linear-gradient(180deg, color-mix(in srgb, var(--color-primary) 52%, var(--surface-ink)), color-mix(in srgb, var(--color-primary) 42%, #3a2118));
  border-color: color-mix(in srgb, var(--color-primary) 32%, #fffaf5);
  color: #fffaf5;
}

.gallery-mosaic__item--surface-ink {
  background:
    radial-gradient(circle at 80% 10%, color-mix(in srgb, var(--color-primary) 18%, transparent) 0 18%, transparent 44%),
    var(--surface-ink);
  border-color: rgba(255, 250, 245, 0.18);
  color: var(--surface-text-dark-body);
}

.gallery-mosaic__media {
  aspect-ratio: 16 / 10;
  background: color-mix(in srgb, var(--theme-surface-fill) 85%, #000000);
  overflow: hidden;
  position: relative;
}

.gallery-mosaic__item--ratio-square .gallery-mosaic__media {
  aspect-ratio: 1;
}

.gallery-mosaic__item--ratio-portrait .gallery-mosaic__media {
  aspect-ratio: 4 / 5;
}

.gallery-mosaic__image {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
  width: 100%;
}

.gallery-mosaic__item:hover .gallery-mosaic__image,
.gallery-mosaic__item:focus-within .gallery-mosaic__image {
  transform: scale(1.035);
}

.gallery-mosaic__content {
  align-content: start;
  display: grid;
  gap: 0.9rem;
  padding: clamp(1.4rem, 1.75rem, 1.75rem);
  position: relative;
  z-index: 1;
}

.gallery-mosaic__item--linked .gallery-mosaic__content {
  pointer-events: none;
  z-index: 3;
}

.gallery-mosaic__item--linked .gallery-mosaic__action {
  pointer-events: auto;
}

.gallery-mosaic__item--type-accent_note .gallery-mosaic__content,
.gallery-mosaic__item--type-quote .gallery-mosaic__content,
.gallery-mosaic__item--media-background .gallery-mosaic__content {
  align-content: space-between;
}

.gallery-mosaic__item--type-split_media {
  background: color-mix(in srgb, var(--theme-surface-fill) 85%, #000000);
}

.gallery-mosaic__item--media-left,
.gallery-mosaic__item--media-right {
  align-items: stretch;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
}

.gallery-mosaic__item--media-right {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
}

.gallery-mosaic__item--media-left .gallery-mosaic__media,
.gallery-mosaic__item--media-right .gallery-mosaic__media {
  aspect-ratio: auto;
  height: 100%;
}

.gallery-mosaic__item--media-right .gallery-mosaic__media {
  order: 2;
}

.gallery-mosaic__item--media-bottom .gallery-mosaic__media {
  order: 2;
}

.gallery-mosaic__item--media-background {
  min-height: 24rem;
}

.gallery-mosaic__item--media-background .gallery-mosaic__media {
  aspect-ratio: auto;
  inset: 0;
  position: absolute;
}

.gallery-mosaic__item--type-split_media .gallery-mosaic__media {
  aspect-ratio: auto;
  inset: 0;
  position: absolute;
}

.gallery-mosaic__item--media-background .gallery-mosaic__media::after {
  background: linear-gradient(180deg, rgba(27, 23, 20, 0.12), rgba(27, 23, 20, 0.72));
  content: "";
  inset: 0;
  position: absolute;
}

.gallery-mosaic__item--media-background .gallery-mosaic__content {
  color: #fffaf5;
  min-height: inherit;
}

.gallery-mosaic__item--type-quote .gallery-mosaic__content {
  align-content: center;
  gap: 1.25rem;
  padding: clamp(1.85rem, 2.25rem, 2.25rem);
}

.gallery-mosaic__tile-eyebrow {
  color: var(--theme-card-eyebrow-readable);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.gallery-mosaic__title {
  color: var(--theme-heading-strong);
  font-family: var(--font-display);
  font-size: 1.72rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.08;
}

.gallery-mosaic__item--type-quote .gallery-mosaic__body {
  color: var(--theme-heading-strong);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.55;
  order: 1;
  padding-top: 1.35rem;
  position: relative;
}

.gallery-mosaic__item--type-quote .gallery-mosaic__body::after {
  color: color-mix(in srgb, var(--color-primary) 20%, transparent);
  content: "\201D";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.4rem;
  font-style: italic;
  line-height: 1;
  position: absolute;
  right: 0;
  top: -0.35rem;
  z-index: -1;
}

.gallery-mosaic__item--type-quote .gallery-mosaic__body p:first-child::before {
  content: "\201C";
}

.gallery-mosaic__item--type-quote .gallery-mosaic__body p:last-child::after {
  content: "\201D";
}

.gallery-mosaic__item--type-quote .gallery-mosaic__title {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
  order: 2;
}

.gallery-mosaic__item--type-quote .gallery-mosaic__tile-eyebrow {
  color: var(--theme-card-eyebrow-readable);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
  order: 3;
  text-transform: none;
}

.gallery-mosaic__item--shape-media_led .gallery-mosaic__title,
.gallery-mosaic__item--shape-tall.gallery-mosaic__item--width-two_thirds .gallery-mosaic__title {
  font-size: 2.15rem;
}

.gallery-mosaic__body {
  color: var(--theme-body-readable);
  font-size: 0.98rem;
  line-height: 1.58;
}

.gallery-mosaic__body :is(ul, ol) {
  padding-left: 1.1rem;
}

.gallery-mosaic__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-top: 0.15rem;
}

.gallery-mosaic__tag {
  background: color-mix(in srgb, var(--theme-card-bg-strong) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-outline) 70%, transparent);
  border-radius: 999px;
  color: var(--theme-body-readable);
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  padding: 0.28rem 0.55rem;
  text-transform: uppercase;
}

.gallery-mosaic__action {
  padding-top: 0.15rem;
}

.gallery-mosaic__link {
  align-items: center;
  color: var(--theme-link-color);
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 800;
  gap: 0.5rem;
  letter-spacing: 0;
  line-height: 1.3;
  text-decoration: none;
}

.gallery-mosaic__link-icon {
  flex: 0 0 auto;
  transition: transform var(--transition-base);
}

.gallery-mosaic__link:hover,
.gallery-mosaic__link:focus-visible {
  color: var(--theme-link-hover-color);
}

.gallery-mosaic__link:hover .gallery-mosaic__link-icon,
.gallery-mosaic__link:focus-visible .gallery-mosaic__link-icon {
  transform: translateX(0.18rem);
}

.gallery-mosaic__item--surface-accent :is(.gallery-mosaic__tile-eyebrow, .gallery-mosaic__title, .gallery-mosaic__body, .gallery-mosaic__link),
.gallery-mosaic__item--surface-ink :is(.gallery-mosaic__tile-eyebrow, .gallery-mosaic__title, .gallery-mosaic__body, .gallery-mosaic__link),
.gallery-mosaic__item--media-background :is(.gallery-mosaic__tile-eyebrow, .gallery-mosaic__title, .gallery-mosaic__body, .gallery-mosaic__link) {
  color: inherit;
}

.gallery-mosaic__item--surface-accent,
.gallery-mosaic__item--surface-ink,
.gallery-mosaic__item--media-background {
  --theme-card-eyebrow-readable: color-mix(in srgb, #fffaf5 76%, var(--surface-ink));
}

.gallery-mosaic__item--surface-accent :is(.gallery-mosaic__body p, .gallery-mosaic__body li, .gallery-mosaic__body ul, .gallery-mosaic__body ol),
.gallery-mosaic__item--surface-ink :is(.gallery-mosaic__body p, .gallery-mosaic__body li, .gallery-mosaic__body ul, .gallery-mosaic__body ol),
.gallery-mosaic__item--media-background :is(.gallery-mosaic__body p, .gallery-mosaic__body li, .gallery-mosaic__body ul, .gallery-mosaic__body ol) {
  color: color-mix(in srgb, #fffaf5 82%, transparent);
}

.gallery-mosaic__item--surface-accent .gallery-mosaic__body li::marker,
.gallery-mosaic__item--surface-ink .gallery-mosaic__body li::marker,
.gallery-mosaic__item--media-background .gallery-mosaic__body li::marker {
  color: color-mix(in srgb, var(--color-primary-accent) 84%, #fffaf5 16%);
}

.gallery-mosaic__item--surface-accent .gallery-mosaic__title,
.gallery-mosaic__item--surface-ink .gallery-mosaic__title,
.gallery-mosaic__item--media-background .gallery-mosaic__title {
  color: #fffaf5;
}

.gallery-mosaic__item--surface-accent .gallery-mosaic__tile-eyebrow,
.gallery-mosaic__item--surface-ink .gallery-mosaic__tile-eyebrow,
.gallery-mosaic__item--media-background .gallery-mosaic__tile-eyebrow {
  color: var(--theme-card-eyebrow-readable);
}

.gallery-mosaic__item--surface-accent .gallery-mosaic__link,
.gallery-mosaic__item--surface-ink .gallery-mosaic__link,
.gallery-mosaic__item--media-background .gallery-mosaic__link {
  color: color-mix(in srgb, var(--color-primary-accent) 70%, #fffaf5 30%);
}

.gallery-mosaic__item--surface-accent .gallery-mosaic__tag,
.gallery-mosaic__item--surface-ink .gallery-mosaic__tag,
.gallery-mosaic__item--media-background .gallery-mosaic__tag {
  background: rgba(255, 250, 245, 0.14);
  border-color: rgba(255, 250, 245, 0.22);
  color: inherit;
}

@media (max-width: 991px) {
  .gallery-mosaic__grid {
    grid-auto-rows: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-mosaic__item,
  .gallery-mosaic--preset-editorial .gallery-mosaic__item,
  .gallery-mosaic--preset-showcase .gallery-mosaic__item,
  .gallery-mosaic--preset-compact .gallery-mosaic__item,
  .gallery-mosaic__item--width-full,
  .gallery-mosaic__item--width-two_thirds,
  .gallery-mosaic__item--width-half,
  .gallery-mosaic__item--width-third {
    grid-column: span 1;
    grid-row: auto;
  }

  .gallery-mosaic__item--media-left,
  .gallery-mosaic__item--media-right {
    grid-template-columns: 1fr;
  }

  .gallery-mosaic__item--media-right .gallery-mosaic__media {
    order: 0;
  }

  .gallery-mosaic__item--media-bottom .gallery-mosaic__media {
    order: 2;
  }

  .gallery-mosaic__item--media-left .gallery-mosaic__media,
  .gallery-mosaic__item--media-right .gallery-mosaic__media,
  .gallery-mosaic__item--media-bottom .gallery-mosaic__media {
    aspect-ratio: 16 / 10;
    height: auto;
  }
}

@media (max-width: 767px) {
  .gallery-mosaic {
    padding-block: calc(var(--section-band-space-y) - var(--space-2));
  }

  .gallery-mosaic__inner {
    gap: 2rem;
  }

  .gallery-mosaic__grid {
    grid-template-columns: 1fr;
  }

  .gallery-mosaic__content {
    padding: 1.25rem;
  }

  .gallery-mosaic__item,
  .gallery-mosaic__item--media-background {
    min-height: 0;
  }

  .gallery-mosaic__item--media-background .gallery-mosaic__content {
    min-height: 20rem;
  }

  .gallery-mosaic__heading :is(h1, h2, h3, h4, h5, h6, p) {
    font-size: 1.55rem;
  }

  .gallery-mosaic__heading h1 {
    font-size: 2rem;
  }

  .gallery-mosaic__heading h2 {
    font-size: 1.55rem;
  }

  .gallery-mosaic__heading :is(h3, h4, h5, h6, p) {
    font-size: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-mosaic__item,
  .gallery-mosaic__image,
  .gallery-mosaic__link-icon {
    animation: none !important;
    opacity: 1;
    transform: none;
    transition: none;
  }
}
