/* =========================================================
   Garretts Green Nursery School - Homepage / Extras CSS
   ========================================================= */

/* =========================================================
   1. Popup
   ========================================================= */
#popup {
  position: fixed;
  top: 45%;
  left: 50%;
  z-index: 9999;
  margin: 0;
  transform: translate(-50%, -50%);
}

#popup img {
  width: 100%;
}

.more-info,
.close-popup {
  position: absolute;
  right: 0;
  left: 0;
  color: #fff;
  background-color: #0072bc;
  border-color: #4cae4c;
}

.more-info {
  bottom: 0;
}

.close-popup {
  top: 0;
}

/* =========================================================
   2. Homepage Layout
   ========================================================= */
.interventions {
  position: relative;
  top: -90px;
}

.school-map {
  position: relative;
}

.shape-top {
  position: relative;
  top: -80px;
  bottom: 80px;
  z-index: 4;
  height: 80px;
  background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDBweCIgdmlld0JveD0iMCAwIDEyODAgMTQwIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxnIGZpbGw9IiNmZmZmZmYiPjxwYXRoIGQ9Ik0xMjgwIDMuNEMxMDUwLjU5IDE4IDEwMTkuNCA4NC44OSA3MzQuNDIgODQuODljLTMyMCAwLTMyMC04NC4zLTY0MC04NC4zQzU5LjQuNTkgMjguMiAxLjYgMCAzLjRWMTQwaDEyODB6IiBmaWxsLW9wYWNpdHk9Ii4zIi8+PHBhdGggZD0iTTAgMjQuMzFjNDMuNDYtNS42OSA5NC41Ni05LjI1IDE1OC40Mi05LjI1IDMyMCAwIDMyMCA4OS4yNCA2NDAgODkuMjQgMjU2LjEzIDAgMzA3LjI4LTU3LjE2IDQ4MS41OC04MFYxNDBIMHoiIGZpbGwtb3BhY2l0eT0iLjUiLz48cGF0aCBkPSJNMTI4MCA1MS43NmMtMjAxIDEyLjQ5LTI0Mi40MyA1My40LTUxMy41OCA1My40LTMyMCAwLTMyMC01Ny02NDAtNTctNDguODUuMDEtOTAuMjEgMS4zNS0xMjYuNDIgMy42VjE0MGgxMjgweiIvPjwvZz48L3N2Zz4=);
  background-size: 80% 100px;
}

.school-intro {
  position: relative;
  z-index: 100;
  background-color: #fff;
  color: #3A4457;
}

.Welcome p {
  padding-top: 5px;
  font-size: 2.8em;
  color: #0072bc;
}

.moto p {
  font-size: 1.8em;
  color: #3A4457;
}

.home-quicklinks {
  position: relative;
  top: -80px;
  width: 100%;
  margin-bottom: 60px;
}

.pulse-button-row {
  position: relative;
  z-index: 100;
}

.pulse-button {
  position: absolute;
  top: 50px;
  left: 50%;
  z-index: 10;
  width: 80%;
  height: 200px;
  margin: 20px 0;
  transform: translate(-50%, -50%);
  border: 5px solid #0072bc;
  border-radius: 25px;
  color: #fff;
  background-color: #3A4457;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 0 rgba(0, 114, 188, 0.7);
  cursor: pointer;
  font-size: 1.8em;
  font-weight: 600;
  animation: none;
}

.pulse-button:focus {
  outline: 0;
}

.pulse-button:hover {
  animation: pulse 1s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse {
  to {
    box-shadow: 0 0 0 45px rgba(239, 28, 38, 0);
  }
}

/* =========================================================
   3. Homepage Slideshow
   ========================================================= */
.slideshow-box {
  position: relative;
  width: 100%;
  margin-top: -20px;
}

#myCarousel {
  position: relative;
  z-index: 0;
  width: 100%;
}

#slide-1 { background-image: url("/webcontent/webimage/forest-school-5.jpg"); }
#slide-2 { background-image: url("/webcontent/webimage/literacy-7.jpg"); }
#slide-3 { background-image: url("/webcontent/webimage/dsc_0228.jpg"); }
#slide-4 { background-image: url("/webcontent/webimage/dsc_0181.jpg"); }

.fill {
  width: 100%;
  height: 700px;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.item,
.active,
.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;
  z-index: 1;
  opacity: 0;
}

.carousel-fade .carousel-inner .next.left,
.carousel-fade .carousel-inner .prev.right {
  opacity: 1;
}

.carousel-fade .carousel-control {
  z-index: 2;
}

.carousel-caption {
  bottom: 25vh;
}

.carousel-caption h1 {
  text-transform: uppercase;
}

.carousel-caption h1 small {
  color: #fff;
  text-transform: lowercase;
}

@media all and (transform-3d), (-webkit-transform-3d) {
  .carousel-fade .carousel-inner > .item.next,
  .carousel-fade .carousel-inner > .item.active.right,
  .carousel-fade .carousel-inner > .item.prev,
  .carousel-fade .carousel-inner > .item.active.left {
    opacity: 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;
    transform: translate3d(0, 0, 0);
  }
}

