.samil-homepagetiles {
  padding: 18px 0;
}

.samil-homepagetiles__header {
  margin: 0 0 20px;
  padding: 5px;
  background: #EEEEEE;
  color: #282828;
  text-align: center;
  line-height: 1.5;
}

.samil-homepagetiles__title {
  margin: 0;
  text-transform: uppercase;
  color: #282828;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.5;
}

.samil-homepagetiles__grid {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: -12px;
}

.samil-homepagetiles__tile {
  width: 50%;
  padding: 12px;
}

.samil-homepagetiles__tileInner {
  display: block;
  height: 100%;
  background: #ffffff;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  -webkit-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.samil-homepagetiles__tileInner:hover,
.samil-homepagetiles__tileInner:focus {
  text-decoration: none;
  outline: none;
}

.samil-homepagetiles__media {
  position: relative;
  background: #e6e6e6;
}

.samil-homepagetiles__image,
.samil-homepagetiles__imagePlaceholder {
  display: block;
  width: 100%;
  height: auto;
}

.samil-homepagetiles__image {
  -o-object-fit: cover;
  object-fit: cover;
}

.samil-homepagetiles__imagePlaceholder {
  background: #dcdcdc;
}

.samil-homepagetiles__overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 16px;
  background-color: rgba(255, 240, 2, 0); /* start przezroczysty */
  color: #282828;
  text-align: center;
  opacity: 0;
  transition: opacity 180ms, background-color 180ms;
  -webkit-transition: opacity 180ms, background-color 180ms;
  transition: opacity 180ms, background-color 180ms;
}

.samil-homepagetiles__overlayText {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
}

.samil-homepagetiles__tileInner:hover .samil-homepagetiles__overlay,
.samil-homepagetiles__tileInner:focus .samil-homepagetiles__overlay,
.samil-homepagetiles__tileInner:focus-within .samil-homepagetiles__overlay {
  opacity: 1;
  background-color: rgba(255, 240, 2, 1); /* docelowy kolor */
  transition: opacity 180ms, background-color 180ms;
  -webkit-transition: opacity 180ms, background-color 180ms;
  transition: opacity 180ms, background-color 180ms;
}

.samil-homepagetiles__content {
  padding: 8px 12px 12px;
}

.samil-homepagetiles__tileTitle {
  margin: 0 0 4px;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
  color: #282828;
}

.samil-homepagetiles__tileDesc {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #282828;
}

@media (max-width: 767px) {
  .samil-homepagetiles__tile {
    width: 100%;
  }

  .samil-homepagetiles__image,
  .samil-homepagetiles__imagePlaceholder {
    height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .samil-homepagetiles__overlay {
    -webkit-transition: none;
    transition: none;
  }
}
