/* General Hover Card Block Styles */

.hover-card-block {
  position: relative;
  transition: all 0.3s ease;
}

.hover-card-block__front {
  position: relative;
  z-index: 1;
}

.hover-card-block__back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  padding: 1.25rem;
}

/* Styles override for editor preview */
.editor-styles-wrapper {

  /* avoid the link being clickable in the editor */
  .hover-card-block-link {
    pointer-events: none;
  }

  /* always show the back of the card in the editor */
  .hover-card-block__back {
    position: relative;
    opacity: 1 !important;
    z-index: 0;
  }
}