* { margin: 0; padding: 0; }
#jobposting * { box-sizing: border-box; }

#jobposting {
  align-items: center;
  color: #3a434f;
  display: flex;
  flex-direction: column;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  gap: 12px;
  hyphens: auto;
  padding: 12px 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  height: auto;
  max-width: 100%;
  vertical-align: middle;
}
h1, h1 strong { font-weight: 700; }
h2, .h2 {
  font-size: 16px;
  font-weight: 600;
  background: #f5f5f5;
  margin: -12px -12px 12px;
  padding: 6px 12px;
  line-height: 24px
}
h2 strong { font-weight: 600 }
h3, .h3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 14px
}
dl,ol,ul { padding-left: 30px; margin-bottom: 1rem; }

.box {
  background: white;
  border: 1px solid rgba(220,223,226,.8);
  display: grid;
  padding: 12px;
  width: min(calc( 100% - 24px), 834px);
}
  .box.header {
    column-gap: 12px;
    grid-template: "logo" auto
                   "company" auto
                   "jobtitle" auto / 100%;
  }
  @media (min-width: 768px) {
    .box.header {
      grid-template: "logo company " auto
                     "logo jobtitle" 1fr / 124px auto;
    }
  }
    .box.header img {
      border: 1px solid rgba(220,223,226,.8);
      grid-area: logo
    }
    .box.header h1 {
      color: #3a434f;
      font-size: 1rem;
      font-weight: 700;
      grid-area: jobtitle;
      line-height: 24px;
      margin-top: 0;
    }
    .box.header h2 {
      grid-area: company;
      font-size: 14px;
      font-weight: 600;
      line-height: 24px;
      margin: 0;
      padding: 0;
      background: 0;
      border: none;
    }
  .box.headerpic, .box.video { padding: 0; }

  .box p { margin-bottom: 1rem; }
    .box p:empty:first-child { display: none; }
  .box h1 { font-size: 1rem; }
  .box iframe.video { max-width: 100% }

  .gallery, .gallery2, .gallery3 {
  position: relative;
}
.gallery3 img.trans {
  position: relative;
  width: 100%;
}
.gallery3 img:nth-child(4) {
  z-index: 1;
  animation-delay: 8s;
}
.gallery3 img:nth-child(3) {
  z-index: 2;
  animation-delay: 4s;
}
.gallery3 img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  animation: slideshow 12s linear 0s infinite;
}
.gallery2 img {
  position: absolute;
  top: 0;
  left: 0;
}
.gallery2 img.trans {
  position: relative;
  width: 100%;
}
.top {
  animation-name: fade;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-duration: 6s;
  animation-direction: alternate;
}
@keyframes fade {
  0% {
    opacity: 1;
  }
  25% {
    opacity: 1;
  }
  75% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes slideshow {
  25% {
    opacity: 1;
  }
  33.33% {
    opacity: 0;
  }
  91.66% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
