/* by Creasant */

@media only screen and (max-width: 999px) {

  .region-content { padding-bottom: 70px; }

  .mtpc-block p,
  .mtpc-block li { font-size: 18px; }

  body.cke_editable p,
  body.cke_editable li { font-size: 18px; }

  .mtpc_profile_name.english { font-size: 23px; line-height: var(--stg-lh-heading); }

  h4 { font-size: 30px; }

  body .stg-breadcrumb--below-hero,
  body .stg-breadcrumb--below-header { display: none; }

  body .stg-breadcrumb--below-hero + .mtpc-section-item { padding-top: 25px; }

  body .stg-goals { margin-left: 0; }

  body .stg-topic { padding-top: 13px; }

  body .mtpc-section-item:has(.stg-topic, .stg-figrow, .stg-figcap--below) + .mtpc-section-item .mtpc-1col-section:has(.mtpc-textarea h4:only-child) .mtpc-1col-section-wrapper {
    padding-top: 57px;
    background-position: 0 19px;
  }

  body .mtpc-2col-section.stg-topic .mtpc-2col-section-wrapper > .mtpc-2col-item--1 {
    margin-bottom: 37px;
  }

  body .mtpc-1col-section.stg-topic .field--name-field-mod-1-col-container > .field__item + .field__item {
    margin-top: 37px;
  }

  body .mtpc-2col-section.stg-topic.stg-topic--360-860 .mtpc-2col-section-wrapper > .mtpc-2col-item--1 {
    margin-bottom: 45px;
  }

  body .mtpc-1col-section.stg-topic .table-wrap { padding-top: 8px; }

  body .mtpc-2col-section.stg-topic--360-860 { padding-top: 21.36px; }

  body .mtpc-2col-section.stg-topic:not(:has(.mtpc-block-textarea-block)) { padding-top: 17px; }

  body .mtpc-2col-section.stg-topic:not(:has(.mtpc-block-textarea-block)) .mtpc-2col-section-wrapper > .mtpc-2col-item--1 {
    margin-bottom: 39.41px;
  }

  body .stg-figrow { padding-top: 37.5px; }

  body .stg-reports .mtpc-textarea h2 { font-size: 30px; }

  body .stg-reports .field--name-field-mod-1-col-container > .field__item:has(h2) {
    padding-bottom: 21.68px;
  }

  body .mtpc-1col-section:has(.mtpc-textarea table.tbl-line) .mtpc-textarea h2 {
    font-size: 30px;
  }

  body .mtpc-block .mtpc-textarea table.tbl-line thead tr th {
    font-size: 36px;
    padding: 5.41px 30px;
  }

  body .mtpc-block .mtpc-textarea table.tbl-line tbody tr td p { margin-bottom: 13.3px; }

  body .region-content:has(> .views-element-container > .view-news-events) {
    padding-bottom: 0;
  }

  body .view-news-events .views-row:last-child { margin-bottom: 0; }

  body .view-news-events .view-content { margin-bottom: 90px; }

  body .mtpc_news_listing_footer:has(.pager) { padding-bottom: 90px; }

  .view-news-events .views-row { margin-bottom: 30px; }

  body .view-news-events .mtpc_news_title h3,
  body .view-news-events .mtpc_news_title a { font-size: 18px; line-height: var(--stg-lh-compact); }

  .view-news-events .mtpc_news_title { margin-top: 4.92px; }

  .event-listing-page .event-listing-head { margin-top: 45px; }

  .event-listing-page .listing.grid-view .event-item {
    width: auto;
    margin: 0;
    padding-bottom: 30px;
  }

  .event-listing-page .event-info { padding-top: 16.11px; }

  .event-listing-page .listing .event-item .event-info .event-series {
    font-size: 14px;
    line-height: var(--stg-lh-compact);
    font-weight: 700;
    margin-bottom: 2.48px;
  }

  body .event-listing-page .listing .event-item .event-info .event-title,
  body .event-listing-page .listing .event-item .event-info .event-title a { font-size: 18px; line-height: var(--stg-lh-compact); }

  .event-listing-page .listing.grid-view .event-item .event-head { margin-bottom: 18.81px; }

  .event-listing-page .listing .event-item .event-info .icon { margin-bottom: 11.25px; }

  .event-listing-page .listing .event-item .event-info .event-btn { margin-top: 21.25px; }

  .mtpc_pagetitle.mtpc_news:not(.news_listing) h1,
  .node__content.mtpc-event-detail .event-head .event-title h1 {
    font-size: 36px;
    line-height: var(--stg-lh-compact);
  }

  .node__content.mtpc-event-detail .event-head { margin-bottom: 30.93px; }

  .mtpc_pagetitle.mtpc_news:not(.news_listing) { margin-bottom: 15.93px; }

  .mtpc_pagetitle.mtpc_news:not(.news_listing) { padding-top: 36.79px; }

  .node__content.mtpc-event-detail .event-head { padding-top: 37.54px; }

  .node__content.mtpc-event-detail .content-area h2,
  article.mtpc-news-article .mtpc_news_description h2 { margin-bottom: 0; }

  article.mtpc-news-article .mtpc_news_left { display: flex; flex-direction: column; }

  article.mtpc-news-article .mtpc_news_left .mtpc_news_share { order: 1; }

  .node__content.mtpc-event-detail .main-content .node-content {
    display: flex;
    flex-direction: column;
  }

  .node__content.mtpc-event-detail .main-content .node-content .social-share-m { order: 1; }

  .mtpc-block-accordian-item-wrapper .mtpc-accordian-item.expanded { padding-bottom: 35.99px; }

  .mtpc-block-accordian-block-description:before { top: 8.55px; bottom: 8.55px; }

  .mtpc-block-accordian-block-description p,
  .mtpc-block-accordian-block-description ol,
  .mtpc-block-accordian-block-description ul { margin-bottom: 29px; }

  body .mtpc-section-item:has(.mtpc-block-accordian-block) + .mtpc-section-item .mtpc-textarea p { margin-bottom: 13.3px; }

  body .mtpc-1col-section.stg-demoflats:has(p) { padding-top: 25.39px; }

  body .stg-highlights .mtpc-image-caption {
    padding-top: 10.39px;
    font-size: 18px;
    line-height: var(--stg-lh-compact);
  }

  body .stg-demoflats .mtpc-block p {
    font-size: 18px;
    line-height: var(--stg-lh-compact);
  }
}

