/* =========================
   HERO
========================= */

.block-hero-casestudy-animatie {
  width: 100%;
  height: 160px;
  background:
    linear-gradient(
      to top,
      rgba(29, 95, 131, 0) 0%,
      rgba(29, 95, 131, 0) 100%
    ),
    url("../images/hero-casestudy-animatie-01.jpg") center/cover no-repeat;
  background-color: #ebe5df;
}

.block-hero-casestudy-ai {
  width: 100%;
  height: 160px;
  background:
    linear-gradient(
      to top,
      rgba(29, 95, 131, 0) 0%,
      rgba(29, 95, 131, 0) 100%
    ),
    url("../images/hero-casestudy-ai-01.jpg") center/cover no-repeat;
  background-color: #ebe5df;
}

.block-hero-casestudy-automation {
  width: 100%;
  height: 160px;
  background:
    linear-gradient(
      to top,
      rgba(29, 95, 131, 0) 0%,
      rgba(29, 95, 131, 0) 100%
    ),
    url("../images/hero-casestudy-automation-01.jpg") center/cover no-repeat;
  background-color: #ebe5df;
}

.block-hero-casestudy-design {
  width: 100%;
  height: 160px;
  background:
    linear-gradient(
      to top,
      rgba(29, 95, 131, 0) 0%,
      rgba(29, 95, 131, 0) 100%
    ),
    url("../images/hero-casestudy-design-01.jpg") center/cover no-repeat;
  background-color: #ebe5df;
}


.block-hero {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
}


/* =========================
   HERO VIDEO
========================= */

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  background-color: #ebe5df;
}


/* =========================
   CONTENT COPY
========================= */

.content-copy > div {
  text-align: left;
}

.left {
  min-width: 0;
}

.right {
  width: 100%;
  min-width: 0;
}


/* =========================
   RIGHT IMAGE
========================= */

.right img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}


/* =========================
   ROLE
========================= */

.role {
  margin: 20px 0 40px 0;
  text-align: left;
}

.left .title,
.left .text {
  display: block;
}

.left .title {
  color: #222;
  font-weight: 700;
}

.text .divider {
  font-size: 10px;
  display: inline-block;
  transform: translateY(-2px);
}


/* =========================
   ROLE STEPS
========================= */

.role-steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.role-step {
  width: 100%;
  box-sizing: border-box;
  padding: 2px 20px;
  border-radius: 30px;
  border: 1px solid #1D5F83;
  color: #1D5F83;
  font-size: 16px;
  text-align: left;
}


/* =========================
   PROCESS
========================= */

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.process-step {
  width: 100%;
  box-sizing: border-box;
  padding: 2px 20px;
  border-radius: 30px;
  color: #EBE3DB;
  font-size: 16px;
  text-align: left;
}

.process-step:nth-child(4) {
  background-color: #1D5F83;
}

