/* ===================================
   YouTube Video Modal - Styles
=================================== */

.videoModal-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.videoModal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* Video box - fullscreen feel but keeps aspect ratio centered */
.videoModal-box {
  position: relative;
  width: 90vw;
  max-width: 1200px;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.videoModal-overlay.is-active .videoModal-box {
  transform: scale(1);
}

/* 16:9 responsive wrapper */
.videoModal-iframeWrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  overflow: hidden;
}

.videoModal-iframeWrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Close button */
.videoModal-close {
  position: absolute;
  top: -45px;
  right: -10px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.videoModal-close:hover,
.videoModal-close:focus {
  color: #ff0000;
  transform: scale(1.1);
  outline: none;
}

/* Mobile tweak: keep close button visible on small screens */
@media (max-width: 600px) {
  .videoModal-box {
    width: 95vw;
  }
  .videoModal-close {
    top: -40px;
    right: 0;
    font-size: 28px;
  }
}

/* Prevent background scroll when modal is open */
body.videoModal-open {
  overflow: hidden;
}

/* --- Demo page styling (not required for the modal itself) --- */
.demo-wrap {
  max-width: 700px;
  margin: 100px auto;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
}
.fullvideoclick {cursor: pointer;}

/* .videoMoreBtn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.videoMoreBtn::after {
    content: "→";
    font-size: 20px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.videoMoreBtn:hover::after {
    transform: translateX(5px);
} */

@media only screen and (min-width:1280px) and (max-width:1366px) {
  .videoModal-box {width: 75vw;}
}