/* Layout-only corrections. All visible copy and imagery remain in WordPress. */

/* The legacy outer gallery grid constrained its only child to a narrow track. */
.nr-entry-body .nr-intro-gallery.wp-block-group {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  overflow: visible;
}
.nr-entry-body .nr-intro-gallery.wp-block-group > .wp-block-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 2.2fr 1fr 1fr;
  gap: 0;
  width: 100%;
  max-width: none;
  height: clamp(280px, 31vw, 603px);
  margin: 0;
  overflow: hidden;
}
.nr-entry-body .nr-intro-gallery .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
  display: block;
  width: 100% !important;
  max-width: none;
  min-width: 0;
  height: 100%;
  margin: 0;
}
.nr-entry-body .nr-intro-gallery .wp-block-gallery figure.wp-block-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The native Cover block already supplies the dim layer; don't overlay it twice. */
.nr-entry-body .wp-block-cover.nr-hero::before { content: none; }
.nr-entry-body .wp-block-cover.nr-hero {
  min-height: clamp(720px, 47vw, 900px) !important;
  padding: 215px 24px 165px;
}
.nr-entry-body .wp-block-cover.nr-hero .wp-block-cover__inner-container {
  width: 100%;
  max-width: 1120px;
}
.nr-entry-body .nr-hero h1 {
  font-size: clamp(42px, 4.5vw, 80px);
  line-height: 1.08;
  overflow-wrap: normal;
  text-wrap: balance;
}

/* In constrained Gutenberg groups, nested alignwide children were staying at
   the default content width instead of expanding to Figma's 1454px canvas. */
.nr-entry-body .nr-intro.wp-block-group > .nr-intro-copy.wp-block-columns,
.nr-entry-body .nr-room-section.wp-block-group > .nr-room-card.wp-block-columns,
.nr-entry-body .nr-breakfast-section.wp-block-group > .nr-feature-columns.wp-block-columns,
.nr-entry-body .nr-island-section.wp-block-group > .nr-feature-columns.wp-block-columns {
  width: min(calc(100% - 48px), 1454px) !important;
  max-width: 1454px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.nr-entry-body .nr-intro.wp-block-group > .nr-intro-copy.wp-block-columns {
  padding-top: 8px;
  padding-bottom: 100px;
  column-gap: clamp(45px, 6vw, 116px);
}
.nr-entry-body .nr-intro .nr-intro-copy > .wp-block-column { min-width: 0; }
.nr-entry-body .nr-intro .nr-intro-copy p:not(.nr-eyebrow) {
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.85;
}
.nr-entry-body .nr-intro .nr-intro-copy .wp-block-heading {
  font-size: clamp(25px, 1.7vw, 32px);
  line-height: 1.55;
}

/* Room imagery and copy should fill the wide cards, not a compact text column. */
.nr-entry-body .nr-room-section.wp-block-group {
  padding-top: 112px;
  padding-bottom: 150px;
}
.nr-entry-body .nr-room-section.wp-block-group > .nr-section-title.wp-block-group {
  width: min(calc(100% - 48px), 1000px) !important;
  max-width: 1000px !important;
  margin: 0 auto 90px !important;
  text-align: center;
}
.nr-entry-body .nr-room-section .nr-section-title .wp-block-heading {
  font-size: clamp(34px, 2.5vw, 48px);
  line-height: 1.2;
}
.nr-entry-body .nr-room-section .nr-section-title p:not(.nr-eyebrow) {
  max-width: 810px;
  margin-left: auto;
  margin-right: auto;
  font-size: 16px;
  line-height: 2;
}
.nr-entry-body .nr-room-section.wp-block-group > .nr-room-card.wp-block-columns {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 700px;
  margin-bottom: 92px !important;
}
.nr-entry-body .nr-room-section.wp-block-group > .nr-room-card.wp-block-columns:last-child { margin-bottom: 0 !important; }
.nr-entry-body .nr-room-card .nr-room-media {
  min-height: 700px;
  overflow: hidden;
}
.nr-entry-body .nr-room-card .nr-room-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 700px;
  object-fit: cover;
}
.nr-entry-body .nr-room-card .nr-room-copy.wp-block-group {
  width: 100%;
  max-width: none;
  padding: clamp(40px, 4.3vw, 80px);
  text-align: left;
}
.nr-entry-body .nr-room-card .nr-room-copy .wp-block-heading {
  font-size: clamp(30px, 2.1vw, 40px);
  line-height: 1.38;
}
.nr-entry-body .nr-room-card .nr-room-copy p:not(.nr-eyebrow) {
  font-size: 16px;
  line-height: 2;
}

