@media (max-width: 768px) {
  
  .desktop-layout {
      display: none;
  }
  .mobile-layout {
      display: block;
  }

  * {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
  }
  *::-webkit-scrollbar {
    display: none !important;
  }

  html,
  body {
    width: 100%;
    height: 100%;
    font-family: 'SUIT', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 150%;
  }

  .bold {
    font-weight: 700;
  }

  body {
    overflow: hidden;
    background-color: #ffe58f;
  }

  a {
    color: white;
    text-decoration-line: none;
  }

  a:hover {
   text-decoration-line: none; 
  }

  .mobile-main {
    position: relative;
    height: 100vh;
    padding: 20px 16px;
  }

  .flag-menu a {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important;
    vertical-align: top;
    background: none;
    border: none;
    text-decoration: none;
  }
  
  .flag-menu img {
    display: block !important;
    width: auto !important;
    height: 58px !important;
    max-width: 100%;
    pointer-events: none;
  }
  
  .flag-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: auto !important;
    align-items: flex-start;
  }

  .dot-image {
    margin-top: 16px;
    width: 60%;
  }
  .dot-image img {
    width: 100%;
  }

  .bg-lettering {
    position: absolute;
    right: -120px;
    bottom: -10px;
    width: 150%;
    pointer-events: none;
  }
  .bg-lettering img {
    width: 100%;
  }

  .slide-panel {
    position: fixed;
    left: 0;
    bottom: -100%;
    width: 100vw;
    height: 90vh;
    background: #fff;
    color: #fff;
    padding: 20px 20px 0 20px;
    border-top: 0.5px solid black;
    transition: bottom 0.4s ease;
    z-index: 10000000;
    overflow: hidden;
  }
  
  .slide-panel.open {
    bottom: 0;
  }

  #slide-about {
    background: #8C7DFF;
  }
  #slide-online {
    background: #638CF5;
  }
  #slide-credit {
    background: #FF6365;
  }

  .slide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 26px;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.5);
  }
  .slide-header.list-header {
    border-bottom: none;
  }

  .slide-toggle {
    background: none;
    border: none;
    cursor: pointer;
  }

  .arrow {
    width: 19px;
    display: block;
    transform: translateY(-9px);
  }
  .arrow-up {
    display: none;
  }
  .slide-panel.open .arrow-up {
    display: block;
  }
  .slide-panel.open .arrow-down {
    display: none;
  }

  .slide-content {
    padding-top: 24px;
  }
  .slide-content p {
    margin-bottom: 16px;
  }

  .list-header {
    gap: 12px;
  }
  .slide-header .search-input {
    flex: 1;
    height: 36px;
    font-size: 15.5px;
    border: none;
    border-bottom: 0.5px solid #3468ea;
    border-radius: 0;
    padding: 0;
    outline: none;
    background: none;
    transform: translateY(-5px);
  }
  .slide-header .search-input::placeholder {
    color: #3468ea;
  }
  .slide-header .search-input:focus {
    color: white;
    border-bottom: 0.5px solid white;
  }

  .slide-list {
    padding-top: 15px;
    height: 100%;
    overflow-y: auto;
  }

  .slide-list .work-item {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
  }

  .work-item:hover {
    background-color: #638CF5;
  }

  .mobile-back {
    display: block;
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    text-decoration: none;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
  }

  .creditGroup {
    margin-bottom: 20px;
  }
  .creditGroup > p {
    font-weight: 700;
    margin-bottom: 6px;
  }
  .align p,
  .between p {
    margin-bottom: 4px;
  }
  .between {
    display: flex;
    justify-content: space-between;
  }

  #slide-credit {
    display: flex;
    flex-direction: column;
  }
  #slide-credit .slide-header {
    flex-shrink: 0;
  }
  #slide-credit .credit-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  #slide-about {
    display: flex;
    flex-direction: column;
  }
  #slide-about .slide-header {
    flex-shrink: 0;
  }
  #slide-about .slide-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .about-gallery {
    margin-top: 27px;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .about-gallery img {
    width: 100%;
    display: block;
    border-radius: 0;
  }

  .slide-panel > *:last-child,
  .credit-scroll > *:last-child,
  .slide-content > *:last-child,
  #guestbookMessageArea > *:last-child,
  .about-gallery > *:last-child {
    padding-bottom: 20px;
  }


  .slide-list .work-item:last-child {
    margin-bottom: 83px !important;
    }
}