/* Quezon Heritage House — Main museum page.
Existing master styles, separated in their original cascade order. */

.qh-page {

  background: #0e0d0b;

  color: #eee1c8;

  font-family: Arial,Helvetica,sans-serif;

  overflow: hidden
}

.qh-page * {

  box-sizing: border-box
}

.qh-page h1,
.qh-page h2,
.qh-page h3 {

  font-family: Georgia,'Times New Roman',serif;

  font-weight: 400
}

.qh-page .qh-kicker {

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 2px;

  text-transform: uppercase
}

.qh-hero {

  min-height: 100vh;

  min-height: 100svh;

  position: relative;

  display: flex;

  align-items: flex-end;

  padding: 110px clamp(24px,6vw,110px) 65px
}

.qh-hero-bg {

  position: absolute;

  inset: 0;

  background-image: linear-gradient(90deg,rgba(0,0,0,.75),rgba(0,0,0,.27) 76%),linear-gradient(0deg,rgba(0,0,0,.7),transparent 52%),url('images/Heritage/LowerBg.png.webp');

  background-size: cover;

  background-position: center
}

.qh-hero-content {

  position: relative;

  z-index: 1;

  width: min(100%,1040px)
}

.qh-hero h1 {

  font-size: clamp(42px,6vw,86px);

  line-height: 1.04;

  margin: 22px 0;

  letter-spacing: -1px
}

.qh-intro {

  max-width: 620px;

  font-size: clamp(15px,1.3vw,18px);

  line-height: 1.65;

  color: #f0e8dc
}

.qh-hero-facts {

  display: grid;

  grid-template-columns: 1.3fr 1fr 1fr;

  gap: 28px;

  max-width: 950px;

  border-top: 1px solid #e7d8ba99;

  margin-top: 24px;

  padding-top: 20px
}

.qh-hero-facts small {

  display: block;

  font-size: 10px;

  letter-spacing: 1.5px;

  color: #d9c6a6
}

.qh-hero-facts p {

  font-size: 13px;

  line-height: 1.6;

  margin: 9px 0
}

.qh-scroll-cue {

  display: inline-block;

  margin-top: 20px;

  color: #f1d6a0;

  text-decoration: none;

  font-size: 13px
}

.qh-overview {

  padding: clamp(70px,9vw,140px) clamp(24px,7vw,130px)
}

.qh-overview-grid {

  max-width: 1400px;

  margin: auto;

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: clamp(35px,7vw,110px);

  align-items: start
}

.qh-story h2 {

  font-size: clamp(32px,4vw,52px);

  margin: 15px 0 22px
}

.qh-story > p:not(.qh-kicker) {

  font-size: 16px;

  line-height: 1.9;

  color: #d9d2c7
}

.qh-guidelines {

  margin-top: 65px;

  padding: 28px;

  background: #1c1917;

  border: 1px solid #37302a;

  border-radius: 13px
}

.qh-guidelines h3 {

  font-size: 24px;

  margin: 12px 0
}

.qh-guidelines p:not(.qh-kicker) {

  font-size: 14px;

  line-height: 1.75;

  margin: 8px 0;

  color: #e0d9cf
}

.qh-details {

  background: #f2f0ec;

  color: #171512;

  padding: clamp(25px,3vw,48px);

  border-radius: 22px
}

.qh-details .qh-kicker {

  color: #514b43
}

.qh-details h2 {

  font-size: clamp(29px,3vw,42px);

  margin: 20px 0;

  border-bottom: 1px solid #81796f;

  padding-bottom: 22px
}

.qh-detail-row {

  display: grid;

  grid-template-columns: 30% 1fr;

  gap: 15px;

  margin: 25px 0;

  font-size: 14px;

  line-height: 1.7
}

.qh-detail-row strong {

  font-size: 10px;

  letter-spacing: 1px
}

.qh-detail-note {

  font-size: 12px;

  line-height: 1.8;

  margin-top: 20px
}

.qh-details hr {

  border: 0;

  border-top: 1px solid #928a80;

  margin: 30px 0
}

.qh-directions {

  display: inline-block;

  margin-top: 15px;

  border: 1px solid #1b1b1b;

  color: #161616;

  border-radius: 30px;

  padding: 13px 21px;

  text-decoration: none;

  font-size: 13px
}