/* Widen the breakfast/island compositions to match the Figma photography. */
.nr-entry-body .nr-breakfast-section.wp-block-group,
.nr-entry-body .nr-island-section.wp-block-group { padding: 125px 0; }
.nr-entry-body .nr-breakfast-section .nr-feature-columns.wp-block-columns,
.nr-entry-body .nr-island-section .nr-feature-columns.wp-block-columns {
  gap: clamp(55px, 5vw, 100px);
  align-items: center;
}
.nr-entry-body .nr-breakfast-section .nr-feature-columns > .wp-block-column,
.nr-entry-body .nr-island-section .nr-feature-columns > .wp-block-column {
  min-width: 0;
  flex-basis: 0;
}
.nr-entry-body .nr-breakfast-section figure,
.nr-entry-body .nr-island-section figure { width: 82%; max-width: none; }
.nr-entry-body .nr-breakfast-section figure + figure,
.nr-entry-body .nr-island-section figure + figure {
  width: 57%;
  max-width: none;
  margin: -25% 0 0 35%;
}
.nr-entry-body .nr-breakfast-section .wp-block-heading,
.nr-entry-body .nr-island-section .wp-block-heading {
  font-size: clamp(32px, 2.2vw, 42px);
  line-height: 1.3;
}
.nr-entry-body .nr-breakfast-section p:not(.nr-eyebrow),
.nr-entry-body .nr-island-section p:not(.nr-eyebrow) {
  font-size: 18px;
  line-height: 1.85;
}

/* The common footer is a Gutenberg synced pattern outside .nr-entry-body. */
.nr-footer .nr-footer-inner {
  width: min(calc(100% - 48px), 1454px);
  max-width: 1454px;
  margin: 0 auto;
}
.nr-footer .nr-footer-inner > .wp-block-heading {
  max-width: 850px;
  margin: 0 auto 40px;
  font-size: clamp(27px, 2vw, 35px);
  line-height: 1.6;
}
.nr-footer .nr-footer-inner > .wp-block-columns {
  max-width: 1100px;
  margin: 70px auto 55px;
  gap: 60px;
}
.nr-footer .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border-radius: 0;
  padding: 15px 30px;
  background: var(--nr-navy);
  color: #fff;
  font: 700 15px/1.5 var(--nr-body);
}
.nr-footer .wp-block-button__link:hover,
.nr-footer .wp-block-button__link:focus-visible {
  background: var(--nr-blue);
  color: var(--nr-navy);
}

@media (max-width: 1120px) {
  .nr-entry-body .nr-room-section.wp-block-group > .nr-room-card.wp-block-columns { min-height: 540px; }
  .nr-entry-body .nr-room-card .nr-room-media,
  .nr-entry-body .nr-room-card .nr-room-media img { min-height: 540px; }
  .nr-entry-body .nr-room-card .nr-room-copy.wp-block-group { padding: 35px; }
}
@media (max-width: 720px) {
  .nr-entry-body .wp-block-cover.nr-hero { min-height: 730px !important; padding: 290px 20px 120px; }
  .nr-entry-body .nr-intro-gallery.wp-block-group > .wp-block-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nr-entry-body .nr-intro-gallery .wp-block-gallery.has-nested-images figure.wp-block-image:nth-child(1),
  .nr-entry-body .nr-intro-gallery .wp-block-gallery.has-nested-images figure.wp-block-image:nth-child(5) { display: none; }
  .nr-entry-body .nr-intro.wp-block-group > .nr-intro-copy.wp-block-columns,
  .nr-entry-body .nr-room-section.wp-block-group > .nr-room-card.wp-block-columns,
  .nr-entry-body .nr-breakfast-section.wp-block-group > .nr-feature-columns.wp-block-columns,
  .nr-entry-body .nr-island-section.wp-block-group > .nr-feature-columns.wp-block-columns {
    width: calc(100% - 36px) !important;
  }
  .nr-entry-body .nr-room-section.wp-block-group { padding-top: 75px; padding-bottom: 75px; }
  .nr-entry-body .nr-room-section.wp-block-group > .nr-section-title.wp-block-group { margin-bottom: 48px !important; }
  .nr-entry-body .nr-room-section.wp-block-group > .nr-room-card.wp-block-columns {
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin-bottom: 35px !important;
  }
  .nr-entry-body .nr-room-card .nr-room-media,
  .nr-entry-body .nr-room-card .nr-room-media img { min-height: 0; height: 310px; }
  .nr-entry-body .nr-room-card .nr-room-copy.wp-block-group { padding: 30px 25px 36px; }
  .nr-entry-body .nr-breakfast-section.wp-block-group,
  .nr-entry-body .nr-island-section.wp-block-group { padding: 65px 0; }
  .nr-footer .nr-footer-inner { width: calc(100% - 36px); }
  .nr-footer .nr-footer-inner > .wp-block-columns { margin: 45px auto 35px; gap: 20px; }
}
