.instagram-v3 {
  position: relative;
}

.instagram-v3__heading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background-color: #fff;
  z-index: 99;
  border-radius: var(--text-boxes-radius);
}

.instagram-v3__icon {
  line-height: 0;
}
.instagram-v3__icon svg {
  width: 2rem;
  height: 2rem;
}

.instagram-v3__title {
  font-size: clamp(1.4rem, calc(0.25vw + 1.3rem), 1.6rem);
  margin-bottom: 0;
  white-space: nowrap;
}

.instagram-v3__item {
  position: relative;
  overflow: hidden;
}

.instagram-v3__item:hover .instagram-v3__image-layer {
  opacity: 1;
}
.instagram-v3__item:hover img {
  transform: scale(1.2);
}

.instagram-v3__image {
  aspect-ratio: 1;
  width: 100%;
  height: 100%;
  transition: 0.3s;
}

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

.instagram-v3__list xo-instagram-item a {
  position: relative;
  overflow: hidden;
}
.instagram-v3__list xo-instagram-item:hover img {
  transform: scale(1.2);
}
.instagram-v3__list xo-instagram-item:hover span {
  opacity: 1;
}