/* Klinck Software LLC — portfolio screenshot gallery.
   Simple CSS "phone frame" treatment for real device screenshots.
   Uses the shared color variables defined in style.css; owns no globals. */

.shot-gallery {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0 8px;
  padding: 8px 0;
}

.phone-frame {
  position: relative;
  width: 156px;
  padding: 10px 8px;
  background: linear-gradient(160deg, #2b2b2f 0%, #17171a 100%);
  border-radius: 22px;
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  flex: 0 0 auto;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.phone-frame::before {
  /* speaker/notch nub */
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
}

.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 13px;
  background: #000;
}

.phone-frame.tilt {
  transform: rotate(3deg);
}

.shot-gallery:hover .phone-frame.tilt {
  transform: rotate(3deg);
}

.phone-frame:hover {
  transform: translateY(-4px) rotate(0deg);
  box-shadow:
    0 4px 10px rgba(20, 30, 25, 0.10),
    0 20px 40px rgba(20, 30, 25, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Responsive: stack on narrow viewports so frames stay legible */
@media (max-width: 640px) {
  .shot-gallery {
    gap: 18px;
  }
  .phone-frame {
    width: 42vw;
    max-width: 168px;
  }
  .phone-frame.tilt {
    transform: rotate(0deg);
  }
  .phone-frame:hover {
    transform: translateY(-2px);
  }
}