.qh-directions:hover {

  background: #1b1b1b;

  color: #fff
}

.qh-gallery {

  height: 85vh;

  min-height: 520px;

  position: relative;

  background: #201a13
}

.qh-gallery-slide {

  position: absolute;

  inset: 0;

  background-size: cover;

  background-position: center;

  opacity: 0;

  visibility: hidden;

  transition: opacity .55s ease,visibility .55s
}

.qh-gallery-slide.is-active {

  opacity: 1;

  visibility: visible
}

.qh-gallery-caption {

  position: absolute;

  left: 50%;

  bottom: 90px;

  transform: translateX(-50%);

  text-align: center;

  width: 90%;

  color: #fff1d5
}

.qh-gallery-caption h2 {

  font-size: clamp(38px,5vw,66px);

  margin: 10px 0 18px
}

.qh-detail-button {

  display: inline-block;

  text-decoration: none;

  border: 0;

  background: #e9c68c;

  color: #16120d;

  border-radius: 8px;

  padding: 14px 25px;

  font-weight: bold;

  cursor: pointer
}

.qh-detail-button:hover {

  background: #fff0cf
}

.qh-gallery-controls {

  position: absolute;

  bottom: 24px;

  left: 50%;

  transform: translateX(-50%);

  display: flex;

  gap: 20px;

  align-items: center;

  z-index: 2
}

.qh-gallery-controls button {

  border: 1px solid #e6d3b3;

  background: #15120eb0;

  color: #f6e6cb;

  border-radius: 50%;

  width: 36px;

  height: 36px;

  cursor: pointer
}

.qh-gallery-controls span {

  font-size: 12px;

  letter-spacing: 2px
}

.qh-modal-backdrop {

  position: fixed;

  inset: 0;

  background: #000c;

  z-index: 1500;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 18px
}

.qh-modal-backdrop[hidden] {

  display: none
}

.qh-modal {

  position: relative;

  background: #1b1814;

  color: #f3e5cc;

  border: 1px solid #69583e;

  border-radius: 18px;

  padding: 28px;

  max-width: 740px;

  width: 100%;

  max-height: 90vh;

  overflow: auto
}

.qh-modal h2 {

  font-size: 38px;

  margin: 10px 0 20px
}

.qh-modal img {

  width: 100%;

  max-height: 48vh;

  object-fit: contain;

  background: #100e0c;

  border-radius: 10px
}

.qh-modal > p:last-child {

  font-size: 15px;

  line-height: 1.7
}

.qh-modal-close {

  position: absolute;

  right: 18px;

  top: 15px;

  background: none;

  color: #fff;

  border: 0;

  font-size: 28px;

  cursor: pointer
}

@media(max-width:760px) {

  .qh-hero {

    padding: 110px 22px 40px;

    min-height: 100svh
  }

  .qh-hero-facts {

    grid-template-columns: 1fr;

    gap: 8px
  }

  .qh-hero-facts p {

    margin: 4px 0
  }

  .qh-overview-grid {

    grid-template-columns: 1fr
  }

  .qh-overview {

    padding: 65px 20px
  }

  .qh-guidelines {

    margin-top: 30px
  }

  .qh-detail-row {

    grid-template-columns: 1fr;

    gap: 5px
  }

  .qh-gallery {

    height: 70vh;

    min-height: 440px
  }

}

@media(min-width:761px) and (max-width:1100px) {

  .qh-hero {

    padding: 110px 5vw 45px
  }

  .qh-hero h1 {

    font-size: clamp(46px,6vw,70px)
  }

  .qh-overview {

    padding: 75px 5vw
  }

  .qh-overview-grid {

    gap: 35px
  }

  .qh-detail-row {

    grid-template-columns: 1fr;

    gap: 6px
  }

  .qh-details {

    padding: 28px
  }

}

