.blend-mode-container {
  position: relative;
  height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  isolation: isolate;
  overflow: visible;
}

.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.blend-mode-text {
  color: #ffffff;
  font-size: 8rem;
  line-height: 1;
  text-align: center;
  mix-blend-mode: difference;
  z-index: 1;
  position: relative;
  margin-top: -100px;
  margin-bottom: 0px;
  max-width: 1000px;
}

.blend-mode-paragraph {
  color: #ffffff;
  font-size: 2rem;
  text-align: center;
  mix-blend-mode: difference;
  z-index: 1;
  position: relative;
  margin: 10px 0 0;
}

.blend-mode-link-filled {
  color: #ffffff;
  background-color: var(--accentColor);
  font-size: 17px;
  text-align: center;
  z-index: 1;
  position: relative;
  margin-top: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  text-transform: uppercase;
  padding: 13px;
  font-family: 'CustomHeadingFont';
  min-width: 200px;
  text-align: left;
  margin-top: 20px;
  cursor:pointer;
  
  &::after {
    content: url('/wp-content/themes/smort_commerce_child/img/play.svg');
    position: absolute;
    right: 10px;
    filter: invert(1);
    transition: transform 0.2s ease-in-out;
  }

  &:hover {
    color: #fff;
    background-color: var(--accentColor3);
    &::after {
      transform: scale(1.1);
    }
  }
}

@media screen and (max-width: 992px) {
.blend-mode-text{
  font-size: 4rem;
}
.blend-mode-container{
   height: 450px;
}
.blend-mode-text{
  margin-top: -50px;
}
}

.video-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.video-dialog {
  max-width: 90vw;
  max-height: 90vh;
  width: 100%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.3s ease forwards;
  border:1px solid #fff;
}

@keyframes slideIn {
  from {
    transform: scale(0.8) translateY(20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.video-dialog-close {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.video-dialog-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.video-dialog-close:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.video-dialog-content {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
}

.video-dialog-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
}

@media (max-width: 768px) {
  .video-dialog {
    max-width: 95vw;
    max-height: 95vh;
    margin: 10px;
  }

  .video-dialog-close {
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    font-size: 20px;
  }
}

.video-dialog-player::-webkit-media-controls-panel {
  background-color: rgba(0, 0, 0, 0.8);
}

.video-dialog-player::-webkit-media-controls-play-button,
.video-dialog-player::-webkit-media-controls-volume-slider,
.video-dialog-player::-webkit-media-controls-timeline,
.video-dialog-player::-webkit-media-controls-current-time-display,
.video-dialog-player::-webkit-media-controls-time-remaining-display {
  color: white;
}