/* On phones the existing swipe gallery remains the project navigator. */
.desk-project, .desk-work-title, .desk-work-intro { display: none; }

@media (min-width: 761px) {
  #work #selected-work-heading,
  #work #work-gallery,
  #work .folio-home-invite {
    max-inline-size: 74rem;
    margin-inline: auto;
  }

  #work #selected-work-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    margin-block-end: clamp(1.5rem, 3vw, 2.75rem);
  }
  #work .mobile-work-title, #selected-work-heading .section-intro { display: none; }
  #work .desk-work-title { display: block; }
  #work #work-title { font-size: clamp(2.8rem, 5.5vw, 5rem); line-height: 1.06; }
  #work .desk-work-intro {
    display: block; max-inline-size: 30ch; margin: 0;
    color: #d5cedf; font-size: clamp(1rem, 1.45vw, 1.16rem); line-height: 1.5;
  }

  #work #work-gallery {
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
    gap: clamp(1.15rem, 2.3vw, 1.85rem); align-items: stretch;
  }
  #work-gallery.device-gallery > a.project { display: none; }
  #work-gallery.device-gallery > a.project.desk-pick {
    display: flex; grid-column: auto; width: auto; min-width: 0; max-width: none;
    align-self: stretch; transform: none !important; opacity: 1;
    border: 1px solid #42384e; border-radius: 1.15rem;
    background: #19151f; color: #fff; text-decoration: none;
    transition: border-color .18s ease; cursor: pointer;
  }
  #work-gallery .desk-pick > .device-cover { display: none; }
  #work-gallery .desk-project {
    display: grid; grid-template-rows: auto 1fr; width: 100%; min-width: 0;
    overflow: hidden; border-radius: inherit;
  }
  #work-gallery .desk-project-preview {
    position: relative; aspect-ratio: 2.25; overflow: hidden;
    border-bottom: 1px solid #42384e; background: #23222b;
  }
  #work-gallery .desk-project-preview img {
    display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top;
    transform: none; filter: none;
  }
  #work-gallery .desk-project-details {
    display: grid; grid-template-columns: minmax(0,1fr) auto;
    grid-template-rows: auto auto 1fr; column-gap: .85rem; align-items: start;
    padding: clamp(1.1rem, 2.3vw, 1.8rem); text-align: start; background: #19151f;
  }
  #work-gallery .desk-project-field {
    grid-column: 1/-1; color: #d4b8ff; font-size: .94rem; font-weight: 600; line-height: 1.45;
  }
  #work-gallery .desk-project-details h3 {
    grid-column: 1; margin: .25rem 0 .4rem; font-size: clamp(1.6rem, 2.65vw, 2.25rem);
    line-height: 1.15; font-weight: 750; letter-spacing: normal; color: #fff;
  }
  #work-gallery .desk-project-details p {
    grid-column: 1/-1; max-inline-size: 50ch; margin: 0; color: #ddd5e6;
    font-size: 1.05rem; font-weight: 400; line-height: 1.55;
  }
  #work-gallery .desk-project-visit {
    grid-row: 2; grid-column: 2; align-self: center;
    display: inline-flex; align-items: center; gap: .4rem;
    color: #ddc5ff; font-size: .94rem; font-weight: 650; line-height: 1.3;
  }
  #work-gallery .desk-project-visit .icon { width: 1rem; height: 1rem; }
  #work-gallery.device-gallery > a.desk-pick:is(:hover,:focus-visible) { border-color: #ba93ec; }
  #work-gallery .desk-pick:is(:hover,:focus-visible) .desk-project-visit { text-decoration: underline; text-underline-offset: .23em; }
  #work-gallery.device-gallery > a.desk-pick:focus-visible { outline: 3px solid #d9b5ff; outline-offset: 4px; }
  body:has(#work-gallery .desk-pick:hover) .cursor { display: none; }
  #work-gallery .desk-pick * { cursor: pointer; }
  #work .folio-home-invite { margin-block-start: clamp(1.5rem, 3vw, 2.75rem); }
}
