@media screen and (max-width: 1245px) {
  .lightbox_interior {
    margin: 70px;
    padding: 60px 40px 60px 40px;
  }
}

@media screen and (max-width: 1260px) {
  #menu {
    margin-left: 1.5rem;
  }

  #home_icon {
    width: 13px;
    margin-right: 9px;
  }

  a.menu_button {
    font-size: 15px;
  }
}

@media screen and (max-width: 1170px) {
  html,
  body {
    font-size: 22px;
  }

  .site_width {
    margin-left: 40px;
    margin-right: 40px;
  }

  .service_bullet {
    height: 9px;
    width: 9px;
    top: 9px;
  }

  .service_title {
    padding-left: 28px;
  }
}

@media screen and (max-width: 1120px) {
  #menu_burger {
    display: block;
  }

  #header_inner {
    position: relative;
  }

  #menu {
    position: fixed;
    top: 0;
    left: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    background-color: #18191e;
    transform: none;
    z-index: 6666;
    flex-direction: column;
    align-items: flex-start;
    box-sizing: border-box;
    justify-content: space-around;
    padding-left: 50px;
    padding-right: 50px;
    display: none;
  }

  .button_underline {
    background-color: white;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1.5px;
  }

  a.menu_button:hover .button_underline {
    display: none;
  }

  #menu.open {
    display: flex;
  }

  #menu_inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: auto;
    padding: 10vh 0;
    max-height: 450px;
    min-height: 300px;
  }

  a.menu_button {
    padding: 0;
    color: #dfe2d5;
    font-size: 28px;
    background-color: transparent !important;
  }

  a.menu_button:hover {
    color: white;
  }

  #home_icon {
    display: none;
  }

  #home_icon2 {
    height: 30px;
    width: 28px;
    display: block;
  }

  #home_icon2:hover {
    background-position: bottom;
  }

  #small_screen_menu_footer {
    display: flex;
  }

  #yhea_logo {
    width: 50%;
  }

  #header_line {
    height: 12px;
  }

  .service {
    margin-left: 0px;
  }

  .lightbox_close {
    height: 50px;
    width: 50px;
  }
}

@media screen and (max-width: 1111px) {
  .event_image,
  .event_image_background {
    width: 40%;
  }

  .event_details {
    padding: 40px 40px 40px calc(40% + 40px);
  }

  .inline_event .event_container {
    margin-top: 40px;
    margin-bottom: 60px;
  }

  .team_member_email {
    font-size: 14px;
  }
}

@media screen and (max-width: 1072px) {
  .service {
    padding-right: 60px;
  }
}

@media screen and (max-width: 1045px) {
  #home_icon {
    width: 12px;
    margin-right: 7px;
  }

  .lightbox_left_column {
    width: calc(60% - 40px);
  }

  .lightbox_right_column {
    width: 40%;
  }
}

@media screen and (max-width: 995px) {

  .lightbox_interior {
    margin: 50px;
    padding: 50px 40px 50px 40px;
  }
}

@media screen and (max-width: 950px) {
  #team_container_inner {
    display: block;
    flex-direction: inherit;
    justify-content: normal;
  }

  .team_member_container {
    width: 100%;
    border-bottom: 1px solid black;
    display: flex;
    align-items: flex-start;
  }

  .team_member_photo {
    margin-top: 8px;
    padding-bottom: 38%;
    width: 50%;
    margin-right: 30px;
    margin-bottom: 20px;
    flex: 1;
  }

  .team_member_details {
    flex: 2;
  }

  .team_member_role {
    padding-bottom: 20px;
  }

  .team_member_email {
    font-size: 16px;
  }
}

@media screen and (max-width: 900px) {
  html,
  body {
    font-size: 20px;
  }

  h1 {
    font-size: 7.5vw;
  }

  .flexi_spacer3 {
    height: 4vh;
    max-height: 30px;
  }

  .event_image {
    position: relative;
    left: 0px;
    width: 100%;
    height: 300px;
  }

  .event_image_background {
    height: 300px;
    width: 100%;
  }

  .event_details {
    padding: 30px 30px 30px 30px;
  }

  .service_title,
  .service_stage {
    line-height: 1.4em;
  }

  .service_bullet {
    height: 8px;
    width: 8px;
  }

  .service {
    margin-bottom: 1.4em;
    padding-right: 35px;
  }

  .lightbox_venue,
  .find_this_event {
    font-size: 20px;
  }

  a.box_button,
  .box_button,
  .box_button_text {
    font-size: 18px;
    padding: 12px 20px 13px 20px;
  }

  a.box_button,
  .box_button {
    margin-top: 10px;
  }
}

