.hero.has-post-thumbnail {
  max-width: calc(100% + 30px) !important;
  margin-left: -15px !important;
  margin-right: -15px !important;
  overflow: hidden;
  position: relative;
  max-height: 600px;
  background: #212529;

  /* kuvan päällä olevat tekstit keskelle */
  display: flex;
  align-items: center;
}

.hero.has-post-thumbnail::before {
  padding-bottom: 56.25%;
  content: "";
  position: relative;
  float: left;
}

.hero.has-post-thumbnail + p,
.hero.has-post-thumbnail + h2,
.hero.has-post-thumbnail + h3,
.hero.has-post-thumbnail + h4 {
  margin-top: 3rem !important;
}

.hero img,
.hero iframe {
  position: absolute;
  object-fit: cover;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
  z-index: -1;
}

.hero .title img {
  position: relative;
  min-width: auto;
  min-height: auto;
  max-width: 100%;
}
.hero .title .logo {
  padding: 1.5rem 0;
}

.hero iframe {
  z-index: 3;
}

.dimming {
  display: block;
  position: absolute;
  line-height: 0;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  background: rgba(0, 0, 0, 0.25);
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
}

.hero {
  max-width: 1020px !important;
}

.hero .title {
  position: relative;
  z-index: 111;
  margin: 0 auto;
  width: 100%;
  max-width: 1020px;
  text-align: center;
  padding: 2.5rem 0;
}

.has-post-thumbnail .title {
  color: #fff;
}

@media (min-width: 768px) {
  .hero .title {
    padding: 6rem 0 4.5rem;
  }
}
