

.lgwMeU {
    color: #007aa3!important;
}
	
	/* Remove Bootstrap gutters */
.no-gutter { margin-left:0; margin-right:0; }
.no-gutter > [class*="col-"] { padding-left:0; padding-right:0; }

/* Tile wrapper */
.value-tile {
  position: relative;
  overflow: hidden;
  height: 360px;
}

/* Background image */
.value-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Overlay base */
.value-overlay {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
  transition: all 0.5s ease;
  z-index: 2;
}

/* Colours */
.value-overlay.pink { background-color: #b60057; }
.value-overlay.blue { background-color: #007aa3; }

.pink { background-color: #b60057; }
.blue { background-color: #007aa3; }

/* Slide directions */
.value-overlay.slide-from-left {
  left: -100%;
  right: auto;
}
.value-overlay.slide-from-right {
  right: -100%;
  left: auto;
}

/* Hover states */
.value-tile:hover .slide-from-left,
.value-tile:focus .slide-from-left {
  left: 0;
}

.value-tile:hover .slide-from-right,
.value-tile:focus .slide-from-right {
  right: 0;
}
/* Split tile layout */
.value-tile-split .image-half {
  position: relative;
  height: 360px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.value-tile-split .pink-static {
  background-color: #b60057;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 360px;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
}

/* Overlay text slide */
.value-tile-split .value-overlay {
  position: absolute;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
  transition: all 0.5s ease;
  z-index: 2;
}

.value-tile-split:hover .value-overlay,
.value-tile-split:focus .value-overlay {
  right: 0;
}

@media (max-width: 767px) {
  .value-tile-split .image-half,
  .value-tile-split .pink-static {
    height: 240px;
    font-size: 1.2rem;
  }
}

/* Wide tile with full background image */
.value-tile-wide {
  position: relative;
  overflow: hidden;
  height: 360px;
}

.value-tile-wide .value-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Pink static panel on right side */
.pink-static-side {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-color: #b60057;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  z-index: 2;
}

/* Sliding overlay across entire image */
.value-tile-wide .value-overlay {
  position: absolute;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.6s ease;
  z-index: 3;
}

.value-tile-wide:hover .value-overlay {
  right: 0;
}

/* Mobile tweaks */
@media (max-width: 767px) {
  .value-tile-wide { height: 240px; }
  .pink-static-side span,
  .value-tile-wide .value-overlay span {
    font-size: 1.2rem;
  }
}

/* Base tile */
.value-tile-wide {
  position: relative;
  overflow: hidden;
  height: 360px;
}

.value-tile-wide .value-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Static colour panel */
.pink-static-side,
.blue-static-side {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  z-index: 2;
}

.pink-static-side { background-color: #b60057; }
.blue-static-side { background-color: #007aa3; }

/* Panel positions */
.pink-static-side.right,
.blue-static-side.right { right: 0; }

.pink-static-side.left,
.blue-static-side.left { left: 0; }

/* Overlay shared */
.value-tile-wide .value-overlay {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.6s ease;
  z-index: 3;
}

/* Overlay directions */
.value-tile-wide .slide-from-right {
  right: -100%;
}

.value-tile-wide:hover .slide-from-right,
.value-tile-wide:focus .slide-from-right {
  right: 0;
}

.value-tile-wide .slide-from-left {
  left: -100%;
}

.value-tile-wide:hover .slide-from-left,
.value-tile-wide:focus .slide-from-left {
  left: 0;
}

/* Overlay colours */
.value-overlay.pink { background-color: #b60057; }
.value-overlay.blue { background-color: #007aa3; }

/* Responsive */
@media (max-width: 767px) {
  .value-tile-wide { height: 240px; }
  .pink-static-side span,
  .blue-static-side span,
  .value-overlay span {
    font-size: 1.2rem;
  }
}









/* Responsive */
@media (max-width: 767px) {
  .value-tile { height: 240px; }
  .value-overlay span { font-size: 1.2rem; }
}


/* Responsive adjustments */
@media (max-width: 767px) {
  .value-tile { height: 240px; }
  .value-overlay span { font-size: 1.2rem; }
}


/* Feature boxes */
.feature-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 150px;
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  transition: all 0.3s ease;
}

.feature-box i {
  font-size: 36px;
  margin-bottom: 10px;
}

.feature-box.blue {
  background-color: #007aa3; /* same blue as site */
}

.feature-box.pink {
  background-color: #b60057; /* trust pink */
}

/* Hover effect */
.feature-box:hover {
  text-decoration: none;
  transform: translateY(-20%);
	color: #fff;
}

/* Make text responsive */
.feature-box span {
  font-size: 16px;
}

@media (max-width: 767px) {
  .feature-box {
    height: 120px;
  }
  .feature-box i {
    font-size: 28px;
  }
  .feature-box span {
    font-size: 14px;
  }
}

.find-a-school {
}
.welcome-message-home {
	position: absolute;
	left:0;
	right: 0;
	bottom: 100px;
	margin: 0 auto;
	padding-right: 50px;
	z-index: 5;
}
.welcome-message-home h2 span {
	color: #fff;
	font-size: 3.0vw;
	text-align: right;
	font-weight: 500;
}
.welcome-message-home h2 {
	color: #fff;
	font-size: 2.0vw;
	text-align: right;
	font-weight: 200!important;
}


.google-map a {
	color: #000;
}
.list-of-schools {
	position: relative;
	top: -60px;
}
.list-of-schools:after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    background: url(/webcontent/webimage/home-slider-mask-new1.png) repeat-x bottom left;
    bottom: 0;
    left: 0;
	z-index: -1;
}
.masked-image {
	position: relative;
	margin-top: 10px;
            width: 100%;
            aspect-ratio: 1 / 1; /* Ensures square */
            background-size: cover;
            background-position: center;
            -webkit-mask-image: url('/webcontent/webimage/squoval-img-mask.png');
            -webkit-mask-size: cover;
            -webkit-mask-repeat: no-repeat;
            -webkit-mask-position: center;
            mask-image: url('/webcontent/webimage/squoval-img-mask.png');
            mask-size: contain;
            mask-repeat: no-repeat;
            mask-position: center;
            background-color: #ccc; /* fallback color while loading */
	transform: scale(1);
    transition: transform 0.8s ease;
        }
.image-container {
            padding: 10px;
        }
.school-logo-mask img {
	position: absolute;
    top: 60px;
    left: 0;
    z-index: 1;
    width: 60px;
    height: 60px;
	transition: transform 0.5s ease-in-out;
}
.image-container:hover .school-logo-mask img {
	position: absolute;
    transform: translateX(210%) translateY(60%) rotate(360deg) scale(1.5);
}
.image-container:hover .school-name-mask h2 {
	position: absolute;
    transform: translateY(-140%) scale(1.3);
	color: #fff;
	background-color: transparent;
}

.school-name-mask {
	position: relative;
    z-index: 1;
}
.school-name-mask h2 {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	color: #1C1F3C;
	margin-top: -30px;
	font-size: 18px;
	transition: transform 0.5s ease-in-out;
	background-color: #fff;
	padding: 10px 0 10px 0;
}
@keyframes slide {
	0% {top:30px;}
	100% {top:35%;left: 35%;}
}
.image-container:hover .masked-image {
    transform: scale(1.1);
	filter: blur(5px) brightness(70%);
	
}
.image-container:hover a {
           text-decoration: none;
	
}
.shape-top {
	background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDBweCIgdmlld0JveD0iMCAwIDEyODAgMTQwIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxnIGZpbGw9IiNmZmZmZmYiPjxwYXRoIGQ9Ik0xMjgwIDMuNEMxMDUwLjU5IDE4IDEwMTkuNCA4NC44OSA3MzQuNDIgODQuODljLTMyMCAwLTMyMC04NC4zLTY0MC04NC4zQzU5LjQuNTkgMjguMiAxLjYgMCAzLjRWMTQwaDEyODB6IiBmaWxsLW9wYWNpdHk9Ii4zIi8+PHBhdGggZD0iTTAgMjQuMzFjNDMuNDYtNS42OSA5NC41Ni05LjI1IDE1OC40Mi05LjI1IDMyMCAwIDMyMCA4OS4yNCA2NDAgODkuMjQgMjU2LjEzIDAgMzA3LjI4LTU3LjE2IDQ4MS41OC04MFYxNDBIMHoiIGZpbGwtb3BhY2l0eT0iLjUiLz48cGF0aCBkPSJNMTI4MCA1MS43NmMtMjAxIDEyLjQ5LTI0Mi40MyA1My40LTUxMy41OCA1My40LTMyMCAwLTMyMC01Ny02NDAtNTctNDguODUuMDEtOTAuMjEgMS4zNS0xMjYuNDIgMy42VjE0MGgxMjgweiIvPjwvZz48L3N2Zz4=);
	background-size: 80% 70px;
	top: -57px;
	bottom: 80px;
	position: relative;
	height: 60px;
	z-index: 4;
}
.shape-bottom {
	background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDBweCIgdmlld0JveD0iMCAwIDEyODAgMTQwIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxnIGZpbGw9IiNmZmZmZmYiPjxwYXRoIGQ9Ik0xMjgwIDMuNEMxMDUwLjU5IDE4IDEwMTkuNCA4NC44OSA3MzQuNDIgODQuODljLTMyMCAwLTMyMC04NC4zLTY0MC04NC4zQzU5LjQuNTkgMjguMiAxLjYgMCAzLjRWMTQwaDEyODB6IiBmaWxsLW9wYWNpdHk9Ii4zIi8+PHBhdGggZD0iTTAgMjQuMzFjNDMuNDYtNS42OSA5NC41Ni05LjI1IDE1OC40Mi05LjI1IDMyMCAwIDMyMCA4OS4yNCA2NDAgODkuMjQgMjU2LjEzIDAgMzA3LjI4LTU3LjE2IDQ4MS41OC04MFYxNDBIMHoiIGZpbGwtb3BhY2l0eT0iLjUiLz48cGF0aCBkPSJNMTI4MCA1MS43NmMtMjAxIDEyLjQ5LTI0Mi40MyA1My40LTUxMy41OCA1My40LTMyMCAwLTMyMC01Ny02NDAtNTctNDguODUuMDEtOTAuMjEgMS4zNS0xMjYuNDIgMy42VjE0MGgxMjgweiIvPjwvZz48L3N2Zz4=);
	background-size: 80% 70px;
	top: -170px;
	bottom: 80px;
	position: relative;
	height: 60px;
	z-index: 4;
}
.welcome-top-shape {
	background-image: url(/webcontent/webimage/welcome-top-shape.png);
	background-size: 100% 50px;
	top: -80px;
	bottom: 80px;
	position: relative;
	height: 40px;
	z-index: 4;
}
#mainbody {
	position: relative;
    top: -35px;
	background-color: #fff;
}
.school-intro {
	margin-top: 40px;
	position: relative;
	z-index: 100;
	background-color: #fff;
	color: #3A4457;
	border: 5px solid #3A4457;
	border-radius: 10px;
}
.Welcome p {
	padding-top: 5px;
	font-size: 2.5em;
	color: #FC0C0C;
}
.moto p {
	font-size: 1.8em;
	color: #3A4457;
}
@media screen and (max-width: 768px) {
	.home-quicklinks {
		position: relative; 
		top: 0;
	}
	.home-quicklinks .pulse-button-upper {
		position: relative; 
		top: 0;
	}
}
.home-quicklinks {
	position: relative; 
	top: -180px;
	width: 100%;
}




/* == Navbar Main Style == */
.navbar-default {
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	background-color: transparent;
	border: 0px;
	border-radius: 0px;
	z-index: 2;
}
.navbar-brand img {
	position: absolute;
	top:15px;
	left:15px;
	z-index: 2;
    max-height: 350px;
}
.navbar-default svg {
	margin-bottom: 10px;
}
.navbar-default .navbar-nav > li > a {
	padding: 20px;
	color: #fff;
	font-size: 1.2em;
}
/* == Homepage Slideshow == */
.slideshow-box:before {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 300px;
    background: url(/webcontent/webimage/menu-overlay.png) repeat-x top left;
    top: 0;
    left: 0;
	z-index: 1;
	transform: scale(1);
    transition: transform 0.8s ease;
}
.slideshow-box:after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    background: url(/webcontent/webimage/home-slider-mask-new1.png) repeat-x bottom left;
    bottom: 0;
    left: 0;
	z-index: 1;
}
.slideshow-box {
	height: 95vh;
	width: 100%;
	position: relative;
}
#slide-1 {
	background-image: url("/webcontent/webimage/central-england-academy-trust-homepage-hero-01.jpg");
	transform: scale(1.2);
}
#slide-2 {
	background-image: url("/webcontent/webimage/central-england-academy-trust-homepage-hero-02.jpg");
	transform: scale(1.2);
}
#slide-3 {
	background-image: url("/webcontent/webimage/central-england-academy-trust-homepage-hero-03.jpg");
}
.fill {
	width: 100%;
	height: 95vh;
	background-position: center top;
	background-size: cover;
	background-repeat: no-repeat;
}
#myCarousel {
	position: relative;
	width: 100%;
	z-index:0;
}
.carousel-inner {
	height: 100%;
}
.carousel-fade .carousel-inner .item {
	opacity: 0;
	transition-property: opacity;
}
.carousel-fade .carousel-inner .active {
	opacity: 1;
}
.carousel-fade .carousel-inner .active.left,
.carousel-fade .carousel-inner .active.right {
	left: 0;
	opacity: 0;
	z-index: 1;
}
.carousel-fade .carousel-inner .next.left,
.carousel-fade .carousel-inner .prev.right {
	opacity: 1;
}
.carousel-fade .carousel-control {
	z-index: 2;
}
@media all and (transform-3d), (-webkit-transform-3d) {
	.carousel-fade .carousel-inner > .item.next,
	.carousel-fade .carousel-inner > .item.active.right {
		opacity: 0;
		-webkit-transform: translate3d(0, 0, 0);
		transform: translate3d(0, 0, 0);
	}
	.carousel-fade .carousel-inner > .item.prev,
	.carousel-fade .carousel-inner > .item.active.left {
		opacity: 0;
		-webkit-transform: translate3d(0, 0, 0);
		transform: translate3d(0, 0, 0);
	}
	.carousel-fade .carousel-inner > .item.next.left,
	.carousel-fade .carousel-inner > .item.prev.right,
	.carousel-fade .carousel-inner > .item.active {
		opacity: 1;
		-webkit-transform: translate3d(0, 0, 0);
		transform: translate3d(0, 0, 0);
	}
}
.carousel-caption a {
	position: relative;
	z-index: 500;
}
.carousel-caption h1 {
	color: #fff;
}
.carousel-caption {
	bottom: 25vh;
    opacity: 0;
    transform: translateY(30px); /* start slightly below */
    transition: none;
}
/* Animate when the slide is active */
.carousel .item.active .carousel-caption {
    animation: fadeSlideUp 1s ease forwards;
    animation-delay: 0.5s; /* optional delay */
}
.carousel-caption h1 {
	text-transform: uppercase;
}
.carousel-caption h1 small {
	color: #fff;
	text-transform: lowercase;
}
.slideshow-box:before,
.slideshow-box:after {
    pointer-events: none; /* ⬅ makes them non-interactive */
}
/* Keyframes */
@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Primary button colour */
.btn-primary {
    background-color: #b60057;
    border-color: #b60057;
	border-radius: 50px;
}

