/* =============================================================================
   Text image (DCE)
   ========================================================================== */

.textimage {
  display: block;
  padding: 2rem 0;
}

.textimage.imageright {
  direction: rtl;
}

.textimage-textwrap {
  padding: 2rem 3rem;
  direction: ltr;
}

.textimage h2,
.textimage h3 {
  position: relative;
  margin-bottom: 1.5rem;
}

.textimage-image {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.textimage-image img {
  width: 100%;
  max-width: inherit;
  height: 100%;
  object-fit: cover;
}

@media (hover: hover) {
  .textimage-hover {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    background: rgba(var(--c-neutral-darkest), 0.6);
    font-family: var(--f-family-b);
    font-size: 112%;
    text-transform: uppercase;
    text-decoration: none;
    color: rgb(var(--c-neutral-lightest));
    transition: all ease 0.8s;
  }
}

@media (min-width: 901px) {
  .textimage {
    display: grid;
    grid-template: 100% / 50% 50%;
    align-items: center;
  }

  .textimage-image {
    border-radius: 0 var(--b-radius) var(--b-radius) 0;
  }

  .imageright .textimage-image {
    border-radius: var(--b-radius) 0 0 var(--b-radius);
  }
}

@media (min-width: 1181px) {
  .textimage {
    grid-template: 100% / 40% 60%;
    padding: 3rem 0;
  }
}

@media (min-width: 1581px) {
  .textimage-textwrap {
    padding: 2rem calc((100vw - 1280px) / 2) 2rem 5rem;
  }

  .imageright .textimage-textwrap {
    padding: 2rem 5rem 2rem calc((100vw - 1280px) / 2);
  }
}

/* =============================================================================
   DCE content elements
   ========================================================================== */

@media (hover: hover) {
  a:hover .textimage-hover {
    opacity: 1;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
  }
}

.screenoverlay {
  display: flex;
  justify-content: space-around;
  align-items: stretch;
}

.so-leftwrap,
.so-rightwrap {
  width: 30%;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  flex-flow: column;
}

.so-imagewrap {
  width: 40%;
  position: relative;
  z-index: 1;
}

.so-imagewrap img {
  -webkit-box-shadow: 0 0 20px 10px rgba(var(--c-neutral-darkest), 0.15);
  box-shadow: 0 0 20px 10px rgba(var(--c-neutral-darkest), 0.15);
}

.so-overlayimage {
  position: absolute;
  top: 0;
  left: 0;
}

.so-leftwrap .so-title {
  padding-right: 50px;
}

.so-rightwrap .so-title {
  padding-left: 50px;
}

.so-title {
  position: relative;
}

.so-title a {
  color: rgb(var(--c-neutral-dark));
  display: block;
  background: rgb(var(--c-neutral-lighter));
  font-family: var(--f-family-b);
  padding: 20px 30px;
  -webkit-border-radius: 15px;
  -moz-border-radius: 15px;
  border-radius: 15px;
  font-size: 150%;
  -webkit-transition: background ease 0.3s;
  -moz-transition: background ease 0.3s;
  -ms-transition: background ease 0.3s;
  -o-transition: background ease 0.3s;
  transition: background ease 0.3s;
}

@media (hover: hover) {
  .so-title a:hover {
    background: rgb(var(--c-primary));
    color: rgb(var(--c-neutral-lightest));
  }

  .so-title a:hover::before {
    opacity: 1;
  }
}

.so-title a::before {
  content: "";
  width: 50px;
  height: 5px;
  background: rgb(var(--c-primary));
  top: 50%;
  right: 0;
  position: absolute;
  transform: translateY(-50%);
  opacity: 0;
  -webkit-transition: opacity ease 0.3s;
  -moz-transition: opacity ease 0.3s;
  -ms-transition: opacity ease 0.3s;
  -o-transition: opacity ease 0.3s;
  transition: opacity ease 0.3s;
  z-index: 0;
}

.so-stdimage,
.so-overlayimage {
  text-align: center;
}

.so-rightwrap .so-title a::before {
  right: inherit;
  left: 0;
}