@media(max-width:760px) {

  .qh-page {

    width: 100%;

    max-width: 100%;

    overflow-x: clip
  }

  .qh-hero {

    height: auto;

    min-height: 100svh;

    align-items: flex-end;

    padding: 100px 20px 34px
  }

  .qh-hero-bg {

    background-position: center center;

    background-image: linear-gradient(0deg,rgba(0,0,0,.9) 0%,rgba(0,0,0,.56) 65%,rgba(0,0,0,.3)),url('images/Heritage/LowerBg.png.webp')
  }

  .qh-hero-content {

    width: 100%;

    min-width: 0
  }

  .qh-hero h1 {

    font-size: clamp(34px,9vw,56px);

    line-height: 1.08;

    overflow-wrap: break-word;

    margin: 14px 0
  }

  .qh-intro {

    font-size: 14px;

    line-height: 1.55;

    max-width: 100%
  }

  .qh-hero-facts {

    grid-template-columns: 1fr 1fr;

    gap: 12px 18px;

    margin-top: 18px;

    padding-top: 14px
  }

  .qh-hero-facts > div:first-child {

    grid-column: 1/-1
  }

  .qh-hero-facts small {

    font-size: 9px;

    line-height: 1.4
  }

  .qh-hero-facts p {

    font-size: 12px;

    line-height: 1.5
  }

  .qh-scroll-cue {

    margin-top: 12px
  }

  .qh-overview {

    padding: 60px 20px
  }

  .qh-overview-grid {

    grid-template-columns: minmax(0,1fr);

    gap: 30px
  }

  .qh-story,
  .qh-details {

    min-width: 0
  }

  .qh-story h2 {

    font-size: 36px
  }

  .qh-story > p:not(.qh-kicker) {

    font-size: 15px;

    line-height: 1.75
  }

  .qh-guidelines {

    margin-top: 28px;

    padding: 20px
  }

  .qh-guidelines h3 {

    font-size: 22px
  }

  .qh-details {

    padding: 24px 20px;

    border-radius: 16px
  }

  .qh-details h2 {

    font-size: 32px
  }

  .qh-detail-row {

    grid-template-columns: 1fr;

    gap: 6px;

    margin: 20px 0;

    overflow-wrap: anywhere
  }

  .qh-gallery {

    height: 75svh;

    min-height: 430px
  }

  .qh-gallery-slide {

    background-position: center
  }

  .qh-gallery-caption {

    bottom: 95px
  }

  .qh-gallery-caption h2 {

    font-size: clamp(36px,9vw,54px)
  }

  .qh-detail-button {

    min-height: 44px
  }

  .qh-gallery-controls button {

    width: 44px;

    height: 44px
  }

  .qh-modal-backdrop {

    padding: 12px
  }

  .qh-modal {

    padding: 22px 18px;

    max-height: calc(100svh - 24px)
  }

  .qh-modal h2 {

    font-size: 30px
  }

}

@media(max-width:380px) {

  .qh-hero {

    padding: 88px 16px 24px
  }

  .qh-hero h1 {

    font-size: clamp(30px,8.5vw,38px)
  }

  .qh-intro {

    font-size: 13px
  }

  .qh-hero-facts {

    gap: 8px 12px
  }

  .qh-hero-facts p {

    font-size: 11px
  }

  .qh-overview {

    padding: 50px 16px
  }

  .qh-gallery {

    min-height: 400px
  }

}

@media(max-height:650px) and (max-width:760px) {

  .qh-hero {

    padding-top: 90px;

    min-height: 100svh
  }

  .qh-hero h1 {

    font-size: clamp(30px,7.5vw,44px)
  }

  .qh-intro {

    font-size: 13px
  }

}

@media(prefers-reduced-motion:reduce) {

  .qh-gallery-slide {

    transition: none
  }

}

.qh-page #qh-gallery {

  height: 100svh !important;

  min-height: 100svh !important;

  scroll-margin-top: 0 !important
}

.qh-page #qh-gallery .qh-gallery-slide {

  height: 100%;

  width: 100%
}

.qh-page .qh-actions {

  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 10px;

  margin-top: 22px
}

.qh-page .qh-passport,
.qh-page .qh-quiz-button {

  display: inline-flex;

  align-items: center;

  gap: 10px;

  border: 1px solid #d8b77d;

  border-radius: 28px;

  padding: 11px 16px;

  background: rgba(12,10,8,.65);

  color: #f7e9ce;

  font-size: 12px;

  line-height: 1.3
}

.qh-page .qh-passport-bar {

  display: inline-block;

  width: 35px;

  height: 4px;

  border-radius: 4px;

  background: #77333c
}

