.wp-block-acf-hover-image-box {
  display: block;
  position: relative;
  overflow: hidden;
}

.wp-block-acf-hover-image-box a:hover {
  text-decoration: none;
}

.hover-image-box-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.hover-image-box-image-container {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
}

.button.hover-image-box-title {
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  z-index: 10;
}

.hover-image-box-image-container img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.18s ease-in-out;
  transform-origin: top right;
  width: 100%;
}

.wp-block-acf-hover-image-box:hover .hover-image-box-image-container img {
  transform: scale(1.03);
  transform-origin: top right;
}

.wp-block-acf-hover-image-box:hover .button.hover-image-box-title {
  background-color: #F13CDE;
}

.hover-image-box-content {
  padding: 15px 20px;
  margin-top: 1rem;
  text-align: center;
}

.hover-image-box-content h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;    
}

.hover-image-box-content p {
  margin-bottom: 0;
  margin-top: 1rem;
}

/* Light text on dark background scheme */
.wp-block-acf-hover-image-box.has-light-text-color {
   
}

.wp-block-acf-hover-image-box.has-light-text-color .hover-image-box-content h3 {
    color: #fff; /* White title */
}

.wp-block-acf-hover-image-box.has-light-text-color .hover-image-box-content p {
    color: #f0f0f0; /* Light grey description */
}