/* 
Theme Name: JWU Theme
Author: NewCity
Author URI: https://insidenewcity.com
Description: A custom WordPress block theme for Johnson & Wales University.
Version: 0.1
Text Domain: jwu-theme
Tags: block-patterns, block-styles, full-site-editing
*/

/* Defaults
---------------------------------------- */

html {
	scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

a,
button,
input,
textarea,
.wp-element-button {
	transition: all 0.2s ease-in-out;
}

a,
a:focus,
a:hover,
a:not(.wp-element-button) {
	text-decoration-thickness: .06em;
  text-underline-offset: .2em;

}

a:focus,
a:hover {
  text-decoration-color: var(--wp--custom--color--accent--yellow);
  text-decoration-style: solid;
}

b,
strong,
th {
	font-weight: var(--wp--custom--font-weight--medium);
}

mark {
	font-size: var(--wp--preset--font-size--small);
	font-weight: var(--wp--custom--font-weight--regular);
	padding: 5px 8px;
}

/* -- Forms -- */

input,
select,
textarea {
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--contrast);
	border-radius: 0;
	box-sizing: border-box;
	color: var(--wp--preset--color--contrast);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: var(--wp--custom--font-weight--light);
	line-height: var(--wp--custom--line-height--medium);
	padding: 10px 15px;
	width: 100%;
}

input:focus,
textarea:focus {
	filter: brightness(95%);
	outline: none;
}

input[type="checkbox"],
input[type="image"],
input[type="radio"] {
	width: auto;
}

input[type="button"],
input[type="email"],
input[type="search"],
input[type="submit"],
input[type="text"],
textarea {
	-webkit-appearance: none;
}

::placeholder {
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	opacity: 0.5;
}

::selection {
	/* background-color: var(--wp--preset--color--quaternary);
	color: var(--wp--preset--color--contrast); */
}

/* Site Header
---------------------------------------- */

body.scroll-down .site-header {
	transform: translateY(-100%);
}

body.scroll-up .site-header {
	transform: translateY(0);
}

/* Blocks
---------------------------------------- */

.entry-content,
.nc-section-wrapper {
  overflow-x: hidden;
}

.wp-block-gallery.alignwide {
  max-width: 100%;
  box-sizing: border-box;
}

/* -- Cover -- */

.wp-block-cover.is-style-gradient .has-background-dim:not([class*=-background-color]) {
	background-color: transparent;
	background-image: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,1));
	opacity: 1;
}

/* -- Info Block -- */

.jwu-info-block .nc-highlight:last-of-type {
  margin-bottom: 0 !important;
}

.nc-logo-grid .wp-block-group.is-layout-grid {
  align-items: center;
  justify-items: center;
}

/* -- In-page alert -- */

.nc-in-page-alert .wp-block-paragraph {
  line-height: var(--wp--custom--line-height--medium);
}

/* -- In-page navigation -- */

.nc-in-page-navigation {
  display: flex;
  background-color: var(--wp--custom--color--neutral--300);
  line-height: var(--wp--custom--line-height--x-small);
  border-bottom: 1px solid var(--wp--custom--color--neutral--500);
}

.nc-in-page-navigation-title {
  margin: 0;
  margin-right: var(--wp--preset--spacing--md);
}

.nc-in-page-navigation-title::after {
  content: "/";
  color: var(--wp--custom--color--brand--bright-blue);
  display: inline-block;
  margin-left: var(--wp--preset--spacing--md);

}

.jwu-image-big-ctas {

  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: var(--wp--preset--spacing--xl);
  
  margin-top: var(--wp--preset--spacing--4-xl);
  margin-bottom: var(--wp--preset--spacing--5-xl);
}

.jwu-image-big-ctas .wp-block-image {
  max-width: 500px;
  margin: 0 !important;
}

.jwu-image-big-ctas .wp-block-image:not(:has(figcaption)) img {
  height: 100%;
}

.jwu-image-big-ctas:has(.wp-block-image) .jwu-image-big-ctas-cta {
  margin: 0 !important;
  min-width: 0;
  box-sizing: border-box;
  background-color: var(--wp--custom--color--accent--yellow);
  color: var(--wp--custom--color--brand--dark-blue);
  padding: var(--wp--preset--spacing--md) var(--wp--preset--spacing--xl) var(--wp--preset--spacing--xl);
  
  display: flex;
  flex-direction: column;

  max-width: 100%;

  container-type: inline-size;
}

