/* =======================
   Mobile Overrides
   max-width: 768px
======================= */

@media (max-width: 768px) {

  /* -----------------------
      Global
  ----------------------- */

  body {
    overflow-x: hidden;
    font-size: 16px;
  }

  * {
    cursor: auto !important;
  }

  /* -----------------------
      Header
  ----------------------- */

  #header img {
    position: relative;
    display: block;
    /* margin-left: auto; */
    /* margin-right: auto; */
    height: auto;
    width: 80%;
    padding: 20px;
  }

  /* -----------------------
      Bio Image
  ----------------------- */

  #bio img {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-width: 100%;
    margin: 40px 0;
    opacity: 0.9;
  }

  /* -----------------------
      Tiles (Home Nav)
  ----------------------- */

  #tiles {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 20px;
  }

  #tiles img {
    width: 40vw;
    height: auto;
}

  
  .tile {
    position: relative;
    width: 40vw;
    aspect-ratio: 1 / 1;
    overflow: hidden;
  }

  .tile::after {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;

    background: rgba(244, 241, 236, 0.75);
    color: #111;

    opacity: 1;
  }

  /* -----------------------
      Blur Effect
  ----------------------- */

  #home.blurred {
    filter: blur(6px);
  }

  /* -----------------------
      Overlays
  ----------------------- */

  .overlay {
    backdrop-filter: blur(10px);
  }

  .overlay-header {
    padding: 20px;
    max-height: none;
  }

  .overlay-title {
    font-size: 1.2rem;
    letter-spacing: 0.15rem;
  }

  .overlay-close {
    font-size: 1.8rem;
    width: 44px;
    height: 44px;
  }

  .overlay-content {
    margin-top: 120px;
    padding: 0 20px 60px;
  }

  /* -----------------------
      Category Sections
  ----------------------- */

  .category-section {
    margin-bottom: 80px;
  }

  .category-title {
    font-size: 1rem;
    letter-spacing: 0.15rem;
    margin-bottom: 30px;
  }

  /* -----------------------
      Media Grid
  ----------------------- */

  .media-grid {
    flex-direction: column;
    gap: 20px;
  }

  .media-item {
    width: 100%;
    aspect-ratio: 3/2;
    filter: saturate(0);
  }

  .media-item:hover {
    filter: none;
  }

  /* -----------------------
      Soundscape Grid
  ----------------------- */

  .soundscape-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .soundscape-item {
    aspect-ratio: auto;
    padding: 30px 20px;
  }

  .soundscape-title {
    font-size: 0.9rem;
    letter-spacing: 0.12rem;
  }

  .soundscape-duration {
    font-size: 0.8rem;
  }

  .soundscape-play {
    font-size: 1.8rem;
  }

  /* -----------------------
      Spotify Embed
  ----------------------- */

  .category-section iframe {
    width: 100%;
    margin-top: 40px;
  }

  /* -----------------------
      Projects Grid
  ----------------------- */

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .project-title {
    font-size: 1.2rem;
    letter-spacing: 0.12rem;
  }

  .project-description {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .project-link,
  .project-status {
    font-size: 0.8rem;
    letter-spacing: 0.1rem;
  }

  .project-overlay {
    opacity: 0;
    background: linear-gradient(
      to top,
      rgba(17, 17, 17, 0.85),
      rgba(17, 17, 17, 0.4)
    );
    justify-content: flex-end;
    padding: 24px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}