/* Hover / focus / active states */
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary {
    background-color: #8a0041; /* a slightly darker shade for hover */
    border-color: #8a0041;
}

/* Optional: remove Bootstrap's default outline */
.btn-primary:focus,
.btn-primary:active:focus,
.btn-primary.active:focus {
    outline: none;
    box-shadow: none;
}
/* Sticky navbar base */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    background-color: transparent;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

/* Navbar when scrolled */
.navbar.scrolled {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Change menu text to black */
.navbar.scrolled .navbar-nav > li > a {
    color: #000 !important;
}

/* Optional: change icon colours too */
.navbar.scrolled .navbar-nav > li > a i {
    color: #000 !important;
}

/* Optional: dropdown background on scroll */
.navbar.scrolled .dropdown-menu {
    background-color: #fff;
}

.navbar.scrolled .dropdown-menu > li > a {
    color: #000 !important;
}

.navbar.scrolled .dropdown-menu > li > a:hover {
    background-color: #f5f5f5;
    color: #b60057 !important; /* your brand pink for hover */
}



.latest-news {
  background: #f8f9fa;
  padding: 40px 0;
}

.latest-news ul {
  list-style: none;
  margin: 0;
  padding: 0;
  visibility: hidden;  /* 👈 hide list but keep it in the DOM for JS */
  height: 0;
  overflow: hidden;
}

/* ✅ Force all Bootstrap columns in Latest News to equal height */
.latest-news .row > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

/* ✅ Make each card fill the column and use flex layout */
.news-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  display: flex;
  flex-direction: column;
  flex: 1 1 auto;    /* Stretch vertically */
  justify-content: flex-start;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;  /* show the whole image */
  background-color: #fff; /* subtle background behind transparent or letterboxed images */
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
	padding:5px;
}

