#page-title {
  position: relative;
  height: calc(100vh - 0px);
  gap: 55px;
  overflow: hidden;
}

#google-calendar-cta {
  display: flex;
  width: fit-content;
  gap: 4px;
  text-decoration: none;
  margin-top: 12px;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 40px;
  background-color: var(--theme-dark-red);
  color: white;
}

#google-calendar-cta > .material-icons {
  font-size: 1.5rem;
}

#hclive {
  position: absolute;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.35);
  padding: 12px 15px;
  border-radius: 12px;
  margin-top: 12px;
  margin-left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 24px);
  font-size: 16px;
  color: white;
}

#hclive > span {
  margin-left: 7px;
}

#hclive > .material-icons, #hclive > span,
#google-calendar-cta > * {
  vertical-align: middle;
}

#hclive-jump-events {
  /* margin-left: 12px; */
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
  color: white;
}

#hclive-jump-events::after {
  font-family: "Material Icons";
  content: "arrow_forward";
  position: relative;
}

#page-title::before {
  background-color: rgba(0, 0, 0, 0.35);
  z-index: -1;
}

#page-title > span {
  text-align: center;
  font-family: "Comfortaa", sans-serif;
}

#days,#hours,#minutes,#seconds{
  font-size: 1.7rem;
  font-weight:500;
}
#countdown {
  text-align: center;
}
#countdown-inner{
  width: 100%;
  background: rgb(221,0,7);
  padding: 20px;
  box-shadow: 0 0 4px 0 rgb(0, 0, 0, 0.25);
  color: white;
  border-radius: 20px;
}

/* #page-title-tagline {
  font-size: 45px;
} */

#open-house-logo-title {
  /* width: 600px; */
  width: 300px;
}

#page-title > video {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

@keyframes pulse {
	0% {
		transform: scale(0.99);
		box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
	}

	70% {
		transform: scale(1);
		box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
	}

	100% {
		transform: scale(0.99);
		box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
	}
}

#main-banner {
  width: 100%;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 1);
	transform: scale(1);
	animation: pulse 2s infinite;
  margin-bottom: 20px;
}

#open-house-logo {
  width: 150px;
}

#introduction {
  margin-bottom: 21.44px;
}

#introduction-text > h1:first-child {
  margin-top: 0.2em;
}

#introduction-text > p:last-child {
  /* margin-bottom: 0; */
}

#explore a {
  text-decoration: none;
}

#explore .image-box {
  height: 175px;
  font-weight: 500;
}

#explore .image-box > span {
  display: flex;
  align-items: center;
}
#explore .image-box > span::after {
  font-family: "Material Icons";
  content: "arrow_forward";
  margin-left: 6px;
  transform: translateY(1px);
}

#tp .image-box {
  background-image: url("/media/size-thumbnail/science.jpg");
}
#cca .image-box {
  background-image: url("/media/size-thumbnail/pe.jpg");
}
#subj .image-box {
  background-image: url("/media/size-thumbnail/gp2.jpg");
}
#jae .image-box {
  background-image: url("/media/size-thumbnail/art.jpg");
}

#principal-photo {
  float: left;
  width: 36vw;
  max-width: 250px;
  margin: 5px 21px 17px 0;
}

#principal-message-text > p {
  /* text-align: justify; */
}

#principal-message > .text-cutoff-content {
  height: 430px;
}

.text-cutoff {
  position: relative;
}

.text-cutoff-content {
  overflow-y: hidden;
  transition: height 0.5s;
}

.text-cutoff-content > :last-child {
  margin-bottom: 0;
}

