/* Classes page: every class is visible at once, on the Inner Peace Gong background */
.classes-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 20px 60px;
  text-align: center;
  color: #000000;
}

.classes-content h1 {
  margin: 0 0 40px;
}

.class-card,
.class-venue {
  margin: 0 0 48px;
}

.class-card h2 {
  margin: 0 0 4px;
}

.class-card h2 a {
  color: inherit;
}

.class-time {
  font-weight: bold;
  margin: 0 0 16px;
}

.classes-content p {
  line-height: 1.5;
  margin: 0 0 12px;
}

.class-keywords {
  font-style: italic;
}

.class-venue h3 {
  margin: 0 0 16px;
  line-height: 1.4;
}

/* A light dark veil over the whole photo (building included) helps the white text */
.inner-peace-page.classes-page {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)),
    url("images/backgrounds/courtyard.webp");
}

/* Text sits on the right, over the light building, as plain text */
.classes-page .classes-content {
  max-width: none;
  width: 32vw;
  min-width: 360px;
  margin: 0 0 0 auto;
  padding: 100px 4vw 60px 0;
  text-align: left;
  color: #ffffff;
}

@media only screen and (max-width: 768px) {
  /* Photo and text both centered on mobile; a soft dark glow behind the
     middle of the photo keeps the white text readable over sky and buildings */
  .inner-peace-page.classes-page {
    background-image:
      radial-gradient(ellipse 80% 45% at center, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.2) 55%, rgba(0, 0, 0, 0) 100%),
      linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)),
      url("images/backgrounds/courtyard.webp");
    background-position: center;
  }

  .classes-page .classes-content {
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 40px 20px;
    text-align: center;
    /* Fill the screen above the footer and sit in its vertical middle */
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* Short page: the photo still fills the whole screen */
.inner-peace-page.classes-page {
  min-height: 100vh;
}

.classes-page .class-time {
  margin-bottom: 2px;
}

/* Footer stays at the bottom of the screen even though the page is short */
.inner-peace-page.classes-page {
  display: flex;
  flex-direction: column;
}

.classes-page footer {
  margin-top: auto;
  padding-bottom: 16px;
}

/* Somatic Clubbing keeps its own hand-drawn Gaegu title here too
   (the @font-face lives in inner_peace_gong.css, loaded on this page) */
.classes-page #somatic-clubbing h2 {
  font-family: "Gaegu", "Comic Sans MS", cursive;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
