/* Only a studio's explicitly selected preset changes its opening palette. */
.cmm-story[data-studio-palette="sunshine"] .cmm-local-home-hero {
  background: #f4d37e;
  color: #163c38;
}
.cmm-story[data-studio-palette="clay"] .cmm-local-home-hero {
  background: #e9bcaa;
  color: #163c38;
}
.cmm-story:is([data-studio-palette="sunshine"],[data-studio-palette="clay"]) .cmm-local-home-hero :is(h1,p,.cmm-text-link) {
  color: #163c38;
}
.cmm-story:is([data-studio-palette="sunshine"],[data-studio-palette="clay"]) .cmm-local-home-hero h1 span {
  color: #086e70;
}
.cmm-story:is([data-studio-palette="sunshine"],[data-studio-palette="clay"]) .cmm-local-home-hero .cmm-action-light {
  background: #103f3e;
  color: #fffdf7 !important;
}
.cmm-story:is([data-studio-palette="sunshine"],[data-studio-palette="clay"]) .cmm-local-home-hero :focus-visible {
  outline-color: #163c38;
}
.cmm-story[data-studio-palette="clay"] {
  --cmm-teal: #744329;
  --cmm-mint: #f2e5dc;
}
.cmm-story[data-studio-palette="sunshine"] {
  --cmm-mint: #f7efd7;
}

/* Customized landscape openings use a true split: a solid palette panel and
   an unobscured photograph. Classic studio openings keep their original design. */
.cmm-story:is([data-studio-palette="sunshine"],[data-studio-palette="clay"]) .cmm-local-home-hero[data-photo-shape="landscape"] {
  display: grid;
  grid-template-columns: minmax(0,.48fr) minmax(0,.52fr);
  align-items: stretch;
  gap: 0;
  min-height: 620px;
  padding: 0;
}
.cmm-story:is([data-studio-palette="sunshine"],[data-studio-palette="clay"]) .cmm-local-home-hero[data-photo-shape="landscape"] > .cmm-local-home-welcome {
  align-self: center;
  max-width: none;
  padding: clamp(52px,5vw,76px) clamp(32px,4.5vw,72px) clamp(52px,5vw,76px) max(32px,calc((100vw - 1280px)/2));
}
.cmm-story:is([data-studio-palette="sunshine"],[data-studio-palette="clay"]) .cmm-local-home-hero[data-photo-shape="landscape"] h1 {
  font-size: clamp(52px,5.8vw,86px);
  line-height: 1.04;
  margin-bottom: 26px;
}
.cmm-story:is([data-studio-palette="sunshine"],[data-studio-palette="clay"]) .cmm-local-home-hero[data-photo-shape="landscape"] .cmm-local-home-intro {
  font-size: 16px;
  line-height: 1.8;
  max-width: 440px;
  margin-bottom: 29px;
}
.cmm-story:is([data-studio-palette="sunshine"],[data-studio-palette="clay"]) .cmm-local-home-hero[data-photo-shape="landscape"] .cmm-actions {
  gap: 16px 22px;
  align-items: center;
  flex-wrap: wrap;
}
.cmm-story:is([data-studio-palette="sunshine"],[data-studio-palette="clay"]) .cmm-local-home-hero[data-photo-shape="landscape"] > figure {
  position: relative;
  inset: auto;
  align-self: stretch;
  height: auto;
  min-width: 0;
  margin: 0;
}
.cmm-story:is([data-studio-palette="sunshine"],[data-studio-palette="clay"]) .cmm-local-home-hero[data-photo-shape="landscape"] > figure::after {
  content: none;
  display: none;
}
.cmm-story:is([data-studio-palette="sunshine"],[data-studio-palette="clay"]) .cmm-local-home-hero[data-photo-shape="landscape"] .story-media {
  height: 100%;
  min-height: 620px;
  max-height: none;
  aspect-ratio: auto;
}
.cmm-story:is([data-studio-palette="sunshine"],[data-studio-palette="clay"]) .cmm-local-home-hero[data-photo-shape="landscape"] .story-media > img {
  object-fit: cover;
  object-position: 50% 42%;
}
.cmm-story[data-studio-palette="clay"] .cmm-local-home-hero[data-photo-shape="landscape"] h1 span {
  color: #744329;
}
@media (max-width: 920px) {
  .cmm-story:is([data-studio-palette="sunshine"],[data-studio-palette="clay"]) .cmm-local-home-hero[data-photo-shape="landscape"] {
    grid-template-columns: minmax(0,1fr);
    min-height: 0;
  }
  .cmm-story:is([data-studio-palette="sunshine"],[data-studio-palette="clay"]) .cmm-local-home-hero[data-photo-shape="landscape"] > .cmm-local-home-welcome {
    padding: 44px max(24px,calc((100vw - 720px)/2)) 46px;
  }
  .cmm-story:is([data-studio-palette="sunshine"],[data-studio-palette="clay"]) .cmm-local-home-hero[data-photo-shape="landscape"] h1 {
    font-size: clamp(44px,7.4vw,70px);
    max-width: 660px;
  }
  .cmm-story:is([data-studio-palette="sunshine"],[data-studio-palette="clay"]) .cmm-local-home-hero[data-photo-shape="landscape"] .story-media {
    height: auto;
    min-height: 0;
    aspect-ratio: 3/2;
  }
}
@media (max-width: 700px) {
  .cmm-story:is([data-studio-palette="sunshine"],[data-studio-palette="clay"]) .cmm-local-home-hero[data-photo-shape="landscape"] > .cmm-local-home-welcome {
    padding: 36px 22px 39px;
  }
  .cmm-story:is([data-studio-palette="sunshine"],[data-studio-palette="clay"]) .cmm-local-home-hero[data-photo-shape="landscape"] h1 {
    font-size: clamp(42px,10.7vw,64px);
    margin-bottom: 24px;
  }
  .cmm-story:is([data-studio-palette="sunshine"],[data-studio-palette="clay"]) .cmm-local-home-hero[data-photo-shape="landscape"] .cmm-local-home-place {
    font-size: 11px;
    margin-bottom: 20px;
  }
  .cmm-story:is([data-studio-palette="sunshine"],[data-studio-palette="clay"]) .cmm-local-home-hero[data-photo-shape="landscape"] .cmm-local-home-intro {
    font-size: 14px;
    margin-bottom: 25px;
  }
  .cmm-story:is([data-studio-palette="sunshine"],[data-studio-palette="clay"]) .cmm-local-home-hero[data-photo-shape="landscape"] .cmm-actions {
    gap: 14px 20px;
  }
  .cmm-story:is([data-studio-palette="sunshine"],[data-studio-palette="clay"]) .cmm-local-home-hero[data-photo-shape="landscape"] .cmm-text-link {
    font-size: 12px;
  }
}
