/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* 1. Hide banner on mobile */
@media (max-width: 968px) {
  #top-banner {
    display: none !important;
  }
}

/* Banner right styling */
.banner-right {
  padding-right: 20px;
}

/* Hide banner right before it touches nav */
@media (max-width: 1200px) {
  .banner-right {
    display: none;
  }
}

/* 2. Mobile intro tweaks */
@media (max-width: 768px) {
  #intro {
    padding-top: 0;
    justify-content: flex-start;
    min-height: auto;
  }

  #intro h1 {
    margin-top: 0;
    font-size: 2.2rem;
    line-height: 1.1;
  }

  #intro > p {
    margin-top: 20px !important;
  }
}

/* Intro image and text adjustments */
#intro h1.intro-logo-text .intro-logo-img {
  transform: scale(1.5);
}

#intro > p {
  margin-top: -50px !important;
}

#intro .actions {
  margin-top: 50px;
}

/* Adjust spacing for larger screens */
@media (min-width: 980px) {
  #intro .actions {
    margin-top: 100px;
  }

  #nav {
    margin-top: 0 !important;
  }
}

/* Fix logo overlap with banner-nav at 1101px */
@media (min-width: 1101px) {
  #intro h1.intro-logo-text .intro-logo-img {
    transform: scale(1.2);
  }

  #intro {
    padding-top: 150px !important;
  }
}

/* 3. Remove template background */
#wrapper > .bg {
  display: none !important;
}

/* 4. Video background setup */
.site-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
  background: #000; /* fallback */
}

#bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.9;
}

/* 5. Overlay for readability */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: -1;
}

/* 6. Ensure content sits above video */
#wrapper {
  position: relative;
  z-index: 1;
}

/* 7. Left-align list items in posts */
#main > .posts li {
  text-align: left;
  margin-left: 20px;
}

/* 8. Left-align paragraphs in posts */
#main > .posts p {
  text-align: left !important;
}

/* 9. Move about image higher on page */
header.major .about-grid {
  margin-top: 0 !important;
}

/* 10. Read more toggle */
.read-more-block {
  margin: 1rem 0;
  text-align: left;
}

.read-more-block summary {
  display: inline;
  cursor: pointer;
  list-style: none;
  margin-bottom: 1rem;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
}

.read-more-block summary::-webkit-details-marker {
  display: none;
}

.read-more-block .less-label {
  display: none;
}

.read-more-block[open] .more-label {
  display: none;
}

.read-more-block[open] .less-label {
  display: inline;
}

.read-more-block summary:hover {
  opacity: 0.85;
}
