/* Responsive proportions shared by the interior photo heroes. */
.nysa-story-photo {
  float: right;
  width: 46%;
  margin: 0 0 1.5rem 2rem;
}
.nysa-story-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}
.et_pb_text_inner:has(> .nysa-story-photo) {
  display: flow-root;
}
@media (max-width: 767px) {
  .nysa-story-photo {
    float: none;
    width: 100%;
    margin: 0 0 1.25rem;
  }
}
body.page #et-main-area .nysa-batch-hero.nysa-reused-photo-hero {
  background-image: linear-gradient(90deg, #1a3a5cf5 0%, #1a3a5ce6 35%, #1a3a5c45 100%), var(--nysa-reused-photo) !important;
  background-size: cover !important;
  background-position: center, center top !important;
  background-repeat: no-repeat;
}
body.page #et-main-area .nysa-reused-photo-hero :is(h1, p, a, .et_pb_text) {
  color: #fff !important;
}
body.page #et-main-area .nysa-reused-photo-hero a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
body.page #et-main-area .nysa-reused-photo-hero a.et_pb_button {
  color: #183757 !important;
  background: #ffb17b !important;
  border-color: #ffb17b !important;
}
@media (max-width: 767px) {
  body.page #et-main-area .nysa-batch-hero.nysa-reused-photo-hero {
    background-image: linear-gradient(90deg, #1a3a5ce8, #1a3a5cbf), var(--nysa-reused-photo) !important;
    background-position: center, var(--nysa-photo-mobile-position, 65%) top !important;
  }
}
body.page #et-main-area .nysa-batch-hero.nysa-photo-hero {
  min-height: clamp(32rem, 49vw, 43.5rem);
  padding-block: clamp(4rem, 7vw, 7rem) !important;
  position: relative;
  isolation: isolate;
}

body.page #et-main-area .nysa-photo-hero > .et_pb_row > .et_pb_column:first-child {
  min-width: 0;
  max-width: min(100%, 42rem) !important;
  flex: 0 1 42rem !important;
  row-gap: clamp(1rem, 1.8vw, 1.5rem) !important;
}

body.page #et-main-area .nysa-batch-hero.nysa-photo-hero h1 {
  font-size: clamp(2rem, 1.35rem + 3vw, 4.25rem) !important;
  line-height: 1.08 !important;
  text-wrap: balance;
  overflow-wrap: break-word;
}

body.page #et-main-area .nysa-photo-hero .et_pb_text:not(.nysa-rest-trail) {
  max-width: 35rem;
}

.nysa-photo-hero .et_pb_breadcrumbs { flex-wrap: wrap; }
.nysa-photo-hero .nysa-rest-trail a { text-underline-offset: .2em; }
.nysa-photo-hero .nysa-rest-trail a:focus-visible { outline: 2px solid white; outline-offset: 3px; }

/* The varied photographs stay visible to the right of the copy. */
@media (max-width: 1100px) {
  body.page #et-main-area .nysa-batch-hero.nysa-photo-hero { min-height: 31rem; }
  .nysa-photo-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(90deg, transparent 33%, rgb(26 58 92 / 55%));
  }
}

@media (max-width: 767px) {
  body.page #et-main-area .nysa-batch-hero.nysa-photo-hero {
    min-height: 27rem;
    padding-block: 3.25rem !important;
    background-position: center, var(--nysa-photo-mobile-position, 64%) center !important;
  }
  .nysa-photo-hero::before {
    background: linear-gradient(180deg, rgb(26 58 92 / 66%), rgb(26 58 92 / 44%) 77%, rgb(26 58 92 / 22%));
  }
  body.page #et-main-area .nysa-photo-hero > .et_pb_row > .et_pb_column:first-child {
    flex-basis: 100% !important;
  }
  .page-id-239210 .nysa-photo-hero { --nysa-photo-mobile-position: 50%; }
  .page-id-239222 .nysa-photo-hero { --nysa-photo-mobile-position: 76%; }
  .page-id-238727 .nysa-photo-hero { --nysa-photo-mobile-position: 79%; }
  .page-id-239509 .nysa-photo-hero { --nysa-photo-mobile-position: 73%; }
}

/* The contact confirmation is a compact, editable split hero. */
body.page-id-238477 #et-main-area .nysa-thank-you-hero {
  background: var(--gcid-nysa-warm-off-white, #faf8f5);
  padding-block: clamp(2.5rem, 5vw, 4.5rem) !important;
}

body.page-id-238477 #et-main-area .nysa-thank-you-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4.5vw, 4.5rem) !important;
}

.nysa-thank-you-layout > .et_pb_column {
  width: 100% !important;
  min-width: 0;
}

.nysa-thank-you-layout .nysa-thank-you-copy { row-gap: 1rem !important; }
.nysa-thank-you-layout .nysa-thank-you-copy .et_pb_module { margin-block: 0 !important; }

body.page-id-238477 #et-main-area .nysa-thank-you-layout h1 {
  font-family: 'DM Serif Display', Georgia, serif !important;
  font-weight: 400 !important;
  font-size: clamp(2rem, 1.2rem + 2.55vw, 3.5rem) !important;
  line-height: 1.1 !important;
  text-wrap: balance;
  padding-bottom: 0;
}

body.page-id-238477 #et-main-area .nysa-thank-you-received p {
  padding-bottom: 0;
  font-size: .8125rem;
  letter-spacing: .07em;
}

.nysa-thank-you-layout .nysa-thank-you-art :is(.et_pb_image, .et_pb_image_wrap, img) {
  display: block;
  width: 100%;
  margin: 0;
}

.nysa-thank-you-layout .nysa-thank-you-art img {
  height: auto;
  border-radius: 8px;
}

@media (max-width: 767px) {
  body.page-id-238477 #et-main-area .nysa-thank-you-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* Keep the portrait subjects visible in the taller phone crops. */
@media (max-width: 767px) {
  .page-id-239225 .nysa-photo-hero { --nysa-photo-mobile-position: 78%; }
  .page-id-238642 .nysa-photo-hero { --nysa-photo-mobile-position: 76%; }
  .page-id-238639 .nysa-photo-hero { --nysa-photo-mobile-position: 67%; }
}
