/* by Creasant */

@media only screen and (max-width: 767px) {

  body h2 {
    font-size: 22px;
  }

  body .mtpc-block p,
  body .mtpc-block li,
  body .mtpc_news_description p,
  body .mtpc_news_description li {
    font-size: 16px;
    line-height: 1.7;
  }

  body header .mtpc_header .header.mobile .wrapper .logos {
    height: 78px;
    padding: 24px 20px;
  }

  body header .mtpc_header .header.mobile .wrapper .logos .logos_container {
    height: 30px;
  }

  body header .mtpc_header .header.mobile .wrapper .logos .logos_container .logos_left .logo_one a img {
    height: 35px;
  }

  body header .config_pages--type--header-block .mobile_menu_wrapper .mobile_navigation .cnt_close_menu_button {
    height: 78px;
    padding: 0 20px;
  }

  body :is(.mtpc-1col-section, .mtpc-2col-section, .mtpc-3col-section, .mtpc-4col-section):not(.full-width) {
    padding-right: 20px;
    padding-left: 20px;
  }

  body .space-top-90 {
    padding-top: 20px;
  }

  body .mtpc-block-textarea-block.space-top-60 {
    padding-top: 13.62px;
  }

  body .region-content {
    padding-bottom: 20px;
  }

  body .wcu-bio {
    padding-top: 34.17px;
  }

  body .wcu-bio h2 {
    font-size: 22px;
    line-height: 26.4px;
  }

  body .wcu-bio h2 b,
  body .wcu-bio h2 strong {
    font-size: 18px;
  }

  body .wcu-bio p.wcu-subtitle {
    margin-top: 20.41px;
    padding-bottom: 23.1px;
    font-size: 14px;
    line-height: 21px;
  }

  body .wcu-bio p.wcu-subtitle::after {
    margin-top: 25.02px;
  }

  body .wcu-bio .mtpc-block-image-block {
    margin-top: 30.68px;
    margin-bottom: 6px;
  }

  body .mtpc-section-item:has(.wcu-bio) + .mtpc-section-item .mtpc-1col-section {
    padding-bottom: 80px;
  }

  body .wcu-banner .mtpc-block-image-block img,
  body .region-highlighted .hkust-simple-text:has(> h1.wcu-banner-title) img {
    height: 120px;
  }

  body .wcu-banner .mtpc-block-textarea-block,
  body .region-highlighted .hkust-simple-text > h1.wcu-banner-title {
    padding: 0 20px 2.31px;
  }

  body h1.wcu-banner-title {
    font-size: 33px;
  }

  .region-content {
    background-image: none;
  }

  body:has(.wcu-bio) .region-content,
  body:has(.wcu-orbit) .region-content {
    background-image: inherit;
  }

  body .mtpc-profile-list-block,
  body .mtpc-profile-list-block.wcu-people--cards {
    --wcu-cols: 1;
    --wcu-gap: 20px;
    --wcu-item: 100%;
  }

  body .mtpc-profile-list-block .mtpc_pl_item_wrapper .mtpc_pl_pic {
    width: 160px;
  }

  body:has(.wcu-people--cards) .region-content {
    background-image: inherit;
  }

  body .mtpc-1col-section:has(.wcu-people--cards) {
    padding-bottom: 76.6px;
  }

  body .mtpc-1col-section:has(.wcu-people--cards) .mtpc-block-textarea-block {
    padding-top: 13.1px;
  }

  body .mtpc-profile-list-block.wcu-people--cards {
    --wcu-cols: 1;
    --wcu-item: 100%;
    padding-top: 24.625px;
    padding-bottom: 0;
  }

  body .wcu-people--cards .field--name-field-mtpc-profile-listing-item {
    row-gap: 60px;
  }

  body .wcu-people--cards .field--name-field-mtpc-profile-listing-item > .field__item::after {
    display: none;
  }

  body .wcu-people--cards .mtpc_pl_item_wrapper .mtpc_pl_pic {
    width: 160px;
    margin-bottom: 15.94px;
  }

  body .wcu-people--cards .mtpc_profile_name.english {
    font-size: 20px;
  }

  body .wcu-people--cards .mtpc-profile-deatils p + p {
    margin-top: 2px;
  }

  .mtpc-profile-list-block .mtpc-profile-deatils p {
    font-size: 16px;
    line-height: 23px;
  }

  body .wcu-people--cards .mtpc_pl_item_wrapper .mtpc_pl_texts .mtpc_profile_name_container {
    margin-bottom: 12.7px;
  }

  body .mtpc-profile-list-block .field--name-field-mtpc-profile-listing-item > .field__item:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: -41px;
    left: calc((100cqw - var(--wcu-cols) * 100% - (var(--wcu-cols) - 1) * var(--wcu-gap)) / -2);
    width: 100cqw;
    height: 1px;
    background: linear-gradient(90deg, var(--wcu-green) 10%, var(--wcu-blue-2) 90%);
    pointer-events: none;
  }

  body .wcu-theme {
    padding-top: 0;
  }

  body .wcu-theme.space-top-90 {
    padding-top: 40px;
  }

  body .wcu-theme .mtpc-2col-section-wrapper {
    padding: 30px 0 0 30px;
  }

  body .wcu-theme .mtpc-2col-section-wrapper > .mtpc-2col-item--1 {
    height: 120px;
  }

  body .wcu-theme .mtpc-2col-item--1 .mtpc-block-image-block::before {
    top: -30px;
    left: -30px;
    width: 30px;
    height: 30px;
    border-radius: 6px;
  }

  body .wcu-theme .mtpc-2col-item--2 .mtpc-block-textarea-block {
    padding: 24px 20px 44px;
  }

  body .wcu-theme h2 {
    font-size: 22px;
  }

  body .wcu-theme h2 + p {
    margin-top: 19px;
  }

  body #block-wcu-footer .hkust-simple-text,
  body #block-wcu-footer-tc .hkust-simple-text{
    row-gap: 15.2px;
    padding-top: 26.52px;
    padding-bottom: 27.48px;
  }

  body #block-wcu-footer p,
  body #block-wcu-footer p:has(img) strong,
  body #block-wcu-footer-tc p,
  body #block-wcu-footer-tc p:has(img) strong{
    font-size: 12px;
    line-height: 15px;
  }

  body #block-wcu-footer p:has(img),
  body #block-wcu-footer-tc p:has(img){
    flex-basis: 100%;
    font-size: 0;
    line-height: 0;
  }

  body #block-wcu-footer p img,
  body #block-wcu-footer-tc p img{
    display: block;
    margin: 13.7px auto 0;
  }

  body #block-wcu-footer p img:last-child,
  body #block-wcu-footer-tc p img:last-child{
    margin-right: auto;
  }

  body #block-wcu-footer p br + img,
  body #block-wcu-footer-tc p br + img {
    margin-top: 1.2px;
  }

  body #block-wcu-footer p br + img[width="54"][height="54"],
  body #block-wcu-footer-tc p br + img[width="54"][height="54"] {
    margin-top: 7.5px;
  }

  body #block-wcu-footer p:not(:has(img)),
  body #block-wcu-footer-tc p:not(:has(img)) {
    margin-top: 19.55px;
  }

  body #block-wcu-footer p:not(:has(img)):not(:last-child),
  body #block-wcu-footer-tc p:not(:has(img)):not(:last-child) {
    font-size: 16px;
    line-height: 20.08px;
  }

  body #block-wcu-footer p:not(:has(img)) + p:not(:has(img)),
  body #block-wcu-footer-tc p:not(:has(img)) + p:not(:has(img)) {
    margin-top: -0.28px;
    padding-top: 6.52px;
  }

  table.tbl-bg {
    --wcu-tbl-text: 16px;
    --wcu-tbl-line: 20px;
    --wcu-tbl-small: 14px;
    --wcu-tbl-small-line: 17.5px;
    --wcu-tbl-gap: 16px;
    --wcu-tbl-pad-y: 16px;
    --wcu-tbl-rule: 20px;
    --wcu-tbl-time: 75px;
    --wcu-tbl-day: 30px;
    --wcu-tbl-date: 18px;
    --wcu-tbl-head-pad: 15px;
    --wcu-tbl-day-shift: -5.1px;
    --wcu-tbl-day-gap: 16px;
  }

  table.tbl-bg:not(:has(thead th + th)) {
    --wcu-tbl-min: 600px;
    --wcu-tbl-time: 115px;
  }

  table.tbl-bg:has(thead th + th) {
    --wcu-tbl-h3: 16px;
    --wcu-tbl-desc: 14px;
    --wcu-tbl-desc-line: 23.1px;
    --wcu-tbl-person: 240px;
    --wcu-tbl-panel-top: 20px;
    --wcu-tbl-date: 16px;
    --wcu-tbl-time: 75px;
    --wcu-tbl-head-pad: 5.84px 15px 6.16px;
    --wcu-tbl-copy-bottom: 40px;
  }

  body div.wcu-panel > h4,
  body div.wcu-panel > h4:first-child {
    text-align: left;
    /*width: var(--wcu-tbl-person, 240px);*/
    /*text-align: center;*/
  }
  
  body div.wcu-panel ul.wcu-people {
    justify-content: space-between;
  }

  body a.text-btn {
    padding: 13px 48px;
    font-size: 12px;
    line-height: 15px;
  }

  body h2.wcu-h2--lg {
    font-size: 22px;
    line-height: 33px;
  }

  body p.wcu-lead {
    font-size: 16px;
    line-height: 24px;
  }

  body .wcu-orbit .mtpc-block:has(h2.wcu-h2--lg) {
    padding-top: 30.87px;
  }

  body .wcu-orbit .field__item:has(h2.wcu-h2--lg) + .field__item > .mtpc-block {
    padding-top: 31.61px;
  }

  body .wcu-orbit .field--name-field-mod-1-col-container > .field__item:first-child > .mtpc-block:has(p.wcu-lead) {
    padding-top: 54.48px;
  }

  body .wcu-orbit .field__item:has(p.wcu-lead) + .field__item > .mtpc-block:has(a.text-btn) {
    padding-top: 23.12px;
  }

  body .wcu-orbit .field__item:has(p.wcu-lead) + .field__item > .mtpc-block:has(> .mtpc-block-image-grid-item-wrapper) {
    padding-top: 26.92px;
  }

  body .wcu-orbit .field__item:has(p.wcu-lead) + .field__item > .mtpc-profile-list-block {
    padding-top: 55.72px;
  }

  body .wcu-countdown .mtpc-block-textarea-block {
    padding-top: 21.98px;
    padding-bottom: 27.5px;
  }

  body .wcu-countdown .mtpc-block-textarea-block p {
    font-size: 16px;
    line-height: 21.6px;
  }

  body .wcu-countdown__clock {
    flex-direction: column;
    align-items: flex-start;
    width: max-content;
    margin: 25.32px auto 0;
    font-size: 48px;
    line-height: 52.16px;
  }

  body .wcu-countdown__digit {
    height: 56px;
  }

  body .mtpc-block-image-grid-item-wrapper > .mtpc-image-grid-block-item {
    width: 100%;
  }

  body .mtpc-block-image-grid-item-wrapper > .mtpc-image-grid-block-item .grid_main_image {
    aspect-ratio: 390 / 180;
  }

  body .mtpc-block-image-grid-item-wrapper > .mtpc-image-grid-block-item .mtpc-image-caption {
    font-size: 24px;
  }

  body .wcu-people--lg .field--name-field-mtpc-profile-listing-item {
    row-gap: 40px;
  }

  body .wcu-people--lg .mtpc_pl_item_wrapper .mtpc_pl_pic {
    margin-bottom: 10.36px;
  }

  body .wcu-people--lg .mtpc_pl_item_wrapper .mtpc_pl_texts .mtpc_profile_name_container {
    margin-bottom: 2.77px;
  }

  body:has(.wcu-orbit) {
    --wcu-venue-h: 240px;
  }

  body:has(.wcu-orbit) .region-content::after {
    background-image:

      url("data:image/svg+xml,%3Csvg xmlns='http:%2F%2Fwww.w3.org%2F2000%2Fsvg' width='860' height='6376' viewBox='0 0 860 6376'%3E%3Cstyle%3Eg g{animation:s linear infinite}%40keyframes s{to{transform:rotate(360deg)}}%40media(prefers-reduced-motion:reduce){g g{animation:none}}%3C%2Fstyle%3E%3Cg transform='translate(1491.0 4381.0) scale(1 0.96937)' fill='%23fff'%3E%3Cg style='animation-duration:83s'%3E%3Ccircle cx='-1047.6' cy='156.6' r='15.1' fill-opacity='0.82'%2F%3E%3C%2Fg%3E%3Cg style='animation-duration:94s;animation-direction:reverse'%3E%3Ccircle cx='-684.4' cy='-984.7' r='22.5'%2F%3E%3C%2Fg%3E%3Cg style='animation-duration:108s'%3E%3Ccircle cx='-671.7' cy='-1206.9' r='19.7' fill-opacity='0.95'%2F%3E%3Ccircle cx='-833.2' cy='1101.6' r='19.7' fill-opacity='0.82'%2F%3E%3C%2Fg%3E%3Cg style='animation-duration:123s;animation-direction:reverse'%3E%3Ccircle cx='-1425.4' cy='646.6' r='48.7'%2F%3E%3C%2Fg%3E%3Cg style='animation-duration:148s'%3E%3Ccircle cx='-1379.2' cy='-1286.1' r='29.4' fill-opacity='0.87'%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E"),
      linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 0.9));
  }

  body .mtpc-1col-section.wcu-venue {
    padding: 25.36px 20px 0;
  }

  body .wcu-venue .mtpc-block-textarea-block p {
    font-size: 16px;
    line-height: 20px;
  }

  body .wcu-venue .mtpc-block-textarea-block h2 {
    margin-top: 10.81px;
    font-size: 22px;
    line-height: 26.4px;
  }

  body .wcu-venue .mtpc-block-textarea-block p:has(> a.text-btn) {
    margin-top: 25.43px;
  }

  body .wcu-media-row h2:not(.wcu-h2--xl) {
    font-size: 22px;
  }

  body .wcu-media-row {
    --wcu-mk-x: 20px;
    --wcu-mk-y: 20px;
    --wcu-mk: 20px;
    --wcu-mk-r: 4px;
  }

  body .wcu-media-row--pair {
    --wcu-mk-x: 30px;
    --wcu-mk-y: 30px;
    --wcu-mk: 21px;
    --wcu-mk-r: 5px;
    --wcu-mk-top: 9px;
    --wcu-mk-sm: 8.5px;
    --wcu-mk-sm-r: 2px;
  }

  body .wcu-media-row {
    --wcu-media-h: 200px;
  }

  body .wcu-media-row.wcu-media-row--pair {
    --wcu-media-h: 180px;
  }

  body .wcu-media-row--thumb {
    --wcu-media-w: 225px;
    --wcu-media-h: 150px;
  }

  body .wcu-media-row--thumb > .mtpc-2col-section-wrapper > .mtpc-2col-item--1 {
    width: var(--wcu-media-w);
  }

  body .wcu-media-row--thumb > .mtpc-2col-section-wrapper > .mtpc-2col-item--2 {
    width: 100%;
    margin-left: 0;
  }

  body .wcu-media-row:not(.wcu-media-row--thumb) .mtpc-2col-item--2 .field__item > p:first-child {
    margin-top: 13.1px;
  }

  body .wcu-media-row .mtpc-2col-item--2 .field__item > h2:first-child {
    margin-top: 24.17px;
  }

  body .wcu-media-row .mtpc-2col-item--2 .field__item > p:first-child:has(> a.text-btn) {
    margin-top: 30px;
  }

  body .wcu-media-row .mtpc-2col-item--2 p:not(:first-child):has(> a.text-btn) {
    margin-top: 23.77px;
  }

  body .wcu-media-row .mtpc-2col-item--2 h2 + p,
  body .mtpc-1col-section.wcu-media-row h2 + p {
    margin-top: 8.81px;
  }

  body .mtpc-section-item:has(.wcu-banner) + .mtpc-section-item .wcu-media-row {
    padding-top: 40px;
  }

  body .mtpc-1col-section.wcu-media-row {
    --wcu-mk-x: 20px;
    --wcu-mk-y: 34.17px;
  }

  body .mtpc-1col-section.wcu-media-row p + table.tbl-noborder {
    margin-top: 13.42px;
  }

  body .mtpc-section-item:last-child .mtpc-1col-section.wcu-media-row {
    padding-bottom: 50.32px;
  }

  body .mtpc-1col-section.wcu-media-row.wcu-media-row--lg,
  body .mtpc-1col-section.wcu-media-row.about-section {
    --wcu-mk-x: 60px;
    --wcu-mk: 28.25px;
    --wcu-mk-r: 4px;
    --wcu-mk-top: 11.75px;
    --wcu-mk-sm: 11.75px;
    --wcu-mk-sm-r: 2.5px;
  }

  body .wcu-logo-row > .mtpc-2col-section-wrapper > .mtpc-2col-item--2 {
    margin-top: 30px;
  }

  body .mtpc-section-item:has(.wcu-banner) + .mtpc-section-item .wcu-logo-row {
    padding-top: 40px;
  }

  body .mtpc-section-item:has(.wcu-banner) + .mtpc-section-item:has(+ .mtpc-section-item .wcu-media-row) .mtpc-1col-section {
    padding-top: 33.1px;
  }

  body .mtpc-section-item:has(+ .mtpc-section-item .wcu-media-row) .mtpc-1col-section:not(.wcu-media-row, .wcu-banner) {
    padding-bottom: 25.71px;
  }

  body .mtpc-section-item:has(+ .mtpc-section-item .wcu-media-row) .mtpc-1col-section:not(.wcu-media-row, .wcu-banner) p + h2 {
    margin-top: 17.94px;
  }

  body h2.wcu-h2--xl {
    font-size: 22px;
    line-height: 26.4px;
  }

  table.tbl-noborder tr {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: baseline;
    padding: 2.3px 0;
  }

  table.tbl-noborder :is(th, td) {
    grid-column: 2;
    font-size: 16px;
    line-height: 26.4px;
  }

  table.tbl-noborder :is(th, td):first-child {
    grid-column: 1;
  }

  table.tbl-noborder td.wcu-dash::after {
    margin-right: 0;
  }

  body:has(.wcu-media-row) .region-content {
    background-image: inherit;
    background-position: center 120px;
  }

  body dialog.wcu-lightbox-dialog {
    padding-right: 20px;
    padding-left: 20px;
  }

  body dialog.wcu-lightbox-dialog button {
    top: 24px;
    right: 20px;
  }
}

