[data-component-id="avchildcare:rectangle_and_bubble_image"] {

  position: relative;

  & .rect-img__rect-frame {
    position: relative;
    max-width: 330px;
    aspect-ratio: 675/456;
    border-radius: 32px;
    border-style: solid;
    border-width: 12px;
    transform: rotate(6.82deg);
    overflow: visible;

    & .rect-img__rect {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 22px;
    }
    @media (min-width: 768px) {
      max-width: 675px;
    }    
  }

  & .rect-img__stroke {
    position: absolute;
    width: 7.85%;
    aspect-ratio: 53/48;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;

    &.top {
      top: -12%;
      left: -9%;
      -webkit-mask-image: url('../../images/assets/rect-image-deco-top.svg');
      mask-image: url('../../images/assets/rect-image-deco-top.svg');
    }

    &.low {
      bottom: -16%;
      right: -6%;
      -webkit-mask-image: url('../../images/assets/rect-image-deco-low.svg');
      mask-image: url('../../images/assets/rect-image-deco-low.svg');
    }

    @media (min-width: 768px) {
      width: 10.37%;
    }
  }

  & .rect-img__bubble {
    transform: rotate(10.36deg);
    position: absolute;
    width: 35.85%;
    aspect-ratio: 1/1;
    bottom: -20%;
    left: -9%;

    & img {
      position: relative;
      z-index: 2;
      aspect-ratio: 1/1;
    }

    & .rect-img__bubble-shadow {
      width: 100%;
      height: 100%;
      position: absolute;
      z-index: 1;
      top: 5%;
      left: 2%;
      box-shadow: 0px 4px 4px -1px rgba(12, 12, 13, 0.1), 0px 4px 4px -1px rgba(12, 12, 13, 0.05);
    }

    & img,
    & .rect-img__bubble-shadow {
      -webkit-mask-repeat: no-repeat;
      mask-repeat: no-repeat;
      -webkit-mask-position: center;
      mask-position: center;
      -webkit-mask-size: contain;
      mask-size: contain;
      -webkit-mask-image: url('../../images/assets/rect-bubble-img-mask.svg');
      mask-image: url('../../images/assets/rect-bubble-img-mask.svg');
    }
  }
}

.rect-img--orange-blue {
  & .rect-img__rect-frame { border-color: var(--color-orange); }
  & .rect-img__bubble-shadow { background: var(--color-blue); }
  & .rect-img__stroke { background: var(--color-coral); }
}
.rect-img--blue-orange {
  & .rect-img__rect-frame { border-color: var(--color-blue); }
  & .rect-img__bubble-shadow { background: var(--color-orange); }
  & .rect-img__stroke { background: var(--color-blue); }
}
.rect-img--coral-lime {
  & .rect-img__rect-frame { border-color: var(--color-coral); }
  & .rect-img__bubble-shadow { background: var(--color-lime); }
  & .rect-img__stroke { background: var(--color-blue); }
}