.qh-page .qh-quiz-button {

  cursor: pointer;

  transition: background .25s,transform .25s,box-shadow .25s
}

.qh-page .qh-quiz-button:hover {

  background: #d9b981;

  color: #19130b;

  transform: translateY(-2px);

  box-shadow: 0 8px 25px #d9b98133
}

.qh-page .qh-quiz-dialog {

  position: fixed;

  inset: 0;

  z-index: 2100;

  background: #000c;

  display: grid;

  place-items: center;

  padding: 20px
}

.qh-page .qh-quiz-dialog[hidden] {

  display: none
}

.qh-page .qh-quiz-card {

  position: relative;

  max-width: 500px;

  width: 100%;

  padding: 36px;

  background: #1a1713;

  border: 1px solid #b99a66;

  border-radius: 16px;

  color: #f5e7d0
}

.qh-page .qh-quiz-card h2 {

  font: normal 32px Georgia,serif;

  margin: 0 0 18px
}

.qh-page .qh-quiz-card p {

  line-height: 1.7
}

.qh-page #qh-quiz-close {

  position: absolute;

  right: 15px;

  top: 10px;

  background: transparent;

  border: 0;

  color: #e8c58b;

  font-size: 28px;

  cursor: pointer
}

.qh-page .qh-gallery-slide {

  transition: opacity .8s ease,visibility .8s ease
}

.qh-page .qh-gallery-slide.is-active .qh-gallery-caption {

  animation: qh-floor-caption .65s both
}

@keyframes qh-floor-caption {

  from {

    opacity: 0;

    transform: translate(-50%,20px)
  }

  to {

    opacity: 1;

    transform: translate(-50%,0)
  }

}

.qh-page .qh-detail-button {

  transition: background .25s,transform .25s,box-shadow .25s
}

.qh-page .qh-detail-button:hover {

  transform: translateY(-3px);

  box-shadow: 0 10px 30px #e9c68c55
}

@media(prefers-reduced-motion:reduce) {

  .qh-page .qh-gallery-slide.is-active .qh-gallery-caption {

    animation: none
  }

}

.qh-page .qh-hero .qh-actions {

  display: flex !important;

  align-items: center !important;

  flex-wrap: wrap !important;

  gap: 12px !important;

  margin: 22px 0 0 !important
}

.qh-page .qh-hero .qh-actions .qh-passport,
.qh-page .qh-hero .qh-actions button.qh-quiz-button {

  box-sizing: border-box !important;

  display: inline-flex !important;

  align-items: center !important;

  justify-content: center !important;

  gap: 10px !important;

  width: auto !important;

  min-width: 0 !important;

  min-height: 42px !important;

  padding: 10px 17px !important;

  margin: 0 !important;

  border: 1px solid #d6b47b !important;

  border-radius: 28px !important;

  background: rgba(17,14,12,.82) !important;

  color: #f7e7c7 !important;

  font: 500 12px/1.3 Arial,Helvetica,sans-serif !important;

  text-decoration: none !important;

  white-space: nowrap !important;

  box-shadow: none !important;

  appearance: none !important
}

.qh-page .qh-hero .qh-actions button.qh-quiz-button {

  cursor: pointer !important
}

.qh-page .qh-hero .qh-actions button.qh-quiz-button:hover {

  background: #e5c58b !important;

  color: #16120d !important;

  box-shadow: 0 8px 24px #e5c58b44 !important
}

.qh-page .qh-hero .qh-actions .qh-passport-bar {

  width: 34px;

  height: 4px;

  background: #86404c;

  border-radius: 3px;

  flex-shrink: 0
}

@media(max-width:520px) {

  .qh-page .qh-hero .qh-actions {

    gap: 8px !important
  }

}

.qh-page .qh-gallery-controls {

  position: absolute !important;

  z-index: 5 !important;

  bottom: 38px !important;

  left: 0 !important;

  right: 0 !important;

  transform: none !important;

  display: flex !important;

  justify-content: center !important;

  align-items: center !important;

  gap: 8px !important;

  pointer-events: none !important
}

