.instagram-v6__heading {
  text-align: center;
  padding: 2rem 0;
}
@media (min-width: 768px) {
  .instagram-v6__heading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
  }
}

.instagram-v6__subtitle-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.instagram-v6__icon {
  line-height: 0;
}
.instagram-v6__icon svg {
  width: 4rem;
  height: 4rem;
  fill: rgb(from rgba(var(--color-accent)) r g b / 1);
}

.instagram-v6__subtitle {
  line-height: calc(1 + 0.6 / var(--font-body-scale));
  color: rgba(var(--color-accent));
}

.instagram-v6__title {
  font-size: calc(var(--font-heading-scale) * var(--font-body-scale) * 2.6rem);
  letter-spacing: calc(var(--font-heading-scale) * 0.16rem);
}

.instagram-v6__description {
  margin-bottom: clamp(2rem, calc(3.75vw + 0.5rem), 5rem);
}

@media (max-width: 767px) {
  .instagram-v6__button {
    margin-bottom: 3rem;
  }
}

.instagram-v6__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.instagram-v6__item {
  position: relative;
  overflow: hidden;
  width: calc(66.6666666667% - 3rem);
}

.instagram-v6__item:nth-child(2) {
  width: 33.3333333333%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.instagram-v6__item:nth-child(2) .instagram-v6__image-layer {
  top: unset;
}

.instagram-v6__item:nth-child(3) {
  width: 33.3333333333%;
}
.instagram-v6__item:nth-child(3) .instagram-v6__image-layer {
  bottom: unset;
}

.instagram-v6__image {
  aspect-ratio: 1;
  width: 100%;
}

.instagram-v6__image-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  aspect-ratio: 1;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: 0.3s;
}
.instagram-v6__image-layer svg {
  width: 3rem;
  height: 3rem;
  fill: rgb(from #fff r g b / 1);
  transition: 0.3s;
}
.instagram-v6__image-layer svg:hover {
  fill: rgb(from rgba(var(--color-accent)) r g b / 1);
}

.instagram-v6__image-layer:hover {
  opacity: 1;
}

.instagram-v6__grid xo-instagram-item {
  width: calc(66.6666666667% - 3rem);
}
.instagram-v6__grid xo-instagram-item a {
  position: relative;
  overflow: hidden;
}
.instagram-v6__grid xo-instagram-item:nth-child(2),
.instagram-v6__grid xo-instagram-item:nth-child(3) {
  width: 33.3333333333%;
}
.instagram-v6__grid xo-instagram-item:nth-child(2) {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}