.workshop-page {
  overflow: hidden;
  background: var(--paper);
}

.workshop-hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
  background: var(--bark-deep);
}

.workshop-hero > img,
.workshop-donation > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.workshop-hero > img {
  object-position: center 42%;
}

.workshop-hero-shade,
.workshop-donation-shade {
  position: absolute;
  inset: 0;
}

.workshop-hero-shade {
  background:
    linear-gradient(90deg, rgba(45,26,16,.94) 0%, rgba(45,26,16,.64) 43%, rgba(45,26,16,.1) 80%),
    linear-gradient(0deg, rgba(45,26,16,.48), transparent 48%);
}

.workshop-hero-inner,
.workshop-gallery-section {
  width: min(var(--content-max), calc(100% - (2 * var(--page-pad))));
  margin-inline: auto;
}

.workshop-hero-inner {
  position: relative;
  z-index: 1;
  padding: 100px 0 94px;
}

.workshop-hero h1 {
  max-width: 820px;
  font-size: clamp(82px, 8.5vw, 128px);
}

.workshop-hero p {
  max-width: 760px;
  margin: 34px 0 0;
  font-size: 21px;
  line-height: 1.65;
}

.workshop-gallery-section {
  padding-block: 110px 125px;
}

.workshop-gallery-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .82fr);
  gap: 72px;
  align-items: end;
  margin-bottom: 92px;
}

.workshop-gallery-intro h2 {
  max-width: 760px;
  margin: 14px 0 0;
  color: #2f1f17;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 5.1vw, 74px);
  line-height: 1.04;
}

.workshop-gallery-intro > p,
.workshop-gallery-heading p {
  margin: 0;
  color: #67594f;
  font-size: 18px;
  line-height: 1.7;
}

.workshop-gallery-group + .workshop-gallery-group {
  margin-top: 112px;
}

.workshop-gallery-heading {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, .65fr);
  gap: 64px;
  align-items: end;
  margin-bottom: 34px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(102, 70, 48, .18);
}

.workshop-gallery-heading h3 {
  margin: 0;
  color: #2f1f17;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 3.4vw, 52px);
  line-height: 1.08;
}

.workshop-gallery {
  columns: 4;
  column-gap: 18px;
}

.workshop-gallery figure {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0 0 18px;
  break-inside: avoid;
  border-radius: 4px;
  background: #eadfce;
}

.workshop-gallery figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(211,162,77,.28);
}

.workshop-gallery img {
  display: block;
  width: 100%;
  height: auto;
  transition: filter .45s ease;
}

.workshop-gallery figcaption {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  padding: 48px 18px 16px;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  background: linear-gradient(to top, rgba(35,20,12,.82), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
}

.workshop-gallery figure:hover img {
  filter: brightness(1.04);
}

.workshop-gallery figure:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

.workshop-donation {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bark-deep);
}

.workshop-donation > img {
  object-position: center 28%;
}

.workshop-donation-shade {
  background: rgba(45,26,16,.64);
}

.workshop-donation .button {
  position: relative;
  z-index: 1;
  min-width: 250px;
  box-shadow: 0 18px 50px rgba(45,26,16,.28);
}

.motion-ready .workshop-gallery [data-v2-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s ease, transform .75s ease;
}

.motion-ready .workshop-gallery [data-v2-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .workshop-gallery-intro,
  .workshop-gallery-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .workshop-gallery {
    columns: 2;
  }
}

@media (max-width: 620px) {
  .workshop-hero {
    min-height: 670px;
  }

  .workshop-hero > img {
    object-position: 58% center;
  }

  .workshop-hero-shade {
    background: linear-gradient(0deg, rgba(45,26,16,.96), rgba(45,26,16,.26) 86%);
  }

  .workshop-hero-inner,
  .workshop-gallery-section {
    width: calc(100% - 40px);
  }

  .workshop-hero-inner {
    padding: 220px 0 66px;
  }

  .workshop-hero h1 {
    font-size: 58px;
    line-height: .98;
  }

  .workshop-hero p {
    margin-top: 26px;
    font-size: 17px;
    line-height: 1.62;
  }

  .workshop-gallery-section {
    padding-block: 72px 82px;
  }

  .workshop-gallery-intro {
    gap: 22px;
    margin-bottom: 64px;
  }

  .workshop-gallery-intro h2 {
    font-size: 42px;
  }

  .workshop-gallery-intro > p,
  .workshop-gallery-heading p {
    font-size: 16px;
    line-height: 1.65;
  }

  .workshop-gallery-group + .workshop-gallery-group {
    margin-top: 72px;
  }

  .workshop-gallery-heading {
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 18px;
  }

  .workshop-gallery-heading h3 {
    font-size: 32px;
  }

  .workshop-gallery {
    columns: 2;
    column-gap: 10px;
  }

  .workshop-gallery figure {
    margin-bottom: 10px;
  }

  .workshop-gallery figcaption {
    display: none;
  }

  .workshop-donation {
    min-height: 440px;
  }

  .workshop-donation > img {
    object-position: 58% center;
  }

  .workshop-donation .button {
    width: calc(100% - 40px);
  }

  .motion-ready .workshop-gallery [data-v2-reveal] {
    opacity: 1;
    visibility: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  .workshop-gallery img,
  .motion-ready .workshop-gallery [data-v2-reveal] {
    transition: none;
  }

  .motion-ready .workshop-gallery [data-v2-reveal] {
    opacity: 1;
    transform: none;
  }
}
