.hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.hover-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 48px;
  font-weight: bold;
  font-style: var(--heading-font-font-style);
  font-family: var(--heading-font-font-family, inherit);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  text-align: center;
  line-height: 1.2;
  z-index: 2;
}

.hover-overlay.visible,
.hover-text.visible {
  opacity: 1;
}

/* Touch device styles */
@media (pointer: coarse) {
  .hover-overlay,
  .hover-text {
    opacity: 1;
  }
  
  .hover-text {
    font-size: 20px;
  }
}
