/* Zouk Haus HK
   Shared styles for every page.
   To change a colour, edit the variables below.
   Fonts load from the fonts folder. The site uses the .woff2 files. */

@font-face {
  font-family: "Glacial Indifference";
  src: url("../fonts/GlacialIndifference-Regular.woff2") format("woff2"),
       url("../fonts/GlacialIndifference-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Glacial Indifference";
  src: url("../fonts/GlacialIndifference-Bold.woff2") format("woff2"),
       url("../fonts/GlacialIndifference-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Now";
  src: url("../fonts/now.light.woff2") format("woff2"),
       url("../fonts/now.light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Now";
  src: url("../fonts/now.regular.woff2") format("woff2"),
       url("../fonts/now.regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Now";
  src: url("../fonts/now.medium.woff2") format("woff2"),
       url("../fonts/now.medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Now";
  src: url("../fonts/now.bold.woff2") format("woff2"),
       url("../fonts/now.bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #FFFFFF;
  --font-heading: "Glacial Indifference", "Century Gothic", Futura, "Trebuchet MS", sans-serif;
  --font-body: "Now", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --charcoal-brown: #38342E;
  --ebony: #6A644E;
  --sunflower-gold: #F1B941;
  --dusty-taupe: #B4846A;
  --fiery-terracotta: #DB4C25;
  --white-smoke: #F1F0EE;
  /* Space between one section and the next, on every page. */
  --section-gap: 96px;
}

/* Sunflower gold, dusty taupe, and fiery terracotta are for photo
   blocks and the About page team section. Buttons stay ebony. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 8rem;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--charcoal-brown);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  font-synthesis: none;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.25;
  scroll-margin-top: 8rem;
}

h1 {
  margin: 0 0 0.6rem;
  font-size: 2.15rem;
  font-weight: 400;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 1.5rem;
  font-family: var(--font-body);
  font-size: 2.125rem;
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal-brown);
}

h3 {
  margin: 1.75rem 0 0.45rem;
  font-size: 1.15rem;
  font-weight: 700;
}

h2 + h3 {
  margin-top: 0;
}

p,
ul {
  margin: 0 0 1rem;
}

strong {
  font-weight: 700;
}

/* Now draws $ like an S. Prices use a plain font for the dollar sign. */
.dollar {
  font-family: Arial, "Helvetica Neue", sans-serif;
}

a {
  color: var(--charcoal-brown);
  overflow-wrap: break-word;
}

a:hover {
  color: var(--ebony);
}

:focus-visible {
  outline: 2px solid var(--ebony);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--white);
  padding: 0.4rem 0.7rem;
  z-index: 20;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.narrow {
  max-width: 40rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
  padding: 0.85rem 0;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

/* The file is 512 by 640. The wordmark sits at x 57-445, y 151-351.
   Crop to that, with a little room around the letters, so the mark
   stays in proportion: 56px tall on phones, 80px on a wide screen. */
.logo {
  --logo-height: 56px;
  display: block;
  flex-shrink: 0;
  height: var(--logo-height);
  width: calc(var(--logo-height) * 405 / 217);
  overflow: hidden;
  line-height: 0;
  text-decoration: none;
}

.logo img {
  display: block;
  height: calc(var(--logo-height) * 640 / 217);
  width: auto;
  max-width: none;
  margin-top: calc(var(--logo-height) * -143 / 217);
  margin-left: calc(var(--logo-height) * -49 / 217);
}

.menu-toggle {
  background: transparent;
  border: 1px solid var(--charcoal-brown);
  color: var(--charcoal-brown);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
}

.site-nav {
  display: none;
  flex-basis: 100%;
}

.site-nav.is-open {
  display: block;
}

.site-nav ul,
.footer-links,
.people {
  list-style: none;
  margin: 0;
  padding: 0;
}

.people {
  margin-bottom: 1.25rem;
}

.site-nav li + li {
  margin-top: 0.15rem;
}

.site-nav a {
  display: inline-block;
  padding: 0.45rem 0;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.hero {
  padding: 1.25rem 0 0;
}

.hero-rest > :last-child {
  margin-bottom: 0;
}

.hero-grid {
  display: grid;
  gap: 1.75rem;
}

/* On a phone the photo stays between the headline and the address.
   The wrapper disappears so those three pieces can keep that order. */
.hero-copy {
  display: contents;
}

.hero .photo-placeholder {
  order: 2;
}

.hero-rest {
  order: 3;
}

.hero-rest > p:first-child {
  margin-bottom: 20px;
}

.hero-rest > p:nth-child(2) {
  margin-bottom: 40px;
}

.hero-rest > p:nth-child(4) {
  margin-bottom: 32px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.hero-intro {
  position: relative;
  order: 1;
}

.hero-title {
  margin: 0 0 0.6rem;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.32rem;
  line-height: 1.45;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  padding: 1.5rem;
  background: var(--sunflower-gold);
  color: var(--charcoal-brown);
  font-weight: 700;
  text-align: center;
}

.steps {
  margin-top: 1.5rem;
  font-size: 1.2rem;
}

.people li + li {
  margin-top: 0.7rem;
}

/* Who teaches: names, then the night photo, then the team portrait.
   On a wide screen the portrait runs down the right beside both. */
.team-night,
.team-photo {
  display: block;
  width: 100%;
  height: auto;
}

.team-night {
  margin: 0 0 1.25rem;
}

.section {
  padding: 0;
}

main > .section:first-of-type {
  padding-top: 2.25rem;
}

.section + .section,
.hero + .section {
  margin-top: var(--section-gap);
}

/* Drop the trailing margin so it does not add to the section gap. */
.section :where(.wrap, .narrow, .section-copy, .intro-flow, .story, .faq, .enquiry-form) > :last-child {
  margin-bottom: 0;
}

/* Photo beside text: the heading and the copy live in .section-text.
   On a phone the photo sits under the heading. On a wide screen it sits
   to the right, and the heading stays with its text. */
.section-text {
  display: contents;
}

.with-photo {
  display: flex;
  flex-direction: column;
}

.section-text > h2 {
  order: 1;
}

.with-photo .section-photo {
  order: 2;
}

.section-text > .section-copy {
  order: 3;
}

.section-photo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 1.25rem;
}

/* Two photos share the same slot as a single section photo:
   under the heading on a phone, on the right on a wide screen. */
.with-photo .photo-pair {
  order: 2;
}

.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}

.photo-pair .section-photo {
  margin: 0;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
}

.price-table th,
.price-table td {
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(56, 52, 46, 0.18);
  font-weight: 400;
  text-align: left;
  vertical-align: baseline;
}

.price-table th {
  font-weight: 500;
  padding-right: 1.5rem;
}

.price-table td {
  text-align: right;
  white-space: nowrap;
}

.price-table.details td {
  text-align: left;
  white-space: normal;
}

.price-table.details th {
  width: 38%;
  padding-right: 1rem;
}

/* Studio rental, The space: table then photo on a phone.
   On a wide screen the photo sits on the right, shown whole. */
.space-photo {
  display: block;
  width: 100%;
  height: auto;
  margin: 1.25rem 0 0;
}

.field-note {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
}

.gallery {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
}

.gallery-track {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-track img {
  flex: 0 0 auto;
  width: auto;
  height: 300px;
  max-width: none;
  scroll-snap-align: start;
}

.gallery-button {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--charcoal-brown);
  background: var(--white);
  color: var(--charcoal-brown);
  font-family: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-button:hover {
  background: var(--ebony);
  border-color: var(--ebony);
  color: var(--white);
}

.gallery-button:disabled {
  opacity: 0.35;
  cursor: default;
  background: var(--white);
  border-color: var(--charcoal-brown);
  color: var(--charcoal-brown);
}

#enquire {
  scroll-margin-top: 8rem;
}

.map-embed {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 300px;
  margin: 1.5rem 0;
  border: 0;
}

.terms {
  margin: 0;
  padding-left: 1.25rem;
}

.terms li + li {
  margin-top: 0.65rem;
}

.enquiry-form label {
  display: block;
  margin: 1rem 0 0.35rem;
  font-weight: 500;
}

.enquiry-form input,
.enquiry-form textarea,
.enquiry-form select {
  width: 100%;
  max-width: 32rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid rgba(56, 52, 46, 0.35);
  background: var(--white);
  color: var(--charcoal-brown);
  font-family: inherit;
  font-size: 1rem;
}

.enquiry-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.enquiry-form .button {
  margin-top: 1.25rem;
}

.enquiry-form label.check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 1.25rem;
  font-weight: 400;
}

.enquiry-form input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  max-width: none;
  margin-top: 0.25rem;
  padding: 0;
  flex-shrink: 0;
}

button.button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.faq details + details {
  border-top: 1px solid rgba(56, 52, 46, 0.18);
}

.faq summary {
  padding: 0.85rem 0;
  font-weight: 700;
  cursor: pointer;
}

.faq details p {
  margin: 0 0 0.85rem;
}

/* About, How this started: on a phone the photo sits under the
   heading. On a wide screen it floats on the left, about 40% wide,
   and the text wraps around it. */
.story::after {
  content: "";
  display: block;
  clear: both;
}

.story-photo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 1.25rem;
}

/* About, What we are trying to do: heading full width, then the
   collage. On a phone the collage sits under the heading. On a wide
   screen it floats on the right, about 40% wide, and the text wraps
   down the left and continues underneath. The clear keeps it inside
   this section. */
.aims::after {
  content: "";
  display: block;
  clear: both;
}

.aims-photo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 1.25rem;
}

/* About, Who we are: three photos, one per row on a phone, side by
   side and the same width on a wide screen. Height follows the photo. */
.meet-team {
  display: grid;
  gap: 1.75rem;
}

.meet-person img {
  display: block;
  width: 100%;
  height: auto;
}

.meet-person p {
  margin: 0.65rem 0 0;
}

.meet-team + .narrow {
  margin-top: 1.75rem;
}

/* What is Brazilian Zouk: on a phone the photo follows the opening
   paragraph. On a wide screen it floats on the right, about 33% wide,
   and the text after the opening paragraph wraps around it. */
.intro-flow::after {
  content: "";
  display: block;
  clear: both;
}

.intro-photo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 1.25rem;
}

.intro-flow > h3:first-of-type {
  margin-top: 0;
}

.button {
  display: inline-block;
  background: var(--ebony);
  color: var(--white);
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  padding: 0.85rem 1.35rem;
}

.button:hover {
  background: var(--charcoal-brown);
  color: var(--white);
}

/* Curriculum heading: same type as the home hero, sized to fit a laptop. */
.progression {
  margin: 0 0 1.5rem;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.45;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.progression a {
  text-decoration: none;
  white-space: nowrap;
}

.detail {
  margin: 0 0 0.85rem;
}

.detail-label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.moves {
  margin: 0 0 1rem;
  padding: 0 0 0 1.25rem;
}

.moves li + li {
  margin-top: 0.35rem;
}

.photo-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  padding: 1.5rem;
  background: var(--sunflower-gold);
  color: var(--charcoal-brown);
  font-weight: 700;
  text-align: center;
}

.site-footer {
  margin-top: var(--section-gap);
  padding: 2.25rem 0 3rem;
  border-top: 1px solid rgba(56, 52, 46, 0.18);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

address {
  font-style: normal;
  margin: 0;
}

.footer-instagram {
  width: 180px;
}

.footer-instagram img {
  display: block;
  width: 180px;
  height: 180px;
  object-fit: cover;
  object-position: center;
}

.footer-instagram-caption {
  display: block;
  margin-top: 0.45rem;
  text-align: center;
  text-decoration: none;
  line-height: 1.4;
}

.footer-instagram-caption span {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.footer-links li + li {
  margin-top: 0.35rem;
}

.footer-icons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-icons a {
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
}

.footer-icons svg {
  display: block;
  width: 24px;
  height: 24px;
}

@media (min-width: 54rem) {
  body {
    font-size: 1.125rem;
  }

  h1 {
    font-size: 3.15rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .progression {
    font-size: 1.35rem;
    line-height: 1.3;
    letter-spacing: 0.15em;
  }

  .detail-label {
    font-size: 14px;
  }

  .space-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    column-gap: 3rem;
    align-items: start;
  }

  .space-photo {
    margin: 0;
  }

  .gallery-track img {
    height: 420px;
  }

  .map-embed {
    height: 400px;
  }

  .moves {
    columns: 2;
    column-gap: 2rem;
  }

  .moves li {
    break-inside: avoid;
  }

  .logo {
    --logo-height: 80px;
  }

  .hero-title {
    margin-bottom: 0;
    font-size: 1.73rem;
    line-height: 1.3;
  }

  .menu-toggle {
    display: none;
  }

  .site-nav,
  .site-nav.is-open {
    display: block;
    flex-basis: auto;
  }

  .site-nav ul {
    display: flex;
    align-items: center;
    gap: 1.35rem;
  }

  .site-nav li + li {
    margin-top: 0;
  }

  .hero {
    padding: 2.5rem 0 0;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    column-gap: 3rem;
    row-gap: 0;
    align-items: start;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    grid-column: 1;
    grid-row: 1;
  }

  .hero-intro,
  .hero-rest,
  .hero .photo-placeholder {
    order: 0;
  }

  .hero-rest {
    margin-top: 32px;
  }

  .photo-placeholder {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    aspect-ratio: 4 / 5;
  }

  main > .section:first-of-type {
    padding-top: 3.25rem;
  }

  .section-text {
    display: block;
  }

  .with-photo {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    column-gap: 3rem;
    align-items: start;
  }

  .section-text > h2,
  .with-photo .section-photo,
  .section-text > .section-copy {
    order: 0;
  }

  .with-photo .section-photo,
  .with-photo .photo-pair {
    order: 0;
    margin: 0;
  }

  .intro-photo {
    float: right;
    width: 33%;
    margin: 0 0 1rem 3rem;
  }

  .story-photo {
    float: left;
    width: 40%;
    margin: 0 2rem 1rem 0;
  }

  .aims-photo {
    float: right;
    width: 40%;
    margin: 0 0 1rem 2rem;
  }

  .meet-team {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    column-gap: 1.5rem;
  }

  .team-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    column-gap: 3rem;
    align-items: start;
  }

  .team-copy {
    display: contents;
  }

  .team-copy > h2 {
    grid-column: 1;
    grid-row: 1;
  }

  .team-copy > .people {
    grid-column: 1;
    grid-row: 2;
  }

  .team-copy > p {
    grid-column: 1;
    grid-row: 3;
    margin-bottom: 0;
  }

  .team-night {
    grid-column: 1;
    grid-row: 4;
    justify-self: start;
    width: 82.5%;
    height: auto;
    margin: 1.5rem 0 0;
  }

  .team-photo {
    grid-column: 2;
    grid-row: 2 / span 3;
    align-self: start;
    width: 100%;
    height: auto;
    margin: 0;
  }

  .footer-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: end;
    column-gap: 2rem;
  }

  .footer-links {
    justify-self: center;
    text-align: center;
  }

  .footer-icons {
    justify-content: center;
  }

  .footer-instagram {
    justify-self: end;
  }
}

/* Classes page only. These class names are not used on other pages. */

.classes-price-block {
  margin-top: 2.5rem;
}

.classes-privates .photo-fill {
  order: 2;
}

@media (min-width: 54rem) {
  .classes-practica .with-photo {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .classes-practica .section-text {
    grid-column: 2;
    grid-row: 1;
  }

  .classes-practica .section-photo {
    grid-column: 1;
    grid-row: 1;
  }

  /* The row is as tall as the text. The photo fills that height. */
  .classes-privates .photo-fill {
    order: 0;
    position: relative;
    align-self: stretch;
    min-height: 0;
    overflow: hidden;
  }

  .classes-privates .photo-fill .section-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center;
  }
}

/* Contact page only. These class names are not used on other pages.
   Photos keep their own proportions. Nothing is cropped. */

.contact-photo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.contact-message .contact-photo,
.contact-where .contact-photo {
  margin-top: 1.5rem;
}

.contact-direct .contact-photo {
  margin: 0 0 1.25rem;
}

.contact-direct > div > :last-child,
.contact-where > div > :last-child {
  margin-bottom: 0;
}

@media (min-width: 54rem) {
  .contact-message,
  .contact-where {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40%;
    column-gap: 3rem;
    align-items: start;
  }

  .contact-direct {
    display: grid;
    grid-template-columns: 40% minmax(0, 1fr);
    column-gap: 3rem;
    align-items: start;
  }

  .contact-direct > h2 {
    grid-column: 1 / -1;
  }

  .contact-message .contact-photo,
  .contact-direct .contact-photo,
  .contact-where .contact-photo {
    margin: 0;
  }
}

/* Code of Conduct page only. These class names are not used on other pages. */

.conduct {
  max-width: 680px;
}

.conduct > :last-child {
  margin-bottom: 0;
}

.conduct-page .section {
  scroll-margin-top: 8rem;
}

.conduct-jump {
  margin-top: 2rem;
}

.conduct-jump-row {
  margin-top: 2rem;
}

.conduct-jump-row .conduct-jump {
  margin-top: 0;
}

.conduct-jump-photo {
  display: block;
  width: min(80%, 80vw);
  max-width: min(80%, 80vw);
  height: auto;
  margin: 0 auto 1.25rem;
}

.conduct-jump ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.conduct-jump li + li {
  margin-top: 0.4rem;
}

.conduct-standout {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 1.35rem;
  line-height: 1.4;
}

.conduct-help .conduct {
  background: var(--white-smoke);
  padding: 1.75rem 1.5rem;
}

.conduct-back {
  margin-top: var(--section-gap);
  margin-bottom: 0;
}

@media (min-width: 54rem) {
  .conduct-jump-row {
    display: flex;
    align-items: flex-start;
    column-gap: 2rem;
  }

  .conduct-jump-photo {
    width: auto;
    max-width: 40%;
    height: auto;
    margin: 0;
    flex: 0 0 auto;
  }

  .conduct-jump-row .conduct-jump {
    flex: 1 1 auto;
    min-width: 0;
  }
}

/* Curriculum page: Fundamentals, Level 1, guest workshops, and the cycle.
   On a phone the photo sits full width between the opening text and the rest.
   These class names are not used on other sections. */

.curric-fundamentals-row,
.curric-level1-row {
  display: flex;
  flex-direction: column;
}

.curric-photo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 0 1.25rem;
}

.curric-fundamentals-lead > :last-child {
  margin-bottom: 0;
}

.curric-fundamentals-after {
  margin-top: 1.5rem;
}

.curric-level1 .moves {
  columns: 1;
}

.curric-workshops,
.curric-cycle {
  display: flow-root;
}

/* How the cycle works, and Not sure where you fit: on a phone the
   photo is centred and no wider than 80% of the screen, with the
   text underneath. */
.curric-cycle .curric-photo,
.curric-fit .section-photo {
  width: min(80%, 80vw);
  max-width: min(80%, 80vw);
  min-width: 0;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

.curric-fit .section-photo {
  align-self: center;
}

@media (min-width: 54rem) {
  .curric-fundamentals-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 45%);
    column-gap: 3rem;
    align-items: start;
  }

  .curric-fundamentals-row .curric-photo {
    margin: 0;
  }

  .curric-level1-row {
    display: grid;
    grid-template-columns: minmax(0, 45%) minmax(0, 1fr);
    column-gap: 3rem;
    align-items: stretch;
  }

  .curric-level1-row .curric-photo {
    width: 100%;
    height: 0;
    min-height: 100%;
    margin: 0;
    object-fit: contain;
    object-position: left top;
  }

  .curric-level1-rest {
    container-type: inline-size;
  }

  .curric-workshops .curric-photo {
    float: right;
    width: 45%;
    margin: 0 0 1rem 3rem;
  }

  .curric-cycle .curric-photo {
    float: left;
    width: 30%;
    max-width: none;
    margin: 0 3rem 1rem 0;
  }

  .curric-fit.with-photo {
    grid-template-columns: minmax(0, 1fr) 30%;
  }

  .curric-fit .section-photo {
    align-self: start;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: auto;
    margin: 0;
  }
}

@container (min-width: 36rem) {
  .curric-level1 .moves {
    columns: 2;
    column-gap: 2rem;
  }

  .curric-level1 .moves li {
    break-inside: avoid;
  }
}
