  .menu-toggle {
    display: none;
  }

  .mobile-nav-panel {
    display: none;
  }
body {
    margin: 0;
    background: #4E6151;
    color: rgba(255, 255, 255, 0.95);
    overflow-x: hidden;
  }

  .logo-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 2px;
  }

  .site-subtitle {
    margin-top: 4px;
    text-align: center;
    font-family: "Poppins", sans-serif;
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #000;
  }

  /* Lock scroll only on the index page thumbnails view, not on pricing */
  body:not(.in-category):not(.pricing-page):not(.projects-page) {
    overflow-y: hidden;
  }

  body.in-category {
    overflow-y: auto;
  }

  body.projects-page {
    overflow-y: auto;
  }
  
  .header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    display: grid;
    grid-template-columns: auto 1fr 1fr 1fr 1fr; /* logo + 4 links */
    align-items: center;
    justify-items: center;
    z-index: 1000;
    font-family: "Source Code Pro", monospace;
    font-size: 14px;
  }

  .header {
    background: rgba(78, 97, 81, 0.96);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  }
  
  .header .logo {
    display: block;
  }

  .header .logo-block {
    justify-self: center;
    margin-left: 40px;
  }
  
  .header .logo img {
    display: block;
    height: 52px;
    width: auto;
  }
  
  .header a {
    text-decoration: none;
    color: white;
  }

  .nav-item a {
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid rgba(60, 40, 25, 0.8);
    background: #2a1b10; /* very dark brown, slightly lighter */
    color: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.28);
  }

  /* PROJECTS / ABOUT PAGE */
  .projects-page {
    background: #4E6151;
  }

  .projects-main {
    padding: 96px 24px 80px;
    max-width: 1100px;
    margin: 0 auto;
    font-family: "Source Code Pro", monospace;
  }

  .contact-main {
    max-width: 780px;
  }

  .projects-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 24px;
    font-family: "Poppins", sans-serif;
    color: rgba(255, 255, 255, 0.95);
  }

  .projects-intro {
    max-width: 640px;
    margin: 0 auto 48px;
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
  }

  .projects-intro-details {
    max-width: 640px;
    margin: 0 auto 40px;
    border: none;
    text-align: center;
  }

  .projects-intro-details > summary {
    list-style: none;
  }

  .projects-intro-details > summary::-webkit-details-marker {
    display: none;
  }

  .projects-intro-summary {
    cursor: pointer;
    font-family: "Source Code Pro", monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
    padding: 8px 18px;
    margin: 0 auto 14px;
    display: inline-block;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(0, 0, 0, 0.12);
    transition: background 0.2s ease, border-color 0.2s ease;
  }

  .projects-intro-summary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
  }

  .projects-intro-body {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    line-height: 1.65;
    padding: 4px 0 0;
  }

  .projects-intro-body p {
    margin: 0 0 14px;
  }

  .projects-intro-body p:last-child {
    margin-bottom: 0;
  }

  @media (min-width: 769px) {
    .projects-intro-summary {
      display: none;
    }

    .projects-intro-body {
      padding-top: 0;
    }
  }

  .project-card-paintings {
    grid-column: 1 / -1;
  }

  .paintings-strip {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding: 4px 2px 12px;
    margin-left: -2px;
    margin-right: -2px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
  }

  .paintings-strip::-webkit-scrollbar {
    height: 5px;
  }

  .paintings-strip::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.28);
    border-radius: 4px;
  }

  .painting-thumb {
    flex: 0 0 auto;
    width: min(44vw, 176px);
    height: min(44vw, 176px);
    padding: 0;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: start;
    background: rgba(0, 0, 0, 0.15);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .painting-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
  }

  .painting-thumb:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
  }

  .painting-thumb:focus {
    outline: none;
  }

  .painting-thumb:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.65);
    outline-offset: 3px;
  }

  .painting-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.55);
    padding: 52px 12px 36px;
    box-sizing: border-box;
  }

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

  .painting-lightbox-img {
    max-width: min(92vw, 960px);
    max-height: min(78vh, 900px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  }

  .painting-lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 10px;
    opacity: 0.92;
  }

  .painting-lightbox-close:hover {
    opacity: 1;
  }

  .painting-lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    padding: 12px 14px;
    cursor: pointer;
    opacity: 0.88;
  }

  .painting-lightbox-arrow:hover {
    opacity: 1;
  }

  .painting-lightbox-arrow[hidden] {
    display: none;
  }

  .painting-lightbox-prev {
    left: 2px;
  }

  .painting-lightbox-next {
    right: 2px;
  }

  .contact-intro {
    max-width: 520px;
  }

  .projects-contacts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 0 auto 40px;
  }

  .projects-contacts img {
    height: 30px;
    width: auto;
    display: block;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .projects-contacts a:hover img {
    opacity: 1;
    transform: translateY(-2px);
  }

  .projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    column-gap: 28px;
    row-gap: 20px;
    max-width: 1020px;
    margin: 40px auto 0;
    align-items: stretch;
  }

  .contact-card {
    max-width: 640px;
    margin: 32px auto 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    padding: 22px 22px 24px;
    box-sizing: border-box;
  }

  .contact-disclaimer {
    max-width: 520px;
    margin: 18px auto 0;
    font-size: 11px;
    text-align: center;
    color: rgba(255, 255, 255, 0.78);
  }

  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-family: "Source Code Pro", monospace;
    font-size: 12px;
  }

  .contact-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .contact-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
  }

  .contact-label span {
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 10px;
  }

  .contact-label input,
  .contact-label select,
  .contact-label textarea {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.20);
    color: rgba(255, 255, 255, 0.95);
    font-family: "Source Code Pro", monospace;
    font-size: 12px;
    padding: 8px 10px;
    outline: none;
    box-sizing: border-box;
  }

  .contact-label textarea {
    resize: vertical;
    min-height: 120px;
  }

  .contact-label input::placeholder,
  .contact-label textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
  }

  .contact-label input:focus,
  .contact-label select:focus,
  .contact-label textarea:focus {
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6);
  }

  .contact-submit {
    margin-top: 8px;
    align-self: flex-end;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.96);
    font-family: "Source Code Pro", monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  }

  .contact-submit:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.35);
  }

  .contact-submit:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  }

  .project-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 16px 18px 20px;
    box-sizing: border-box;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.25s ease, border-color 0.25s ease;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.95);
    height: 100%;
  }

  .project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
  }

  .project-card h2 {
    font-size: 13px;
    margin: 0 0 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-family: "Poppins", sans-serif;
    color: rgba(255, 255, 255, 0.98);
  }

  .project-card p {
    font-size: 12px;
    line-height: 1.6;
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.9);
  }

  .project-link {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 2px;
  }

  #loadingTitle {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    font-family: "Poppins", sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    pointer-events: none;
    z-index: 6;
    white-space: nowrap;
    transition: opacity 0.5s ease;
    color: rgba(255, 255, 255, 0.95);
  }

  #loadingTitle.dismissed {
    opacity: 0;
    pointer-events: none;
  }

  @media (min-width: 769px) {
    #loadingTitle {
      display: none;
    }
  }

  #brandText {
    position: fixed;
    bottom: 16px;
    left: 20px;
    font-family: "Source Code Pro", monospace;
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease;
  }

  #brandText.visible {
    opacity: 1;
  }

  #mainTitle {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: "Poppins", sans-serif;
    font-size: 8vw;
    font-weight: 700;
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.95);
  }

  #mainTitle.hidden {
    opacity: 0;
    pointer-events: none;
  }

  #categoryLabel {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-family: "Source Code Pro", monospace;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease;
  }

  #categoryLabel.visible {
    opacity: 1;
  }
  
  .collage {
    height: 100vh;
    position: relative;
    perspective: 1200px;
    padding: 5%;
    box-sizing: border-box;
  }
  
  .in-category .collage {
    margin-bottom: 40px;
  }

  .category-expand-hint {
    margin: 0;
    font-family: "Source Code Pro", monospace;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    z-index: 4;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }

  body.in-category .category-expand-hint {
    opacity: 0;
    visibility: hidden;
  }

  .collage .category-expand-hint {
    position: fixed;
    bottom: max(18px, env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100vw - 32px);
    text-align: center;
  }

  .category-expand-hint--carousel {
    display: none;
  }

  .mobile-carousel-wrap {
    display: none;
  }
  
  .thumb {
    position: absolute;
    width: 240px;
    opacity: 0;
    transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
    transform-style: preserve-3d;
    cursor: pointer;
    box-sizing: border-box;
    border-radius: 12px;
    overflow: hidden;
  }

  .thumb-label {
    position: absolute;
    font-family: "Source Code Pro", monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 2px 6px;
    color: #ffffff;
    mix-blend-mode: difference;
    pointer-events: auto;
    display: none;
    z-index: 6;
  }

  .thumb.loaded {
    opacity: 1;
  }
  
  /* Desktop layout: scale thumbnail widths with viewport for more consistent positioning */
  .thumb:nth-child(1) { left: 15%;  top: 12%; width: 25vw; z-index: 3; }   /* PLACES (slightly bigger, above GRAD) */
  .thumb:nth-child(2) { left: 22%; top: 44%; width: 18vw; }                /* STUDIO (moved a bit closer) */
  .thumb:nth-child(3) { left: 58%; top: 38%; width: 24vw; z-index: 1; }    /* PEOPLE (slightly bigger, below GRAD) */
  .thumb:nth-child(4) { left: calc(50% - 12vw); top: 22%; width: 23vw; z-index: 2; }  /* GRAD (center, slightly larger, between PLACES and PEOPLE) */
  
  .thumb:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  }

  .thumb::after {
    content: "";
    position: absolute;
    inset: 8%;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    opacity: 0;
    pointer-events: none;
    animation: thumbCue 2.6s ease-in-out infinite;
  }

  @keyframes thumbCue {
    0%, 60% { opacity: 0; transform: scale(1); }
    70% { opacity: 0.7; transform: scale(1.02); }
    90%, 100% { opacity: 0; transform: scale(1); }
  }

  #gallery {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 100px 20px 100px;
    box-sizing: border-box;
    column-count: 2;
    column-gap: 16px;
  }

  body:not(.in-category) #gallery {
    display: none;
  }
  
  .gallery-img {
    width: 100%;
    height: auto;
    display: block;
    break-inside: avoid;
    margin-bottom: 16px;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.2s ease;
    cursor: pointer;
  }

  .gallery-img.loaded {
    opacity: 1;
  }
  
  .gallery-img:hover {
    transform: scale(1.02);
  }
  
  #galleryLoading {
    font-family: "Source Code Pro", monospace;
    font-size: 12px;
    text-align: center;
    padding: 40px 0;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0.9;
    animation: galleryPulse 1.2s ease-in-out infinite;
  }
  
  #descriptionBox {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 260px;
    max-width: calc(100vw - 48px);
    font-family: "Source Code Pro", monospace;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
  }
  
  #lightbox {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(8px);
    background: rgba(0,0,0,0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
  }
  
  #lightbox img {
    max-width: 80%;
    max-height: 80%;
    animation: zoomIn 0.4s ease;
  }
  
  .lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 36px;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 0 16px;
  }
  
  .lightbox-arrow-left {
    left: 40px;
  }
  
  .lightbox-arrow-right {
    right: 40px;
  }
  
  #closeLightbox {
    position: absolute;
    top: 40px;
    right: 60px;
    font-size: 28px;
    color: white;
    cursor: pointer;
  }

  #backToTopBtn {
    position: fixed;
    bottom: 80px;
    right: 24px;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.4);
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.95);
    font-family: "Source Code Pro", monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(8px);
    z-index: 1100;
  }

  .in-category #backToTopBtn {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  
  @keyframes zoomIn {
    from {
      transform: scale(.9);
      opacity: 0;
    }
    to {
      transform: scale(1);
      opacity: 1;
    }
  }

  @keyframes slowFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
  }

  @keyframes galleryPulse {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
  }

  @keyframes thumbPulse {
    0%, 100% { transform: scale(1); }
    10% { transform: scale(1.06); }
    20% { transform: scale(1); }
  }

  @keyframes mobileFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-22px); }
    100% { transform: translateY(0); }
  }

  @media (max-width: 768px) {
    /* Allow vertical scroll on small screens so collage + hint aren't clipped
       by mobile browser chrome differences (Safari vs others). */
    body:not(.in-category):not(.pricing-page):not(.projects-page) {
      overflow-y: auto;
    }

    .header {
      padding: 10px 10px;
      font-size: 11px;
      grid-template-columns: auto auto;
      column-gap: 10px;
      justify-content: space-between;
      justify-items: center;
      align-items: center;
    }

    .header .logo-block {
      margin-left: 12px;
      justify-self: start;
    }

    .header .logo img {
      height: 36px;
    }

    .header .nav-item a {
      white-space: nowrap;
    }

    .menu-toggle {
      display: inline-block;
      border-radius: 999px;
      border: 1px solid rgba(60, 40, 25, 0.8);
      background: #2a1b10;
      color: #fff;
      font-family: "Source Code Pro", monospace;
      font-size: 11px;
      padding: 4px 12px;
      cursor: pointer;
      margin-right: 8px;
    }

    .header .nav-item {
      display: none;
    }

    .mobile-nav-panel {
      position: fixed;
      top: 64px;
      left: 10px;
      right: 10px;
      background: rgba(42, 27, 16, 0.98);
      border-radius: 12px;
      box-shadow: 0 10px 24px rgba(0,0,0,0.25);
      z-index: 1200;
      overflow: hidden;
    }

    .mobile-nav-panel a {
      display: block;
      padding: 10px 18px;
      font-family: "Source Code Pro", monospace;
      font-size: 12px;
      color: #fff;
      text-decoration: none;
      border-top: 1px solid rgba(255,255,255,0.08);
    }

    .mobile-nav-panel a:first-child {
      border-top: none;
    }

    .mobile-nav-panel a:hover {
      background: rgba(255,255,255,0.05);
    }

    .mobile-nav-panel.open {
      display: block;
    }

    #brandText {
      display: none;
    }

    .nav-photos::after,
    .nav-about::after {
      display: none;
    }

    .projects-main {
      padding: 72px 14px 44px;
    }

    .projects-title {
      margin-bottom: 12px;
    }

    .projects-intro-details {
      margin-bottom: 22px;
    }

    .projects-intro-body {
      font-size: 12.5px;
      line-height: 1.6;
    }

    .projects-intro-body p {
      margin-bottom: 12px;
    }

    .projects-contacts {
      margin-bottom: 22px;
      gap: 14px;
    }

    .projects-contacts img {
      height: 26px;
    }

    .projects-grid {
      position: static;
      height: auto;
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-top: 22px;
    }

    .project-card {
      position: static;
      width: 100%;
      max-width: none;
      animation: none;
      transform: none;
      margin: 0;
      padding: 14px 16px 16px;
    }

    .project-card h2 {
      margin: 0 0 8px;
      font-size: 12px;
    }

    .project-card p {
      font-size: 11.5px;
      line-height: 1.55;
      margin: 0 0 10px;
    }

    .project-card .project-link {
      font-size: 10px;
    }

    .painting-thumb {
      width: min(38vw, 148px);
      height: min(38vw, 148px);
    }

    .painting-lightbox-prev {
      left: 0;
    }

    .painting-lightbox-next {
      right: 0;
    }

    /* Mobile home: hide desktop collage, show carousel */
    .collage {
      display: none;
    }

    .collage .category-expand-hint {
      display: none;
    }

    .category-expand-hint--carousel {
      display: block;
      flex: 0 0 auto;
      text-align: center;
      padding: 2px 24px 0;
      align-self: center;
      max-width: 20rem;
    }

    .mobile-carousel-wrap {
      display: flex;
      flex-direction: column;
      min-height: calc(100vh - 120px);
      padding: 88px 0 24px;
      box-sizing: border-box;
      -webkit-overflow-scrolling: touch;
      perspective: 1400px;
      perspective-origin: center 40%;
      position: relative;
    }
    .mobile-carousel-wrap[aria-hidden="false"] {
      display: flex;
    }

    .carousel-track {
      display: flex;
      overflow-x: auto;
      overflow-y: visible;
      scroll-snap-type: x mandatory;
      scroll-behavior: smooth;
      gap: 0;
      flex: 0 0 auto;
      padding: 18px 9vw 6px;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      scroll-padding-left: 9vw;
      scroll-padding-right: 9vw;
    }
    .carousel-track::-webkit-scrollbar {
      display: none;
    }

    .carousel-card {
      flex: 0 0 auto;
      width: 82vw;
      max-width: 390px;
      scroll-snap-align: center;
      scroll-snap-stop: always;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      padding: 0 6px;
      box-sizing: border-box;
      transform-style: preserve-3d;
      transform-origin: center center;
      will-change: transform;
      backface-visibility: hidden;
      transition: transform 0.28s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.24s ease;
    }

    .thumb::after {
      display: none;
    }
    .carousel-card-img-wrap {
      width: 100%;
      height: 64vh;
      max-height: 420px;
      border-radius: 18px;
      overflow: hidden;
      background: transparent;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: none;
    }
    .carousel-card-img-wrap img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
      transition: transform 0.35s ease;
    }
    .carousel-card:active .carousel-card-img-wrap img {
      transform: scale(0.98);
    }

    .carousel-caption {
      flex: 0 0 auto;
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 20px 24px 0;
      text-align: center;
      justify-content: center;
      min-height: 72px;
    }
    .carousel-caption-inner {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .carousel-swipe-hint {
      font-size: 1.1rem;
      color: rgba(255, 255, 255, 0.38);
      line-height: 1;
      user-select: none;
      flex-shrink: 0;
    }
    .carousel-swipe-hint-left { margin-right: 4px; }
    .carousel-swipe-hint-right { margin-left: 4px; }
    .carousel-title {
      font-family: "Poppins", sans-serif;
      font-weight: 700;
      font-size: 1.7rem;
      margin: 0 0 6px;
      color: rgba(255, 255, 255, 0.95);
      letter-spacing: 0.02em;
    }
    .carousel-desc {
      font-family: "Source Code Pro", monospace;
      font-size: 13px;
      font-weight: 400;
      color: rgba(255, 255, 255, 0.85);
      margin: 0;
      line-height: 1.45;
    }
    .carousel-caption.animate .carousel-title,
    .carousel-caption.animate .carousel-desc {
      animation: captionFloatIn 0.4s ease forwards;
    }
    @keyframes captionFloatIn {
      from {
        opacity: 0;
        transform: translateY(10px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .thumb {
      position: static;
      box-sizing: border-box;
    }

    #gallery {
      padding: 100px 16px 80px;
      column-count: 1;
      column-gap: 12px;
    }

    .gallery-img {
      margin-bottom: 12px;
    }

    #descriptionBox {
      position: static;
      width: 100%;
      max-width: 320px;
      margin: 0 auto 24px;
    }

    #loadingTitle {
      font-size: 1.25rem;
    }

    #mainTitle {
      font-size: 12vw;
    }

    #categoryLabel {
      top: 90px;
      transform: none;
    }

    /* Lightbox adjustments on mobile: keep arrows on the side, off the photo */
    #lightbox img {
      max-width: 74%;
      max-height: 70%;
    }

    .lightbox-arrow {
      font-size: 30px;
      padding: 0 8px;
    }

    .lightbox-arrow-left {
      left: 8px;
    }

    .lightbox-arrow-right {
      right: 8px;
    }
  }