.theme-branding-info img {height:50px}

/* --- 1. Overlay Styling (The dark background) --- */
#video-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: none;
  /* Key centering properties */
  display: flex; /* We set this in CSS to enable centering */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* --- 2. Pop-up Content Box (The video container) --- */
#video-popup-content {
  position: relative;
  background-color: #000;
  padding: 0;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  
  /* CRITICAL ADDITION FOR CENTERING: */
  /* This ensures the content box is centered horizontally and vertically */
  margin: auto; 
  /* This ensures the content doesn't exceed the viewport width */
  max-width: 90%; 
  max-height: 90vh; /* max-height of 90% of the viewport height */
  overflow: hidden; /* prevents scrollbars on the pop-up container */
}

/* --- 3. Close Button --- */
#close-popup-btn {
  position: absolute;
  top: -30px;
  right: 0px;
  font-size: 30px;
  font-weight: normal;
  cursor: pointer;
  color: #fff;
  z-index: 10000;
  line-height: 1;
}

/* --- 4. Responsive Video Player --- */
#vimeo-player {
  /* Set a max dimension, the default width/height on the iframe is only a fallback */
  max-width: 100vw;
  max-height: 100vh;
  display: block;
}