/* =========================================
   HOME PAGE
   Later moved to index.css
   ========================================= */

.home-main {
  display: flex;
  align-items: stretch;
  min-height: 0;
}

.applications {
  width: 100%;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.application {
  position: relative;
  isolation: isolate;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  min-height: 170px;
  overflow: hidden;

  border-radius: 3px;
  background: #10283d;
  text-decoration: none;
}

.application::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;

  background-image: var(--app-image);
  background-size: cover;
  background-position: center;

  opacity: .88;

  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 13%,
    black 84%,
    transparent 100%
  );

  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 13%,
    black 84%,
    transparent 100%
  );
}

.application::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  background: linear-gradient(
    to bottom,
    transparent 28%,
    rgba(4,13,25,.88) 100%
  );
}

.application:hover::before {
  opacity: 1;
}

.application-title {
  font-size: clamp(17px, 1.7vw, 23px);
  font-weight: 400;
  margin: 0 16px 7px;
}

.application-caption {
  font-size: clamp(12px, 1.05vw, 15px);
  color: #d6e1ee;
  margin: 0 16px 18px;
}

/* MOBILE AND NARROW WINDOWS */

@media (max-width: 700px) {

 .applications {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .application {
    min-height: 170px;
  }
}

/* Adjust Automotive image position on Home page */
.application[href="automotive.html"]::before {
    background-position: 85% center;
}
