@media (min-width: 320px) {
  .mobile.menu-button {
    align-self: center;
  }
  .main-menu-mobile {
    
  }
  #mobile-search {
    display: flex;
  }
  #mobile-search form {
    width: 100%;
    padding-left: 20px;
  }
  #mobile-search form input.serach-btn {
    vertical-align: middle;
  }
  #mobile-search form input#query {
    color: #949393;
    width: 90%;
    height: 59px;
    font-size: 16px;
    font-weight: 300;
    border: 0px;
    background: #fafafa;
    vertical-align: middle;
    padding-left: 15px;
  }
  #mobile-search #mobile-menu-close-btn {
    cursor: pointer;
    align-self: center;
    margin-right: 23px;
  }
  #mobile-search #mobile-menu-close-btn button {
    background: none;
    border: none;
  }
  #mobile-menu-panel ul {
    display: flex;
    list-style: none;
    justify-content: space-around;
    padding: 0px;
    margin-bottom: 0px;
  }
  #mobile-menu-panel ul li {
    border: 1px solid #949393;
    flex: 1;
    text-align: center;
    padding: 5px 10px;
    border-left: none;
  }
  #mobile-menu-panel ul li:last-child {
    border-right: none;
  }
  #mobile-menu-panel ul li img {
    vertical-align: sub;
  }
  #mobile-menu-panel ul li a {
    color: #949393;
  }
  .main-menu-mobile ul.navbar-nav > li.show > a {
    background-color: #2f2c2d;
    color: #ff9020;
  }
  .main-menu-mobile ul.navbar-nav > li.show > a:after {
    background-image: url(/20201208103516oe_/http://web.swk.cuhk.edu.hk/images/second_development/arrow-button-show.png);
    top: 16px;
    right: 27px;
    width: 15px;
    height: 13px;
  }
  .main-menu-mobile ul.navbar-nav li {
    border-bottom: 1px solid #949393;
    position: relative;
  }
  .main-menu-mobile ul.navbar-nav li a {
    padding-left: 28px;
  }
  .main-menu-mobile ul.navbar-nav > li > a:after {
    border: none;
    content: '';
    background-image: url(/20201208103516oe_/http://web.swk.cuhk.edu.hk/images/second_development/arrow-button.png);
    width: 10px;
    height: 13px;
    background-repeat: no-repeat;
    display: inline-block;
    position: absolute;
    top: 14px;
    right: 25px;
  }
  .main-menu-mobile ul.navbar-nav > li > ul {
    background-color: #eeeeee;
    padding: 0px;
    margin: 0px;
    border: none;
  }
  .main-menu-mobile ul.navbar-nav > li > ul > li {
    padding: 14px 0px;
  }
  .main-menu-mobile ul.navbar-nav > li > ul > li > a {
    padding-left: 28px;
    display: block;
    line-height: 1.07;
    color: #565656;
  }
  .main-menu-mobile ul.navbar-nav > li > ul > li.parent > a {
    padding: 0px 0px 14px 28px;
  }
  .main-menu-mobile ul.navbar-nav > li > ul > li.parent > a:after {
    content: none;
  }
  .main-menu-mobile ul.navbar-nav > li > ul > li.parent > ul {
    display: block;
    padding: 0px;
    margin: 0px;
    border: none;
    background: #eeeeee;
  }
  .main-menu-mobile ul.navbar-nav > li > ul > li.parent > ul > li {
    border-top: 1px solid #949393;
    border-bottom: 0px;
    display: flex;
    padding: 13px 0px;
    line-height: 1.07;
  }
  .main-menu-mobile ul.navbar-nav > li > ul > li.parent > ul > li:last-child {
    padding: 13px 0px 0px 0px;
  }
  .main-menu-mobile ul.navbar-nav > li > ul > li.parent > ul > li > a {
    font-size: 15px;
    font-weight: 300;
    color: #565656;
    padding-left: 39px;
  }
  
  .main-menu-mobile ul.navbar-nav > li.default-show > a {
    background-color: #2f2c2d;
    color: #ff9020;
  }
  .main-menu-mobile ul.navbar-nav > li.default-show > a:after {
    background-image: url(/20201208103516oe_/http://web.swk.cuhk.edu.hk/images/second_development/arrow-button-show.png);
    top: 16px;
    right: 27px;
    width: 15px;
    height: 13px;
  }
  .main-menu-mobile ul.navbar-nav > li > ul.default-show {
    display: block;
  }
  .main-menu-mobile ul.dropdown-menu.show li.current.active > a {
    color: #ff9020;
  }
  .main-menu-mobile ul.dropdown-menu.show li.hidden-children > a {
    padding: 0px;
    padding-left: 28px;
  }
  .main-menu-mobile ul.dropdown-menu.show li.hidden-children ul {
    display: none;
  }
  div#menuButton {
      width: 20px;
      height: 13px;
      position: relative;
      -webkit-transform: rotate(0deg);
      -moz-transform: rotate(0deg);
      -o-transform: rotate(0deg);
      transform: rotate(0deg);
      -webkit-transition: .5s ease-in-out;
      -moz-transition: .5s ease-in-out;
      -o-transition: .5s ease-in-out;
      transition: .5s ease-in-out;
      cursor: pointer;
      float: right;
    }
    div#menuButton button {
      width: 24px;
      height: 24px;
      background: transparent;
      box-shadow: none;
      border: 0px;
    }
    div#menuButton span {
      display: block;
      position: absolute;
      height: 2px;
      width: 100%;
      background: #2f2c2d;
      border-radius: 0px;
      opacity: 1;
      left: 0;
      -webkit-transform: rotate(0deg);
      -moz-transform: rotate(0deg);
      -o-transform: rotate(0deg);
      transform: rotate(0deg);
      -webkit-transition: .25s ease-in-out;
      -moz-transition: .25s ease-in-out;
      -o-transition: .25s ease-in-out;
      transition: .25s ease-in-out;
    }
    div#menuButton span:nth-child(1) {
      top: 0px;
    }

    div#menuButton span:nth-child(2), div#menuButton span:nth-child(3) {
      top: 6px;
    }

    div#menuButton span:nth-child(4) {
      top: 12px;
    }

    div#menuButton.clicked span:nth-child(1)  {
      top: 18px;
      width: 0%;
      left: 50%;
    }

    div#menuButton.clicked span:nth-child(2) {
      -webkit-transform: rotate(45deg);
      -moz-transform: rotate(45deg);
      -o-transform: rotate(45deg);
      transform: rotate(45deg);
      background: #cfcfcf;
    }

    div#menuButton.clicked span:nth-child(3) {
      -webkit-transform: rotate(-45deg);
      -moz-transform: rotate(-45deg);
      -o-transform: rotate(-45deg);
      transform: rotate(-45deg);
      background: #cfcfcf;
    }
	
    div#menuButton.clicked span:nth-child(4) {
      top: 18px;
      width: 0%;
      left: 50%;
    }
    div#menuButton .access {
      display: none;
    }
  	/* Override Navbar collapse transition  */
  	.main-menu-mobile .navbar-collapse {
      position: absolute;
      top: 54px;
      left: unset;
      right: 0;
      width: 80%;
    }
    .main-menu-mobile .navbar-collapse.collapsing {
      height: auto;
      -webkit-transition: right 0.1s ease;
      -o-transition: right 0.1s ease;
      -moz-transition: right 0.1s ease;
      transition: right 0.1s ease;
      right: -100%;
      top: 0px;
      height: 100vh;
    }
    .main-menu-mobile .navbar-collapse.show {
      left: unset;
      -webkit-transition: right 0.1s ease-in;
      -o-transition: right 0.1s ease-in;
      -moz-transition: right 0.1s ease-in;
      transition: right 0.1s ease-in;
      z-index: 999;
      background: #fafafa;
      width: 90%;
      right: 0;
      top: 0px;
      height: 100vh;
      background-color: #fafafa;
      box-shadow: -1px 1px 3px 0 rgba(0, 0, 0, 0.3);
      overflow: scroll;
    }
  
  /** slider **/
  /* Slider */
  .slideshowck {
    margin-bottom: 0px !important; 
  }
  .slideshowck .camera_caption {
    height: 100%;
  }
  .slideshowck .cameraContent.cameracurrent  {
    padding: 18px 12px;
    height: 100%;
    background-image: linear-gradient(130deg, rgba(0,0,0,0.75) 0%, transparent 100% );
    opacity: 1;
    border-radius: 0px !important;
    background-color: transparent;
    padding: 25px 15px;
  }
  .slideshowck .camera_caption > div .camera_caption_title {
    color: white;
    font-size: 25px !important;
    font-weight: 900;
    margin-bottom: 5px;
    line-height: 1.06;
    font-family: 'Roboto', sans-serif;
    line-height: 1.2;
  }
  .slideshowck .camera_caption > div {
    background: none !important;
    padding-top: 30px;
    padding-left: 0px;
  }
  .slideshowck .camera_caption > div .camera_caption_desc p {
    display: none;
  }
  .slideshowck .camera_caption > div .camera_caption_desc {
    color: white;
    font-size: 17px !important;
    line-height: 1.18;
    font-weight: 500;
    margin-top: 30px;
    font-family: 'Roboto', sans-serif;
  }
  .slideshowck .camera_caption > div .camera_caption_desc a {
    color: white;
    font-size: 20px;
  }
  .slideshowck .camera_caption > div .camera_caption_desc a table td {
    border: 1px solid white;
    padding: 5px 12px;
  }
  .slideshowck .camera_caption > div .camera_caption_desc a table td img {
    width: 9px;
  }
  .slideshowck .camera_caption > div .camera_caption_desc a:hover {
    color: #fa9631;
    text-decoration: none;
  }
  .slideshowck .camera_caption > div .camera_caption_desc a:hover table td {
    border: 1px solid #fa9631;
  }
  .slideshowck div.camera_pag  ul.camera_pag_ul li {
    background-color: white;
    margin: 0px 5px;
  }
  .slideshowck div.camera_pag  ul.camera_pag_ul li span {
    display: none;
  }
  .slideshowck div.camera_pag  ul.camera_pag_ul li span:focus {
    outline: transparent;
  }
  .slideshowck div.camera_pag  ul.camera_pag_ul li.cameracurrent {
    background-color: #fa9631;
  }
  .slideshowck div.camera_pag {
    position: absolute;
    bottom: 10px;
    text-align: center;
    margin: 0 auto;
    left: 50%;
  }
  #index_boxes .custom {
    margin-top: 20px;
    padding: 0px;
  }
  #index_boxes .custom h2 {
    font-size: 35px;
  }
  #index_boxes .custom .box {
    border-bottom: 1px dashed #949393;
    padding: 40px 0px;
  }
  #index_boxes .custom .row > div:last-child > .box {
    border-bottom: 0px;
  }
  #index_events_annoucments_wrapper div.col-12 > div {
    padding: 47px 15px;
  }
  #index_events_annoucments_wrapper div.col-12.events ul li span.mod-articles-category-date {
    flex-basis: 40%;
    margin-right: 10px;
  }
  #index_events_annoucments_wrapper.desktop {
    display: none;
  }
  #index_events_annoucments_wrapper.mobile {
    display: block;
  }
  /** Footer **/
  #footer {
    background-color:#2f2c2d;
    padding: 0px;
    margin-top: 0px;
  }
  #footer_menu {
    padding: 0px;
  }
  #footer  ul.navbar-nav {
    align-items: flex-start;
    flex-direction: column;
  }
  #footer  ul.navbar-nav li {
    width: 100%;
  }
  #footer  ul.navbar-nav li a {
    display: block;
    color: white;
    border-right: 0px;
    border-bottom: 1px solid white;
    padding: 14px;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: normal;
    font-size: 16px;
    letter-spacing: 0.5px;
  }
  #footer .copyright {
    color: white;
    padding: 11px 14px;
    line-height: 1.2;
    font-size: 15px;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: normal;
  }
  
}
@media(min-width: 320px) and (max-width: 992px) {
  #a2apage_dropdown {
    right: 25px !important;
    left: initial !important;
  }
  #inner #content {
    margin-bottom: 0px;
  }
  #inner .back-btn {
    background-color: none;
    top: unset;
    right: unset;
    padding: 0px;
    position: relative;
  }
  #inner .back-btn a {
    background-color: #2f2c2d;
    position: absolute;
    right: 0%;
    padding: 0px 19px;
    margin-top: 16px;
    right: 11%;
    z-index: 99;
  }
  .director-message .director-info {
    margin-bottom: 1em;
  }
  #cuhk_logo {
    margin-right: 7px;
  }
  #cuhk_logo img {
    width: 60px;
  }
  #home_page_link img {
    width: 163px !important;
  }
  #index_events_annoucments_wrapper div.col-12 h2 {
    min-height: 0px;
  }
  #index_events_annoucments_wrapper .news .title h2 {
    width: 80%;
  }
  #index_events_annoucments_wrapper .events .title h2 {
    width: 50%;
  }
  #footer ul.navbar-nav li img {
    margin-left: 10px;
  }
  .card-listing-row > div .listing-card {
     margin-top: 30px;
   	 min-height: 333px;
  }
  .card-listing-row > div .listing-card:lang(en-gb){
  }
  #inner .legend {
    flex-direction: column !important;
  }
  #inner .item-page .inner-menu ~ div[itemprop="articleBody"] {
    padding: 0px;
    padding-bottom: 80px;
  }
  #inner .item-page.staff-card-listing div[itemprop="articleBody"] h4 {
    margin-top: 10px;
  }
}
@media (min-width: 767px) and (max-width: 768px) {
  #index_events_annoucments_wrapper .container {
    margin-left: 0px;
    margin-right: 0px;
    max-width: 768px;
  }
  #index_boxes .custom .box {
    border-bottom: 0px;
  }
  #index_boxes .custom .box .title {
    width: 100%;
  }
  #index_events_annoucments_wrapper div.col-12.events ul li span.mod-articles-category-date {
    flex-basis: 60%;
  }
}