[hidden] { display: none !important; }
.dimag-search { padding-top: 2rem; padding-bottom: 3rem; }
.dimag-search article + article { margin-top: 1.6rem; }
.dimag-search article h2 { margin-bottom: .4rem; }
.dimag-video-embed { max-width: 100%; aspect-ratio: 16 / 9; }
.dimag-video-embed iframe { width: 100%; height: 100%; border: 0; }
#panel4 .dimag-video-embed { min-height: 200px; }
.event-list-filter-list { display: flex; flex-wrap: wrap; gap: .4em; list-style: none; margin-left: 0; }
.event-list-filter-list li + li::before { content: "|"; margin-right: .4em; }
.event-list-filter-list [aria-current] { font-weight: bold; }
.paper-links:empty { display: none; }
.dimag-papers > li.paper > p { margin-bottom: .25em; }

@media screen and (min-width: 48em) {
  /* Keep the menu below the interior-page banner in normal document flow. */
  body:not(.home) #masthead .navigation-top {
    position: relative;
    bottom: auto;
  }
}

/* Core File blocks retain the theme's download button styling. */
.wp-block-file:not(.wp-element-button) { font-size: .8em; }
:where(.wp-block-file) { margin-bottom: 1.5em; }
.wp-block-file * + .wp-block-file__button { margin-left: .75em; }

