/* Start custom CSS *//* ===== Service photo cards hover effect: edit these values ===== */
:root {
  --fg-card-zoom: 1.2;       /* how far the photo zooms in on hover (1 = none, 1.2 = 20 percent larger) */
  --fg-card-rotate: -5deg;   /* tilt of the photo on hover (0deg = none). Copied from the live site */
  --fg-card-pan-x: 0%;       /* sideways pan on hover (negative = left, positive = right). The live site has none */
  --fg-card-pan-y: 0%;       /* up or down pan on hover (negative = up, positive = down). The live site has none */
  --fg-card-speed: 0.3s;     /* how long the movement takes. Copied from the live site */
  --fg-card-ease: linear;    /* easing of the movement. Copied from the live site */
  --fg-card-shade-color: 244, 134, 24; /* gradient colour as red, green, blue. This is the theme orange #F48618 (the live site uses black: 0, 0, 0) */
  --fg-card-shade-height: 40%;   /* height of the gradient at rest, from the bottom of the card. Live site value */
  --fg-card-shade-opacity: 0.8;  /* strength of the gradient at rest. Live site value */
  --fg-card-shade-hover-opacity: 0.6; /* strength of the gradient on hover. Live site value */
}

/* Cards Grid 7b420c95: the card is the link, the photo is its first child image, the gradient is its second child */
html body.elementor-kit-6 [data-id="7b420c95"] > a {
  isolation: isolate;
  overflow: hidden;
}
html body.elementor-kit-6 [data-id="7b420c95"] > a > img:first-child {
  transform: translate(0, 0) scale(1) rotate(0deg);
  transform-origin: center center;
  transition: transform var(--fg-card-speed) var(--fg-card-ease);
  will-change: transform;
}

/* Gradient at rest: live site shape, bottom 40 percent of the card, in the theme orange */
html body.elementor-kit-6 [data-id="7b420c95"] > a > div:nth-child(2) {
  top: auto;
  bottom: 0;
  height: var(--fg-card-shade-height);
  opacity: var(--fg-card-shade-opacity);
  background-image: linear-gradient(180deg, rgba(var(--fg-card-shade-color), 0) 0%, rgb(var(--fg-card-shade-color)) 150%);
  transition: height var(--fg-card-speed) var(--fg-card-ease), opacity var(--fg-card-speed) var(--fg-card-ease);
}

/* Keyboard focus works on every device */
html body.elementor-kit-6 [data-id="7b420c95"] > a:focus-visible > img:first-child,
html body.elementor-kit-6 [data-id="7b420c95"] > a:focus-within > img:first-child {
  transform: translate(var(--fg-card-pan-x), var(--fg-card-pan-y)) scale(var(--fg-card-zoom)) rotate(var(--fg-card-rotate));
}
html body.elementor-kit-6 [data-id="7b420c95"] > a:focus-visible > div:nth-child(2),
html body.elementor-kit-6 [data-id="7b420c95"] > a:focus-within > div:nth-child(2) {
  height: 100%;
  opacity: var(--fg-card-shade-hover-opacity);
  background-image: linear-gradient(180deg, rgba(var(--fg-card-shade-color), 0) 0%, rgb(var(--fg-card-shade-color)) 100%);
}

/* Mouse hover only on devices that can hover (not touch) */
@media (hover: hover) and (pointer: fine) {
  html body.elementor-kit-6 [data-id="7b420c95"] > a:hover > img:first-child {
    transform: translate(var(--fg-card-pan-x), var(--fg-card-pan-y)) scale(var(--fg-card-zoom)) rotate(var(--fg-card-rotate));
  }
  html body.elementor-kit-6 [data-id="7b420c95"] > a:hover > div:nth-child(2) {
    height: 100%;
    opacity: var(--fg-card-shade-hover-opacity);
    background-image: linear-gradient(180deg, rgba(var(--fg-card-shade-color), 0) 0%, rgb(var(--fg-card-shade-color)) 100%);
  }
}

/* No movement for people who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html body.elementor-kit-6 [data-id="7b420c95"] > a > img:first-child,
  html body.elementor-kit-6 [data-id="7b420c95"] > a > div:nth-child(2) {
    transition: none !important;
  }
  html body.elementor-kit-6 [data-id="7b420c95"] > a > img:first-child {
    transform: none !important;
  }
}/* End custom CSS */