.jwu-image-big-ctas .jwu-image-big-ctas-cta .wp-block-heading {
  text-transform: uppercase;
  font-family: var(--wp--preset--font-family--primary-condensed);
  font-size: var(--wp--preset--font-size--display-1);
}

.jwu-image-big-ctas .jwu-image-big-ctas-cta .wp-block-buttons {
  margin-top: auto;
  /* gap: var(--wp--preset--spacing--none); */
}

.jwu-image-big-ctas .jwu-image-big-ctas-cta .wp-block-buttons .wp-block-button__link {
  font-size: clamp(22px, 18cqw, 38px);
}


@media (max-width: 780px) {

  .jwu-image-big-ctas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    max-height: none;
  }

  .jwu-image-big-ctas .wp-block-image {
    grid-column: 1 / -1;
    padding-top: var(--wp--preset--spacing--xl);
    max-width: none;
    width: 100%;
  }

  .jwu-image-big-ctas .wp-block-image img {
    height: auto !important;
  }

  .jwu-image-big-ctas:has(.wp-block-image) .jwu-image-big-ctas-cta {
    min-width: 0;
    width: auto;
    padding: var(--wp--preset--spacing--md);
  }

  .jwu-image-big-ctas .jwu-image-big-ctas-cta .wp-block-buttons .wp-block-button__link {
    font-size: var(--wp--preset--font-size--h-3);
  }
}

@media (max-width: 600px) {
  .jwu-image-big-ctas:has(.wp-block-image) .jwu-image-big-ctas-cta {
    grid-column: 1 / -1;
  }
}

.jwu-image-big-ctas:has( + .wp-block-newcity-fast-facts-grid ) {
  margin-bottom: var(--wp--preset--spacing--xl) !important;
}

/* -- Intro Block -- */

.jwu-intro-block.wp-block-group {
  margin-block-end: var(--wp--preset--spacing--3-xl);
}

.jwu-intro-block .wp-block-paragraph {
  font-size: var(--wp--preset--font-size--lg);
  line-height: var(--wp--custom--line-height--medium);
}


/* -- Slidebar Related Links -- */

.nc-sidebar-related-links {
  background-color: var(--wp--custom--color--accent--superlight-yellow);
  padding: var(--wp--preset--spacing--lg) !important;
  line-height: var(--wp--custom--line-height--medium);
}

.editor-styles-wrapper .nc-sidebar-related-links {
  margin-right: var(--wp--preset--spacing--3-xl);
 }

.nc-sidebar-related-links strong {
  font-size: var(--wp--preset--font-size--lg);
}

.nc-sidebar-related-links.is-layout-constrained > * {
  margin-block-start: var(--wp--preset--spacing--base);
}

/* -- Sidebar Inset -- */

.jwu-fancy-page-header:has(+ .jwu-secondary-navigation-inset) .jwu-fancy-page-header__bg {
  --inset: 400px;
  padding-bottom: calc(var(--wp--preset--spacing--3-xl) + var(--inset));
}

.jwu-fancy-page-header + .jwu-secondary-navigation-inset {
  background-color: var(--wp--preset--color--base);
  --inset: 400px;
  margin-top: calc(-1 * var(--inset));
  --wp--style--global--wide-size: calc( 1200px + var(--wp--preset--spacing--3-xl) * 2 );
  padding-block: var(--wp--preset--spacing--3-xl);
  border-top: 8px solid #5DC88F;
  box-shadow: 0 4px 44px 0 rgba(0, 0, 0, 0.05);
}

.jwu-secondary-navigation {
  background-color: var(--wp--preset--color--base);
  --wp--style--global--wide-size: calc( 1200px );
}

.jwu-secondary-navigation-inset + .alignfull {
  margin-top: 0 !important;
}

.jwu-secondary-navigation-inset .jwu-secondary-navigation .wp-block-column :first-child:is( .nc-in-page-navigation ) {
  margin-block-start: 0 !important;
}

/* -- News -- */

/* Utility
---------------------------------------- */

/* -- Position -- */

.is-style-position-fixed {
	position: fixed;
}

.is-style-position-relative {
	position: relative;
}

/* -- Z-Index -- */

.is-style-negative-zindex {
	z-index: -99;
}

.is-style-positive-zindex {
	z-index: 99;
}

/* Media Queries
---------------------------------------- */

@media only screen and (max-width: 600px) {

	/* -- Utility -- */

	.is-style-hidden-mobile {
		display: none !important;
	}

}

