/*
Theme Name: Broadway Dallas - Block Based Theme
Author: Johnson& Sekin.
Description: Custom theme for Broadway Dallas.
Version: 3.6.5.
Requires at least: 5.8.4.
Tested up to: 6.0.
Requires PHP: 5.6.40.
License: The license of the theme.
License URI: The URL of the theme license.
Text Domain: The string used for textdomain for translation. The theme slug.
*/

/* old school fonts via font face */
/*================ #Font Variables ================*/
/* Font Families */
@font-face {
  font-family: "Waverly";
  src: url("/wp-content/themes/dsm/fonts/waverly/waverly-bold.woff2");
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: "Waverly";
  src: url("/wp-content/themes/dsm/fonts/waverly/waverly-demibold.woff2");
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: "Waverly";
  src: url("/wp-content/themes/dsm/fonts/waverly/waverly-medium.woff2") format("woff2"), url("/wp-content/themes/dsm/fonts/waverly/waverly-medium.otf") format("otf");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Averta";
  src: url("/wp-content/themes/dsm/fonts/averta/averta-regular.woff2");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Averta";
  src: url("/wp-content/themes/dsm/fonts/averta/averta-regular-italic.woff2");
  font-weight: normal;
  font-style: italic;
}
@font-face {
  font-family: "Averta";
  src: url("/wp-content/themes/dsm/fonts/averta/averta-bold.woff2");
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: "Averta";
  src: url("/wp-content/themes/dsm/fonts/averta/averta-bold-italic.woff2");
  font-weight: bold;
  font-style: italic;
}
@font-face {
  font-family: "Averta";
  src: url("/wp-content/themes/dsm/fonts/averta/averta-semibold.woff2");
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: "Averta";
  src: url("/wp-content/themes/dsm/fonts/averta/averta-semibold-italic.woff2");
  font-weight: 600;
  font-style: italic;
}

:root {
  --font-family-heading: "Waverly";
  --font-family-body: "Averta";

  --preferred-transition: var(--preferred-transition);
}

/*
 * Increase horizontal padding on smaller screens.
 * Temporary solution to avoid text content
 * running up to the edge of the browser window,
 * making the text difficult to read.
*/
/* @media (max-width: 1024px) {
  main > :not(.alignfull),
  main .wp-block-query > :not(.alignfull),
  main .entry-content > :not(.alignfull):not(ul):not(ol),
  main .entry-content .wp-block-columns.alignfull p {
    padding-left: var(--wp--custom--h-spacing);
    padding-right: var(--wp--custom--h-spacing);
  }
} */

.has-background:not(.has-neutral-300-opaque-background-color):not(.has-neutral-300-background-color):not(.has-neutral-100-background-color) a:not(.wp-block-button__link) {
  color: var(--wp--preset--color--neutral-100);
}
.has-neutral-300-opaque-background-color a:not(.wp-block-button__link),
.has-neutral-300-background-color a:not(.wp-block-button__link) {
  color: var(--wp--preset--color--secondary-500);
}
.wp-block-cover .has-background-dim-100 + img + .wp-block-cover__inner-container a:not(.wp-block-button__link) {
  color: var(--wp--preset--color--tertiary);
}

/* #blocksContent {
  margin-block-start: var(--wp--custom--spacing-blockgap, 3rem);
} */

/* set colors for backgrounds */
.has-primary-background-color p {
  color: var(--wp--preset--color--neutral-100);
}
.has-primary-background-color h1,
.has-primary-background-color h2,
.has-primary-background-color h3,
.has-primary-background-color h4,
.has-primary-background-color h5,
.has-primary-background-color h6 {
  color: var(--wp--preset--color--tertiary);
}

