.speech-bubble-group {
  margin: auto;
}

@media only screen and (min-width: 768px) {
  .speech-bubble-group .wp-block-group__inner-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 40px;
  }
}
.speech-bubble-wrap {
  display: flex;
  flex-wrap: nowrap;
  max-width: 800px;
  align-items: center;
}

.speech-bubble-wrap.pleft {
  justify-content: flex-start;
}

.speech-bubble-wrap.pleft [speech-bubble] p {
  text-align: right;
}

.speech-bubble-wrap.pright {
  justify-content: flex-end;
}

.speech-bubble-wrap.pright [speech-bubble] p {
  text-align: left;
}

.speech-bubble {
  max-width: 50%;
}
@media only screen and (max-width: 768px) {
  .speech-bubble {
    max-width: none;
  }
}

.bubble-image,
.speech-bubble {
  max-width: 300px;
}
@media only screen and (max-width: 768px) {
  .bubble-image,
  .speech-bubble {
    flex: 1 1 calc(50% - 10px);
  }
}

[speech-bubble],
[speech-bubble] * {
  box-sizing: border-box;
}

[speech-bubble] {
  --bbColor: #e4d09c;
  --bbArrowSize: 2.5rem;
  --bbBorderRadius: 1.25rem;
  --bbPadding: 2rem;
  background: var(--bbColor);
  border-radius: var(--bbBorderRadius);
  padding: var(--bbPadding);
  position: relative;
  margin: 10px;
}
@media only screen and (max-width: 768px) {
  [speech-bubble] {
    margin: 5px 15px;
  }
}

[speech-bubble]::before {
  content: "";
  position: absolute;
  background: var(--bbColor);
}

[speech-bubble] p {
  margin: 0;
}

[speech-bubble][pbottom] {
  margin-bottom: var(--bbArrowSize);
}

[speech-bubble][ptop] {
  margin-top: var(--bbArrowSize);
}

[speech-bubble][pleft] {
  margin-left: var(--bbArrowSize);
}

/* bottom and top  */
[speech-bubble][pbottom]::before,
[speech-bubble][ptop]::before {
  --width: calc(var(--bbArrowSize) / 2 * 3);
  height: var(--bbArrowSize);
  width: var(--width);
}

/* bottom */
[speech-bubble][pbottom]::before {
  top: calc(100% - 2px);
}

[speech-bubble][pbottom][aleft]::before {
  left: 1rem;
  clip-path: polygon(25% 0, 100% 0, 0% 100%);
}

[speech-bubble][pbottom][acenter]::before {
  left: calc(50% - var(--width) / 2);
  clip-path: polygon(12.5% 0, 87.5% 0, 50% 100%);
}

[speech-bubble][pbottom][aright]::before {
  right: 1rem;
  clip-path: polygon(0 0, 75% 0, 100% 100%);
}

/* top */
[speech-bubble][ptop]::before {
  bottom: calc(100% - 2px);
}

[speech-bubble][ptop][aleft]::before {
  left: var(--bbPadding);
  clip-path: polygon(0 0, 100% 100%, 25% 100%);
}

[speech-bubble][ptop][acenter]::before {
  left: calc(50% - var(--width) / 2);
  clip-path: polygon(12.5% 100%, 50% 0, 87.5% 100%);
}

[speech-bubble][ptop][aright]::before {
  right: var(--bbPadding);
  clip-path: polygon(0 100%, 100% 0, 75% 100%);
}

/* left and right  */
[speech-bubble][pleft]::before,
[speech-bubble][pright]::before {
  --height: calc(var(--bbArrowSize) / 2 * 3);
  width: var(--bbArrowSize);
  height: var(--height);
}

/* right */
[speech-bubble][pright]::before {
  left: calc(100% - 2px);
}

[speech-bubble][pright][atop]::before {
  top: var(--bbPadding);
  clip-path: polygon(100% 0, 0 100%, 0 25%);
}

[speech-bubble][pright][acenter]::before {
  top: calc(50% - var(--height) / 2);
  clip-path: polygon(0 12.5%, 100% 50%, 0 87.5%);
}

[speech-bubble][pright][abottom]::before {
  bottom: var(--bbPadding);
  clip-path: polygon(0 0, 100% 100%, 0 75%);
}

/* left */
[speech-bubble][pleft]::before {
  right: calc(100% - 2px);
}

[speech-bubble][pleft][atop]::before {
  top: var(--bbPadding);
  clip-path: polygon(0 0, 100% 25%, 100% 100%);
}

[speech-bubble][pleft][acenter]::before {
  top: calc(50% - var(--height) / 2);
  clip-path: polygon(0 50%, 100% 12.5%, 100% 87.5%);
}

[speech-bubble][pleft][abottom]::before {
  bottom: var(--bbPadding);
  clip-path: polygon(0 100%, 100% 0, 100% 75%);
}

/* flip */
[speech-bubble][pbottom][flip]::before,
[speech-bubble][ptop][flip]::before {
  transform: scaleX(-1);
}

[speech-bubble][pleft][flip]::before,
[speech-bubble][pright][flip]::before {
  transform: scaleY(-1);
}/*# sourceMappingURL=block.css.map */