@media only screen and (max-width: 782px) {

	/* -- Columns -- */

	.wp-block-columns.is-style-column-reverse {
		flex-direction: column-reverse;
	}

}

/* -- Site Alert -- */

.nc-site-alert {
  padding: 1rem;
}

.nc-site-alert__content {
  display: flex;
  flex-direction: row;
}

.nc-site-alert--emergency {
  background-color: var(--wp--custom--color--semantic--danger);
  color: var(--wp--preset--color--base);
}

.nc-site-alert--emergency .nc-site-alert__content::before {
  content: url(assets/icons/icon-alert-error.svg);
  display: block;
  width: var(--wp--preset--spacing--3xl);
  height: var(--wp--preset--spacing--3xl);
  padding-inline: var(--wp--preset--spacing--lg);
}

.nc-site-alert--warning {
  background-color: var(--wp--custom--color--semantic--orange);
  color: var(--wp--custom--color--semantic--orange-dark);
}

.nc-site-alert--warning .nc-site-alert__content::before {
  content: url(assets/icons/icon-alert-warning.svg);
  display: block;
  width: var(--wp--preset--spacing--3xl);
  height: var(--wp--preset--spacing--3xl);
  padding-inline: var(--wp--preset--spacing--lg);
}

.nc-site-alert--success {
  background-color: var(--wp--custom--color--semantic--green-dark);
  color: var(--wp--preset--color--base);
}

.nc-site-alert--success .nc-site-alert__content::before {
  content: url(assets/icons/icon-alert-success.svg);
  display: block;
  width: var(--wp--preset--spacing--3xl);
  height: var(--wp--preset--spacing--3xl);
  padding-inline: var(--wp--preset--spacing--lg);
}

.nc-site-alert--informational {
  background-color: var(--wp--custom--color--brand--bright-blue-aa);
  color: var(--wp--preset--color--base);
}

.nc-site-alert--informational .nc-site-alert__content::before {
  content: url(assets/icons/icon-alert-information.svg);
  display: block;
  width: var(--wp--preset--spacing--3xl);
  height: var(--wp--preset--spacing--3xl);
  padding-inline: var(--wp--preset--spacing--lg);
}

.nc-site-alert--emergency :where(:not(.wp-element-button)),
.nc-site-alert--success :where(:not(.wp-element-button)),
.nc-site-alert--informational :where(:not(.wp-element-button)) {
  color: var(--wp--preset--color--base);
}

.nc-site-alert--warning :where(:not(.wp-element-button)) {
  color: var(--wp--custom--color--semantic--orange-dark);
}


.nc-site-alert__heading {
  font-size: var(--wp--preset--font-size--h-4);
  font-weight: var(--wp--custom--font-weight--semi-bold);
}

.nc-site-alert__description {
  margin: 0;
}

@media (max-width: 720px) {

  .nc-site-alert__content {
    flex-direction: column;
  }

  .nc-site-alert__content::before {
    padding-inline: 0;
  }
}

@media (max-width: 1100px) {
  
  .utility-wrap {
   display: none !important;
  }

  .main-nav {
    display: none !important;
  }

}

.jwu-footer {
  border-top: 8px solid var(--wp--custom--color--brand--bright-blue);
}

.jwu-footer-logo{
  margin-left: 0 !important;
}

.jwu-footer-back-to-top-wrap {
  display: flex;
  justify-content: flex-end;
}

.jwu-footer-back-to-top-wrap .jwu-footer-back-to-top {
  margin-left: auto !important;
  margin-right: 0 !important;
}

.jwu-footer-back-to-top a {
  position: relative;
  top: -1px;
  text-transform: uppercase;
  font-family: var(--wp--preset--font-family--primary-condensed);
  color: var(--wp--preset--color--base);
  background-color: var(--wp--custom--color--brand--bright-blue-aa);
  padding: var(--wp--preset--spacing--sm) var(--wp--preset--spacing--base);
  text-decoration: none;
}

.jwu-footer-back-to-top a:hover,
.jwu-footer-back-to-top a:focus-visible {
  background-color: var(--wp--custom--color--accent--yellow);
  color: var(--wp--preset--color--primary);
}

.jwu-footer-wrap .wp-block-list {
  padding-left: 0;
  list-style: none;
}

.jwu-footer-logo-wrap {
  display: flex;
  align-items: flex-start;
}

.jwu-footer-logo-wrap .jwu-footer-logo {
  margin-left: 0 !important;
}