@media only screen and (min-width: 768px) and (max-width: 999px) {

  .pagetitle h1 { font-size: 36px; }
  h2 { font-size: 48px; }
  h3 { font-size: 36px; }

  body .stg-banner .mtpc-block-image-block img { height: 270px; }

  body .stg-banner .mtpc-block-textarea-block { padding: 82.08px 40px 0; }

  body h1.stg-banner-title {
    font-size: 36px;
    line-height: 39.6px;
  }

  body p.stg-banner-eyebrow {
    margin-bottom: 14.855px;
    font-size: 33px;
    line-height: 38.671875px;
  }

  body .stg-banner .mtpc-block-textarea-block:has(p.stg-banner-eyebrow) { padding-top: 36.555px; }

  .mtpc-profile-list-title { margin-bottom: 26px; }

  .mtpc_pl_item_wrapper .mtpc_pl_pic   { width: 120px; margin-right: 30px; }
  .mtpc_pl_item_wrapper .mtpc_pl_texts { width: calc(100% - 150px); }

  .mtpc_pl_item_container { margin-bottom: 30px; }

  .mtpc-profile-deatils { margin-top: 11px; }

  .field--name-field-mod-1-col-container > .field__item + .field__item > .mtpc-profile-list-block {
    padding-top: 61px;
    background-position: 0 15px;
  }

  body .mtpc-2col-section.stg-side-label .mtpc-2col-section-wrapper { flex-wrap: wrap; }

  body .mtpc-2col-section.stg-side-label .mtpc-2col-section-wrapper > .mtpc-2col-item--1,
  body .mtpc-2col-section.stg-side-label .mtpc-2col-section-wrapper > .mtpc-2col-item--2 { width: 100%; }

  body .mtpc-2col-section.stg-side-label .mtpc-2col-section-wrapper > .mtpc-2col-item--2 { margin-left: 0; }

  body .stg-goals ol > li { padding-left: 49px; }

  body .stg-goals ol > li::before {
    font-size: 48px;
    line-height: 60px;
    top: -6px;
  }

  body .stg-hero--research .mtpc_pagetitle_container .mtpc_pagetitle_wrapper.position--middle {
    padding-top: 35px;
  }

  body .pagetitle h1 .stg-eyebrow {
    font-size: 36px;
    line-height: 45.18px;
    margin-bottom: 13.9px;
  }

  body .mtpc-2col-section.stg-topic .mtpc-2col-section-wrapper { display: block; }

  body .mtpc-2col-section.stg-topic .mtpc-2col-section-wrapper > .mtpc-2col-item--1,
  body .mtpc-2col-section.stg-topic .mtpc-2col-section-wrapper > .mtpc-2col-item--2 {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  body .mtpc-2col-section.stg-figrow .mtpc-2col-section-wrapper > .mtpc-2col-item--1,
  body .mtpc-2col-section.stg-figrow .mtpc-2col-section-wrapper > .mtpc-2col-item--2,
  body .mtpc-2col-section.stg-demoflats .mtpc-2col-section-wrapper > .mtpc-2col-item--1,
  body .mtpc-2col-section.stg-demoflats .mtpc-2col-section-wrapper > .mtpc-2col-item--2 {
    width: calc(50% - 15px);
  }

  body .mtpc-2col-section.stg-figrow .mtpc-2col-section-wrapper > .mtpc-2col-item--2,
  body .mtpc-2col-section.stg-demoflats .mtpc-2col-section-wrapper > .mtpc-2col-item--2 {
    margin-left: 30px;
  }

  body .stg-figcap--below .mtpc-block p {
    font-size: 22px;
    line-height: var(--stg-lh-heading);
  }

  body .stg-figcap--below {
    padding-top: 23.73px;
    padding-bottom: 32px;
  }

  body .mtpc-section-item:last-child .stg-figcap--below { padding-bottom: 14.5px; }

  #block-stg-collaborators .hkust-simple-text { padding: 18px 32px 30px 40px; }

  #block-stg-collaborators p { gap: 20px; }

  #block-stg-collaborators p img { height: auto; }

  #block-stg-collaborators p img:nth-of-type(1) { width: calc((100% - 40px) * 247 / 708); }

  #block-stg-collaborators p img:nth-of-type(2) { width: calc((100% - 40px) * 231 / 708); }

  #block-stg-collaborators p img:nth-of-type(3) { width: calc((100% - 40px) * 230 / 708); }

  body .stg-reports .mtpc-block-image-grid-item-wrapper { column-gap: 20px; }

  body .stg-reports .mtpc-block-image-grid-item-wrapper > .mtpc-image-grid-block-item {
    width: calc((100% - 100px) / 3);
  }

  body .stg-reports .grid_main_image { aspect-ratio: 213.33 / 220; }

  body .stg-reports .mtpc-image-caption {
    top: 52.66px;
    font-size: 27px;
    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: 75px;
    padding: 20.65px 0 36.25px 29px;
  }

  body .mtpc-block .mtpc-textarea table.tbl-line tbody tr td:last-child {
    padding: 20.65px 29px 36.25px 0;
  }

  body .mtpc-block .mtpc-textarea table.tbl-line tbody tr td:only-child {
    padding-left: 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: 270px; }

  #block-mtpc-pagetitle .page-title,
  #block-mtpc-pagetitle-2 .page-title {
    top: 82.08px;
    padding: 0 40px;
  }

  #block-mtpc-pagetitle .page-title p,
  #block-mtpc-pagetitle-2 .page-title p { font-size: 36px; }

  body #block-mtpc-exposedformnews-eventspage-1 {
    margin: 45px 0 30px;
    padding: 0 30px;
  }

  body #block-mtpc-exposedformnews-eventspage-1 .form--inline { justify-content: flex-end; }

  .view-news-events .row_container.has_thumb {
    display: flex;
    align-items: flex-start;
    padding-bottom: 30px;
  }

  .view-news-events .thumb_container {
    flex: 0 0 240px;
    width: 240px;
    aspect-ratio: 16 / 11;
  }

  .view-news-events .view-content .views-row .row_container.has_thumb .thumb_container { margin-right: 20px; }

  .view-news-events .content_container { flex: 1 1 auto; width: auto; }

  .event-listing-page .listing.grid-view {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 15px;
    row-gap: 30px;
    margin-top: 30px;
  }

  .event-listing-page .listing.grid-view .event-item:nth-last-child(-n+2) {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .event-listing-page .listing.grid-view .event-item:nth-child(2n+1):not(:nth-last-child(-n+2))::after {
    width: calc(200% + 15px);
  }

  .event-listing-page .event-thumbnail { aspect-ratio: 145 / 84; }

  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: 37 / 24;
  }

  article.mtpc-news-article,
  .mtpc_pagetitle.mtpc_news:not(.news_listing) { padding-left: 40px; padding-right: 40px; }

  .mtpc-block-accordian-item-wrapper .mtpc-accordian-item { padding: 21.32px 29px; }

  .mtpc-block-accordian-item-wrapper .mtpc-accordian-item.collapsed {
    padding-top: 22.82px;
    padding-bottom: 39.32px;
  }

  .mtpc-block-accordian-block-title { font-size: 30px; }

  .mtpc-block-accordian-block-title > .field__item.icon:before { top: 1.53px; }

  .mtpc-block-accordian-block-description { margin-top: 14.61px; }

  body .mtpc-section-item:has(.mtpc-block-accordian-block) h2,
  body .mtpc-section-item:has(.mtpc-block-accordian-block) + .mtpc-section-item h2 { font-size: 36px; }

  .mtpc-block-slideshow-block .slick-dots { bottom: 15px; }

  .mtpc-block-slideshow-block .slick-dots.circle li { width: 8px; height: 8px; }

  body .stg-highlights .mtpc-textarea h2,
  body .stg-demoflats .mtpc-textarea h2 { font-size: 21px; }
  
  body .stg-highlights .stg-tag { font-size: 18px; }

  body .stg-highlights { padding-top: 29.29px; }

  body .stg-highlights .field--name-field-mod-1-col-container > .field__item:has(h2) {
    padding-bottom: 18.53px;
  }

  body .mtpc-1col-section.stg-demoflats:has(h2) {
    padding-top: 51.52px;
    padding-bottom: 18.53px;
  }

  body .stg-highlights .mtpc-block-image-grid-item-wrapper { column-gap: 30px; }

  body .stg-highlights .mtpc-block-image-grid-item-wrapper > .mtpc-image-grid-block-item {
    width: calc((100% - 60px) / 3);
  }

  body .stg-highlights .grid_main_image { aspect-ratio: 136 / 99; }

  body .stg-highlights [data-stg-tag="publication"] .grid_main_image img {
    padding: 9px 0;
  }

  body .region-content:has(.stg-demoflats) { padding-bottom: 56.49px; }
}
