.instagram-post {
  height: 200px;
  position: relative;
  overflow: hidden;
}

/* background layer so we can animate zoom separately from content */
.instagram-post::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  transition: transform 0.5s ease;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

.instagram-post::before {
  content: "";
  position: absolute;
  inset: 0;
  transition: background-color 0.5s ease;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
}

.instagram-post:hover::before {
  background-color: var(--hover-color, #7a4c0f98);
  opacity: 0.6;
}

/* zoom the background layer on hover */
.instagram-post:hover::after {
  transform: scale(1.05);
}

.instagram-post .instagram-icon {
  opacity: 0;
  transition: opacity 0.5s ease;
  width: 30px;
}

.instagram-post:hover .instagram-icon {
  opacity: 1;
}

.instagram-post > * {
  position: relative;
  z-index: 2;
}

/* Showroom - photo fills the right-hand side and fades into the green on its left edge */
.showroom-image {
  height: 280px;
}
.showroom-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #71816d 0%, rgba(113, 129, 109, 0) 50%);
}
@media screen and (min-width: 992px) {
  .showroom-image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 55%;
    height: auto;
  }
  .showroom-image::after {
    background: linear-gradient(90deg, #71816d 0%, rgba(113, 129, 109, 0) 45%);
  }
}
