/* Ancestral Home Visits - extracted from page--node--182.tpl.php */
#testimonial-slider-heritage .flex-control-nav {
  position: relative !important;
}
.daytimephone-textfield {
  display: none;
}
.list-column li {
  font-size: 16px !important;
}
.the-wrapper .span4 {
  width: 40%;
}
.the-wrapper .span8 {
  width: 55%;
}
#fancybox-wrap {
  top: 0px !important;
}
#fancybox-content {
  background: white;
}
@media all and (min-width: 700px) {
  #testimonial-slider-heritage li .testimonial-area {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  .testimonial-header {
    background: #92b62b;
    margin-bottom: 3px;
    color: white;
    font-size: 16px;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    min-height: 40px;
  }
}
@media all and (max-width: 700px) {
  .the-wrapper .span4 {
    width: 100%;
    margin-left: 0px;
  }
  .the-wrapper .span8 {
    width: 100%;
    margin-left: 0px;
  }
  .container-fluid.ancestral-width {
    padding: 0px;
    margin-left: 0px;
  }
}

/* Additional styles extracted from inline React styles */
.testimonial-area .testimonial-photo {
  height: 200px;
  background-repeat: no-repeat;
  background-position: top;
  background-size: cover;
}
.testimonial-content p.testimonial-name {
  padding-bottom: 0px;
  margin-bottom: 0px;
}
/* `.fancybox-hidden { display: none }` was removed with the container it styled:
   both experience stories used to sit in a permanently hidden div for Fancybox
   to lift into its overlay, and are now rendered by ExperienceModal only while
   an overlay is open. */
.fancybox-modal {
  max-width: 700px;
  padding: 20px;
}
.fancybox-modal img {
  margin-bottom: 5px;
}

/* Read-more control on the experience cards.
   Transcribed from the Legacy_Source's own rules
   (progen-content/src/views/ancestral-home-visits.html lines 171-186), which
   already treated this as a button for a11y: strip the default chrome and pin it
   to the bottom-right of the card. `.testimonial-heritage-travel
   .testimonial-area` is `position: relative` in theme/styles.css, so that is the
   containing block. The `.rp-plus` reset undoes the absolute positioning the
   icon carries elsewhere, since the button is now the positioned element. */
.readmore-toggle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  line-height: 0;
}
.readmore-toggle .rp-plus {
  position: static;
}

/* Experience "read more" overlay — the box around ExperienceModal's content.
   Mirrors the testimonial overlay on /heritage-tourism, which these rules cannot
   simply reuse because those live in css/pages/heritage-tourism.css and
   PAGE_CSS_MAP loads each page stylesheet only for its own page.
   - width matches the 700px the Legacy_Source passed to Fancybox
   - the body scrolls INSIDE the box, capped to the viewport, so a long story
     cannot scroll the close button out of reach
   - the close button is pinned to the box corner with visible circular chrome,
     matching the legacy control */
.experience-modalContents.experience-modalContents {
  width: 700px;
  max-width: 100%;
  max-height: calc(100vh - 40px);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #f9f9f9;
}
.experience-modalBody {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 40px 20px 20px;
}
/* Inside the overlay the box already supplies the width and padding, so the
   story wrapper must not add its own second 700px cap and 20px inset. */
.experience-modalBody .fancybox-modal {
  max-width: none;
  padding: 0;
}
.experience-modalContents .experience-modalClose.experience-modalClose {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  z-index: 2;
}
.experience-modalContents .experience-modalClose.experience-modalClose:hover {
  background: #f0f0f0;
}
@media (max-width: 767px) {
  .experience-modalContents.experience-modalContents {
    max-height: calc(100dvh - 20px);
  }
  .experience-modalBody {
    padding: 40px 12px 12px;
  }
}
