/* Page #23: Figma Gallery composition, built on the shared hero and native gallery plugin. */
.nr-entry-body .wp-block-cover.nr-hero.nr-gallery-hero {
  min-height: 711px !important;
  height: 711px;
  padding: 200px 24px;
}
.nr-entry-body .wp-block-cover.nr-gallery-hero .wp-block-cover__inner-container {
  max-width: 1100px;
}
.nr-entry-body .nr-gallery-hero .nr-eyebrow {
  margin: 0 0 16px;
  font-size: 16px;
  letter-spacing: 0;
}
.nr-entry-body .nr-gallery-hero h1 { font-size: clamp(52px, 5vw, 80px); }

.nr-entry-body .nr-full-gallery.nr-gallery-page {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  padding: 0 0 160px;
  background: #eff7fe;
}
.nr-entry-body .nr-gallery-page .nr-gallery-filters.wp-block-buttons {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  width: min(1440px, calc(100% - 48px));
  max-width: none;
  margin: 0 auto;
  padding: 60px 0;
}
.nr-entry-body .nr-gallery-page .nr-gallery-filters .wp-block-button { margin: 0; }
.nr-entry-body .nr-gallery-page .nr-gallery-filters .wp-block-button__link {
  border: 0;
  border-radius: 32px;
  padding: 12px 28px;
  background: #dfeffd;
  color: #041442;
  font: 600 15px/20px var(--nr-body);
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.nr-entry-body .nr-gallery-page .nr-gallery-filters .nr-gallery-filter.is-active .wp-block-button__link,
.nr-entry-body .nr-gallery-page .nr-gallery-filters .wp-block-button__link:hover {
  background: #012341;
  color: #fff;
}
.nr-entry-body .nr-gallery-page .nr-gallery-filters .wp-block-button__link:focus-visible,
.nr-entry-body .nr-gallery-page .nr-gallery-load-more .wp-block-button__link:focus-visible {
  outline: 3px solid #456e8d;
  outline-offset: 3px;
}

/* The gallery plugin supplies the native Gutenberg masonry layout and lightbox. */
.nr-entry-body .nr-gallery-page.wp-block-group > .nr-gallery-shell,
.nr-entry-body .nr-gallery-page.wp-block-group > figure.wp-block-gallery {
  box-sizing: border-box;
  width: min(1440px, calc(100% - 48px));
  max-width: 1440px;
  margin: 0 auto;
}
.nr-entry-body .nr-gallery-page .nr-gallery-shell[data-nr-current-layout="masonry"] > figure.nr-enhanced-gallery {
  column-gap: 24px !important;
  column-fill: balance;
  padding: 0 !important;
}
.nr-entry-body .nr-gallery-page .nr-gallery-shell[data-nr-current-layout="masonry"] > figure.nr-enhanced-gallery > figure.wp-block-image.nr-gallery-photo {
  display: inline-block !important;
  height: var(--nr-gallery-photo-height, 500px) !important;
  width: 100% !important;
  margin: 0 0 24px !important;
  break-inside: avoid;
  overflow: hidden;
}
.nr-entry-body .nr-gallery-page .nr-gallery-shell[data-nr-current-layout="masonry"] > figure.nr-enhanced-gallery > figure.wp-block-image.nr-gallery-photo img {
  display: block;
  width: 100%;
  height: 100% !important;
  aspect-ratio: auto !important;
  object-fit: cover;
}
.nr-gallery-page .nr-gallery-height-400 { --nr-gallery-photo-height: 400px; }
.nr-gallery-page .nr-gallery-height-420 { --nr-gallery-photo-height: 420px; }
.nr-gallery-page .nr-gallery-height-450 { --nr-gallery-photo-height: 450px; }
.nr-gallery-page .nr-gallery-height-480 { --nr-gallery-photo-height: 480px; }
.nr-gallery-page .nr-gallery-height-500 { --nr-gallery-photo-height: 500px; }
.nr-gallery-page .nr-gallery-height-520 { --nr-gallery-photo-height: 520px; }
.nr-gallery-page .nr-gallery-height-550 { --nr-gallery-photo-height: 550px; }
.nr-gallery-page .nr-gallery-height-600 { --nr-gallery-photo-height: 600px; }
.nr-gallery-page .nr-gallery-height-620 { --nr-gallery-photo-height: 620px; }
.nr-gallery-page .nr-gallery-height-650 { --nr-gallery-photo-height: 650px; }
.nr-gallery-page .nr-gallery-height-700 { --nr-gallery-photo-height: 700px; }
/* Native masonry uses display:inline-block!important; the hidden attribute must override that exact rule. */
.nr-entry-body .nr-gallery-page .nr-gallery-shell[data-nr-current-layout="masonry"] > figure.nr-enhanced-gallery > figure.wp-block-image.nr-gallery-photo[hidden],
.nr-entry-body .nr-gallery-page .nr-gallery-shell[data-nr-current-layout="grid"] > figure.nr-enhanced-gallery > figure.wp-block-image.nr-gallery-photo[hidden],
.nr-entry-body .nr-gallery-page .nr-gallery-shell[data-nr-current-layout="slider"] > figure.nr-enhanced-gallery > figure.wp-block-image.nr-gallery-photo[hidden],
.nr-entry-body .nr-gallery-page .nr-gallery-shell[data-nr-current-layout="strip"] > figure.nr-enhanced-gallery > figure.wp-block-image.nr-gallery-photo[hidden],
.nr-entry-body .nr-gallery-page .wp-block-gallery > figure.wp-block-image[hidden] { display: none !important; }

.nr-entry-body .nr-gallery-page .nr-gallery-load-more.wp-block-buttons {
  display: none;
  justify-content: center;
  margin: 0 auto;
  padding: 60px 24px 0;
}
/* Match the base selector's specificity so the JS-driven visible state wins. */
.nr-entry-body .nr-gallery-page .nr-gallery-load-more.wp-block-buttons.is-visible { display: flex; }
.nr-entry-body .nr-gallery-page .nr-gallery-load-more .wp-block-button__link {
  border: 1px solid #041442;
  border-radius: 0;
  background: transparent;
  color: #041442;
  padding: 16px 48px;
  font: 700 16px/22px var(--nr-body);
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}
.nr-entry-body .nr-gallery-page .nr-gallery-load-more .wp-block-button__link:hover {
  background: #041442;
  color: #fff;
}
@media (max-width: 1179px) {
  .nr-entry-body .nr-gallery-page .nr-gallery-filters.wp-block-buttons { padding: 46px 0; }
  .nr-entry-body .nr-gallery-page .nr-gallery-shell[data-nr-current-layout="masonry"] > figure.nr-enhanced-gallery > figure.wp-block-image.nr-gallery-photo {
    height: min(var(--nr-gallery-photo-height, 500px), 55vw) !important;
  }
}
@media (max-width: 767px) {
  .nr-entry-body .wp-block-cover.nr-hero.nr-gallery-hero {
    height: 600px;
    min-height: 600px !important;
    padding: 230px 20px 110px;
  }
  .nr-entry-body .nr-gallery-page .nr-gallery-filters.wp-block-buttons {
    width: calc(100% - 32px);
    padding: 36px 0;
    gap: 9px;
  }
  .nr-entry-body .nr-gallery-page .nr-gallery-filters .wp-block-button__link {
    padding: 10px 15px;
    font-size: 12px;
    line-height: 18px;
  }
  .nr-entry-body .nr-gallery-page.wp-block-group > .nr-gallery-shell,
  .nr-entry-body .nr-gallery-page.wp-block-group > figure.wp-block-gallery {
    width: calc(100% - 32px);
  }
  .nr-entry-body .nr-gallery-page .nr-gallery-shell[data-nr-current-layout="masonry"] > figure.nr-enhanced-gallery > figure.wp-block-image.nr-gallery-photo {
    height: min(var(--nr-gallery-photo-height, 500px), 86vw) !important;
    margin-bottom: 16px !important;
  }
  .nr-entry-body .nr-gallery-page .nr-gallery-load-more.wp-block-buttons { padding-top: 36px; }
  .nr-entry-body .nr-gallery-page .nr-gallery-load-more .wp-block-button__link { padding: 14px 22px; font-size: 13px; }
  .nr-entry-body .nr-full-gallery.nr-gallery-page { padding-bottom: 85px; }
}
@media (prefers-reduced-motion: reduce) {
  .nr-entry-body .nr-gallery-page .nr-gallery-filters .wp-block-button__link,
  .nr-entry-body .nr-gallery-page .nr-gallery-load-more .wp-block-button__link { transition: none; }
}
