/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* --- VIDEO THUMBNAIL + PLAY BUTTON OVERLAY --- */

.gb-video-wrapper {
  position: relative;
  cursor: pointer;
  display: block;     
  width: 100%;
	height: 100%;

margin: 0 auto;        /* this is what centers it */
}

.gb-video-wrapper img {
 width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gb-video-play-btn {
  position: absolute !important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

/* Round Play Button Style */
.gb-video-play-btn .gb-button,
.gb-video-play-btn button,
.gb-video-play-btn a {
  border-radius: 50px;
  padding: 16px 20px;
  font-size: 26px;
}

/* --- POPUP VIDEO MODAL --- */

.gb-video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.gb-video-inner {
  position: relative;
  width: 90%;
  max-width: 900px;
}

.gb-video-inner iframe {
  width: 100%;
  height: 500px;
  border: none;
}

/* --- CLOSE BUTTON --- */
.gb-video-close {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
}