@media only screen and (max-width: 767px) {

  body .view-id-news_events .view-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding: 0 20px;
  }

  body.page-node-type-news .region-content,
  body #block-wcu-news-back {
    padding: 0 20px;
  }

  body.page-node-type-news .mtpc_pagetitle.mtpc_news h1 {
    font-size: 22px;
  }

  html body:is(.path-news, .page-node-type-news) > .dialog-off-canvas-main-canvas > .layout-container > main {
    padding-bottom: 64px;
  }
  
  .organizers-logo-section.supported-by .mtpc-block-image-grid-item-wrapper.mtpc-image-grid-layout-small>.mtpc-image-grid-block-item {
    width: calc(50% - 20px);
  }
  
  .organizers-logo-section.sponsored-by .mtpc-block-image-grid-item-wrapper.mtpc-image-grid-layout-small {
    gap: 20px;
  }
  
  .organizers-logo-section.sponsored-by .mtpc-block-image-grid-item-wrapper > .mtpc-image-grid-block-item .grid_main_image img {
    margin: 0 auto;
  }
  
  #block-mtpc-secondfooter .mtpc-2col-item {
    flex: unset;
  }
  
  #block-mtpc-secondfooter .mtpc-2col-item .field__items {
    gap: 10px;
  }
  
  body .view-id-news_events.view-display-id-page_1 .view-content .views-row .row_container {
    flex-direction: column !important;
    align-items: stretch;
    padding: 30px 24px;
    gap: 20px;
  }
  body .view-id-news_events.view-display-id-page_1 .view-content .views-row .row_container.has_thumb .thumb_container {
    order: -1;
    flex: 0 0 auto;
    width: 100%;
  }
  
  body .view-id-news_events .view-content .views-row .row_container .mtpc_news_title h3, body .view-id-news_events .view-content .views-row .row_container .mtpc_news_title a {
    margin: 10px 0;
  }
}

