* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #ffffff;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #111111;
}

.portfolio {
  width: min(100%, 1800px);
  margin: 0 auto;
  padding: clamp(10px, 1.5vw, 26px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.25vw, 22px);
  align-items: start;
}

.panel {
  margin: 0;
  min-width: 0;
}

.panel img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1122 / 1402;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

/* iPhone / phone: one image after another */
@media (max-width: 767px) {
  .portfolio {
    display: block;
    width: 100%;
    padding:
      max(10px, env(safe-area-inset-top))
      max(10px, env(safe-area-inset-right))
      max(18px, env(safe-area-inset-bottom))
      max(10px, env(safe-area-inset-left));
  }

  .panel {
    margin-bottom: 14px;
  }

  .panel:last-child {
    margin-bottom: 0;
  }

  .panel img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.07);
  }
}


.site-footer {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0 16px;
}

.guitar-library-button {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  overflow: hidden;
  border-radius: 50%;
  background: #111;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

/*
  The source emblem is a square image with the circular metal badge centered.
  Scale the source inside the 15x15 circular viewport so the badge fills it.
*/
.guitar-library-button img {
  position: absolute;
  width: 30px;
  height: 30px;
  max-width: none;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.guitar-library-button:hover,
.guitar-library-button:focus-visible {
  transform: scale(1.35);
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.42);
  outline: none;
}

@media (max-width: 767px) {
  .site-footer {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
}
