body.master-modal-open { overflow: hidden; }

.master-modal {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}

.master-modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

.master-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .86);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.master-modal__dialog {
  position: relative;
  width: min(1500px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 28px;
  background: #090707;
  box-shadow: 0 34px 100px rgba(0, 0, 0, .58);
}

.master-modal__scroll {
  max-height: calc(100svh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(255, 255, 255, .35) transparent;
  scrollbar-width: thin;
}

.master-modal__close {
  position: absolute;
  z-index: 2;
  top: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  color: #fff;
  background: rgba(8, 7, 7, .8);
  cursor: pointer;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
}

.master-modal__hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 720px;
}

.master-modal__image {
  width: 100%;
  height: 100%;
  min-height: 720px;
  object-fit: cover;
  object-position: center;
}

.master-modal__intro {
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: flex-start;
  padding: 110px clamp(44px, 6vw, 106px) 72px;
}

.master-modal__eyebrow {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, .58);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.master-modal__name,
.master-modal__article > h2,
.master-modal__section-title,
.master-modal__final-cta h2 {
  margin: 0;
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: .012em;
  text-transform: uppercase;
}

.master-modal__name {
  white-space: normal;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  font-size: clamp(42px, 5vw, 88px);
  line-height: .92;
}

.master-modal__specialization {
  max-width: 560px;
  margin: 32px 0 0;
  color: rgba(255, 255, 255, .8);
  font-size: clamp(20px, 1.7vw, 29px);
  line-height: 1.35;
}

.master-modal__summary {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .66);
  font-size: clamp(18px, 1.4vw, 23px);
  line-height: 1.58;
}

.master-modal__primary-cta {
  display: inline-flex;
  align-items: center;
  min-height: 58px;
  margin-top: 40px;
  padding: 14px 26px;
  border-radius: 999px;
  color: #090707;
  background: #f2efea;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.master-modal__article {
  width: min(820px, calc(100% - 48px));
  margin: 0 auto;
  padding: 112px 0 124px;
}

.master-modal__article > h2 { font-size: clamp(42px, 4.7vw, 74px); line-height: 1.04; }

.master-modal__text {
  margin: 32px 0 0;
  color: rgba(255, 255, 255, .77);
  font-size: clamp(19px, 1.45vw, 22px);
  line-height: 1.62;
}

.master-modal__text + .master-modal__text { margin-top: 22px; }

.master-modal__lead {
  display: grid;
  grid-template-columns: minmax(250px, .8fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
  margin-top: 52px;
}

.master-modal__lead-image,
.master-gallery__viewport {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
}

.master-modal__lead-image {
  position: relative;
  aspect-ratio: 4 / 5;
  margin: 0;
}

.master-modal__lead-image img,
.master-gallery__slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.master-modal__lead-image figcaption,
.master-gallery__slide figcaption { display: none; }

.master-modal__lead-image.is-empty,
.master-gallery__slide.is-empty {
  display: grid;
  place-items: center;
  min-height: 220px;
}

.master-modal__lead-image.is-empty img,
.master-gallery__slide.is-empty img { display: none; }

.master-modal__lead-image.is-empty figcaption,
.master-gallery__slide.is-empty figcaption {
  display: block;
  max-width: 86%;
  color: rgba(255, 255, 255, .5);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  overflow-wrap: anywhere;
}

.master-modal__lead .master-modal__text { margin: 0; }

.master-modal__lead--text-only {
  display: block;
  width: 100%;
  max-width: none;
}

.master-modal__lead--text-only .master-modal__text--lead {
  max-width: 680px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
  line-height: 1.25;
}

.master-modal__article > .master-modal__subheading:first-of-type {
  max-width: 960px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.master-modal__lead--text-only + .master-modal__text,
.master-modal__lead--text-only + .master-modal__text + .master-modal__text {
  max-width: 960px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

@media (max-width: 1100px) and (min-width: 821px) {
  .master-modal__intro { padding: 96px clamp(24px, 4vw, 56px) 52px; }
  .master-modal__name { font-size: clamp(40px, 5vw, 84px); }
}

.master-modal__text--lead,
.master-modal__text--emphasis {
  color: rgba(255, 255, 255, .9);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 1.85vw, 31px);
  font-style: italic;
  line-height: 1.5;
}

.master-modal__text--emphasis { margin-top: 48px; font-weight: 700; }

.master-modal__separator {
  margin: 76px 0;
  color: rgba(255, 255, 255, .55);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
}

.master-modal__separator .star {
  width: 16px;
}

.master-modal__section-title {
  margin-top: 84px;
  font-size: clamp(42px, 4.2vw, 62px);
  line-height: 1.05;
  text-transform: none;
}

.master-modal__subheading {
  margin: 68px 0 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 2vw, 34px);
  line-height: 1.35;
}

.master-modal__list {
  margin: 30px 0 0;
  padding-left: 1.25em;
  color: rgba(255, 255, 255, .77);
  font-size: clamp(19px, 1.45vw, 22px);
  line-height: 1.62;
}

.master-modal__list li + li { margin-top: 14px; }
.master-modal__list--ordered { padding-left: 1.5em; }
.master-modal__list strong { color: #fff; }

.master-gallery { margin: 48px 0 54px; }
.master-gallery__track { display: flex; transition: transform .35s ease; }
.master-gallery__slide { flex: 0 0 100%; aspect-ratio: 4 / 3; margin: 0; overflow: hidden; }

.master-gallery__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 14px;
}

.master-gallery__label {
  margin: 0;
  color: rgba(255, 255, 255, .58);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.master-gallery__navigation,
.master-gallery__dots { display: flex; align-items: center; }
.master-gallery__navigation { gap: 12px; }
.master-gallery__dots { gap: 7px; }

.master-gallery__navigation > button,
.master-gallery__dots button {
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.master-gallery__navigation > button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  font-size: 20px;
}

.master-gallery__navigation > button:disabled {
  cursor: default;
  opacity: .28;
}

.master-gallery__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .3);
}

