/* by Creasant */

@media only screen and (max-width: 767px) {

  .block-border-left,
  blockquote {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
    padding-left: 24px;
    background-size: 3px 100%;
  }

  .pagetitle h1 { font-size: 27px; }
  h2 { font-size: 36px; }
  h3 { font-size: 30px; }

  body .stg-banner .mtpc-block-image-block img { height: 200px; }

  body .stg-banner .mtpc-block-textarea-block { padding: 54.72px 20px 0; }

  body h1.stg-banner-title {
    font-size: 24px;
    line-height: 26.4px;
  }

  body p.stg-banner-eyebrow {
    margin-bottom: 10.4px;
    font-size: 20px;
    line-height: 23.4375px;
  }

  body .stg-banner .mtpc-block-textarea-block:has(p.stg-banner-eyebrow) { padding-top: 34.88px; }

  .mtpc-profile-list-title { margin-bottom: 28px; }

  .mtpc_pl_item_wrapper {
    display: flex;
    align-items: flex-start;
  }

  .mtpc_pl_item_wrapper .mtpc_pl_pic   { width: 100px; margin-right: 20px; }
  .mtpc_pl_item_wrapper .mtpc_pl_texts {
    width: calc(100% - 120px);
    margin-top: 0;
  }

  .mtpc-profile-deatils { margin-top: 6px; }

  .mtpc-profile-deatils p:last-child { margin-top: 15px; }

  .mtpc_pl_item_container { margin-bottom: 45px; }

  .field--name-field-mod-1-col-container > .field__item + .field__item > .mtpc-profile-list-block {
    padding-top: 46px;
    background-position: 0 0;
  }

  body .stg-goals ol > li { padding-left: 42px; }

  body .stg-goals ol > li::before {
    font-size: 36px;
    line-height: 45px;
    top: -4px;
  }

  body .stg-hero--research .mtpc_pagetitle_container .mtpc_pagetitle_wrapper.position--middle {
    padding-top: 22px;
  }

  body .pagetitle h1 .stg-eyebrow {
    font-size: 30px;
    line-height: 37.65px;
    margin-bottom: 17.17px;
  }

  body .mtpc-2col-section.stg-figrow .mtpc-2col-section-wrapper > .mtpc-2col-item--1 {
    margin-bottom: 15px;
  }

  body .stg-figcap--below {
    padding-top: 24.65px;
    padding-bottom: 17.92px;
  }

  body .mtpc-section-item:last-child .stg-figcap--below { padding-bottom: 15.42px; }

  body .stg-figcap--below .mtpc-block p {
    font-size: 22px;
    line-height: var(--stg-lh-compact);
  }

  #block-stg-collaborators .hkust-simple-text { padding: 18px 20px 30px; }

  #block-stg-collaborators p {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  #block-stg-collaborators p img:nth-of-type(1),
  #block-stg-collaborators p img:nth-of-type(2) { height: 40px; }

  #block-stg-collaborators p img:nth-of-type(3) { height: 50px; }

  body .stg-reports .mtpc-block-image-grid-item-wrapper { row-gap: 20px; }

  body .stg-reports .mtpc-block-image-grid-item-wrapper > .mtpc-image-grid-block-item {
    width: calc(100% - 20px);
    margin: 10px;
  }

  body .stg-reports .grid_main_image { aspect-ratio: 370 / 270; }

  body .stg-reports .mtpc-image-caption {
    top: 81.68px;
    font-size: 30px;
    line-height: var(--stg-lh-heading);
  }

  body .mtpc-block .mtpc-textarea table.tbl-line tbody tr td:first-child:not(:last-child) {
    box-sizing: border-box;
    width: 45px;
    padding: 20.65px 0 37.5px 14px;
  }

  body .mtpc-block .mtpc-textarea table.tbl-line tbody tr td:last-child {
    padding: 20.65px 14px 37.5px 0;
  }

  body .mtpc-block .mtpc-textarea table.tbl-line tbody tr td:only-child {
    padding-left: 29px;
    padding-right: 29px;
  }

  #block-mtpc-pagetitle .page-container,
  #block-mtpc-pagetitle .page-hero-header,
  #block-mtpc-pagetitle-2 .page-container,
  #block-mtpc-pagetitle-2 .page-hero-header { height: 200px; }

  #block-mtpc-pagetitle .page-title,
  #block-mtpc-pagetitle-2 .page-title {
    top: 54.72px;
    padding: 0 20px;
  }

  #block-mtpc-pagetitle .page-title p,
  #block-mtpc-pagetitle-2 .page-title p { font-size: 24px; }

  body #block-mtpc-exposedformnews-eventspage-1 {
    margin: 45px 0 30px;
    padding: 0 15px;
  }

  body #block-mtpc-exposedformnews-eventspage-1 .form--inline { justify-content: flex-start; }

  .view-news-events .row_container.has_thumb {
    display: block;
    padding-bottom: 30px;
  }

  .view-news-events .thumb_container {
    width: 100%;
    aspect-ratio: 26 / 15;
  }

  .view-news-events .view-content .views-row .row_container.has_thumb .thumb_container { margin: 0; }

  .view-news-events .content_container {
    width: auto;
    margin-top: 15px;
  }

  .event-listing-page .event-listing-head .views-exposed-form .form--inline {
    justify-content: flex-start;
  }

  .event-listing-page .event-listing-head .views-exposed-form .form--inline .com-filter {
    width: auto;
  }

  .event-listing-page .listing.grid-view {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 30px;
    margin-top: 30px;
  }

  .event-listing-page .listing.grid-view .event-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .event-listing-page .listing.grid-view .event-item:not(:last-child)::after {
    width: 100%;
  }

  .event-listing-page .event-thumbnail { aspect-ratio: 26 / 15; }

  article.mtpc-news-article .field--name-field-content-banner img,
  .node__content.mtpc-event-detail .main-content .node-content .event-data-box-full-width .event-banner img {
    aspect-ratio: 13 / 8;
  }

  article.mtpc-news-article,
  .node__content.mtpc-event-detail { padding: 0 20px; }

  .mtpc_pagetitle.mtpc_news:not(.news_listing) { padding-left: 20px; padding-right: 20px; }

  .node__content.mtpc-event-detail .main-content .node-content .event-data-box-full-width .event-info {
    padding: 15px;
  }

  .mtpc-block-accordian-item-wrapper .mtpc-accordian-item { padding: 21.32px 19px; }

  .mtpc-block-accordian-item-wrapper .mtpc-accordian-item.collapsed {
    padding-top: 22.09px;
    padding-bottom: 38.44px;
  }

  .mtpc-block-accordian-block-title.expanded { font-size: 30px; }

  .mtpc-block-accordian-block-title.collapsed { font-size: 27px; }

  .mtpc-block-accordian-block-title > .field__item.icon:before { font-size: 21.7px; }

  .mtpc-block-accordian-block-title.expanded > .field__item.icon:before { top: 5.5px; }

  .mtpc-block-accordian-block-title.collapsed > .field__item.icon:before { top: 3.89px; }

  .mtpc-block-accordian-block-title > .field__item .accordion-question {
    margin-left: 28px;
    width: calc(100% - 28px);
  }

  .mtpc-block-accordian-block-description {
    margin: 22.97px 0 0 0;
    padding-left: 24px;
  }

  .mtpc-block-slideshow-block .slick-dots {
    top: 15px;
    bottom: auto;
  }

  .mtpc-block-slideshow-block .slick-dots.circle li { width: 6px; height: 6px; }

  body .stg-highlights .mtpc-textarea h2,
  body .stg-demoflats .mtpc-textarea h2 { font-size: 33px; }

  body .stg-highlights { padding-top: 30.18px; }

  body .stg-highlights .field--name-field-mod-1-col-container > .field__item:has(h2) {
    padding-bottom: 21.4px;
  }

  body .mtpc-1col-section.stg-demoflats:has(h2) {
    padding-top: 53.6px;
    padding-bottom: 21.4px;
  }

  body .stg-highlights .mtpc-block-image-grid-item-wrapper { row-gap: 30px; }

  body .stg-highlights .grid_main_image { aspect-ratio: 13 / 9; }

  body .stg-highlights [data-stg-tag="publication"] .grid_main_image {
    aspect-ratio: 390 / 439.02;
  }

  body .stg-highlights [data-stg-tag="publication"] .grid_main_image img {
    padding: 15px 0;
  }

  body .mtpc-2col-section.stg-demoflats .mtpc-2col-section-wrapper > .mtpc-2col-item--1 {
    margin-bottom: 30px;
  }

  body .region-content:has(.stg-demoflats) { padding-bottom: 58.42px; }

  body header .mtpc_header .header.mobile .wrapper .logos {
    padding-top: 12px;
    padding-bottom: 15px;
  }

  body header .mtpc_header .header.mobile .wrapper .logos .logos_container,
  body header .mtpc_header .header.mobile .wrapper .logos .logos_left {
    height: 46.4px;
  }

  body header .mtpc_header .header.mobile .wrapper .logos .logos_left .logo_one img {
    width: 120px;
    height: 46.4px;
  }

  body header .mtpc_header .header.mobile .wrapper .logos .logos_left .logo_one.show_vertical_line {
    padding-right: 10px;
    margin-right: 10px;
  }

  body header .mtpc_header .header.mobile .wrapper .logos .logos_left .logo_one.show_vertical_line::after {
    height: 36px;
  }

  body header .mtpc_header .header.mobile .wrapper .logos .logos_left .logo_two.text_logo .stg-lockup--name,
  body header .mtpc_header .header.mobile .wrapper .logos .logos_left .logo_two.text_logo .stg-lockup--grant {
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
  }

  body header .mtpc_header .header.mobile .wrapper .logos .logos_left .logo_two.text_logo .stg-lockup--grant {
    display: none;
  }

  body header .mtpc_header .header.mobile .wrapper .logos .logos_left .logo_two.text_logo .stg-lockup--stg {
    display: inline;
  }

  body header .mtpc_header .header.mobile .wrapper .logos .logos_left .logo_two.text_logo {
    min-width: 0;
    max-width: 190px;
    white-space: normal;
  }

  body header .mtpc_header .header.mobile .wrapper .logos .logos_left {
    max-width: none;
    min-width: 0;
    flex: 1 1 auto;
  }

  body header .mtpc_header .header.mobile .wrapper .logos .logos_left .logo_two.text_logo {
    flex: 0 1 190px;
  }

  body header .mtpc_header .header.mobile .wrapper .logos .logos_right {
    flex: 0 0 auto;
    margin-left: 10px;
  }

  body header .config_pages--type--header-block .mobile_menu_wrapper .mobile_navigation > ul.menu > li {
    margin-bottom: 24.22px;
  }

  body header .config_pages--type--header-block .mobile_menu_wrapper .mobile_navigation > ul.menu > li > a,
  body header .config_pages--type--header-block .mobile_menu_wrapper .mobile_navigation > ul.menu > li > span {
    font-size: 22px;
    line-height: 25.78px;
  }

  body header .config_pages--type--header-block .mobile_menu_wrapper .mobile_navigation > ul.menu > li.menu-item--expanded.active > ul {
    padding: 24.88px 30px 30px;
    margin-top: 24.22px;
  }

  body header .config_pages--type--header-block .mobile_menu_wrapper .mobile_navigation > ul.menu > li.menu-item--expanded > ul > li {
    margin-bottom: 26.56px;
    line-height: 23.44px;
  }

  body header .config_pages--type--header-block .mobile_menu_wrapper .mobile_navigation > ul.menu > li.menu-item--expanded > ul > li > a,
  body header .config_pages--type--header-block .mobile_menu_wrapper .mobile_navigation > ul.menu > li.menu-item--expanded > ul > li > span {
    line-height: 23.44px;
  }
}
