.instagram-v4 {
  position: relative;
}

.instagram-v4__box {
  position: relative;
  margin-top: 3rem;
}

.instagram-v4__box-icon {
  width: 100px;
  height: 100px;
  position: absolute;
  top: 50%;
  z-index: 10;
  background: linear-gradient(0deg, #ff9500 0, #ff18f7);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}
[dir=ltr] .instagram-v4__box-icon {
  left: 50%;
  transform: translate(-50%, -50%);
}
[dir=rtl] .instagram-v4__box-icon {
  right: 50%;
  transform: translate(50%, -50%);
}

.instagram-v4__box-icon svg {
  width: 4rem;
  height: 4rem;
}

.instagram-v4__box-icon svg path {
  fill: #fff;
}

.xo-container-width {
  padding: 0 1.5rem;
}
@media (min-width: 1400px) {
  .xo-container-width {
    max-width: unset;
    padding: 0 14rem;
  }
}

.xo-container-full {
  max-width: unset;
  padding: 0;
}

.instagram-v4__box-icon a:hover .instagram-v4__icon-ig {
  opacity: 1;
  transition: all 0.3s ease;
}

.instagram-v4__box-icon a:has(.instagram-v4__icon-ig) {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.instagram-v4__icon-ig {
  display: flex;
  align-items: center;
  top: 0;
  bottom: 0;
  background: rgba(37, 37, 37, 0.45);
  transition: all 0.3s ease;
  opacity: 0;
  flex-direction: column;
  position: absolute;
}
[dir=ltr] .instagram-v4__icon-ig {
  left: 0;
  right: 0;
}
[dir=rtl] .instagram-v4__icon-ig {
  right: 0;
  left: 0;
}

.instagram-v4__icon-ig svg path {
  transition: fill 0.1s;
  fill: #fff;
}

.instagram-v4__icon-ig svg:hover path {
  fill: #f4a568;
}

.instagram-v4__img-ig {
  transition: transform 0.3s ease;
  max-width: 100%;
  transform: scale(1);
  height: 100%;
}

.instagram-v4__box-icon a:hover .instagram-v4__img-ig {
  transform: scale(1.2);
}

.instagram-v4__icon-ig svg {
  font-size: calc(var(--font-heading-scale) * 3rem);
  color: #fff;
  position: absolute;
  top: 50%;
}
[dir=ltr] .instagram-v4__icon-ig svg {
  left: 50%;
  transform: translate(-50%, -50%);
}
[dir=rtl] .instagram-v4__icon-ig svg {
  right: 50%;
  transform: translate(50%, -50%);
}

.instagram-v4__slide {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.instagram-v4__box-img img {
  transition: transform 0.3s ease;
  max-width: 100%;
  transform: scale(1);
  height: 100%;
}

.instagram-v4__box-img {
  height: 100%;
}
.instagram-v4__box-img .xo-image {
  height: 100%;
}

.instagram-v4__slide:hover .instagram-v4__img {
  transform: scale(1.2);
}

.instagram-v4__item-link {
  display: flex;
  align-items: center;
  top: 0;
  bottom: 0;
  background: rgba(37, 37, 37, 0.45);
  transition: all 0.3s ease;
  opacity: 0;
  flex-direction: column;
  position: absolute;
}
[dir=ltr] .instagram-v4__item-link {
  left: 0;
  right: 0;
}
[dir=rtl] .instagram-v4__item-link {
  right: 0;
  left: 0;
}

.instagram-v4__slide:hover .instagram-v4__item-link {
  opacity: 1;
  transition: all 0.3s ease;
}

.instagram-v4__link {
  font-size: calc(var(--font-heading-scale) * 3rem);
  color: #fff;
  position: absolute;
  top: 50%;
}
[dir=ltr] .instagram-v4__link {
  left: 50%;
  transform: translate(-50%, -50%);
}
[dir=rtl] .instagram-v4__link {
  right: 50%;
  transform: translate(50%, -50%);
}

.instagram-v4__link svg path {
  transition: fill 0.1s;
  fill: #fff;
}

.instagram-v4__link svg:hover path {
  fill: #f4a568;
}

.instagram-v4__title {
  font-size: calc(var(--font-heading-scale) * 3.6rem);
  letter-spacing: calc(var(--font-heading-scale) * 0.032rem);
  line-height: calc(1 + 0.2 / var(--font-heading-scale));
  position: relative;
  display: inline-block;
  padding-bottom: 2rem;
}
.instagram-v4__title::before {
  content: "";
  position: absolute;
  bottom: 0;
  width: 5rem;
  height: 0.1rem;
  background: rgb(var(--color-accent));
}
[dir=ltr] .instagram-v4__title::before {
  left: 0;
  transform: translateX(0%);
}
[dir=rtl] .instagram-v4__title::before {
  right: 0;
  transform: translateX(0%);
}

.instagram-v4__box-title--center {
  text-align: center;
}

.instagram-v4__box-title--center .instagram-v4__title::before {
  content: "";
  position: absolute;
  bottom: 0;
  width: 5rem;
  height: 0.1rem;
  background: rgb(var(--color-accent));
}
[dir=ltr] .instagram-v4__box-title--center .instagram-v4__title::before {
  left: 50%;
  transform: translateX(-50%);
}
[dir=rtl] .instagram-v4__box-title--center .instagram-v4__title::before {
  right: 50%;
  transform: translateX(50%);
}