.ruudukko-section .container.wider {
  width: 100%;
  max-width: 1600px !important;
}

.ruudukko-section .ruudukkorow {
  min-height: 45vh;
}

.ruudukko-section .text-content .row {
  min-height: 40vh;
  padding-top: 8%;
  padding-bottom: 8%;
}
.ruudukko-section .text-content .row ul li {
  margin-bottom: 10px;
}
.ruudukko-section .text-content .row ul li strong {
  display: block;
}

.ruudukko-section .container-fluid {
  padding-left: 0px !important;
  padding-right: 0px !important;
}

.ruudukko-section .image-content,
.ruudukko-section .video-content {
  position: relative;
}
.ruudukko-section .image-content i.fa-solid.fa-circle-play,
.ruudukko-section .image-content i.fa.fa-play-circle-o,
.ruudukko-section .video-content i.fa-solid.fa-circle-play,
.ruudukko-section .video-content i.fa.fa-play-circle-o {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  font-size: clamp(2.5rem, 4.08vw + 1.43rem, 5rem);
  transform: scale(1) translate(-50%, -50%);
  color: #00a1ff;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.16);
  transform-origin: center;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
.ruudukko-section .image-content i.fa-solid.fa-circle-play:hover,
.ruudukko-section .image-content i.fa.fa-play-circle-o:hover,
.ruudukko-section .video-content i.fa-solid.fa-circle-play:hover,
.ruudukko-section .video-content i.fa.fa-play-circle-o:hover {
  transform: scale(1.1) translate(-50%, -50%);
  transform-origin: center;
}
.ruudukko-section .image-content.playing,
.ruudukko-section .video-content.playing {
  cursor: pointer;
}
.ruudukko-section .image-content.playing i.fa-solid.fa-circle-play,
.ruudukko-section .video-content.playing i.fa-solid.fa-circle-play {
  opacity: 0;
  font-size: 0px;
}

.ruudukko-section .image-content {
  padding: 0px;
  overflow: hidden;
}

.ruudukko-section .image-content:not(.sailyta) img.nostokuva,
.ruudukko-section .image-content:not(.lemonshape) img.nostokuva {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  position: absolute;
  -o-object-position: center center;
     object-position: center center;
  margin: 0;
}
.ruudukko-section .image-content:not(.sailyta).left-top img.nostokuva,
.ruudukko-section .image-content:not(.lemonshape).left-top img.nostokuva {
  -o-object-position: left top;
     object-position: left top;
}
.ruudukko-section .image-content:not(.sailyta).right-top img.nostokuva,
.ruudukko-section .image-content:not(.lemonshape).right-top img.nostokuva {
  -o-object-position: right top;
     object-position: right top;
}
.ruudukko-section .image-content:not(.sailyta).left-center img.nostokuva,
.ruudukko-section .image-content:not(.lemonshape).left-center img.nostokuva {
  -o-object-position: left center;
     object-position: left center;
}
.ruudukko-section .image-content:not(.sailyta).right-center img.nostokuva,
.ruudukko-section .image-content:not(.lemonshape).right-center img.nostokuva {
  -o-object-position: right center;
     object-position: right center;
}
.ruudukko-section .image-content:not(.sailyta).left-bottom img.nostokuva,
.ruudukko-section .image-content:not(.lemonshape).left-bottom img.nostokuva {
  -o-object-position: left bottom;
     object-position: left bottom;
}
.ruudukko-section .image-content:not(.sailyta).right-bottom img.nostokuva,
.ruudukko-section .image-content:not(.lemonshape).right-bottom img.nostokuva {
  -o-object-position: right bottom;
     object-position: right bottom;
}
.ruudukko-section .image-content:not(.sailyta).center-top img.nostokuva,
.ruudukko-section .image-content:not(.lemonshape).center-top img.nostokuva {
  -o-object-position: center top;
     object-position: center top;
}
.ruudukko-section .image-content:not(.sailyta).center-bottom img.nostokuva,
.ruudukko-section .image-content:not(.lemonshape).center-bottom img.nostokuva {
  -o-object-position: center bottom;
     object-position: center bottom;
}
.ruudukko-section .image-content:not(.sailyta).center-center img.nostokuva,
.ruudukko-section .image-content:not(.lemonshape).center-center img.nostokuva {
  -o-object-position: center center;
     object-position: center center;
}
.ruudukko-section .image-content.lemonshape img.nostokuva {
  width: 75%;
  height: auto;
  position: static;
  margin: 20px auto;
  -o-object-fit: cover;
  object-fit: cover;
  object-fit: cover;
  aspect-ratio: 1/0.8;
  border-radius: 75% 45% 75% 45%;
  -o-object-position: center center;
     object-position: center center;
  margin-top: 10px;
  margin-bottom: 10px;
  display: block;
  box-shadow: 4px 7px 18px rgba(0, 0, 0, 0.1019607843);
}
.ruudukko-section .image-content.sailyta img.nostokuva {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px auto;
}

.ruudukko-section .image-content.pystyfix {
  text-align: center;
}
.ruudukko-section .image-content.pystyfix img.nostokuva {
  width: auto;
  height: 100%;
  position: static;
  margin: 0px auto;
}

.ruudukko-section h2.common-sub-heading {
  text-align: left;
}

.ruudukko-section .video-content .video-container.kuvasuhde video {
  width: auto;
  height: auto;
  max-width: 100%;
}

@media (max-width: 991px) {
  .ruudukko-section .video-content .video-container:not(.kuvasuhde) {
    position: relative;
    padding-bottom: 56.25%;
  }
  .ruudukko-section .video-content .video-container:not(.kuvasuhde) iframe,
  .ruudukko-section .video-content .video-container:not(.kuvasuhde) object,
  .ruudukko-section .video-content .video-container:not(.kuvasuhde) embed,
  .ruudukko-section .video-content .video-container:not(.kuvasuhde) video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}
@media (min-width: 992px) {
  .ruudukko-section .video-content .video-container:not(.kuvasuhde) {
    width: 100%;
    height: 100%;
    min-height: 35vh;
    overflow: hidden;
    position: relative;
  }
  .ruudukko-section .video-content .video-container:not(.kuvasuhde) iframe,
  .ruudukko-section .video-content .video-container:not(.kuvasuhde) video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-height: 100%;
    min-width: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    transform: translate(-50%, -50%);
  }
}
/*
@media (max-width: 1300px) {
}*/
@media (max-width: 992px) {
  .ruudukko-section .image-content {
    min-height: 400px;
  }
  .ruudukko-section .video-content {
    min-height: auto;
  }
  .ruudukko-section .text-content .row {
    padding: 30px 10px;
    min-height: auto;
  }
}
@media (max-width: 500px) {
  .ruudukko-section .image-content {
    min-height: 270px;
  }
  .ruudukko-section .text-content .row ul {
    padding-left: 10px;
  }
}
.ruudukko-section .text-content .otsikko {
  position: relative;
}