.master-gallery__dots button.is-active { background: #f2efea; }

.master-modal__final-cta {
  display: block;
  margin-top: 96px;
  padding: clamp(28px, 4vw, 54px);
  border: 0;
  border-radius: 0;
  color: #17110f;
  background: #eee9e2;
  text-align: center;
}

.master-modal__final-cta h2 {
  font-size: clamp(40px, 4vw, 62px);
  line-height: 1.04;
}

.master-modal__final-cta p {
  max-width: 620px;
  margin: 20px auto 0;
  color: rgba(23, 17, 15, .78);
  font-size: clamp(18px, 1.35vw, 22px);
  line-height: 1.55;
}

.master-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.master-modal__actions a {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid rgba(23, 17, 15, .35);
  border-radius: 999px;
  color: #17110f;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.master-modal__actions a:first-child { border-color: #17110f; color: #eee9e2; background: #17110f; }
@media (max-width: 820px) {
  .master-modal { padding: 0; }
  .master-modal__dialog { width: 100%; height: 100svh; max-height: 100svh; border: 0; border-radius: 0; }
  .master-modal__scroll { max-height: 100svh; }
  .master-modal__close { top: max(14px, env(safe-area-inset-top)); right: 16px; width: 52px; height: 52px; }
  .master-modal__hero { grid-template-columns: 1fr; min-height: 0; }
  .master-modal__image { height: 60svh; min-height: 55svh; object-position: center 34%; }
  .master-modal__intro { padding: 42px 20px 52px; }
  .master-modal__eyebrow { margin-bottom: 18px; font-size: 12px; }
  .master-modal__name { font-size: clamp(30px, 11vw, 68px); }
  .master-modal__specialization { margin-top: 24px; font-size: 21px; }
  .master-modal__summary { margin-top: 18px; font-size: 18px; }
  .master-modal__primary-cta { width: 100%; justify-content: center; margin-top: 30px; }
  .master-modal__article { width: 100%; padding: 72px 20px calc(44px + env(safe-area-inset-bottom)); }
  .master-modal__article > h2 { font-size: clamp(42px, 12vw, 60px); }
  .master-modal__text { margin-top: 26px; font-size: 19px; line-height: 1.6; }
  .master-modal__lead { grid-template-columns: 1fr; gap: 26px; margin-top: 36px; }
  .master-modal__lead-image { width: min(100%, 360px); }
  .master-modal__text--lead,
  .master-modal__text--emphasis { font-size: 23px; }
  .master-modal__text--emphasis { margin-top: 40px; }
  .master-modal__separator { margin: 56px 0; }
  .master-modal__section-title { font-size: clamp(36px, 10vw, 48px); }
  .master-modal__subheading { margin-top: 52px; font-size: 26px; }
  .master-modal__list { margin-top: 24px; font-size: 19px; }
  .master-gallery { margin: 36px 0 40px; }
  .master-gallery__slide { aspect-ratio: 3 / 4; }
  .master-gallery__controls { align-items: flex-start; }
  .master-gallery__label { max-width: 170px; line-height: 1.35; }
  .master-modal__final-cta { margin-top: 72px; padding: 30px 22px; border-radius: 0; }
  .master-modal__final-cta h2 { font-size: clamp(38px, 10vw, 52px); }
  .master-modal__actions { display: grid; grid-template-columns: 1fr; }
  .master-modal__actions a { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .master-modal,
  .master-gallery__track { transition: none; }
}
