/*------------------------------------*\
    $VARIABLES
\*------------------------------------*/
/*
 * Grid parameter defaults
 * These are used to customize the grid layout
 * Feel free to overwrite them as necessary
 */
/* this is all from Bootstrap */
.post-template:not(.home) > .ucla-header.ucla-header--college,
.page-template:not(.home, .page-template-page-landing) > .ucla-header.ucla-header--college,
.page-template-default:not(.home) > .ucla-header.ucla-header--college,
.archive > .ucla-header.ucla-header--college,
.blog:not(.home) > .ucla-header.ucla-header--college,
.single-post > .ucla-header.ucla-header--college {
  margin-bottom: 0px;
}

@media (min-width: 1024px) {
  .post-template:not(.home) > .ucla-header.ucla-header--college,
  .page-template:not(.home, .page-template-page-landing) > .ucla-header.ucla-header--college,
  .page-template-default:not(.home) > .ucla-header.ucla-header--college,
  .archive > .ucla-header.ucla-header--college,
  .blog:not(.home) > .ucla-header.ucla-header--college,
  .single-post > .ucla-header.ucla-header--college {
    margin-bottom: 0;
  }
}
/* ==========================================================================
   Author's custom global styles
   ========================================================================== */
.ucla-breadcrumb {
  margin-top: 4rem;
  margin-bottom: 0.5rem;
}

.post-thumbnail.featured-image {
  margin-bottom: 0;
}
.post-thumbnail.featured-image > .ucla-img-responsive.wp-post-image {
  max-height: 31.25rem;
  object-fit: cover;
}
@media (min-width: 768px) {
  .post-thumbnail.featured-image {
    margin-bottom: 0;
  }
}

.home .wp-block-query .wp-block-post-template > .wp-block-post {
  background-color: #ffffff;
  padding: 1rem;
}
.home .wp-block-query .wp-block-post-template > .wp-block-post .wp-block-post-title > a {
  text-decoration: none;
  display: inline;
}
.home .wp-block-query .wp-block-post-template > .wp-block-post .wp-block-post-title > a:hover {
  background-color: transparent;
  color: #0079BF;
}

.ucla-card__story-secondary.quarterly-updates {
  flex-direction: column;
}
.ucla-card__story-secondary.quarterly-updates .story-card-image-link {
  margin-bottom: 1rem;
}
@media (min-width: 960px) {
  .ucla-card__story-secondary.quarterly-updates {
    flex-direction: row;
  }
  .ucla-card__story-secondary.quarterly-updates .story-card-image-link {
    max-width: 35%;
    margin-bottom: 0;
    flex-basis: fit-content;
  }
  .ucla-card__story-secondary.quarterly-updates .ucla-card__body {
    flex-basis: fit-content;
  }
}

.post-type-archive-listening .ucla-breadcrumb:not(.ucla-breadcrumb__not-first-page) .ucla-breadcrumb__link {
  color: #fff;
}
.post-type-archive-listening .ucla-dept-footer {
  margin-top: 0;
}
.post-type-archive-listening .wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-top-left .wp-block-cover__inner-container {
  width: 100%;
}
.post-type-archive-listening .listening-pagination > .pagination > .nav-links > ul {
  justify-content: center;
}
.post-type-archive-listening .ucla-card__story > a.story-card-image-link img {
  aspect-ratio: 3/2;
  object-fit: cover;
}

#footer .footer__dept--container {
  max-width: 1176px;
  padding: 0 24px;
  width: 100%;
  margin: 0 auto;
}

.footer__dept--links-wrapper > ul#menu-footer-menu > li > a:hover {
  background-color: transparent;
  outline: none;
  color: #fff;
}

/* Component Library Footer Nav override */
.footer__dept--links ul {
  width: 100%;
}

.footer__dept--links-wrapper > ul#menu-footer-menu {
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer__dept--links-wrapper > ul#menu-footer-menu > li {
  flex-basis: 48%;
}

.footer__dept--links-wrapper > ul#menu-footer-menu > li,
.footer__dept--links-wrapper > ul#menu-footer-menu > li ul > li a {
  white-space: normal;
}