/* =========================================================
   4. Side Buttons - Search / Translate
   ========================================================= */
#sitesearch,
#gtranslate {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 9999;
}

#sitesearch {
  top: 110px;
}

#gtranslate {
  top: 180px;
}

#sitesearch-tab,
#gtranslate-tab {
  position: fixed;
  right: 15px;
  width: 60px;
  height: 60px;
  cursor: pointer;
  text-align: center;
  background-color: #fff;
  border: solid 4px #0072bc;
  border-radius: 50%;
}

#sitesearch-tab:hover,
#gtranslate-tab:hover {
  background-color: #0072bc;
  border-color: #0072bc;
}

#sitesearch-tab svg,
#gtranslate-tab svg {
  padding-top: 22px;
}

#sitesearch-tab svg {
  margin-top: 9px;
  padding: 15px;
  color: #26AF61 !important;
}

.fa-search,
.fa-language {
  margin-top: 5px;
  padding-top: 8px;
  color: #0072bc;
}

#sitesearch-tab:hover .fa-search,
#gtranslate-tab:hover .fa-language {
  color: #fff;
}

#sitesearch-form,
#gtranslate-form {
  position: fixed;
  right: 0;
  z-index: 9999 !important;
  width: 167px;
  height: inherit;
  padding-left: 5px;
  padding-right: 10px;
  background-color: transparent;
  border-radius: 0;
}

#sitesearch-form {
  margin-top: 25px;
  margin-right: 75px;
  background-clip: padding-box;
}

#gtranslate-form {
  margin-top: 28px;
  margin-right: 80px;
}

/* =========================================================
   5. Clickable Image Modal
   ========================================================= */
.page-image img {
  cursor: default;
}

.page-image img.school-clickable-image {
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.page-image img.school-clickable-image:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

.school-image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  padding: 20px 15px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.75);
}

.school-image-modal-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 900px;
  max-height: calc(100vh - 40px);
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
}

.school-image-modal-inner img {
  display: block;
  flex-shrink: 1;
  width: 100%;
  height: auto;
  max-height: 58vh;
  object-fit: contain;
  background: #f5f5f5;
}

.school-image-modal-text {
  flex-shrink: 0;
  max-height: 22vh;
  overflow-y: auto;
  padding: 18px 24px;
  color: #333;
  font-size: 17px;
  line-height: 1.5;
}

.school-image-modal-text p {
  margin: 0 0 10px;
}

.school-image-modal-text p:last-child {
  margin-bottom: 0;
}

.school-image-modal-text .hidden,
.school-image-modal-text.hidden {
  display: block !important;
  visibility: visible !important;
}

.school-image-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  color: #333;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.school-image-modal-close:hover {
  background: #f1f1f1;
}

.school-image-modal-nav {
  display: flex;
  flex-shrink: 0;
  justify-content: space-between;
  gap: 15px;
  padding: 0 24px 18px;
}

.school-image-modal-nav button {
  padding: 9px 18px;
  border: none;
  border-radius: 6px;
  color: #fff;
  background: #333;
  cursor: pointer;
  font-size: 15px;
}

.school-image-modal-nav button:hover {
  background: #000;
}

.school-image-modal-nav button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* =========================================================
   6. Responsive Adjustments
   ========================================================= */
@media (max-width: 1254px) {
  .fill {
    height: 500px !important;
  }

  .pulse-button {
    position: relative;
    width: 200px;
    height: 160px;
  }
}

@media (max-width: 992px) {
  #mainbody {
    padding-top: 0 !important;
  }

  .fill {
    height: 300px !important;
  }

  .pulse-button {
    position: relative;
    width: 90%;
    height: 160px;
    font-size: 1.2em;
  }
}

@media (max-width: 768px) {
  .home-quicklinks,
  .home-quicklinks .pulse-button-upper {
    position: relative;
  }
}

@media (max-width: 710px) {
  #mainbody {
    padding-top: 0 !important;
  }

  .fill {
    height: 300px !important;
  }

  .pulse-button {
    position: relative;
    width: 90%;
    height: 160px;
  }

  .home-quicklinks {
    margin-bottom: -10px !important;
  }
}

@media (max-width: 767px) {
  .school-image-modal {
    padding: 12px 8px;
  }

  .school-image-modal-inner {
    max-height: calc(100vh - 24px);
    border-radius: 10px;
  }

  .school-image-modal-inner img {
    max-height: 52vh;
  }

  .school-image-modal-text {
    max-height: 26vh;
    padding: 14px 16px;
    font-size: 15px;
    line-height: 1.45;
  }

  .school-image-modal-close {
    top: 8px;
    right: 8px;
    width: 38px;
    height: 38px;
    font-size: 26px;
  }

  .school-image-modal-nav {
    padding: 0 16px 14px;
  }

  .school-image-modal-nav button {
    width: 100%;
    padding: 9px 10px;
  }
}

/* =========================================================
   7. Page Width / Scroll Fixes
   ========================================================= */
html,
body {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

html {
  scroll-behavior: auto !important;
}

#mainbody,
#bodycontent {
  min-height: 400px;
}