.ruudukko-section .text-content .otsikko:after {
  content: "";
  height: 4px;
  width: 0%;
  display: block;
  background: linear-gradient(270deg, rgba(255, 204, 0, 0) 18%, #00a1ff 100%);
  margin: 15px 0px;
  transition: width 1.5s ease-in-out;
}

.ruudukko-section .text-content .otsikko.line:after {
  width: 95%;
}

.ruudukko-section ul,
.ruudukko-section ol {
  list-style: none;
}

.ruudukko-section ul li,
.ruudukko-section ol li {
  margin-bottom: 10px;
  padding-left: 25px; /* Adjust based on image dimention */
  position: relative;
}

.ruudukko-section ul li::before {
  background-image: url(check.png);
  background-size: cover;
  content: "";
  height: 22px;
  left: -11px;
  position: absolute;
  top: 4px;
  width: 22px;
  opacity: 0;
  transform: scale(0);
  transition-delay: 1.1s;
  transition: all 0.4s ease-in-out;
}

.ruudukko-section ol li::before {
  content: counter(list-item);
  background: #00a1ff;
  height: 22px;
  left: -16px;
  position: absolute;
  top: 2px;
  color: #13273f;
  font-weight: bold;
  width: 22px;
  text-align: center;
  z-index: 0;
  border-radius: 50%;
  line-height: 20px;
  opacity: 0;
  transform: scale(0);
  transition-delay: 1.6s;
  transition: all 0.4s ease-in-out;
}

.ruudukko-section ul li.screen:before,
.ruudukko-section ol li.screen:before {
  opacity: 1;
  transform: scale(1);
}
.ruudukko-section ul li.screen:before:nth-child(1),
.ruudukko-section ol li.screen:before:nth-child(1) {
  transition-delay: 0s;
}
.ruudukko-section ul li.screen:before:nth-child(2),
.ruudukko-section ol li.screen:before:nth-child(2) {
  transition-delay: 0.1s;
}
.ruudukko-section ul li.screen:before:nth-child(3),
.ruudukko-section ol li.screen:before:nth-child(3) {
  transition-delay: 0.25s;
}
.ruudukko-section ul li.screen:before:nth-child(4),
.ruudukko-section ol li.screen:before:nth-child(4) {
  transition-delay: 0.4s;
}
.ruudukko-section ul li.screen:before:nth-child(5),
.ruudukko-section ol li.screen:before:nth-child(5) {
  transition-delay: 0.55s;
}
.ruudukko-section ul li.screen:before:nth-child(6),
.ruudukko-section ol li.screen:before:nth-child(6) {
  transition-delay: 0.7s;
}
.ruudukko-section ul li.screen:before:nth-child(7),
.ruudukko-section ol li.screen:before:nth-child(7) {
  transition-delay: 0.85s;
}
.ruudukko-section ul li.screen:before:nth-child(8),
.ruudukko-section ol li.screen:before:nth-child(8) {
  transition-delay: 1s;
}
.ruudukko-section ul li.screen:before:nth-child(9),
.ruudukko-section ol li.screen:before:nth-child(9) {
  transition-delay: 1.15s;
}
.ruudukko-section ul li.screen:before:nth-child(10),
.ruudukko-section ol li.screen:before:nth-child(10) {
  transition-delay: 1.3s;
}
.ruudukko-section ul li.screen:before:nth-child(11),
.ruudukko-section ol li.screen:before:nth-child(11) {
  transition-delay: 1.45s;
}
.ruudukko-section ul li.screen:before:nth-child(12),
.ruudukko-section ol li.screen:before:nth-child(12) {
  transition-delay: 1.6s;
}

.ruudukko-section.testi .ruudukkorow {
  align-items: center;
}

/*
body.page-template-template-viisari {
  .ruudukko-section .text-content .otsikko:after {
    content: none !important;
  }
}*/