/* The original Industry component, shared by all four editable cards. */
body .dillon-industry:not(#_) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: border-color .4s, background .4s;
}
body .dillon-industry:not(#_)::after {
  background: linear-gradient(0deg,rgba(13,36,64,.94),rgba(13,36,64,.08) 77%);
  border-width: 0;
  transition: background .45s;
}
body .dillon-industry-featured:not(#_)::after {
  background: linear-gradient(0deg,rgba(13,36,64,.95),rgba(196,51,34,.12) 80%);
}
body .dillon-industry:not(#_):hover::after {
  background: linear-gradient(0deg,rgba(13,36,64,.98),rgba(13,36,64,.72) 85%);
}
body .dillon-industry-plain:not(#_):hover {
  background: #35699f;
}
body .dillon-industry-plain:not(#_)::before {
  transition: transform .55s cubic-bezier(.2,.8,.2,1), opacity .4s;
}
body .dillon-industry-plain:not(#_):hover::before {
  transform: scale(1.14) rotate(8deg);
  opacity: .7;
}

/* Scale the photo, not its Elementor wrapper, avoiding double transforms. */
body .dillon-industry:not(#_) .dillon-industry-photo {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  transform: none !important;
  overflow: visible;
  z-index: -2;
}
body .dillon-industry:not(#_) .dillon-industry-photo img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform: none;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
body .dillon-industry:not(#_):hover .dillon-industry-photo img {
  transform: scale(1.09) translateY(-1.5%);
}

/* Intrinsic grid tracks let the title and description reveal together cleanly. */
body .dillon-industry-content:not(#_) {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  grid-template-rows: auto 0fr;
  gap: 0;
  min-height: 0;
  height: auto;
  overflow: hidden;
  transform: none;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), grid-template-rows .45s cubic-bezier(.2,.8,.2,1);
}
body .dillon-industry-description:not(#_) {
  min-height: 0;
  margin-top: 0 !important;
  overflow: hidden;
  opacity: 0;
  transition: opacity .3s ease, margin-top .45s cubic-bezier(.2,.8,.2,1);
}
body .dillon-industry:hover .dillon-industry-content:not(#_) {
  transform: translateY(-8px);
  grid-template-rows: auto 1fr;
}
body .dillon-industry:hover .dillon-industry-description:not(#_) {
  opacity: 1;
  margin-top: 16px !important;
}

/* Decorative arrow: the 24px icon is centered in a 42px white circle. */
body .dillon-industry-arrow:not(#_) {
  position: absolute;
  top: 24px;
  right: 24px;
  bottom: auto;
  left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 42px;
  height: 42px;
  min-height: 42px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #fff;
  line-height: 0;
  z-index: 1;
  opacity: 0;
  transform: translate(-10px,10px) scale(.75);
  transition: opacity .35s, transform .4s cubic-bezier(.2,.8,.2,1);
}
body .dillon-industry-arrow:not(#_) img {
  position: static;
  width: 24px;
  height: 24px;
  max-width: none;
}
body .dillon-industry:hover .dillon-industry-arrow:not(#_) {
  opacity: 1;
  transform: translate(0,0) scale(1);
}

/* The source exposes the complete hover presentation on phone layouts. */
@media (max-width:760px) {
  body .dillon-industry:not(#_) .dillon-industry-photo img {
    transform: scale(1.09) translateY(-1.5%);
  }
  body .dillon-industry:not(#_)::after,
body .dillon-industry-featured:not(#_)::after {
    background: linear-gradient(0deg,rgba(13,36,64,.98),rgba(13,36,64,.72) 85%);
  }
  body .dillon-industry-plain:not(#_) {
    background: #35699f;
  }
  body .dillon-industry-plain:not(#_)::before {
    transform: scale(1.14) rotate(8deg);
    opacity: .7;
  }
  body .dillon-industry-content:not(#_),
body .dillon-industry:hover .dillon-industry-content:not(#_) {
    grid-template-rows: auto auto;
    gap: 16px;
    transform: translateY(-8px);
  }
  body .dillon-industry-description:not(#_),
body .dillon-industry:hover .dillon-industry-description:not(#_) {
    opacity: 1;
    margin-top: 0 !important;
    overflow: visible;
  }
  body .dillon-industry-arrow:not(#_) {
    width: 36px;
    height: 36px;
    min-height: 36px;
    opacity: 1;
    transform: translate(0,0) scale(1);
  }
}
