/* Grid layout for video thumbnails */
#video-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

.video-card {
  cursor: pointer;
  text-align: center;
  background: #f8f8f8;
  border-radius: 8px;
  padding: 10px;
  transition: box-shadow 0.2s ease;
}

.video-card:hover {
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.video-card img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 8px;
}

.video-card h4 {
  font-size: 1em;
  margin: 0;
  color: #333;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.8);
}

.modal-content {
  position: relative;
  margin: 5% auto;
  padding: 0;
  width: 90%;
  max-width: 800px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.close-button {
  position: absolute;
  top: 10px; right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  z-index: 1000;
}

iframe#video-frame {
  width: 100%;
  height: 450px;
  border: none;
  border-radius: 0 0 8px 8px;
}