/* add space just between groups or groups and media+texts */
/* remove */
.wp-block-group + .wp-block-group,
.wp-block-media-text + .wp-block-media-text,
.wp-block-columns + .wp-block-columns,
/* .wp-block-cover + .wp-block-cover, */
.wp-block-group + .wp-block-media-text,
.wp-block-group + .wp-block-columns,
/* .wp-block-group + .wp-block-cover, */
.wp-block-media-text + .wp-block-group,
.wp-block-media-text + .wp-block-columns,
/* .wp-block-media-text + .wp-block-cover, */
.wp-block-columns + .wp-block-group,
.wp-block-columns + .wp-block-media-text
/* .wp-block-columns + .wp-block-cover, */
/* .wp-block-cover + .wp-block-group, */
/* .wp-block-cover + .wp-block-media-text, */
/* .wp-block-cover + .wp-block-columns { */ {
  margin-block-start: calc(3 * var(--wp--custom--spacing-blockgap, 3rem));
}
.is-layout-flex .wp-block-group + .wp-block-group,
.wp-block-cover + .wp-block-cover {
  margin-block-start: 0;
}

/*
===
--==--==> LINK STYLING <==--==--
===
 */
.bg-white a,
.bg-light a {
  color: var(--wp--preset--color--primary);
  font-weight: bold;
}
.bg-dark a {
  color: var(--wp--preset--color--white);
  font-weight: bold;
}

/*
===
--==--==> NAVIGATION STYLING <==--==--
===
 */

/*
==================================
--==--==> HEADER STYLING  <==--==--
========= (mobile first) =========
==================================
 */
#masthead {
  max-width: var(--wp--custom--layout-contentsize, min(1200px, 90%));
  margin-inline: auto;

  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;

  gap: 2rem;

  --site-branding-logo-size: 15rem;
}
#masthead a {
  text-decoration: none;
  font-size: var(--wp--preset--font-size--300);
}
#siteNavigation a {
  color: var(--wp--preset--color--neutral-900);
}
#siteNavigation .sub-menu a:not([href]):hover {
  opacity: 1;
}
#goldBarMenu a {
  color: var(--wp--preset--color--neutral-100);
  font-weight: bold;
}
#mainNav a:hover {
  opacity: 0.7;
}

.site-branding {
  width: var(--site-branding-logo-size);
}
.custom-logo {
  width: 100%;
  height: auto;
}

#masthead ul {
  list-style: none;
}
#masthead li {
  line-height: 1;
  margin-block: 0.5em;
}

.important-navigation {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  order: -1;

  position: absolute;
  top: 0;
  right: 0;

  z-index: 1000;
}
#goldBarMenu {
  display: flex;
  list-style: none;
  gap: 1rem;

  padding: 0.25rem 2rem;
  margin: 0;

  background: var(--wp--preset--color--secondary-500);
  color: var(--wp--preset--color--neutral-100);
}

/* see: https://codepen.io/alvarotrigo/pen/MWEJEWG */
.navigation-container {
  --toggle-size: 2rem;
}
.menu-button-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
#menuToggle {
  opacity: 0;
}
#menuToggle,
.menu-button-container {
  cursor: pointer;

  z-index: 510;

  height: var(--toggle-size);
  width: var(--toggle-size);

  position: absolute;
  top: calc(2 * var(--toggle-size));
  right: var(--toggle-size);
}
.menu-button,
.menu-button::before,
.menu-button::after {
  display: block;
  background-color: var(--wp--preset--color--primary-opaque);
  position: absolute;
  height: 0.25rem;
  width: var(--toggle-size);
  margin: 1rem 0;
  transition: rotate 400ms var(--preferred-transition);
  border-radius: 0.25rem;
}
.menu-button::before {
  content: "";
  margin-top: -0.5rem;
}
.menu-button::after {
  content: "";
  margin-top: 0.5rem;
}
#menuToggle:checked + .menu-button-container .menu-button::before {
  margin-top: 0rem;
  transform: rotate(405deg);
}
#menuToggle:checked + .menu-button-container .menu-button {
  background: transparent;
}
#menuToggle:checked + .menu-button-container .menu-button::after {
  margin-top: 0rem;
  transform: rotate(-405deg);
}