.qh-page .qh-gallery-controls button.qh-floor-dot {

  pointer-events: auto !important;

  appearance: none !important;

  display: block !important;

  flex: 0 0 28px !important;

  width: 28px !important;

  min-width: 28px !important;

  max-width: 28px !important;

  height: 4px !important;

  min-height: 4px !important;

  max-height: 4px !important;

  padding: 0 !important;

  margin: 0 !important;

  border: 0 !important;

  border-radius: 2px !important;

  background: #b8ad99 !important;

  opacity: .55 !important;

  cursor: pointer !important;

  transform: none !important;

  box-shadow: none !important;

  transition: background-color .2s ease,opacity .2s ease !important
}

.qh-page .qh-gallery-controls button.qh-floor-dot.is-active {

  background: #d8b77d !important;

  opacity: 1 !important
}

.qh-page .qh-gallery-controls button.qh-floor-dot:hover {

  opacity: 1 !important;

  transform: none !important
}

.qh-page .qh-gallery-controls button.qh-floor-dot:focus-visible {

  outline: 2px solid #e8c78f;

  outline-offset: 6px
}

.qh-page .qh-gallery-controls #qh-slide-count {

  font-size: 11px !important;

  letter-spacing: 2px !important;

  line-height: 1 !important;

  margin-left: 8px !important;

  color: #d8b77d !important;

  white-space: nowrap !important
}

.km-floating-actions {

  position: fixed !important;

  left: clamp(12px,2.2vw,36px) !important;

  bottom: clamp(12px,2.5vh,26px) !important;

  z-index: 1150 !important;

  display: flex !important;

  align-items: center !important;

  gap: 12px !important;

  flex-wrap: wrap !important;

  width: auto !important;

  max-width: calc(100vw - 24px) !important;

  margin: 0 !important;

  padding: 0 !important;

  pointer-events: auto
}

.km-floating-actions .km-pill {

  box-sizing: border-box !important;

  display: inline-flex !important;

  align-items: center !important;

  justify-content: center !important;

  gap: 12px !important;

  min-height: 54px !important;

  padding: 11px 23px !important;

  border: 1.5px solid #e6c68c !important;

  border-radius: 999px !important;

  background: #1c1916 !important;

  color: #f4eee7 !important;

  font: 600 clamp(14px,1.4vw,19px)/1.2 Arial,sans-serif !important;

  letter-spacing: .015em !important;

  text-decoration: none !important;

  white-space: nowrap !important;

  cursor: pointer !important;

  box-shadow: 0 10px 28px #0008 !important;

  transition: transform .25s ease,background .25s ease,box-shadow .25s ease !important
}

.km-floating-actions .km-pill:hover {

  transform: translateY(-3px) !important;

  background: #33291f !important;

  box-shadow: 0 14px 34px #000b !important
}

.km-floating-actions .km-pill:focus-visible {

  outline: 3px solid #f3d59c !important;

  outline-offset: 3px !important
}

.km-floating-actions .km-pill-icon {

  font-size: 25px !important;

  line-height: 1 !important;

  color: #e4c48a !important
}

.km-floating-actions .km-pill-meter {

  display: block !important;

  width: 65px !important;

  min-width: 45px !important;

  height: 7px !important;

  background: #54252c !important;

  border-radius: 99px !important;

  overflow: hidden !important;

  margin: 0 3px !important
}

.km-floating-actions .km-pill-meter > span {

  display: block !important;

  width: 0;

  height: 100%;

  background: #e5c58b;

  border-radius: 99px;

  transition: width .4s ease
}

.km-floating-actions .km-pill-count {

  font-weight: 700 !important;

  color: #e5c58b !important
}

@media(max-width:650px) {

  .km-floating-actions {

    gap: 8px !important;

    left: 10px !important;

    bottom: 10px !important;

    max-width: calc(100vw - 20px) !important
  }

  .km-floating-actions .km-pill {

    min-height: 44px !important;

    padding: 9px 13px !important;

    gap: 7px !important;

    font-size: 12px !important
  }

  .km-floating-actions .km-pill-icon {

    font-size: 19px !important
  }

  .km-floating-actions .km-pill-meter {

    width: 30px !important;

    min-width: 30px !important;

    height: 5px !important
  }

}

@media(prefers-reduced-motion:reduce) {

  .km-floating-actions .km-pill,
  .km-floating-actions .km-pill-meter > span {

    transition: none !important
  }

}

