/* ===== BASE ===== */

.hover-reveal-widget {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.elementor-widget-container {
  overflow: visible !important;
}

.hover-menu {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.hover-item {
  margin-bottom: 20px;
  cursor: pointer;
  width: 100%;
}

.hover-title {
  margin: 0;
  transition: color 0.3s ease, transform 0.25s ease;
  will-change: transform;
  white-space: normal;
  word-break: break-word;
}

/* ===== IMAGE DESKTOP ===== */

.hover-image {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 20px;

  width: 320px;
  height: 220px;

  pointer-events: none;
  z-index: 10;
}

.hover-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: 0;
  transform: scale(0.95);

  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hover-image img.is-visible {
  opacity: 1;
  transform: scale(1);
}


/* =========================
   MOBILE / TABLET FIX
========================= */

@media (max-width: 767px) {

  html, body {
    overflow-x: hidden;
  }

  .hover-reveal-widget {
    display: block;
    width: 100%;
  }

  .hover-menu {
    width: 100%;
  }

  .hover-item {
    cursor: default;
  }

  /* STACK IMAGE */
  .hover-image {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;

    width: 100% !important;
    height: auto !important;

    margin-left: 0 !important;
    margin-top: 20px;
  }

  .hover-image img {
    width: 100%;
    height: auto;
    max-width: 100%;

    opacity: 1;
    transform: none;
  }

}