/* These rules affect the new components only; legacy pages keep their styles. */
.ssny-service-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.ssny-service-hero.ssny-service-hero--text-only { grid-template-columns: 1fr; }
.ssny-service-hero.section-split--media-left > .section-split__media { order: -1; }
.ssny-service-section--balanced .wp-block-columns.service-page-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ssny-service-section--full .wp-block-columns.service-page-layout { grid-template-columns: minmax(0, 1fr); }
.service-page-layout--editor .service-callout.ssny-consultation-callout::before { content: none; display: none; }
.service-callout.ssny-consultation-callout--deep { background: var(--ssny-brand-deep); }

.ssny-consultation-callout__icon {
  display: block;
  width: 74px;
  height: 88px;
  margin: 0 auto 1rem;
  object-fit: contain;
}
.ssny-consultation-callout__icon--camera { width: 96px; height: 80px; }
.ssny-consultation-callout__icon--entertainment { width: 121px; height: 50px; }
.ssny-consultation-callout__icon--network { width: 105px; height: 57px; }

.ssny-editable-video { position: relative; overflow: hidden; background: #10161d; }
.ssny-editable-video::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 14, 22, 0.72) 0%, rgba(8, 14, 22, 0.34) 34%, rgba(8, 14, 22, 0) 66%);
  pointer-events: none;
}
.ssny-editable-video .ssny-video-modal__dialog:focus { outline: none; }
.ssny-editable-video .ssny-video-modal__close:focus-visible,
.ssny-editable-video .ssny-shared-video__trigger:focus-visible { outline: 3px solid #ffda8f; outline-offset: -4px; }
.ssny-approved-form { margin-block: 1.5rem; }

@media (max-width: 700px) {
  .ssny-service-section--balanced .wp-block-columns.service-page-layout { grid-template-columns: minmax(0, 1fr); }
  .ssny-service-hero.section-split--media-left > .section-split__copy { order: 1; }
  .ssny-service-hero.section-split--media-left > .section-split__media { order: 2; }
}

/* Generic page-building layouts. Legacy pages do not use these selectors. */
.ssny-section--light { background: #edf4fa; }
.ssny-section--deep { background: #012340; color: #fff; }
.ssny-section--deep :is(h1,h2,h3,h4,p,li,label,summary) { color: inherit; }
.ssny-section--deep a:not(.wp-element-button):not(.button) { color: #fff; }
.ssny-section--deep .content-shell { background: transparent; }
.ssny-service-section .ssny-card-grid.wp-block-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1.5rem;
  align-items: stretch;
}
.ssny-card-grid > .wp-block-column { min-width: 0; margin: 0; }
:is(.ssny-editable-service,.ssny-service-section,.editor-styles-wrapper) .is-style-ssny-card,
:is(.ssny-editable-service,.ssny-service-section,.editor-styles-wrapper) .is-style-ssny-testimonial {
  box-sizing: border-box;
  padding: 1.5rem;
  border: 1px solid #d9e3ec;
  border-radius: 6px;
  background: #fff;
  color: #10161d;
  height: 100%;
  margin: 0;
}
.is-style-ssny-card > :first-child,
.is-style-ssny-testimonial > :first-child { margin-top: 0; }
.is-style-ssny-card > :last-child,
.is-style-ssny-testimonial > :last-child { margin-bottom: 0; }
.ssny-service-section :is(.wp-block-image img,.wp-block-media-text img) { max-width: 100%; height: auto; }
.ssny-service-section .wp-block-details { padding: 1rem 0; border-bottom: 1px solid #d9e3ec; }
.ssny-service-section .wp-block-details summary { cursor: pointer; font-weight: 700; }
.ssny-logo-grid { background: #fff; margin: 10px 0; padding: 15px 0; }
/* Keep the existing footer divider above a final logo block after moving it into the page. */
.ssny-editable-service > .ssny-logo-grid:last-child { border-top: 1px solid #dfe5ea; margin-top: 0; padding-top: 25px; }
.site-main:has(> .ssny-editable-service > .ssny-logo-grid:last-child) + .site-footer { border-top: 0; }
.ssny-logo-grid > .shell { max-width: 960px; width: calc(100% - 1rem); padding: 0 .5rem; }
.ssny-logo-grid h2 { text-align: center; }
.ssny-logo-grid .wp-block-gallery.has-nested-images { display: grid; width: 952px; grid-template-columns: repeat(var(--ssny-logo-columns,5),minmax(0,1fr)); margin: 0 auto; gap: 0 10px; grid-auto-rows: minmax(81px,auto); align-items: center; }
.ssny-logo-grid .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { width: auto !important; min-height: 73px; align-self: center; align-items: center; margin: 0; display: flex; justify-content: center; }
.ssny-logo-grid .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) img { max-height: var(--ssny-logo-image-height,73px); max-width: min(var(--ssny-logo-image-width,182.4px),100%) !important; width: auto !important; height: auto !important; object-fit: contain; flex: none; }
.ssny-logo-grid .columns-1 { --ssny-logo-columns: 1; }
.ssny-logo-grid .columns-2 { --ssny-logo-columns: 2; }
.ssny-logo-grid .columns-3 { --ssny-logo-columns: 3; }
.ssny-logo-grid .columns-4 { --ssny-logo-columns: 4; }
.ssny-logo-grid .columns-5 { --ssny-logo-columns: 5; }
.ssny-logo-grid .columns-6 { --ssny-logo-columns: 6; }
.ssny-logo-grid .columns-7 { --ssny-logo-columns: 7; }
.ssny-logo-grid .columns-8 { --ssny-logo-columns: 8; }
@media (min-width: 1121px) {
  .ssny-logo-grid .wp-block-gallery.has-nested-images.columns-5 { grid-template-columns: repeat(5,182.4px); }
}
@media (min-width: 701px) and (max-width: 1120px) {
  .ssny-logo-grid { --ssny-logo-image-width: 120px; --ssny-logo-image-height: 58px; }
  .ssny-logo-grid > .shell { max-width: none; }
  .ssny-logo-grid .wp-block-gallery.has-nested-images { width: 100%; column-gap: .5rem; grid-auto-rows: minmax(72px,auto); }
  .ssny-logo-grid .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { min-height: 64px; }
}
.ssny-service-hero--with-form { grid-template-columns: minmax(0,1fr) minmax(280px,0.8fr); }
.ssny-service-hero--with-form > .section-split__media { display: none; }
.ssny-service-hero__form { align-self: center; background: #fff; color: #10161d; margin: 2rem; padding: 1.5rem; border-radius: 6px; position: relative; z-index: 2; }
.ssny-service-hero__form h2 { font-size: 1.6rem; }
.ssny-service-hero__form .ssny-approved-form { margin: 0; }
.ssny-service-hero.section-split--media-background { position: relative; isolation: isolate; min-height: 420px; }
.ssny-service-hero.section-split--media-background > .section-split__media {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2;
}
.ssny-service-hero.section-split--media-background > .section-split__media img { width: 100%; height: 100%; object-fit: cover; }
.ssny-service-hero.section-split--media-background::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg,rgba(255,255,255,.98),rgba(255,255,255,.88) 40%,rgba(255,255,255,.12));
}
.ssny-service-hero.section-split--media-background > .section-split__copy { background: transparent; }
@media (max-width: 700px) {
  .ssny-service-hero.ssny-service-hero--with-form { grid-template-columns: minmax(0,1fr); }
  .ssny-service-hero__form { margin: 0 1rem 1.5rem; }
  .ssny-service-hero.section-split--media-background::after { background: rgba(255,255,255,.9); }
  .ssny-logo-grid { --ssny-logo-image-width: 118px; --ssny-logo-image-height: 54px; }
  .ssny-logo-grid > .shell { width: 100%; max-width: none; }
  .ssny-logo-grid .wp-block-gallery.has-nested-images { width: 100%; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .3rem .35rem; grid-auto-rows: minmax(58px,auto); }
  .ssny-logo-grid .wp-block-gallery.has-nested-images.columns-1 { grid-template-columns: minmax(0,1fr); }
  .ssny-logo-grid .wp-block-gallery.has-nested-images.columns-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ssny-logo-grid .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { min-height: 58px; }
}
@media (max-width: 480px) {
  .ssny-logo-grid { --ssny-logo-image-width: 98px; --ssny-logo-image-height: 48px; }
  .ssny-logo-grid .wp-block-gallery.has-nested-images { gap: .2rem .25rem; grid-auto-rows: minmax(52px,auto); }
  .ssny-logo-grid .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { min-height: 52px; }
}

.ssny-approved-form input:not([type=hidden]):not([type=submit]):not([type=checkbox]):not([type=radio]),
.ssny-approved-form textarea,
.ssny-approved-form select { width: 100%; box-sizing: border-box; font: inherit; color: #10161d; background: #fff; border: 1px solid #b9cad9; border-radius: 4px; padding: .65rem; }
.ssny-approved-form textarea { min-height: 8rem; }
.ssny-approved-form input[type=submit] { width: auto; max-width: 100%; background: #14569d; color: #fff; border: 0; border-radius: 5px; font: inherit; font-weight: 700; padding: .8rem 1.2rem; cursor: pointer; white-space: normal; }
