
/* SCANLINE: original responsive layout + System 7 adaptations */

@media (max-width: 760px) {
  html, body, #root {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
  }

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

  /* Original mobile approach: stack desktop columns */
  .layout {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 12px 8px !important;
    margin: 0 auto !important;
  }

  .layout > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  /* Keep Finder windows within the viewport */
  .layout .finder-window,
  .layout .scanline-finder-window {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* Keep the existing header and Macintosh identity */
  .topbar {
    max-width: 100% !important;
    min-width: 0 !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .topbar .brand {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .topbar .scanline-pixelmax-word {
    font-size: clamp(26px, 8vw, 38px) !important;
  }

  .topbar .scanline-pixelmax-subtitle {
    font-size: 17px !important;
  }

  /* Preserve original carousel sizing and image proportions */
  .post,
  .post-image-carousel,
  .post-image-frame {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .post-image-frame > img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 520px !important;
    object-fit: contain !important;
    object-position: left top !important;
  }

  /* Do not change image-decoration geometry or carousel controls */
  .scanline-photo-decoration {
    pointer-events: none !important;
  }
}


/* SCANLINE — mobile carousel arrows match desktop */
@media (max-width: 760px) {
  .post-image-dots button.post-image-arrow,
  .post-image-dots button.post-image-arrow:hover,
  .post-image-dots button.post-image-arrow:focus,
  .post-image-dots button.post-image-arrow:active {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
}