#siteNavigation {
  z-index: 501;
}
#mainNav > .menu-item-has-children.clicked {
  z-index: 502;
}

#siteNavigation,
#mainNav > .menu-item-has-children.clicked {
  position: fixed;

  right: 0;
  top: 0;

  min-width: 50vw;
  height: 100vw;

  background: var(--wp--preset--color--neutral-300-opaque);

  display: flex;
  /* justify-content: center; */
  padding: 3rem;
}
#mainNav,
#mainNav > .menu-item-has-children.clicked {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: column;
}

#mainNav > .menu-item-has-children > .sub-menu {
  display: none;
}
#mainNav > .menu-item-has-children.clicked > .sub-menu {
  display: unset;
}
#mainNav > .menu-item-has-children.clicked .sub-menu {
  padding-inline: 1rem;
}

.menu-button-container {
  display: block;
}
#menuToggle ~ #siteNavigation {
  right: -100%;
  opacity: 0.5;
}
#menuToggle:checked ~ #siteNavigation {
  right: 0;
  opacity: 1;
}
#menuToggle ~ #siteNavigation,
#menuToggle:checked ~ #siteNavigation {
  transition: right 0.75s var(--preferred-transition), opacity 500ms var(--preferred-transition);
}

@media screen and (max-width: 1150px) {
  #mainNav > .menu-item-has-children > a::after {
    content: ">";
    padding-inline: 0.5em;
    display: inline-block;
    transition: rotate 0.5s var(--preferred-transition);
  }
  #mainNav > .menu-item-has-children.clicked > a::after {
    transform: rotate(90deg);
  }

  .important-navigation {
    position: static;
    width: 105%;
    margin-inline-end: -5%;
  }

  #menuToggle,
  .menu-button-container {
    top: calc(3.5 * var(--toggle-size));
  }
}
@media screen and (min-width: 1150px) {
  #menuToggle,
  .menu-button-container {
    display: none;
  }
  .navigation-container {
    width: calc(100% - var(--site-branding-logo-size) - 2rem);
  }
  #menuToggle ~ #siteNavigation {
    min-width: unset;
    height: unset;

    background: unset;

    position: relative;
    right: unset;
    top: unset;

    opacity: 1;
  }
  #mainNav {
    display: flex;
    flex-wrap: wrap;

    flex-direction: row;

    gap: 1rem;
  }

  #mainNav > .menu-item {
    position: relative;
  }
  #mainNav > .menu-item-has-children > .sub-menu {
    display: none;

    position: absolute;

    padding: 0 1rem;

    top: -0.5rem;
    left: -1.5rem;

    z-index: 10;

    min-width: 17rem;
    max-width: 50vw;

    background-color: var(--wp--preset--color--neutral-300-opaque);
  }
  #mainNav > .menu-item-has-children > .sub-menu .sub-menu {
    padding-left: 0.5rem;
  }
  #mainNav > .menu-item:hover .sub-menu {
    display: block;
  }

  .menu-button-containter,
  #menuToggle {
    display: none;
    z-index: 499;
  }

  #siteNavigation,
  #mainNav > .menu-item-has-children.clicked {
    position: relative;

    min-width: unset;
    height: unset;

    background: var(--wp--preset--color--neutral-300-opaque);
  }
}
/*
--==> SPONSOR STYLING <==--
 */
/* - > SPONSOR STYLING < - */
.sponsor-section {
  width: var(--wp--custom--layout-contentsize);
  margin-block: var(--wp--custom--spacing-blockgap);
  margin-inline: auto;
}
.sponsor-slider {
  width: 100%;
}
.sponsor-slider .sponsor-slide {
  padding: 0.5rem;

  height: calc(2rem + 2vw);

  display: flex !important;
  justify-content: center;
  align-items: center;
}
.sponsor-slider .sponsor-slide .sponsor-img {
  width: auto;
  max-height: calc(2rem + 2vw);
  padding-inline: 2rem;
}
/*
--==> FOOTER STYLING <==--
 */