body .km-floating-actions {

  position: fixed !important;

  top: auto !important;

  right: auto !important;

  left: 18px !important;

  bottom: 16px !important;

  z-index: 1150 !important;

  display: flex !important;

  flex-direction: row !important;

  align-items: center !important;

  gap: 8px !important;

  width: max-content !important;

  max-width: calc(100vw - 36px) !important;

  padding: 0 !important;

  margin: 0 !important;

  transform: none !important
}

body .km-floating-actions .km-pill,
body .km-floating-actions #pc-passport-open.km-pill,
body .km-floating-actions #qms-passport-open.km-pill,
body .km-floating-actions #qh-passport-open.km-pill {

  position: static !important;

  top: auto !important;

  right: auto !important;

  bottom: auto !important;

  left: auto !important;

  display: inline-flex !important;

  align-items: center !important;

  justify-content: center !important;

  gap: 7px !important;

  min-height: 38px !important;

  height: 38px !important;

  width: auto !important;

  max-width: none !important;

  padding: 7px 12px !important;

  margin: 0 !important;

  border: 1px solid rgba(220,184,120,.78) !important;

  border-radius: 999px !important;

  background: rgba(22,19,16,.93) !important;

  color: #f1e8dc !important;

  font: 600 12px/1.1 Arial,sans-serif !important;

  letter-spacing: 0 !important;

  white-space: nowrap !important;

  box-shadow: 0 5px 16px rgba(0,0,0,.35) !important;

  transform: none !important;

}

body .km-floating-actions .km-pill:hover {

  background: #34291e !important;

  transform: translateY(-2px) !important;

  box-shadow: 0 8px 20px #0008 !important
}

body .km-floating-actions .km-pill-icon {

  font-size: 15px !important;

  line-height: 1 !important
}

body .km-floating-actions .km-pill-meter {

  width: 33px !important;

  min-width: 33px !important;

  height: 4px !important;

  margin: 0 2px !important
}

body .km-floating-actions .km-pill-count {

  font-size: 12px !important
}

@media(max-width:480px) {

  body .km-floating-actions {

    left: 9px !important;

    bottom: 9px !important;

    gap: 5px !important;

    max-width: calc(100vw - 18px) !important
  }

  body .km-floating-actions .km-pill,
  body .km-floating-actions #pc-passport-open.km-pill,
  body .km-floating-actions #qms-passport-open.km-pill,
  body .km-floating-actions #qh-passport-open.km-pill {

    height: 34px !important;

    min-height: 34px !important;

    padding: 6px 9px !important;

    font-size: 11px !important;

    gap: 5px !important
  }

  body .km-floating-actions .km-pill-meter {

    width: 22px !important;

    min-width: 22px !important
  }

}

/* Match the compact hero hierarchy without changing the museum's text. */
.qh-page .qh-hero {

  min-height: 100vh;

  min-height: 100svh;

  height: auto;

  align-items: flex-end;

  padding: 140px clamp(30px, 7vw, 110px) 55px;

}

.qh-page .qh-hero-content {

  width: min(100%, 1080px);

  min-width: 0;

}

.qh-page .qh-hero .qh-kicker {

  margin: 0 0 14px;

  color: #E5C285;

  font-size: .68rem;

  line-height: 1.5;

  letter-spacing: .15em;

}

.qh-page .qh-hero h1 {

  max-width: 720px;

  margin: 0 0 18px;

  font-size: clamp(2.3rem, 3.6vw, 3.25rem);

  line-height: 1.15;

  letter-spacing: -.01em;

  overflow-wrap: break-word;

}

.qh-page .qh-hero .qh-intro {

  max-width: 540px;

  margin: 0;

  font-size: .95rem;

  line-height: 1.6;

}

/* Keep the three museum facts small and aligned beneath the hairline. */
.qh-page .qh-hero-facts {

  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr);

  width: 100%;

  max-width: 1080px;

  margin-top: 22px;

  padding-top: 18px;

  gap: 24px;

  border-top: 1px solid rgba(229, 194, 133, .35);

}

.qh-page .qh-hero-facts > div {

  min-width: 0;

}

