#desktop-icons {
  position: absolute; top: 10px; left: 10px;
  display: grid;
  grid-auto-flow: column;          /* fill top-to-bottom, then next column */
  grid-template-rows: repeat(8, 90px);
  grid-auto-columns: 90px;
  gap: 4px 8px;
}
.desk-icon {
  display: flex; flex-direction: column; align-items: center;
  width: 90px; padding: 4px; text-decoration: none;
  color: white; text-align: center; font: 12px Tahoma, sans-serif;
  text-shadow: 1px 1px 1px #000;
}
.desk-icon img { width: 48px; height: 48px; image-rendering: pixelated; }
.desk-icon:hover span, .desk-icon:focus span {
  background: #000080; outline: 1px dotted #fff;   /* classic selected look */
}

/* phones: fewer rows, so icons wrap nicely */
@media (max-width: 700px) {
  #desktop-icons { grid-template-rows: repeat(5, 90px); position: static; padding: 10px; }
}