@media only screen and (max-width: 640px) {
  #block-mtpc-secondfooter .mtpc-2col-item {
    width: 100%;
  }
  
  #block-mtpc-secondfooter .mtpc-2col-item .field__items {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 20px 24px;
  }

  /* Label stays on the left */
  #block-mtpc-secondfooter .mtpc-2col-item .field__item:first-child {
    flex: 0 0 100%;
    text-align: left;
  }

  /* Logo cells: full width, logo centred inside */
  #block-mtpc-secondfooter .mtpc-2col-item .field__item:not(:first-child) {
    flex: 0 0 100%;
    width: 100%;
    min-height: 0;
    justify-content: center;
  }
  #block-mtpc-secondfooter .mtpc-2col-item .field__item:not(:first-child) article,
  #block-mtpc-secondfooter .mtpc-2col-item .field__item:not(:first-child) img {
    margin-left: auto;
    margin-right: auto;
  }
  
  #block-mtpc-secondfooter .mtpc-2col-section {
    padding-top: 30px;
  }
  
  
}

@media only screen and (max-width: 580px) {
  table.tbl-bg thead tr th,
  table.tbl-bg thead tr th strong {
    font-size: 26px;
  }
}

@media only screen and (max-width: 527px) {
  body #block-wcu-footer p:has(img) a, body #block-wcu-footer p img, body p.wcu-footer img,
  body #block-wcu-footer-tc p:has(img) a, body #block-wcu-footer-tc p img, body p.wcu-footer img{
    display: block;
    margin-right: 0;
  }
}

@media only screen and (max-width: 480px) {
  header .mtpc_header .header .wrapper .logos .logos_left .logo_two.text_logo a {
    font-size: 32px;
    margin-left: 10px;
  }
}

@media only screen and (max-width: 420px) {
  header .mtpc_header .header .wrapper .logos .logos_left .logo_two.text_logo a {
    font-size: 30px;
    margin-left: 7px;
  }
  body header .mtpc_header .header.mobile .wrapper .logos .logos_container .logos_left .logo_one a img {
    height: 30px;   
  }
}