.news-card h1 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #000;
  margin: 10px 12px;
  line-height: 1.3;
  min-height: 50px;  /* ✅ reserve space for 2 lines of text */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.news-card .news-date {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px;
}

/* ✅ Read More button pinned to the bottom */
.read-more-btn {
	width: 150px;
  margin-top: auto;  /* pushes it down inside flex */
	align-self: center;
  display: inline-block;
  background-color: #b0005a;
  color: #fff;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 30px;
  margin-bottom: 15px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.read-more-btn:hover {
  background-color: #8a0047;
  text-decoration: none;
  transform: translateY(-2px);
}

@media (max-width: 767px) {
  .news-card h1 {
    font-size: 1rem;
  }
}
 .latest-news {
  background: #f8f9fa;
  padding: 60px 0;
}

.latest-news .container-fluid {
  padding-left: 60px;
  padding-right: 60px;
}

@media (max-width: 767px) {
  .latest-news .container-fluid {
    padding-left: 20px;
    padding-right: 20px;
  }
}
.latest-news h1 {
  text-align: center;
  margin-bottom: 40px;
}

.news-button {
  display: block;
  width: 200px;
  margin: 30px auto 0;
}
/* === Popup overlay styles === */
.pop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.pop-overlay.active {
  display: flex;
}

.pop-modal {
  background: #fff;
  border-radius: 10px;
  max-width: 700px;
  width: 100%;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
  animation: popIn 0.4s ease;
}

@keyframes popIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.pop-header {
  background: #007aa3;
  color: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pop-header h3 {
  color: #fff;
}
.pop-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

.pop-body {
  padding: 1.5rem;
}

.pop-media video {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1rem 0;
}

.pop-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.pop-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.pop-secondary {
  background: #007aa3;
  color: white;
}

.pop-checkbox {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
/* === FIX: Popup not visible / hidden behind carousel === */
.pop-overlay {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  z-index: 999999; /* ensure above everything */
}

.pop-overlay.active {
  display: flex !important;
}

.pop-modal {
  opacity: 1 !important;
  transform: scale(1) !important;
  background: #fff;
  border-radius: 10px;
  max-width: 700px;
  width: 100%;
  padding: 0;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  z-index: 1000000;
}

/* Ensure video is visible */
.pop-media video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}
/* === Popup sizing and layout fix === */
.pop-modal {
  background: #fff;
  border-radius: 10px;
  width: 90%;
  max-width: 500px; /* ⬅️ reduced from 700px */
  max-height: 90vh; /* ensures it never fills entire screen */
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  text-align: left;
  animation: popIn 0.3s ease;
  position: relative;
}
#sitePopDetails a {
	color: #b60057;
}
.pop-body {
  padding: 1.2rem;
}

/* Video should scale nicely within new modal size */
.pop-media video {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1rem 0;
  max-height: 50vh; /* prevents video from stretching too tall */
  object-fit: contain;
}

/* On mobile: slightly tighter layout */
@media (max-width: 600px) {
  .pop-modal {
    width: 95%;
    max-width: 380px;
    max-height: 90vh;
  }

  .pop-header h3 {
    font-size: 1.1rem;
  }

  .pop-body {
    padding: 1rem;
  }
}
