/* Hero Section */
.pmcc-hero-banner {
  position: relative;
  width: 100%;
  height: 82vh; /* desktop height */
  min-height: 82vh;
  overflow: hidden;
}

/* Overlay for readability */
.pmcc-hero-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: rgba(0, 0, 0, 0.5); */
  background: radial-gradient(
    circle at center,
    rgba(26, 26, 26, 0.2) 0%,
    rgba(26, 26, 26, 0.8) 100%
  );
  z-index: 2;
}

/* Video Background */
.pmcc-hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 5%; /* shift video 20% from top */
  z-index: 1;
}

/* Image fallback if no video */
.pmcc-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* Overlay content above video */
.pmcc-hero-banner .container-fluid {
  position: relative;
  z-index: 3;
}

/* pmcc-home-free section */
.pmcc-home-free {
  min-height: 60vh;
  overflow: hidden;
  position: relative;
}

.pmcc-home-free-content {
  min-height: 78vh;
  bottom: 20px;
}

/* Fullscreen Popup */
#pmcc-video-frame {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pmcc-video-content {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  overflow: hidden;
}

.pmcc-video-content video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 ratio */
  min-height: 100vh;
  min-width: 177.78vh;
  transform: translate(-50%, -50%);
  object-fit: cover; /* video covers full screen */
}

.pmcc-close {
  position: fixed; /* FIXED to float above everything */
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  z-index: 1000000; /* higher than iframe */
  background: rgba(0, 0, 0, 0.5); /* optional semi-transparent bg */
  padding: 5px;
  border-radius: 35px;
}

/* Responsive for small screens */
@media (max-width: 768px) {
  .pmcc-hero-banner,
  .pmcc-home-free {
    height: 40vh;
    min-height: 40vh;
  }

  .pmcc-home-free-content {
    min-height: 0;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0 auto;
  }

  .pmcc-hero-video {
    object-position: center 20%; /* maintain top shift on mobile */
  }

  .pmcc-video-content video {
    min-height: auto !important;
    min-width: auto !important;

    width: 90vw !important; /* make smaller */
    height: auto !important; /* maintain aspect ratio */
    object-fit: contain !important;
    border-radius: 10px;
  }

  .pmcc-video-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
  }
}