.process-step:nth-child(3) {
  background-color: color-mix(in srgb, #1D5F83 100%, white);
}

.process-step:nth-child(2) {
  background-color: color-mix(in srgb, #1D5F83 85%, white);
}

.process-step:nth-child(1) {
  background-color: color-mix(in srgb, #1D5F83 70%, white);
}



/* =========================
   RESULT
========================= */

.content-result {
  margin: 40px;
  text-align: center;
}

.content-result span {
  font-size: 48px;
  color: #1D5F83;
}

.result-bold {
  font-family: fut-heavy;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* =========================
   WORK GRIDS
========================= */

.work-grid-landscape-1,
.work-grid-landscape-2,
.work-grid-landscape-3 {
  display: grid;
  width: 100%;
  gap: 4px;
  margin: 0 0 4px 0;
  box-sizing: border-box;
}

.work-grid-landscape-1 {
  grid-template-columns: 1fr;
}

.work-grid-landscape-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-grid-landscape-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}


/* =========================
   SPECIAL GRID
========================= */

.work-grid-special {
  display: grid;
  grid-template-columns: 0.2fr 0.6fr 0.2fr;
  grid-template-areas: "left center right";
  gap: 4px;
  align-items: stretch;
  width: 100%;
  aspect-ratio: 30 / 9;
  margin-top: 0;
  box-sizing: border-box;
}


/* Grid areas */

.left {
  grid-area: left;
}

.center {
  grid-area: center;
}

.right {
  grid-area: right;
}


/* =========================
   WORK ITEMS
========================= */

.work-item-special,
.work-item-landscape,
.work-item-panorama {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 10px;
  min-width: 0;
  box-sizing: border-box;
}

.work-item-landscape {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #ebe5df;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-item-panorama {
  width: 100%;
  aspect-ratio: 1280 / 240;
  background: #ebe5df;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* =========================
   MEDIA
========================= */

.work-item-special img,
.work-item-special video,
.work-item-landscape img,
.work-item-landscape video,
.work-item-panorama img,
.work-item-panorama video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}


/* =========================
   LINKS
========================= */

.work-item-special a,
.work-item-landscape a,
.work-item-panorama a {
  display: block;
  width: 100%;
  height: 100%;
}


/* =========================
   RIGHT WORK ITEM
========================= */

.right .work-item-landscape {
  width: 100%;
  margin: 0;
}

.right .work-item-landscape a {
  display: block;
  width: 100%;
  height: 100%;
}

.right .work-item-landscape img,
.right .work-item-landscape video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}


/* =========================
   PANORAMA LABEL
========================= */

.work-item-panorama span {
  position: absolute;
  left: 20px;
  bottom: 20px;
  color: #EBE3DB;
  font-size: 20px;
  padding: 5px 20px;
  border-radius: 30px;
  box-sizing: border-box;
  background-color: rgba(255, 77, 61, 0.8);
  z-index: 4;
}

.work-item-panorama span::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(235, 227, 219, 1) 0%,
    rgba(235, 227, 219, 0) 70%
  );
  pointer-events: none;
  z-index: -1;

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);

  -webkit-mask-composite: xor;
  mask-composite: exclude;
}


/* =========================
   IMAGE HOVER
========================= */

.image-hover {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.image-hover::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 0 solid #1D5F83;
  border-radius: inherit;
  pointer-events: none;
  transition: border-width 0.25s ease;
  z-index: 10;
}

.image-hover:hover::before {
  border-width: 4px;
}

.image-hover a {
  display: block;
  width: 100%;
  height: 100%;
}



/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

  .left {
    margin-bottom: 20px;
  }

  /* Right */
  .right {
    width: 100%;
    min-width: 0;
  }

  .right.image-hover {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .right.image-hover a {
    display: block;
    width: 100%;
    height: 100%;
  }

  .right.image-hover img,
  .right.image-hover video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }


  /* Role */
  .role {
    margin: 40px 0;
  }

  .role-steps {
    margin-bottom: 20px;
  }


  /* Work grids */

  .work-grid-landscape-2,
  .work-grid-landscape-3 {
    grid-template-columns: 1fr;
  }


  /* Keep spacing on mobile */
  .work-grid-landscape-1,
  .work-grid-landscape-2,
  .work-grid-landscape-3 {
    gap: 4px;
  }


  /* Panorama */

  .work-item-panorama {
    aspect-ratio: 1280 / 480;
  }


  /* Special grid */

  .work-grid-special {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "left right"
      "center center";
    aspect-ratio: auto;
  }


  /* Work items */

  .work-item-special,
  .work-item-landscape,
  .work-item-panorama {
    margin: 0;
    min-height: 0;
    border-radius: 10px;
  }


  .work-item-landscape {
    width: 100%;
    aspect-ratio: 16 / 9;
  }


  .work-item-special.portrait {
    aspect-ratio: 9 / 16;
  }

  .work-item-special.landscape {
    aspect-ratio: 16 / 9;
  }


  /* Media */

  .work-item-special img,
  .work-item-special video,
  .work-item-landscape img,
  .work-item-landscape video,
  .work-item-panorama img,
  .work-item-panorama video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }


  /* Labels */

  .work-item-landscape span,
  .work-item-panorama span {
    font-size: 14px;
  }


  /* Result */

  .content-result span {
    font-size: 32px;
  }

	.content-next-casestudy{
		padding: 0 10px;
	}

}
