/* Lyon Apartments responsive layer — desktop design remains unchanged. */

@media screen and (max-width: 1100px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  *,
  *:before,
  *:after {
    box-sizing: border-box;
  }

  .top-menu-wrap {
    width: 100% !important;
    margin: 0 !important;
    position: relative;
  }

  .logo-menu-wrapper,
  .mainmenu-navigation,
  .homemenu,
  .homemenu > ul {
    width: 100% !important;
  }

  .logo {
    float: none !important;
    width: min(100%, 429px);
    height: auto !important;
  }

  .logo a,
  .logoimage {
    display: block;
    width: 100% !important;
    height: auto !important;
  }

  .social-header {
    top: min(131px, 30.54vw) !important;
    left: 0 !important;
    width: min(100%, 429px) !important;
    max-width: 100% !important;
    z-index: 30;
  }

  .social-header aside,
  .social-header .socialmedia-buttons,
  .social-header .social_contact_text {
    width: 100% !important;
    max-width: 100% !important;
  }

  .social_contact_text:before {
    font-size: clamp(11px, 3.3vw, 15px) !important;
    white-space: normal !important;
  }

  .mainmenu-navigation {
    clear: both;
    padding-top: 36px;
  }

  .homemenu {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  .menu-toggle {
    display: none !important;
  }

  .menu,
  .menu * {
    box-sizing: border-box;
  }

  .menu > li {
    float: left !important;
    width: 33.3333% !important;
    overflow: visible !important;
  }

  .menu > li > a {
    min-height: 58px;
    padding: 12px 5px 10px !important;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18) !important;
  }

  .homemenu .menu > li > a strong {
    display: block;
    font-size: clamp(12px, 3.5vw, 16px) !important;
    line-height: 1.25;
  }

  .homemenu .menu > li > a span {
    display: none !important;
  }

  .menu > li:last-child {
    clear: both;
    float: none !important;
    width: 100% !important;
  }

  .menu > li:last-child > a {
    min-height: 42px;
    padding: 10px 8px 7px !important;
  }

  .menu > li:last-child .sub-menu {
    position: static !important;
    left: auto !important;
    top: auto !important;
    display: flex !important;
    justify-content: center;
    width: 100% !important;
    box-shadow: none !important;
  }

  .menu > li:last-child .sub-menu li {
    display: block !important;
    float: none !important;
    width: 50% !important;
  }

  .homemenu .sub-menu .language-flag-link {
    min-width: 0 !important;
    padding: 8px 12px 10px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18) !important;
  }

  .language-flag {
    width: 48px !important;
    height: 28px !important;
  }

  .container {
    width: calc(100% - 24px) !important;
    max-width: 960px;
    margin: 18px auto 35px !important;
  }

  .page-contents {
    margin-top: 18px !important;
    padding: 0 0 18px !important;
  }

  .page-contents-wrap,
  .fullpage-contents-wrap,
  .page-container,
  .portfolio-wrap {
    width: 100% !important;
    max-width: 100% !important;
  }

  .two-column,
  .sidebar-wrap,
  .sidebar-wrap-single {
    float: none !important;
    width: 100% !important;
  }

  .sidebar-wrap,
  .sidebar-wrap-single {
    margin-top: 18px !important;
  }

  .entry-spaced-wrapper,
  .entry-post-wrapper {
    padding: 24px 22px 30px !important;
  }

  .entry-content,
  .entry-content p,
  .news-text,
  .news-text p,
  .work-details,
  .work-details p {
    font-size: 16px !important;
    line-height: 1.62 !important;
  }

  h1.entry-title,
  h1.entry-title[style] {
    padding: 13px 16px !important;
    font-size: 27px !important;
    line-height: 1.25 !important;
  }

  iframe,
  .entry-content iframe {
    max-width: 100% !important;
  }

  .sidebar-widget {
    padding: 24px 20px !important;
  }

  .sidebar-widget img {
    display: block;
    max-width: 100% !important;
    height: auto !important;
    margin-left: auto;
    margin-right: auto;
  }

  ul#portfolio-small {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100% !important;
    padding: 10px !important;
  }

  ul#portfolio-small li,
  ul#portfolio-small .portfolio-image-holder,
  ul#portfolio-small .thumbnail-loader,
  ul#portfolio-small .displayed-image {
    float: none !important;
    width: 100% !important;
    height: auto !important;
  }

  ul#portfolio-small li a {
    margin: 0 !important;
    border-radius: 4px;
  }

  ul#portfolio-small li img {
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 293 / 151;
    object-fit: cover;
  }

  #fullscr-copyright {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 42px;
  }

  #fullscr-copyright li {
    float: none !important;
    display: block !important;
    padding: 12px 15px !important;
    text-align: center;
  }

  #controls-wrapper,
  #progress-back,
  .super-navigation {
    display: none !important;
  }

  .mcycletextwrap,
  .home-welcome-box {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    float: none !important;
    width: calc(100% - 24px) !important;
    max-width: 540px;
    margin: 18px auto 26px !important;
    padding: 20px 20px 22px !important;
  }

  .home-welcome-box h3 {
    font-size: clamp(22px, 6vw, 27px) !important;
  }

  .home-welcome-box a.home-cta {
    display: block;
    width: 100%;
    padding: 12px 14px;
    text-align: center;
  }

  .home-welcome-box .home-contact {
    overflow-wrap: anywhere;
  }
}

