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

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

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

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

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

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

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

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

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

.instagram-v7__item:nth-child(2) {
  width: 33.3333333333%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.instagram-v7__item:nth-child(2) .instagram-v7__image-layer {
  bottom: unset;
  top: 50%;
  transform: translateY(-50%);
}

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

.instagram-v7__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-v7__image-layer svg {
  width: 3rem;
  height: 3rem;
  fill: rgb(from #fff r g b / 1);
  transition: 0.3s;
}
.instagram-v7__image-layer svg:hover {
  fill: rgb(from rgba(var(--color-accent)) r g b / 1);
}

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

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