.text-gallery__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px 64px;
}

/* .text-gallery__media :is(img, iframe) {
  display: block;
  margin: 0 auto;
  max-width: 75%;
  width: 100%;
} */

/* .text-gallery__media iframe {
  aspect-ratio: 16 / 9;
} */

.text-gallery__heading {
  margin-bottom: 8px;
  font-family: 'Dosis', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
}

.text-gallery__subheading {
  margin-bottom: 4px;
  font-size: 1.125rem;
  font-weight: 500;
  font-style: italic
}

.text-gallery__copy > :nth-last-child(n+2) {
  margin-bottom: 16px;
}

.text-gallery__link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
}

.text-gallery__items {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  justify-self: center;
}

.text-gallery__item {
  position: relative;
}

.text-gallery__item > picture {
  display: unset;
  width: 100%;
  height: 100%;
}

.text-gallery__item > img,
.text-gallery__item > picture img {
  display: block;
  aspect-ratio: 5 / 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text-gallery--show-1 .text-gallery__items {
  grid-template-columns: 1fr;
}

.text-gallery__item {
  cursor: pointer;
}

.text-gallery__item--disabled {
  cursor: auto;
}

.text-gallery--show-3 .text-gallery__item:nth-child(1) {
  grid-row: span 2;
}

.text-gallery__items .text-gallery__item:nth-child(n+5) {
  display: none;
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .text-gallery__items {
    max-width: 75%;
  }
}

@media (min-width:992px) {
  .text-gallery__inner {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .text-gallery--show-1 .text-gallery__inner {
    grid-template-columns: 3fr 7fr;
  }

  .text-gallery__items {
    max-width: 100%;
  }
}
