:root {
  /* VIDEO POP UP STYLES */
  /* Fill Transition Speed */
  --fill-transition-speed: 0.4s;
  --play-icon-size-factor: 1.125;
  --video-max-width: 1365px;
  /* Size for the play icon and the close video popup button */
  --video-popup-component-size: 64px;
  --play-icon-white: #f3f3f3;
  --play-icon-grey: #404040;
  --warm-gray: #72635c;
  /* Focus */
  --trigger-video-focus-outline: 1px;
  --trigger-video-focus-border: 2px;
  /* Booth */
  --booth-maroon: #800000;
  --booth-gray: #676e73;
  --booth-warm-gray: #72635c;
  --booth-overlay-opacity: 0.4;
  --booth-gray-rgba: rgba(103, 110, 115, var(--booth-overlay-opacity, 0.4));
  --booth-warm-gray-rgba: rgba(114, 99, 92, var(--booth-overlay-opacity, 0.4));
}

/* The Trigger Video Popup Component */
.trigger-video-pop-up-component {
  position: relative;
  display: grid;
  padding: 0 !important;
}
/* .trigger-video-pop-up-component:focus {
  outline: 0px solid transparent !important;
} */
.trigger-video-pop-up-component:hover {
  cursor: pointer;
}
.__trigger-popup-background-image {
  width: 100%;
}
.__trigger-popup-background-image img {
  width: 100%;
  height: 100%;
}
/* IMAGE OVERLAY ON HOVER */
.trigger-video-pop-up-component::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Semi-transparent black overlay */
  background: rgba(0, 0, 0, 0.5);
  /* Hide initially */
  opacity: 0;
  /* Smooth transition for the hover effect */
  transition: opacity 0.3s ease;
}
.trigger-video-pop-up-component:hover::after,
.trigger-video-pop-up-component:focus::after {
  /* Show overlay on hover and focus */
  opacity: 1;
}
.__trigger-popup-play-icon {
  cursor: pointer;
  display: grid;
  width: 100%;
  height: 100%;
  place-content: center;
  position: absolute;
  z-index: 1;
}
.__trigger-popup-play-icon svg {
  transition: transform 0.2s;
  height: var(--video-popup-component-size, 64px);
  width: var(--video-popup-component-size, 64px);
}
/* Default Styles */
.__trigger-popup-play-icon .play-icon-circle {
  fill: var(--booth-maroon, maroon);
  transition: fill var(--fill-transition-speed, 0.3s) ease;
}
.__trigger-popup-play-icon .play-icon-symbol {
  fill: var(--play-icon-white, #f3f3f3);
  transition: fill var(--fill-transition-speed, 0.3s) ease;
}

/* FOCUS STYLES */
/* Offset for jumping content during focus */
/* .trigger-video-pop-up-component:not(:focus) {
  margin: calc(
    var(--trigger-video-focus-outline, 1px) +
      var(--trigger-video-focus-border, 2px)
  );
} */
/* .trigger-video-pop-up-component:focus {
  outline: var(--trigger-video-focus-outline, 1px) solid
    var(--warm-gray, #72635c);
  border-width: var(--trigger-video-focus-border, 2px);
  border-style: solid;
  border-color: var(--booth-maroon, #800000);
  box-shadow: 0px 0px 0px 6px rgba(128, 0, 0, 0.16);
  margin: 0;
} */

/* HOVER TYLES */
.trigger-video-pop-up-component:hover:focus {
  /* If in focus and hovering need to remove focus styles */
  outline: 0px solid transparent;
  border: 0px solid transparent;
  box-shadow: 0px 0px 0px 6px transparent;
}
.trigger-video-pop-up-component:hover .__trigger-popup-play-icon svg {
  /* Make the 64px svg a size of 72px */
  transform: scale(var(--play-icon-size-factor, 1.125));
}
/* play icon on hover and focus */
.trigger-video-pop-up-component:hover
  .__trigger-popup-play-icon
  svg
  .play-icon-symbol,
.trigger-video-pop-up-component:focus
  .__trigger-popup-play-icon
  svg
  .play-icon-symbol {
  fill: var(--play-icon-grey, #404040);
}

.trigger-video-pop-up-component:hover
  .__trigger-popup-play-icon
  svg
  .play-icon-circle,
.trigger-video-pop-up-component:focus
  .__trigger-popup-play-icon
  svg
  .play-icon-circle {
  fill: var(--play-icon-white, #f3f3f3);
}
/* Active Styles */
.trigger-video-pop-up-component:active .__trigger-popup-play-icon svg {
  /* Resize back to original size */
  transform: scale(1);
}

/* The Modal (background)*/
.video-popup-modal {
  /* --booth-gray-rgba */
  background-color: var(
    --booth-gray-rgba,
    rgba(103, 110, 115, var(--booth-overlay-opacity, 0.4))
  );
  /* --booth-warm-gray-rgba */
  /* background-color: var(
    --booth-warm-gray-rgba,
    rgba(114, 99, 92, var(--booth-overlay-opacity, 0.4))
  ); */
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  /* Ensure that this modal appears over any other content on site. */
  /* On incognito https://www.chicagobooth.edu/executiveeducation shows class .modal with z-index: 1050; so must be larger than that */
  z-index: 2000;
}

/* Modal Content */
.video-popup-modal-content {
  display: flex;
}

/* The Close Button */
#close-video-popup-modal-btn {
  outline: 0px solid transparent;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: block;
  box-sizing: border-box;
  color: #aaa;
  cursor: pointer;
  background-color: grey;
  padding: 1rem;
}
.video-popup-modal-content iframe:focus {
  /* Uchicago site causes border on the sides of the iframe so we need to override that in the video pop up iframe */
  border: 0px solid transparent !important;
  outline: 0px solid transparent !important;
}

/* For mobile devices */
@media (max-width: 767px) {
  /* The Close Button */
  #close-video-popup-modal-btn {
    margin: 0rem 0rem 0rem auto;
  }
  .video-popup-modal-content {
    display: grid;
    place-content: center;
    height: calc(100vh - var(--video-popup-component-size, 64px));
  }
  .video-popup-modal-content iframe {
    width: 100vw;
    height: 60vh;
    margin-bottom: var(--video-popup-component-size, 64px);
  }
}

/* For larger screens */
@media (min-width: 768px) {
  /* The Close Button */
  #close-video-popup-modal-btn {
    position: absolute;
    top: 0;
    right: 0;
  }
  .video-popup-modal-content {
    display: grid;
    place-content: center;
    height: 100%;
  }
  .video-popup-modal-content iframe {
    margin: 0 auto;
    width: 80vw;
    max-width: var(--video-max-width, 1365px);
    height: 60vw;
    max-height: 100vh;
  }
}

