.gallery {
    display: flex;
    justify-content: center;
  }
  
  .thumbnails {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
  }
  
  .thumbnails img {
    width: 120px;
    height: 120px;
    margin: 0 10px;
    cursor: pointer;
    transition: opacity 0.3s ease-in-out;
  }
  
  .thumbnails img.active {
    opacity: 0.6;
  }
  
  .modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.7);
  }
  
  .modal .close {
    position: fixed;
    top: 10px;
    right: 10px;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
  }
  
  .modal .video-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 360px; /* 2/3 of 1080px */
    max-height: 640px; /* 2/3 of 1920px */
    width: auto;
    height: auto;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }
  
  .modal .video-container video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
  
  .modal .video-container video::-webkit-media-controls-panel {
    display: none !important; /* Added to hide player's options */
  }
  
  .modal .video-container .progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background-color: #ddd;
  }
  .progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: #ddd;
  }
  
  .progress {
    height: 100%;
    background-color: #4caf50;
    width: 0%;
  }
  
  .video-container {
    position: relative;
  }
  

  
  .modal .video-container .progress .progress {
    width: 0;
    height: 100%;
    background-color: #ff5722;
  }
  
  .modal .video-container .volume-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
  }
  
  .thumbnails-modal {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none; /* Added to prevent interactions with thumbnails */
  }
  
  .thumbnails-modal img {
    width: 60px;
    height: 60px;
    margin: 0 5px;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.3s ease-in-out;
  }
  
  .thumbnails-modal img.active {
    opacity: 1;
  }
  
  .cascade-container {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    top: calc(50% - 50px);
    pointer-events: none;
    z-index: 1; /* Added to ensure cascading thumbnails appear above video */
  }
  
  
  .cascade-video {
    width: 60px;
    height: 60px;
    opacity: 0.4;
    transition: opacity 0.3s ease-in-out;
  }
  
  .cascade-video.active {
    opacity: 1;
  }
  
  .cascade-left {
    justify-content: flex-end;
    margin-right: 10px; /* Added margin to avoid overlapping video */
  }
  
  .cascade-right {
    justify-content: flex-start;
    margin-left: 10px; /* Added margin to avoid overlapping video */
  }
  .video-container {
  position: relative;
}
.volume-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
  }
  
  .close {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
  }