.yfv-container-j316 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

.yfv-video {
  position: relative;
  min-width: 0;
  overflow: visible;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(19, 47, 56, 0.1);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.yfv-video:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 22px rgba(19, 47, 56, 0.16);
}

.yfv-thumb-contain {
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 7px 7px 0 0;
  background: #e7e9e8;
}

.yfv-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms ease;
}

.yfv-video:hover .yfv-thumb {
  transform: scale(1.035);
}

.yfv-play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.9;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.yfv-link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.yfv-link:hover .yfv-play-button {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.08);
}

.yfv-title {
  display: block;
  padding: 14px 15px 5px;
  color: #35434a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
}

.yfv-video:first-of-type {
  box-shadow: 0 10px 24px rgba(19, 47, 56, 0.16);
}

.yfv-video:first-of-type .yfv-thumb-contain {
  background: linear-gradient(140deg, #fffdf7, #ded9cd);
}

.yfv-video:first-of-type .yfv-title {
  background: #fffdf8;
}

.yfv-video:first-of-type::before {
  position: absolute;
  z-index: 2;
  bottom: 15px;
  right: -10px;
  padding: 10px 18px 10px 22px;
  border-radius: 24px 0 0 24px;
  background: #122830;
  box-shadow: 0 5px 12px rgba(48, 36, 76, 0.24);
  color: #fff;
  content: "Latest service";
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.yfv-video:first-of-type::after {
  position: absolute;
  z-index: 1;
  bottom: 5px;
  right: -10px;
  width: 10px;
  height: 10px;
  background: #0b1a20;
  content: "";
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.yfv-date {
  display: block;
  padding: 0 15px 15px;
  color: #737d80;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  text-align: left;
}

.yfv-failed {
  text-align: center;
  padding: 10px;
  background: white;
  border-left: solid 4px red;
}

@media (min-width: 600px) {
  .yfv-container-j316 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .yfv-container-j316 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
  }

  .yfv-video:first-of-type {
    grid-column: 2;
  }

  .yfv-video:nth-of-type(2) {
    grid-column: 1;
    grid-row: 1;
    transform: scale(0.9);
  }

  .yfv-video:nth-of-type(2):hover {
    transform: translateY(-3px) scale(0.9);
  }

  .yfv-video:nth-of-type(3) {
    grid-column: 3;
    grid-row: 1;
    transform: scale(0.9);
  }

  .yfv-video:nth-of-type(3):hover {
    transform: translateY(-3px) scale(0.9);
  }
}

@media (max-width: 991px) {
  .yfv-video:first-of-type {
    outline: none;
    box-shadow: 0 5px 16px rgba(19, 47, 56, 0.1);
  }
}

@media (max-width: 599px) {
  .yfv-video:first-of-type {
    grid-column: auto;
  }

  .yfv-video:nth-of-type(2),
  .yfv-video:nth-of-type(3) {
    grid-column: auto;
    grid-row: auto;
  }
}

.yfv-lightbox {
  display: flex;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.yfv-lightbox.show {
  opacity: 1;
  pointer-events: auto;
}

.yfv-lightbox-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  background: #000;
}

.yfv-lightbox iframe {
  width: 100%;
  height: 100%;
}

.yfv-close {
  position: absolute;
  top: -30px;
  right: 0;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}
