/* Stories */
.smart-heading {
  text-align: center;
}
.smart-heading .title {
  font-size: 40px;
  font-weight: normal;
  margin-bottom: 10px;
}
.smart-heading .sub-title {
  font-size: var(--font-m);
  font-family: var(--pf-light);
  margin-bottom: 25px;
}
.stories-grid {
  --gap: 8px;
  --trans: -60px;
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  align-items: center;
}
.stories-grid > div {
  width: calc(90% / 2);
  flex-grow: 1;
}
.translate-video {
  margin-top: var(--trans);
}
.translate-text {
  margin-bottom: var(--trans);
}
.vertical > div {
  margin-bottom: 25px;
}
.sg-card {
  --width: 100%;
  --height: min-content;
  background-color: var(--white);
  padding: 20px 12px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  width: var(--width);
  height: var(--height);
  position: relative;
}
.sg-card.video {
  --height: 220px;
  padding: 0;
}
.quotation-mark {
  width: 42px;
  height: 30px;
  background-image: url(../images/b2c/home/quotation-mark.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  position: absolute;
  top: -18px;
  left: 11px;
}
.profile-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--font-xs);
}
.sq-cont {
  margin-bottom: 15px;
}
.pro-img {
  --size: 37px;
  width: var(--size);
  height: var(--size);
  object-fit: cover;
  border-radius: 50%;
}
.sg-card.video {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  font-family: sans-serif;
  cursor: pointer;
}

.video-card iframe,
.sg-card.video video,
.sg-card.video .cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-card iframe,
.sg-card.video .cover {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

.sg-card.video .play-btn,
.sg-card.video .pause-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.4);
  /* Slight glow */
  backdrop-filter: blur(3px);
  /* Only this part blurs background */
  -webkit-backdrop-filter: blur(3px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}

.sg-card.video .play-btn::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-left: 14px solid white;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.sg-card.video .pause-btn::after {
  content: "";
  display: block;
  width: 12px;
  height: 16px;
  border-left: 4px solid white;
  border-right: 4px solid white;
}

.sg-card.video .pause-btn {
  opacity: 0;
  pointer-events: none;
}

.sg-card.video.playing .pause-btn, .sg-card.video.playing:hover .pause-btn {
  opacity: 1;
  pointer-events: all;
}

.sg-card.video .caption {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: white;
  z-index: 4;
  font-size: 14px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
@media (max-width: 992px) {
  .stories-grid {
    --trans: 10px;
    --gap: 15px;
  }
  .stories-grid > div.vertical {
    width: 100%;
    display: flex;
    align-items: flex-end;
    gap: 15px;
  }
  div.vertical > div.video-parent {
    width: 45%;
  }
}
@media (min-width: 992px) {
  
  .stories-wrap .smart-heading {
    margin-bottom: -65px;
  }
  .stories-grid {
    flex-wrap: nowrap;
  }
  .stories-grid > div {
    width: calc(98% / 7);
  }
}