footer h2 {
  text-align: center;
}

/* - > COLOPHON STYLING < - */

#colophon {
  font-size: var(--wp--preset--font-size--200);
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--neutral-100);
  width: 100%;
}
#colophon .container {
  width: var(--wp--custom--layout-contentsize);
  padding-block: var(--wp--custom--spacing-blockgap);
  margin-inline: auto;

  display: flex;
}
#colophon .container > * {
  flex: 1;
}
#colophon .site-info p {
  margin-left: 33%;
}
#footerMenu a {
  color: var(--wp--preset--color--neutral-100);
  text-decoration: none;
}
#footerMenu {
  list-style: none;
}
.is-content-justification-space-between.wp-block-social-links {
  justify-content: space-between;
}
.wp-block-social-links {
  display: flex;
}
/*
--==> FORM STYLING <==--
 */

/* styling for blackbaud forms */

/* #bbox-root * {
  font-family: var(--wp--preset--font-family--body) !important;
} */
.BBFormSectionHeading {
  text-align: center;
  text-transform: uppercase;
  color: var(--wp--preset--color--primary);
  font-size: var(--wp--preset--font-size--600);

  border-bottom: none;
  border-top: none;
  border-right: none;
  border-left: none;
}
#bboxdonation_btnSubmit /*, #bbox-root input[type="submit"] */ {
  border-radius: 0;
  background-color: var(--wp--preset--color--secondary-500);
  font-weight: bold;
  text-transform: uppercase;
}

#blocksContent .wpforms-form {
  font-family: var(--wp--preset--font-family--body);
  font-size: var(--wp--preset--font-size--400);
}
/* #blocksContent .wpforms-field-container > div {
  display: flex;
}
#blocksContent .wpforms-field-container fieldset {
  width: 100%;
} */
/* #blocksContent .wpforms-field-container > div:not(:has(fieldset)) {
  display: flex;
} */

#blocksContent .wpforms-container .wpforms-title {
  font-weight: normal;
  text-transform: uppercase;
  color: var(--wp--preset--color--primary);
  font-family: var(--wp--preset--font-family--heading);
  font-size: var(--wp--preset--font-size--600);
}
#blocksContent .wpforms-container .wpforms-field-label {
  font-weight: normal;
  font-size: var(--wp--preset--font-size--400);
}
#blocksContent .wpforms-container input,
#blocksContent .wpforms-container select {
  border-radius: 4px;
  background: var(--wp--preset--color--neutral-100);
  outline: 0;
  border: 1px solid var(--wp--preset--color--neutral-400);
  line-height: 1.2;
  padding: 0.6em 0.9em;
  font-size: var(--wp--preset--font-size--400);
}
/* #blocksContent .wpforms-container input:checked {
} */
#blocksContent .wpforms-container .wpforms-field-row-block.wpforms-one-half {
  display: flex;
  flex-direction: column-reverse;
}
#blocksContent .wpforms-container .wpforms-submit {
  font-weight: normal;
  font-size: var(--wp--preset--font-size--400);
  font-family: var(--wp--preset--font-family--body);

  cursor: pointer;

  color: var(--wp--preset--color--white);
  background-color: var(--wp--preset--color--secondary-500);

  border-radius: 0;
  border: 0;
  outline: 0;

  padding: 0.25em 0.5em;
}
#blocksContent .wpforms-container ul {
  list-style: none;
  padding-left: 0;
}

/* styling to remove block gap between two items with background */
/* *:has(> .has-background) + .has-background,
.has-background + *:has(> .has-background),
.has-background + .has-background,
*:has(> .has-background) + *:has(> .has-background) {
  margin-block-start: 0 !important;
}

.has-background + .has-background {
  margin-block-start: 0 !important;
} */

