.video-gallery-wrapper {
  margin-top: 20px;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}
.video-item,
.video-gallery-wrapper .swiper-slide {
  position: relative;
}
.video-item img,
.video-gallery-wrapper .swiper-slide img {
  width: 100%;
  transition: transform 0.3s ease;
  display: block;
}

.video-trigger {
  display: block;
  position: relative;
  height: 100%;
}
.video-trigger figure img{height: 100%;object-fit: cover;}
.video-trigger::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(100, 66, 34, 0.5);
  border-radius: 50%;
  pointer-events: none;
  animation: ripple 2s infinite;
}

.video-trigger::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-left: 19px solid #fff;
  border-top: 14px solid transparent;
  border-bottom: 13px solid transparent;
  z-index: 2;
}

.video-trigger figure {
  position: relative;
  height: 100%;border-radius: 20px;overflow: hidden;
}

.video-trigger figure::after {
  background: linear-gradient(180deg, rgba(148, 72, 0, 0.4) 29.33%, rgba(100, 66, 34, 0.1) 100%);
  width: 100%;
  height: 100%;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.video-trigger figure::before {
  background-color: #BE9874;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

@keyframes ripple {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }

  100% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}

/* Modal styles */
.video-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-modal.active {
  display: flex;
}

.video-modal.visible {
  opacity: 1;
}

.video-modal-content {
  position: relative;
  background: #000;
  padding: 20px;
  max-width: 90%;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.video-modal.visible .video-modal-content {
  transform: scale(1);
}

.video-modal-content video {
  width: 100%;
  max-height: 80vh;
}

.video-modal .close-modal {
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
}

#modal-video {
  width: 100% !important;
}

@media (max-width: 1399px) {
  .video-grid {
    gap: 40px;
  }
}

@media (max-width: 1199px) {
  .video-grid {
    gap: 20px;
  }

  .video-trigger figure::before {
    width: 60px;
    height: 60px;
  }

  .video-trigger::before {
    border-left: 14px solid #fff;
    border-top: 10px solid transparent;
    border-bottom: 8px solid transparent;
  }
}

@media (max-width: 991px) {}

@media (max-width: 767px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .video-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .video-item {
    height: 100%;
  }

  #video-trigger {
    max-width: 85%;
  }


}