@media screen and (max-width: 480px) {
  .container {
    width: calc(100% - 16px) !important;
  }

  .entry-spaced-wrapper,
  .entry-post-wrapper {
    padding: 20px 16px 26px !important;
  }

  .entry-content p[style] {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .home-welcome-box {
    width: calc(100% - 16px) !important;
  }

  .home-welcome-box .home-contact {
    font-size: 14px !important;
  }

  iframe[height="320"] {
    height: 260px !important;
  }
}

@media screen and (max-width: 350px) {
  ul#portfolio-small {
    grid-template-columns: 1fr;
  }
}

/* Lightweight touch gallery used only on phones/tablets. */
.lyon-mobile-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 65, 116, 0.96);
  touch-action: pan-y;
}

.lyon-mobile-lightbox[hidden] {
  display: none !important;
}

.lyon-mobile-lightbox img {
  display: block;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 90px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.lyon-lightbox-close,
.lyon-lightbox-prev,
.lyon-lightbox-next {
  position: fixed;
  z-index: 2;
  border: 0;
  border-radius: 50%;
  background: rgba(219, 158, 61, 0.94);
  color: #104174;
  font-family: Arial, sans-serif;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.lyon-lightbox-close {
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  font-size: 28px;
}

.lyon-lightbox-prev,
.lyon-lightbox-next {
  top: 50%;
  width: 42px;
  height: 42px;
  margin-top: -21px;
  font-size: 28px;
}

.lyon-lightbox-prev { left: 8px; }
.lyon-lightbox-next { right: 8px; }

.lyon-lightbox-count {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font: 600 14px/1.2 Arial, sans-serif;
}


/* Always-visible language selector on phones/tablets */
.mobile-language-switch {
  display: none;
}

@media screen and (max-width: 1100px) {
  .mobile-language-switch {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 8px 12px;
    background: #0755B8;
    position: relative;
    z-index: 99999;
  }

  .mobile-language-label {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
  }

  .mobile-language-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    min-height: 34px;
    padding: 3px 5px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 5px;
    background: rgba(255,255,255,.08);
  }

  .mobile-language-link img {
    display: block !important;
    width: 42px !important;
    height: 24px !important;
    max-width: none !important;
    object-fit: cover;
  }

  /* Hide the old dropdown language item on mobile to avoid duplication. */
  .homemenu .menu > li:last-child {
    display: none !important;
  }
}

/* Unified mobile header — 15 Aug 2026. The old absolutely-positioned phone strip is disabled on mobile. */
.mobile-contact-strip {
  display: none;
}

@media screen and (max-width: 1100px) {
  /* Old theme phone strip is positioned independently from the logo; hide it on mobile. */
  .social-header {
    display: none !important;
  }

  .top-menu-wrap,
  .logo-menu-wrapper {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .logo {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    float: none !important;
    width: min(100%, 429px) !important;
    height: auto !important;
    margin: 0 !important;
  }

  .logo a,
  .logoimage {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
  }

  .mobile-contact-strip {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 12px;
    width: min(100%, 429px);
    margin: 0;
    padding: 8px 10px 9px;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    clear: both;
    background: rgba(243, 239, 231, 0.98);
    border-top: 1px solid rgba(16,65,116,.16);
    border-bottom: 1px solid rgba(16,65,116,.22);
    color: #104174;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    box-sizing: border-box;
    z-index: 5;
  }

  .mobile-contact-strip .mobile-city,
  .mobile-contact-strip a {
    display: inline-block;
    position: static !important;
    margin: 0;
    padding: 0;
    color: #104174 !important;
    text-decoration: none !important;
    white-space: nowrap;
  }

  .mobile-contact-strip .mobile-city {
    color: #B97F22 !important;
    letter-spacing: .4px;
  }

  .mainmenu-navigation {
    clear: both !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
}

@media screen and (max-width: 380px) {
  .mobile-contact-strip {
    gap: 3px 8px;
    padding-left: 6px;
    padding-right: 6px;
    font-size: 12px;
  }
}