/* Profile cards shared by Members and Former Members. */
.wp-block-uagb-team.uagb-team__image-position-left {
  display: flex;
  align-items: flex-start;
}
.wp-block-uagb-team.uagb-team__align-left { align-items: center; }
.wp-block-uagb-team .uagb-team__content {
  flex: 1;
  min-width: 0;
  text-align: left;
  overflow-wrap: anywhere;
}
.wp-block-uagb-team .uagb-team__title { margin: 0 0 6px; }
.wp-block-uagb-team .uagb-team__prefix,
.wp-block-uagb-team .uagb-team__desc { font-size: 15px; }
.wp-block-uagb-team .uagb-team__prefix { color: #888; }
.wp-block-uagb-team .uagb-team__desc { margin: 11px 0 10px; }
.wp-block-uagb-team.uagb-team__align-left .uagb-team__title { margin-bottom: 5px; }
.wp-block-uagb-team.uagb-team__align-left .uagb-team__desc { margin: 13px 0 20px; }
.wp-block-uagb-team img.uagb-team__image-crop-circle { border-radius: 50%; }
.member-card > img { width: 200px; aspect-ratio: 1; object-fit: cover; }
.member-card--staff > img { width: 150px; }
.member-card .uagb-team__desc > p { margin: 0; }
.member-card .uagb-team__desc > p + p { margin-top: .5em; }
.member-card .member-academic,
.member-card .member-contact { font-size: 15px; margin: .4em 0; }
.member-card .member-academic + .uagb-team__desc { margin-top: .4em; }
.members-poster-heading, .members-poster-url { display: none; }

/* The Spectra block plugin emits per-page styles in WordPress. Keep the
   published Services page's author panels intact without loading the plugin. */
.services-page .wp-block-uagb-container.uagb-is-root-container {
  display: flex;
  position: relative;
  padding: 10px;
  overflow: visible;
  row-gap: 20px;
  column-gap: 20px;
}
.services-page .wp-block-uagb-container.uagb-is-root-container > .uagb-container__shape {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  pointer-events: none;
}
.services-page .uagb-block-3e7e02c0 > .uagb-container__shape-top .uagb-container__shape-fill,
.services-page .uagb-block-08b9ad30 > .uagb-container__shape-top .uagb-container__shape-fill,
.services-page .uagb-block-b384ec1a > .uagb-container__shape-top .uagb-container__shape-fill,
.services-page .uagb-block-160710cb > .uagb-container__shape-top .uagb-container__shape-fill {
  fill: #8ed1fc;
}
.services-page .uagb-block-da7245b8 > .uagb-container__shape-top .uagb-container__shape-fill,
.services-page .uagb-block-4a9a75d3 > .uagb-container__shape-top .uagb-container__shape-fill,
.services-page .uagb-block-c3eb57b1 > .uagb-container__shape-top .uagb-container__shape-fill,
.services-page .uagb-block-b9ecb614 > .uagb-container__shape-top .uagb-container__shape-fill,
.services-page .uagb-block-6037cdda > .uagb-container__shape-top .uagb-container__shape-fill,
.services-page .uagb-block-46ddc6d7 > .uagb-container__shape-top .uagb-container__shape-fill {
  fill: #ff6900;
}
.services-page .uagb-block-422360b6 > .uagb-container__shape-top .uagb-container__shape-fill,
.services-page .uagb-block-a10620c1 > .uagb-container__shape-top .uagb-container__shape-fill {
  fill: #7bdcb5;
}
.services-page .wp-block-uagb-container.uagb-is-root-container > .uagb-container__shape-top svg {
  display: block;
  width: calc(100% + 1.3px);
  height: auto;
}
.services-page .wp-block-uagb-container.uagb-is-root-container > .uagb-container-inner-blocks-wrap {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 20px;
  width: 100%;
  max-width: min(100%, 1140px);
  margin-inline: auto;
}
.services-page .wp-block-uagb-container.uagb-is-root-container > .uagb-container-inner-blocks-wrap > .wp-block-uagb-container {
  display: flex;
  flex-direction: column;
  padding: 10px;
  row-gap: 20px;
  column-gap: 20px;
}
.services-page .wp-block-uagb-container.uagb-is-root-container > .uagb-container-inner-blocks-wrap > .wp-block-uagb-container:first-child {
  width: 100%;
  max-width: 25%;
  align-items: center;
  justify-content: flex-start;
}
.services-page .wp-block-uagb-container.uagb-is-root-container > .uagb-container-inner-blocks-wrap > .wp-block-uagb-container:last-child {
  width: 100%;
  max-width: 75%;
  align-items: center;
  justify-content: center;
}

/* Recreate the Spectra info box used for Cory Palmer's visiting testimonial. */
.visiting-page .wp-block-uagb-info-box {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}
.visiting-page .wp-block-uagb-info-box .uagb-ifb-image-content {
  flex: 0 0 140px;
  margin: 0 0 20px;
}
.visiting-page .wp-block-uagb-info-box .uagb-ifb-image-content img {
  box-sizing: content-box;
  width: 120px;
  height: auto;
  padding: 5px 10px;
  border-radius: 17px;
}
.visiting-page .wp-block-uagb-info-box .uagb-ifb-content {
  flex: 1 1 auto;
  min-width: 0;
}
.visiting-page .wp-block-uagb-info-box .uagb-ifb-title { margin-bottom: 10px; }
.visiting-page .wp-block-uagb-info-box .uagb-ifb-separator {
  width: 30%;
  margin-bottom: 10px;
  border-top: 2px solid #333;
}
.visiting-page .wp-block-uagb-info-box .uagb-ifb-desc { margin-bottom: 10px; }

@media (max-width: 767px) {
  .services-page .wp-block-uagb-container.uagb-is-root-container > .uagb-container-inner-blocks-wrap {
    flex-wrap: wrap;
  }
  .services-page .wp-block-uagb-container.uagb-is-root-container > .uagb-container-inner-blocks-wrap > .wp-block-uagb-container:is(:first-child, :last-child) {
    max-width: 100%;
  }
  .visiting-page .wp-block-uagb-info-box {
    display: inline-block;
    flex-direction: column;
  }
  .visiting-page .wp-block-uagb-info-box .uagb-ifb-image-content {
    width: 100%;
    flex: none;
    text-align: center;
  }
  .visiting-page .wp-block-uagb-info-box .uagb-ifb-content {
    width: 100%;
  }
}

@media screen {
  .wp-block-uagb-team > img {
    flex-shrink: 0;
    height: auto;
    max-width: 35%;
    margin: 15px 20px;
  }
}

.dimag-video-pages { display: flex; align-items: center; justify-content: space-between; margin: 1rem 0; }
.dimag-video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.dimag-video-thumb { background: none; border: 0; color: inherit; cursor: pointer; padding: 0; text-align: left; }
.dimag-video-thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.dimag-video-thumb span { display: block; padding-top: .4rem; }
@media (max-width: 600px) { .dimag-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
