.text-video-section {
    padding-top:80px;
    padding-bottom: 80px;
}
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: {{ section.settings.title_color }};
}
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
  }

  .content-wrapper.reverse {
    direction: rtl;
  }

  .content-wrapper.reverse > * {
    direction: ltr;
  }
@media screen and (min-width: 990px) {
  .image-with-text__text-block{
      padding-right: 50px;
  }
}
  .text-block .subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: {{ section.settings.text_color }};
  }

  .text-content {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: {{ section.settings.text_color }};
  }

  .button {
    display: inline-block;
    /* padding: 12px 30px; */
    background-color: {{ section.settings.button_color }};
    color: {{ section.settings.button_text_color }};
    text-decoration: none;
    border-radius: 4px;
    transition: opacity 0.3s;
    text-align: center;
  }

  .button:hover {
    opacity: 0.8;
  }

  .videos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .video-item {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    max-height: 250px;
  }
  @media(min-width: 768px){
     .video-item {
      max-height: 450px;
     }
  }
  .video-item img{
    object-fit: cover;
    height: 100%;
    width: 100%;
  }
.video-wrapper {
    position: relative;
    height: 650px;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background-color: #000;
  }

  .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

.video-wrapper:hover .video-thumbnail {
    opacity: 0.8;
}

  .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.3s;
    opacity: 0;
  }

  .play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
  }

  .play-button svg {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
  }

  .video-title {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: {{ section.settings.text_color }};
    text-align: center;
  }

  @media (max-width: 768px) {
    .content-wrapper {
      grid-template-columns: 1fr;
      gap: 2rem;
    }

    .videos-grid {
      grid-template-columns: 1fr;
    }

    .section-title {
      font-size: 2rem;
    }
  }