@media screen and (max-width: 800px) {
  .services {
    margin-left: -6px;
  }

  .service {
    padding-right: 0px;
    margin-bottom: 0px;
    padding-bottom: 20px;
  }

  .selected .service_title {
    font-weight: 400;
    cursor: pointer;
  }

  .open_service .service_title {
    font-weight: 900;
  }

  .services_chevron,
  .service_stage {
    display: none;
  }

  .service_description {
    line-height: 1.4em;
    display: block;
  }

  .services_container {
    float: none;
    width: auto;
  }

  .service_bullet {
    height: 16px;
    width: 16px;
    background: url("../images/plus.svg") transparent;
    top: 4px;
    border-radius: 50%;
    cursor: pointer;
  }

  .selected .service_bullet {
    transform: rotate(0deg);
  }

  .open_service .service_bullet {
    transform: rotate(135deg);
  }

  .service_title {
    display: block;
  }

  .services_divide_line {
    left: 7px;
    top: 5px;
    bottom: 5px;
  }

  .service_line_cover,
  .service_line_cover2,
  .services_chevron2 {
    display: block;
  }

  .inline_banner {
    margin-top: 40px;
  }

  .lightbox_interior {
    padding: 60px 40px 50px 40px;
  }

  .lightbox_left_column {
    width: 100%;
    float: none;
  }

  .lightbox_right_column {
    width: 100%;
    float: none;
    padding-bottom: 20px;
    padding-top: 20px;
  }

  .lightbox_header {
    padding-bottom: 20px;
  }

  .lightbox_image {
    margin-top: 10px;
  }

  .lightbox_line {
    margin-top: 30px;
  }
}

@media screen and (max-width: 760px) {
  .flexi_spacer3 {
    height: 3vh;
    max-height: 15px;
  }

  #team_container {
    padding-top: 30px;
  }
}

@media screen and (max-width: 700px) {
  .site_width {
    margin-left: 25px;
    margin-right: 25px;
  }

  #header_line {
    height: 10px;
  }

  .lightbox_line {
    height: 6px;
  }

  .inline_event .event_container {
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .lightbox_title,
  .lightbox_date {
    font-size: 26px;
  }
}

@media screen and (max-width: 600px) {
  #header_line {
    height: 8px;
  }

  #yhea_logo {
    width: 60%;
  }

  .event_details {
    padding: 25px 25px 30px 25px;
  }

  .event_container {
    margin-top: 15px;
    margin-bottom: 15px;
  }

  .event_title {
    font-size: 22px;
  }

  .event_date {
    font-size: 16px;
  }

  .event_venue {
    font-size: 16px;
  }

  .event_category {
    font-size: 14px;
    padding: 7px 12px 7px 12px;
    margin-top: 12px;
  }

  .event_short_description {
    font-size: 16px;
    padding-top: 16px;
    padding-bottom: 7px;
  }

  a.event_find_out_more {
    font-size: 16px;
  }

  .inline_banner {
    width: 100vw;
    margin-left: -25px;
  }

  .flexi_spacer1 {
    height: 6vh;
    max-height: 50px;
  }

  .flexi_spacer2 {
    height: 16vh;
    max-height: 60px;
  }

  .event_image,
  .event_image_background {
    height: auto;
    padding-bottom: 60%;
  }

  a.box_button,
  .box_button,
  .box_button_text {
    font-size: 16px;
    padding: 10px 15px 11px 15px;
  }

  a.box_button,
  .box_button {
    margin-top: 8px;
  }
}

@media screen and (max-width: 575px) {
  .lightbox_interior {
    margin: 30px;
    padding: 60px 30px 40px 30px;
  }

  .team_member_container {
    display: block;
  }

  .team_member_photo {
    width: 100%;
    padding-bottom: 118%;
  }

  .banner_caption {
    display: none;
  }

  .lightbox_line {
    margin-top: 20px;
  }
}

@media screen and (max-width: 500px) {
  #header_line {
    height: 5px;
  }

  .event_details {
    padding: 20px 20px 25px 20px;
  }

  html,
  body {
    font-size: 18px;
  }

  .service_title {
    font-size: 1rem;
  }

  .site_by {
    font-size: 12px;
    line-height: 18px;
  }

  .inline_banner {
    margin-top: 40px;
  }

  .lightbox_interior {
    margin: 15px;
    padding: 60px 20px 30px 20px;
  }

  #yhea_logo {
    width: auto;
    height: 50px;
  }

  #yhea_logo img {
    width: auto;
    height: 100%;
  }

  #team_container {
    padding-top: 20px;
  }

  .team_member_container {
    padding-bottom: 30px;
  }
}

@media screen and (max-width: 450px) {
  a.page_link {
    padding-bottom: 1px;
    line-height: 1.6em;
  }

  .team_member_name,
  .team_member_role {
    font-size: 7.5vw;
  }
}

@media screen and (max-width: 350px) {
  .team_member_email {
    font-size: 14px;
  }

  #small_screen_menu_footer {
    display: none;
  }
}

@media screen and (max-height: 600px) {
  #home_icon2 {
    width: 20px;
    background-size: 100%;
  }
}

@media screen and (max-height: 430px) {
  #small_screen_menu_footer {
    display: none;
  }
}
