.r07-site .r12-purpose-gallery {
  position: relative;
  isolation: isolate;
  width: 100%;
  margin-top: 42px;
  border: 0;
  border-radius: 24px;
  background: #09232f;
  scroll-margin-top: 120px;
}
.r07-site .r12-purpose-gallery .r08-purpose-slide {
  position: relative;
  height: min(740px, 78svh);
  min-height: 460px;
  overflow: hidden;
}
.r07-site .r12-purpose-gallery .r08-purpose-slide[hidden] { display: none; }
.r07-site .r12-purpose-gallery .r08-purpose-slide > img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: var(--r12-gallery-focus-wide, 50% 40%);
}
.r07-site .r12-purpose-gallery .r08-purpose-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(5,25,37,.9), rgba(5,25,37,.5) 30%, transparent 68%);
}
.r07-site .r12-purpose-gallery figcaption {
  position: absolute;
  z-index: 1;
  left: clamp(24px, 4vw, 56px);
  right: 24px;
  bottom: 104px;
  max-width: 700px;
  padding: 0;
  color: white;
}
.r07-site .r12-purpose-gallery figcaption h3 {
  max-width: 23ch;
  margin: 0 0 16px;
  color: white;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2rem, 3.7vw, 3.7rem);
  line-height: 1.12;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.r07-site .r12-purpose-gallery figcaption p {
  max-width: 51ch;
  margin: 0 0 8px;
  color: #fff;
  font-size: 1rem;
  line-height: 1.55;
}
.r07-site .r12-purpose-gallery figcaption a {
  min-height: 44px;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: white;
  font-size: .95rem;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.r07-site .r12-purpose-gallery .r08-purpose-controls {
  position: absolute;
  z-index: 2;
  left: clamp(20px, 4vw, 56px);
  right: auto;
  bottom: 22px;
  gap: 10px;
  padding: 0;
  color: white;
}
.r07-site .r12-purpose-gallery .r08-purpose-controls button {
  border-color: #ffffff8c;
  background: #09232fcc;
  color: white;
}
@media (max-width:760px) {
  .r07-site .r12-purpose-gallery { border-radius: 18px; }
  .r07-site .r12-purpose-gallery .r08-purpose-slide {
    height: min(640px, calc(100svh - 190px));
    min-height: 360px;
  }
  .r07-site .r12-purpose-gallery .r08-purpose-slide > img {
    object-position: var(--r12-gallery-focus-mobile, 50% 40%);
  }
  .r07-site .r12-purpose-gallery figcaption { left: 22px; right: 22px; bottom: 96px; }
  .r07-site .r12-purpose-gallery figcaption h3 { margin-bottom: 12px; font-size: clamp(1.7rem, 7.2vw, 2.3rem); }
  .r07-site .r12-purpose-gallery figcaption p { font-size: .95rem; line-height: 1.45; }
  .r07-site .r12-purpose-gallery .r08-purpose-controls { left: 20px; right: 20px; bottom: 22px; flex-wrap: nowrap; gap: 8px; }
  .r07-site .r12-purpose-gallery .r08-purpose-controls button { padding: 10px 12px; font-size: .85rem; }
}
@media (max-width:360px) {
  .r07-site .r12-purpose-gallery figcaption { bottom: 148px; }
  .r07-site .r12-purpose-gallery .r08-purpose-controls { flex-wrap: wrap; }
}