.qh-page .qh-hero-facts small {

  color: #E5C285;

  font-size: .68rem;

  line-height: 1.5;

  letter-spacing: .12em;

}

.qh-page .qh-hero-facts p {

  margin: 8px 0 0;

  font-size: .85rem;

  line-height: 1.6;

  overflow-wrap: break-word;

}

/* Keep the floor title and View details centered above the bottom controls. */
.qh-page .qh-gallery-caption {

  bottom: 140px;

}

/* Place both floor arrows in the lower-right corner of the showcase. */
.qh-page .qh-floor-arrows {

  position: absolute;

  z-index: 20;

  left: auto;

  right: 40px;

  bottom: 28px;

  transform: none;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

}

/* Give the progress row the same center line as the arrow buttons. */
.qh-page .qh-gallery-controls {

  bottom: 28px !important;

  height: 36px;

}

/* Small matte arrow buttons move between Upper Floor and Lower Floor. */
.qh-page .qh-floor-arrow {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  flex: 0 0 36px;

  width: 36px;

  height: 36px;

  margin: 0;

  padding: 0;

  border: 1px solid rgba(229, 194, 133, .35);

  border-radius: 50%;

  background: rgba(18, 17, 15, .85);

  color: #E5C285;

  font: 400 19px/1 Arial, sans-serif;

  cursor: pointer;

  appearance: none;

  touch-action: manipulation;

  transition: background-color 180ms ease, border-color 180ms ease;

}

.qh-page .qh-floor-arrow:hover {

  background: #12110F;

  border-color: #E5C285;

}

.qh-page .qh-floor-arrow:focus-visible {

  outline: 2px solid #E5C285;

  outline-offset: 4px;

}

/* Keep all ordinary headings and paragraphs free of text hover effects. */
.qh-page :is(h1, h2, h3, p) {

  text-shadow: none;

  text-decoration: none;

}

/* On smaller screens, wrap the facts without squeezing their text. */
@media (max-width: 760px) {

  .qh-page .qh-hero {

    padding: 110px 22px 70px;

  }

  .qh-page .qh-hero h1 {

    font-size: clamp(2rem, 7vw, 2.75rem);

  }

  .qh-page .qh-hero-facts {

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 16px;

  }

  .qh-page .qh-hero-facts > div:first-child {

    grid-column: 1 / -1;

  }

}

@media (max-width: 420px) {

  .qh-page .qh-hero {

    padding: 100px 18px 70px;

  }

  .qh-page .qh-hero h1 {

    font-size: clamp(1.9rem, 8vw, 2.3rem);

  }

  .qh-page .qh-hero-facts {

    grid-template-columns: minmax(0, 1fr);

    gap: 12px;

  }

}

/* On phones, separate progress on the left from the arrows on the right. */
@media (max-width: 760px) {

  .qh-page .qh-floor-arrows {

    right: 20px;

  }

  .qh-page .qh-gallery-controls {

    left: 20px !important;

    right: auto !important;

    width: max-content;

    justify-content: flex-start !important;

  }

}

/* Respect visitors who prefer less motion. */
@media (prefers-reduced-motion: reduce) {

  .qh-page .qh-gallery-slide {

    transition: none;

  }

  .qh-page .qh-gallery-slide.is-active .qh-gallery-caption {

    animation: none;

  }

  .qh-page .qh-floor-arrow {

    transition: none;

  }

}

/* Keep Heritage House overview panels still, without hover glow or outlines. */
.qh-page #qh-overview :is(.qh-story,.qh-guidelines,.qh-details),
.qh-page #qh-overview :is(.qh-story,.qh-guidelines,.qh-details):hover,
.qh-page #qh-overview :is(.qh-story,.qh-guidelines,.qh-details):focus-within {

  transform: none !important;

  filter: none !important;

  box-shadow: none !important;

  transition: none !important;

}

.qh-page #qh-overview .qh-story {

  border: 0 !important;

  outline: none;

}

.qh-page #qh-overview .qh-guidelines {

  border: 0 !important;

  outline: none;

}

.qh-page #qh-overview .qh-detail-row,
.qh-page #qh-overview .qh-detail-row:hover {

  background: transparent !important;

  transform: none !important;

  padding-left: 0 !important;

  box-shadow: none !important;

  transition: none !important;

}
