/* Video Modal Styles */
.thumbnail-container {
  position: relative;
  width: 100%;
  cursor: pointer;
}

.thumbnail-container img {
  width: 100%;
  border-radius: 8px;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 36px;
  border: none;
  border-radius: 50%;
  padding: 20px 24px;
  cursor: pointer;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  background-color: rgba(128, 128, 128, 0.7);
  overflow: auto; /* allow scrolling if needed */
}

.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  max-width: 1000px;
  background-color: white;
  padding: 50px 20px 20px;
  border-radius: 10px;
  box-sizing: border-box;
  z-index: 10000; /* ensure it's above the overlay */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block;
}

.modal iframe {
  width: 100%;
  height: 560px;
  border: 1px solid #eee;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 40px;
  color: #333;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10001; /* ensure it's above the iframe */
}

.modal-inner {
  position: relative;
  width: 100%;
  height: 100%;
  margin-top: 20px;
}