@media (min-width: 600px) {
  .footer__dept--links-wrapper > ul#menu-footer-menu > li {
    flex-basis: 50%;
  }
  .footer__dept--links-wrapper > ul#menu-footer-menu {
    flex-wrap: nowrap;
  }
}
@media only screen and (min-width: 768px) {
  .footer__dept--logo {
    max-width: 35%;
  }
  .footer__dept--links ul {
    margin-right: 1rem;
    /* width: 40vw; */
  }
}
@media only screen and (min-width: 1024px) {
  .footer__dept--logo {
    max-width: 30%;
  }
  .footer__dept--info {
    margin-right: 125px;
  }
}
@media only screen and (min-width: 1280px) {
  .footer__dept--logo {
    max-width: 30%;
  }
}
.ajax-form .ucla-field__textarea {
  height: 144px;
}
.ajax-form .ucla-field__textarea.warning {
  border-color: #d60000;
}
.ajax-form .ucla-field__select.warning {
  border-color: #d60000;
}
.ajax-form .ucla-field__help {
  display: none;
  margin-top: 0px;
}
.ajax-form .ucla-field__help.warning {
  color: #d60000;
}
.ajax-form .ucla-field.preloader {
  height: 10px;
  position: relative;
  margin-bottom: 0;
  top: -44px;
  left: 0px;
  display: none;
}
.ajax-form .lds-ellipsis,
.ajax-form .lds-ellipsis div {
  box-sizing: border-box;
}
.ajax-form .lds-ellipsis {
  display: inline-block;
  position: relative;
  width: 30px;
  height: 30px;
}
.ajax-form .lds-ellipsis div {
  position: absolute;
  top: 33.33333px;
  width: 13.33333px;
  height: 13.33333px;
  border-radius: 50%;
  background: #00598c;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.ajax-form .lds-ellipsis div:nth-child(1) {
  left: 8px;
  animation: lds-ellipsis1 0.6s infinite;
}
.ajax-form .lds-ellipsis div:nth-child(2) {
  left: 8px;
  animation: lds-ellipsis2 0.6s infinite;
}
.ajax-form .lds-ellipsis div:nth-child(3) {
  left: 32px;
  animation: lds-ellipsis2 0.6s infinite;
}
.ajax-form .lds-ellipsis div:nth-child(4) {
  left: 56px;
  animation: lds-ellipsis3 0.6s infinite;
}
@keyframes lds-ellipsis1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes lds-ellipsis3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes lds-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(24px, 0);
  }
}

add-to-calendar-button[atcb-button-id=atcb-btn-ucla-add-to-cal]::part(atcb-button) {
  background-color: #fff;
  border: 2px solid #00598c;
  padding: 0.625rem 0.875rem;
  display: flex;
  align-items: center;
  border-radius: 4px;
  cursor: pointer;
}
add-to-calendar-button[atcb-button-id=atcb-btn-ucla-add-to-cal]::part(atcb-button-icon) {
  width: 20px;
  margin-right: 10px;
  fill: #00598c;
}
add-to-calendar-button[atcb-button-id=atcb-btn-ucla-add-to-cal]::part(atcb-button-text) {
  font-weight: bold;
  font-size: 1rem;
  color: #00598c;
}
add-to-calendar-button[atcb-button-id=atcb-btn-ucla-add-to-cal]::part(atcb-list-wrapper) {
  left: 0;
  top: unset;
  box-sizing: border-box;
}
add-to-calendar-button[atcb-button-id=atcb-btn-ucla-add-to-cal]::part(atcb-list) {
  border: 1px solid #ccc;
  display: block;
  position: relative;
  min-width: 100%;
  width: fit-content;
  z-index: 14000090;
}
add-to-calendar-button[atcb-button-id=atcb-btn-ucla-add-to-cal]::part(atcb-list-item) {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  box-sizing: border-box;
  font-size: 1rem;
  padding: 0.625rem 1rem 0.5rem;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  background-color: #fff;
  cursor: pointer;
}
add-to-calendar-button[atcb-button-id=atcb-btn-ucla-add-to-cal]::part(atcb-list-item):hover {
  background-color: #0079bf;
}
add-to-calendar-button[atcb-button-id=atcb-btn-ucla-add-to-cal]::part(atcb-list-icon) {
  width: 20px;
  margin-right: 10px;
  fill: #00598c;
}
add-to-calendar-button[atcb-button-id=atcb-btn-ucla-add-to-cal]::part(atcb-list-text) {
  width: 100%;
  white-space: nowrap;
  font-size: 1rem;
  font-weight: bold;
  color: #00598c;
}

.atcb-button:hover {
  background-color: #00598c !important;
}
.atcb-button:hover > .atcb-text {
  color: white !important;
}
.atcb-button:hover > .atcb-icon > svg {
  fill: white !important;
}

.atcb-no-bg.atcb-click {
  left: 0;
  right: 0;
  top: 0;
  position: fixed;
}

.atcb-list-item:hover > .atcb-text {
  color: #fff !important;
}
.atcb-list-item:hover > .atcb-icon-ical > svg {
  fill: white !important;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */
/*
 * Hide visually and from screen readers
 */
.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */
.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */
.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */
.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */
.clearfix::before,
.clearfix::after {
  content: " ";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */
@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}
@media print, (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 1.25dppx), (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}
/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */
@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }
  a,
  a:visited {
    text-decoration: underline;
  }
  a[href]::after {
    content: " (" attr(href) ")";
  }
  abbr[title]::after {
    content: " (" attr(title) ")";
  }
  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }
  pre {
    white-space: pre-wrap !important;
  }
  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }
  /*
   * Printing Tables:
   * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
   */
  thead {
    display: table-header-group;
  }
  tr,
  img {
    page-break-inside: avoid;
  }
  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }
  h2,
  h3 {
    page-break-after: avoid;
  }
}