.jwu-footer-wrap .wp-block-list a {
  font-weight: var(--wp--custom--font-weight--medium);
  color: var(--wp--custom--color--brand--superlight-blue-b);
}

.jwu-footer-wrap .wp-block-separator {
  color: var(--wp--custom--color--accent--yellow);
  border-width: 2px 0 0;
  width: 120px;
  margin-inline: 0 !important;
}

.jwu-footer-wrap .jwu-footer-tel a {
  font-weight: var(--wp--custom--font-weight--medium);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--wp--preset--spacing--xs);
}

.jwu-footer-wrap .jwu-footer-tel a::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-image: url(assets/icons/icon-smartphone.svg);
  background-size: contain;
  background-repeat: no-repeat;
}


.jwu-footer-wrap .wp-block-social-links {
  gap: var(--wp--preset--spacing--base);
}

.jwu-footer-wrap .wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:hover,
.jwu-footer-wrap .wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:focus-visible {
  color: var(--wp--preset--color--base);
  fill: var(--wp--preset--color--base);
}

.jwu-footer-wrap .jwu-footer-col4 .wp-block-buttons.is-style-nc-fancy-link-group {
  margin-top: var(--wp--preset--spacing--xl);
  margin-inline: 0 !important; 
}

.jwu-footer-wrap .is-style-nc-fancy-link-group .wp-block-button__link {
  color: var(--wp--custom--color--brand--superlight-blue-b);
}

.jwu-footer-sub .jwu-footer-sub-content {
  display: flex;
  flex-direction: column;
  color: var(--wp--custom--color--neutral--300);
  font-size: var(--wp--preset--font-size--sm);
}

.jwu-footer-sub .jwu-footer-sub-content .jwu-footer-copyright,
.jwu-footer-sub .jwu-footer-sub-content .jwu-footer-notice {
  margin: 0 !important;
}

.jwu-footer-sub .jwu-footer-sub-content .jwu-footer-notice a {
  display: inline-block;

  font-weight: var(--wp--custom--font-weight--medium);
}

.jwu-footer-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-areas:
    "col2 col3"
    "col4 col4"
    "col1 col1";
  margin-block-start: var(--wp--preset--spacing--sm) !important;
}

.jwu-footer-wrap .jwu-footer-col1 {
  grid-area: col1;
  padding-block: var(--wp--preset--spacing--lg) var(--wp--preset--spacing--2-xl);
}

.jwu-footer-wrap .jwu-footer-col2 {
  grid-area: col2;
  padding-block: var(--wp--preset--spacing--lg);
  margin-block-start: var(--wp--preset--spacing--none) !important;
}

.jwu-footer-wrap .jwu-footer-col3 {
  grid-area: col3;
  padding-block: var(--wp--preset--spacing--lg);
  margin-block-start: var(--wp--preset--spacing--none) !important;
}

