/* Card Image Link
 * Structural styles only. Visual styling (colors, typography, spacing) is
 * controlled from the Elementor Style tab and defaults to none, except the
 * card aspect ratio (414 / 567) and the dark overlay (black, 50%).
 */
.rmh-card-image-link {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
	min-height: min(136.956vw, 567px);
  aspect-ratio: 414 / 567;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
	background-color: var(--rmh-black);
	color: var(--rmh-soft-white);
  border-radius: 16px;
	overflow: hidden;

}

/* Dark layer above the image, below the title and the click area */
.rmh-card-image-link__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
  pointer-events: none;
}

.rmh-card-image-link__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
	padding: 40px clamp(20px,4.88vw,50px);
}

.rmh-card-image-link__title {
  margin: 0;
	font-size: clamp(24px,5.07vw,52px);
	line-height: 1.0826;
	letter-spacing: -0.01788em;
}

.rmh-card-image-link__arrow {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 16px;
	font-size: clamp(20px,2.08vw,30px);
	line-height: 1;
	letter-spacing: -0.017em;
}

/* Stretched link: covers the whole card so it is entirely clickable,
   while the card itself stays a <div>. */
.rmh-card-image-link__stretched-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.rmh-card-image-link:hover .rmh-card-image-link__arrow {
	justify-content: flex-end;
	margin-block-start: 20px;
	margin-inline-start: auto;
}
.rmh-card-image-link:not(:hover) .rmh-card-image-link__arrow-text {
	display: none;
}