.close-video-popup-modal-icon {
  font-size: 28px;
  font-weight: bold;
  /* text-decoration: none; */
}

#close-video-popup-modal-btn:hover {
  color: black;
  cursor: pointer;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.24), 0 5px 5px 0 rgba(0, 0, 0, 0.19);
}
#close-video-popup-modal-btn:focus {
  color: black;
}
/* Scroll bar hiding */
/* !important add here as the bundle css file has overflow-y: scroll !important */
.video-popup-modal-visible {
  overflow-y: hidden !important; /* Enable vertical scrolling */
  scrollbar-width: none !important; /* For Firefox */
  -ms-overflow-style: none !important; /* For Internet Explorer and Edge */
}
.video-popup-modal-visible::-webkit-scrollbar {
  display: none !important; /* For Chrome, Safari, and Opera */
}
/* Copy To Clipboard Icon */
.__copy-video-url-to-clipboard-btn {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 32px;
  height: 32px;
  background-color: var(--booth-gray, #676e73);
  border: none;
  z-index: 2;
}
.__copy-video-url-to-clipboard-btn:hover {
  background-color: #e0e0e0;
  cursor: pointer;
}
.__copy-video-url-to-clipboard-btn:focus {
  outline: 0px solid transparent !important;
  border: 1px solid var(--booth-maroon, #800000);
}
.__copy-video-url-message {
  position: absolute;
  /* Adjust as needed */
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  /* Initially hidden */
  display: none;
  /* Ensure it's above other elements */
  z-index: 10;
}