.jwu-footer-wrap .jwu-footer-col4 {
  grid-area: col4;
  padding-block: var(--wp--preset--spacing--lg);
  margin-block-start: var(--wp--preset--spacing--none) !important;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.jwu-footer-wrap .wp-block-social-links.has-large-icon-size {
  font-size: 32px;
}

.jwu-footer-wrap .jwu-footer-col1,
.jwu-footer-wrap .jwu-footer-col2,
.jwu-footer-wrap .jwu-footer-col3,
.jwu-footer-wrap .jwu-footer-col4 {
  justify-self: start;
  margin-inline: 0 !important;
}

.jwu-footer-sub {
  margin-block-start: var(--wp--preset--spacing--none) !important;
  background: #00305C;
  border-bottom: 8px solid #002548;
}

@media (min-width: 720px) {

  .jwu-footer-wrap {
    display: flex;
    flex-direction: row;
    justify-content: space-between; 
    margin-block: var(--wp--preset--spacing--lg) var(--wp--preset--spacing--3-xl);
  }

  .jwu-footer-wrap .jwu-footer-col1,
  .jwu-footer-wrap .jwu-footer-col2,
  .jwu-footer-wrap .jwu-footer-col3,
  .jwu-footer-wrap .jwu-footer-col4 {
    margin: 0 !important;
    padding-bottom: var(--wp--preset--spacing--3-xl);
  }

  .jwu-footer-wrap .jwu-footer-col4 .wp-block-buttons.is-style-nc-fancy-link-group {
    margin-top: auto;
  }

  .jwu-footer-sub {
    background: linear-gradient(109deg, #001D38 0.79%, var(--color-dark-blue, #004483) 99.72%);
    border-bottom: none;
  }

  .jwu-footer-sub .jwu-footer-sub-content {
    flex-direction: row;
  }

  .jwu-footer-sub .jwu-footer-copyright::after  {
    content: "|";
    color: var(--wp--custom--color--neutral--500);
    margin: 0 var(--wp--preset--spacing--sm);
  }

}


/* -- Vertical Video Feature -- */

.jwu-vertical-video-feature {
	container-type: inline-size;
  background: linear-gradient(109deg, #001D38 0.79%, #004483 99.72%);
  color: white;
  position: relative;
}

.jwu-vertical-video-feature::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  background-color: lightgray;
  opacity: .25;
  -webkit-mask-image: url("assets/images/bg-jwu-welcome-constellation.svg");
  mask-image: url("assets/images/bg-jwu-welcome-constellation.svg");
  mask-size: cover;
  mask-position: center;
  mask-repeat: no-repeat;
}

.jwu-vertical-video-feature.jwu-vertical-video-feature > * {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  position: relative;
}

@container (min-width: 1080px) {
  .jwu-vertical-video-feature.jwu-vertical-video-feature > * {
    grid-template-columns: repeat(11, minmax(0, 1fr));
    gap: 3rem;
  }
}

@container (min-width: 1080px) {
  .jwu-vertical-video-feature.jwu-vertical-video-feature > * > :first-child {
    grid-column: span 5 / span 5;
    align-self: center;
  }

  .jwu-vertical-video-feature.jwu-vertical-video-feature > * > :last-child {
    grid-column: span 6 / span 6;
  }
}

.jwu-vertical-video-feature-videos-wrap {
  display: flex;
  gap: 1.5rem;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: clip;
  padding-bottom: 1rem;
  justify-items: center;
  justify-self: center;
  margin-left: calc(var(--wp--style--root--padding-left) * -1) !important;
  margin-right: calc(var(--wp--style--root--padding-right) * -1) !important;
  padding-left: var(--wp--style--root--padding-left);
  padding-right: var(--wp--style--root--padding-right);
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-color: var(--wp--custom--color--brand--bright-blue) black;
  scrollbar-width: thin;
}

@container (min-width: 480px) {
  .jwu-vertical-video-feature-videos-wrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: stretch;
    max-width: 700px;
    overflow-x: visible;
    overflow-y: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
  }
}

@container (min-width: 720px) {
  .jwu-vertical-video-feature-videos-wrap {
    gap: 2rem;
  }
}

@container (min-width: 1200px) {
  .jwu-vertical-video-feature-videos-wrap {
    gap: 3rem;
  }
}

.jwu-vertical-video-feature-video-wrap {
  margin: 0 !important;
  max-width: max(80%, 220px);
  min-width: max(80%, 220px);
  scroll-snap-align: center;
}

@supports (animation-timeline: view()) {
  .jwu-vertical-video-feature-video-wrap {
    animation: carousel-item linear both;
    animation-timeline: view(inline);
    animation-range: cover 0% cover 100%;

    .wp-block-pullquote {
      animation: pullquote-item linear both;
      animation-timeline: view(inline);
      animation-range: cover 0% cover 100%;
      z-index: 3;
    }
  }
}

@keyframes carousel-item {
  0% { opacity: .4; scale: 0.85; }
  25%, 75% { opacity: 1; scale: 1; }
  100% { opacity: .4; scale: 0.85; }
}

@keyframes pullquote-item {
  0%, 35% { opacity: 0; }
  40%, 60% { opacity: 1; }
  65%, 100% { opacity: 0; }
}

@container (min-width: 480px) {
  .jwu-vertical-video-feature-video-wrap {
    max-width: none;
    min-width: auto;
    animation: none;

    .wp-block-pullquote {
      animation: none;
    }
  }
}

.jwu-vertical-video-feature-video-wrap .wp-block-pullquote {
  border: none;
  margin: 0;
  padding: 0;
  padding-top: 1.25rem;
  padding-left: 2.5rem;
  text-align: left;
  position: relative;
}

.jwu-vertical-video-feature-video-wrap .wp-block-pullquote::before {
  content: "";
  position: absolute;
  top: -2rem;
  left: 0;
  width: 2px;
  height: 140px;
  background: linear-gradient(to top, #FFCC35 0%, #FF7800 100%);
  rotate: 15deg;
  transform-origin: bottom left;
  z-index: 2;
  pointer-events: none;
}

.jwu-vertical-video-feature-video-wrap .wp-block-pullquote blockquote {
  font-size: var(--wp--preset--font-size--lg);
  font-family: var(--wp--preset--font-family--primary);
  line-height: 1.35;
}

.jwu-vertical-video-feature-video-wrap .wp-block-pullquote blockquote cite {
  font-size: var(--wp--preset--font-size--base);
  margin-top: .75rem;
}

.jwu-vertical-video-feature-video-wrap .wp-block-pullquote blockquote cite::before {
  content: "—";
  content: "—" / "";
  margin-right: .15em;
}


/* decorative carousel */

.jwu-decorative-carousel .wp-block-gallery {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem !important;
  max-width: none !important;
  padding-left:var(--wp--style--root--padding-left);
  padding-right: var(--wp--style--root--padding-right);
  margin-right: calc(var(--wp--style--root--padding-right) * -1) !important;
  margin-left: calc(var(--wp--style--root--padding-left) * -1) !important;
  overflow-x: auto;
  scrollbar-color: var(--wp--custom--color--brand--bright-blue) black;
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
}

/* Progressive enhancement: keep native scrollbar unless JS enhances. */
.jwu-decorative-carousel .jwu-decorative-carousel__scrollbar {
  display: none;
  margin-top: 1rem;
}

.jwu-decorative-carousel.jwu-decorative-carousel--js .wp-block-gallery {
  scrollbar-width: none; /* Firefox */
}

.jwu-decorative-carousel.jwu-decorative-carousel--js .wp-block-gallery::-webkit-scrollbar {
  height: 0;
}

.jwu-decorative-carousel.jwu-decorative-carousel--enhanced .jwu-decorative-carousel__scrollbar {
  display: block;
}

.jwu-decorative-carousel__scrollbar-track {
  width: min(520px, 70vw);
  height: 12px;
  margin: 0 auto;
  background: #000;
  border-radius: 999px;
  position: relative;
  padding: 2px;
  box-sizing: border-box;
  overflow: hidden;
}

.jwu-decorative-carousel__scrollbar-thumb {
  position: absolute;
  top: 2px;
  left: 0;
  height: 8px;
  width: 44px;
  background: var(--wp--custom--color--brand--bright-blue);
  border-radius: 999px;
  transform: translateX(0);
  will-change: transform, width;
  cursor: grab;
}

.jwu-decorative-carousel__scrollbar-thumb:active {
  cursor: grabbing;
}

@media screen and (min-width: 1250px) {
  .jwu-decorative-carousel .wp-block-gallery {
    padding-left: calc((100vw - var(--wp--style--root--padding-left) - var(--wp--style--global--wide-size)) / 2);
  }
}

.jwu-decorative-carousel .wp-block-gallery .wp-block-image {
  scroll-snap-align: center;
  height: 160px;
  width: auto !important;
  min-width: max-content;
  max-width: max-content !important;  
}

@media screen and (min-width: 600px) {
  .jwu-decorative-carousel .wp-block-gallery .wp-block-image {
    height: 280px;
  }
}

.jwu-decorative-carousel .wp-block-gallery .wp-block-image img {
  width: auto !important;
  object-fit: fill !important;
}

.jwu-decorative-carousel .wp-block-gallery figcaption {
  display: none;
}

/* Vertical Rhythm */

:is( .nc-section-wrapper, .nc-section-navigation, .nc-feature-overlap, .wp-block-newcity-program-page-header, .jwu-fancy-page-header, .wp-block-newcity-fancy-feature, .nc-gallery, .jwu-decorative-carousel, .jwu-vertical-video-feature, .wp-block-newcity-fancy-feature, .jwu-info-block ) + 
:is( .nc-section-wrapper, .nc-feature-overlap, .jwu-fancy-page-header, .wp-block-newcity-fancy-feature, .nc-gallery, .jwu-decorative-carousel, .jwu-vertical-video-feature, .wp-block-newcity-fancy-feature, .jwu-info-block ) {
  margin-block-start: var(--wp--preset--spacing--none) !important;
}

.entry-content > :last-child:not( .nc-section-wrapper, .nc-feature-overlap, .jwu-fancy-page-header, .nc-gallery, .is-home-crest-light, .wp-block-newcity-fancy-feature, .jwu-info-block ) { 
  margin-block-end: var(--wp--preset--spacing--6-xl) !important;
}