/* styling for video section on racial equity page */
#videos-meetpeople .wp-block-button__link {
  width: 100%;
}

#videos-meetpeople .wp-block-image {
  height: min(200px, 14rem);
  width: 100%;
}
#videos-meetpeople .wp-block-image img {
  object-fit: cover;
  height: 100%;
  padding-bottom: 0;
}

#videos-meetpeople .videos-meetpeople-videogroup {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
}

#videos-meetpeople .videos-meetpeople-videogroup > div {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0px;
}

#videos-meetpeople > div > div {
  width: 100%;
}

#videos-meetpeople iframe {
  aspect-ratio: 16 / 9;
  height: 100%;
  width: 100%;
}

#video-drmartatorres {
  z-index: 0;
}

#video-stewartwilliams {
  z-index: 0;
}

#video-lucycain {
  z-index: 0;
}

.video-active {
  z-index: 1 !important;
}

.videos-meetpeople-peoplegroup > div {
  cursor: pointer;
}

.videos-meetpeople-peoplegroup figure {
  position: relative;
  display: block;
}

.videos-meetpeople-peoplegroup figure::after {
  content: "";
  position: absolute;
  background-color: #b4852d;
  opacity: 70%;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.video-active figure::after {
  opacity: 0;
}

.video-active a {
  background-color: #7bcac5 !important;
}

:not(.is-layout-flex) > figure.wp-block-image.aligncenter.size-full {
  margin: 0 auto;
}

.page-id-15756 #subMenu,
.page-id-15775 #subMenu,
.page-id-15748 #subMenu {
  display: none;
}

#nitashia-block {
  margin-top: 80px;
}

.wp-block-media-text.is-stacked-on-mobile.is-image-fill.is-style-default {
  margin-top: 0px;
}

@media screen and (max-width: 1280px) {
  #videos-meetpeople {
    padding: 0px 40px;
  }
}

@media screen and (max-width: 600px) {
  .page-id-15748 .wp-block-media-text__content {
    margin-bottom: 40px;
  }

  .page-id-15748 .wp-block-media-text__content * {
    text-align: left !important;
  }

  .page-id-15748 .wp-container-21 {
    justify-content: flex-start;
  }
}

/* styling to replace */

.is-content-justification-center figure {
  text-align: center;
}

/* DONATION FORMS */
#bboxdonation_divForm * {
  margin-left: unset;
}
@media screen and (min-width: 1000px) {
  #donationForm #bboxdonation_divForm {
    column-count: 2;
  }
}

.is-style-broadway-dallas-blocks-columns-info-left > *:first-child {
  background-image: url("https://broadwaydallas.org/wp-content/uploads/2022/12/slashes-opacity.webp");
}

#seasonSlider .wp-block-post-template,
#seasonSlider .wp-block-post-template .wp-block-post-featured-image img {
  padding: 0.75rem;
}

/* slick arrows */
/* Arrows */
.slick-prev,
.slick-next {
  font-size: 0;
  line-height: 0;

  position: absolute;
  top: 50%;

  display: block;

  width: 20px;
  height: 20px;
  padding: 0;
  -webkit-transform: translate(0, -50%);
  -ms-transform: translate(0, -50%);
  transform: translate(0, -50%);

  cursor: pointer;

  color: transparent;
  border: none;
  outline: none;
  background: transparent;
}
.slick-prev:hover,
.slick-prev:focus,
.slick-next:hover,
.slick-next:focus {
  color: transparent;
  outline: none;
  background: transparent;
}
.slick-prev:hover:before,
.slick-prev:focus:before,
.slick-next:hover:before,
.slick-next:focus:before {
  opacity: 1;
}
.slick-prev.slick-disabled:before,
.slick-next.slick-disabled:before {
  opacity: 0;
}