.text-cutoff-expand-text {
  /* position: absolute; */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  left: 0;
  bottom: 0;
  width: 100%;
  padding-bottom: 21.44px;
  /* height: 120px; */
  /* border-bottom: 1.5px solid var(--theme-dark-red); */
}
.text-cutoff-content[data-expanded="true"] + .text-cutoff-expand-text {
  position: static;
  height: auto;
  background-image: none;
}
.text-cutoff-content[data-expanded="false"] + .text-cutoff-expand-text {
  position: absolute;
  height: 120px;
  background-image: linear-gradient(transparent, #fff);
}

.text-cutoff-expand-text > button {
  position: relative;
  padding: 0;
  background-color: transparent;
  border: none;
  outline: none;
  color: var(--theme-dark-red);
  font-size: 20px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
}
.text-cutoff-content[data-expanded="true"] + .text-cutoff-expand-text > button {
  bottom: -20px;
}
.text-cutoff-content[data-expanded="false"] + .text-cutoff-expand-text > button {
  bottom: 0;
}

.text-cutoff-content[data-expanded="true"] + .text-cutoff-expand-text > button::before {
  content: "Read less";
}
.text-cutoff-content[data-expanded="false"] + .text-cutoff-expand-text > button::before {
  content: "Read more";
}

.text-cutoff-expand-text > button::after {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 20px;
  background-color: var(--theme-dark-red);
  mask: url("/media/rounded-down-arrow.svg") center no-repeat;
  -webkit-mask: url("/media/rounded-down-arrow.svg") center no-repeat;
}
.text-cutoff-content[data-expanded="true"] + .text-cutoff-expand-text > button::after {
  bottom: 27px;
  transform: rotate(180deg);
}
.text-cutoff-content[data-expanded="false"] + .text-cutoff-expand-text > button::after {
  bottom: -20px;
  transform: rotate(0deg);
}

#introductory-video, #introductory-video-2, #events {
  /* 18px to imitate margin-bottom of <p> + 21.44px for margin-top of next <h1> */
  margin-bottom: 39.44px;
}

#events > table {
  margin: 20px auto 0;
  border-collapse: collapse;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.20);
}

#events thead {
  background-color: var(--theme-dark-red);
  color: #fff;
}

#events thead.subhead {
  background-color: var(--theme-damp-dark-red);
  color: #fff;
}

#events :is(th, td) {
  padding: 12px 15px;
  text-align: left;
  font-size: 18px;
  font-weight: 400;
  min-width: 150px;
}

#events tbody > tr:nth-child(odd) {
  background-color: #fff;
}
#events tbody > tr:nth-child(even) {
  background-color: #ddd;
}

@media screen and (max-width: 1200px) {
  #page-title > span {
    font-size: 38px;
    /* font-size: 12vw; */
  }
}

@media screen and (max-width: 901px) {
  #page-title {
    flex-direction: column;
    gap: 30px;
  }

  #page-title > span {
    text-align: center;
    font-size: 20px;
    /* font-size: 12vw; */
  }
}

@media screen and (max-width: 660px) {
  #page-title > span {
    font-size: 8vw;
  }
  #events :is(th, td) {
    padding: 8px 11px;
    text-align: left;
    font-size: 16px;
    min-width: 100px;
  }

  #hclive {
    display: flex;
    align-items: center;
  }

  #hclive > span {
    text-align: left;
    padding-left: 8px;
  }
}

@media screen and (max-width: 470px) {
  #principal-photo {
    margin: 5px 17px 17px 0;
  }
}

@media screen and (max-width: 600px) {
  #open-house-logo-title {
    width: 250px;
  }
}

@media screen and (max-width: 370px) {
  #open-house-logo-title {
    width: 70vw;
  }
}

#events a:not(#google-calendar-cta) {
  text-decoration: none;
  margin-top: 4px;
  display: inline-block;
  font-size: 0.9rem;
  padding: 4px 8px;
  border-radius: 40px;
  background-color: var(--theme-dark-red);
  color: white;
  cursor: pointer;
}

#events a:not(#google-calendar-cta)::after {
  font-family: "Material Icons";
  content: "arrow_forward";
  position: relative;
  top: 2px;
  font-size: 1rem;
  margin-left: 4px;
}

#events a.details::after {
  content: "info" !important;
}

.question-accordion > .question {
  background-color: var(--theme-dark-red);
  color: white;
  font-size: 1rem;
  padding: 8px;
  border-radius: 8px;
}

.question-accordion > .question > img {
  filter: invert(100);
  height: 1rem;
  position: relative;
  top: 6px;
}