.slick-prev:before,
.slick-next:before {
  font-size: 20px;
  line-height: 1;

  opacity: 0.75;
  color: white;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.slick-prev {
  left: -25px;
}
[dir="rtl"] .slick-prev {
  right: -25px;
  left: auto;
}
#seasonSlider .slick-prev:before {
  content: url("../../assets/sliderarrow-prev-white.svg");
}
[dir="rtl"] #seasonSlider .slick-prev:before {
  content: url("../../assets/sliderarrow-next-white.svg");
}

#seasonSlider .slick-next {
  right: -25px;
}
[dir="rtl"] #seasonSlider .slick-next {
  right: auto;
  left: -25px;
}
#seasonSlider .slick-next:before {
  content: url("../../assets/sliderarrow-next-white.svg");
}
[dir="rtl"] #seasonSlider .slick-next:before {
  content: url("../../assets/sliderarrow-prev-white.svg");
}

/* land acknowledgement styling */

#landAcknowledgementEnglishLink:hover,
#landAcknowledgementEspanolLink:hover {
  cursor: pointer;
}

#landAcknowledgementEnglishLink,
#landAcknowledgementEspanolLink {
  border-bottom: 0.125rem solid var(--wp--preset--color--neutral-300);
}

#landAcknowledgementEnglishLink.active,
#landAcknowledgementEspanolLink.active {
  border-bottom: 0.1875rem solid var(--wp--preset--color--secondary-500);
}
#landAcknowledgementEnglish.hidden,
#landAcknowledgementEspanol.hidden {
  display: none;
}
#landAcknowledgementEnglish,
#landAcknowledgementEspanol {
  margin-block-start: 0.5rem;
}

/* front page styling */
#SeasonHero2324 .wp-block-media-text__media {
  max-width: 200px;
  margin-inline: auto;
}
#SeasonHero2324 .wp-block-media-text__content {
  padding-left: 1em !important;
  padding-right: 0 !important;
}
@media (max-width: 700px) {
  #SeasonHero2324 .wp-block-media-text.is-stacked-on-mobile {
    grid-template-columns: 100% !important;
  }
  #SeasonHero2324 .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media {
    grid-column: 1;
    grid-row: 1;
  }
  #SeasonHero2324 .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content {
    grid-column: 1;
    grid-row: 2;
  }
  #SeasonHero2324 .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content h2 {
    text-align: center !important;
  }
}
@media (min-width: 701px) {
  #SeasonHero2324 .wp-block-media-text {
    grid-template-columns: calc(15rem + 1vw) auto !important;
    padding-bottom: 1rem;
  }
}

@media (min-width: 600px) {
  #SeasonHero2324 .wp-block-gallery.has-nested-images.columns-4 figure.wp-block-image:not(#individual-image) {
    width: calc(50% - var(--wp--style--unstable-gallery-gap, 16px) * 0.75);
    max-width: calc(50% - var(--wp--style--unstable-gallery-gap, 16px) * 0.75);
  }
}

@media (min-width: 800px) {
  #SeasonHero2324 .wp-block-gallery.has-nested-images.columns-4 figure.wp-block-image:not(#individual-image) {
    width: calc(25% - var(--wp--style--unstable-gallery-gap, 16px) * 0.75);
    max-width: calc(25% - var(--wp--style--unstable-gallery-gap, 16px) * 0.75);
  }
}

/* get involved styling */

#getInvolvedNav a:hover {
  cursor: pointer;
  opacity: 0.8;
}

#getInvolvedNav a {
  text-decoration: none;
  text-transform: uppercase;
}

#getInvolvedNav a.active {
  color: var(--wp--preset--color--tertiary);
  text-decoration: underline;
}
#AssociateProducers.hidden,
#Guild.hidden,
#VolunteerAmbassadors.hidden {
  display: none;
}
#AssociateProducers,
#Guild,
#VolunteerAmbassadors {
  margin-block-start: 0 !important;
}
