*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #fff;
  font-family: 'DM Mono', monospace;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
}

.photo-frame {
  display: flex;
  flex-direction: row;
  gap: 1in;
  width: 100%;
  max-width: 1200px;
  justify-content: center;
  align-items: center;
  flex: 1;
}

.photo-frame img {
  width: calc(50% - 0.5in);
  height: 70dvh;
  object-fit: contain;
  object-position: center;
  display: block;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.photo-frame img.visible {
  opacity: 1;
}

.controls {
  flex: 0;
  padding: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.shuffle-btn {
  background: transparent;
  border: 1.5px solid #111;
  color: #111;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.6rem 1.8rem;
  min-height: 44px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.shuffle-btn:hover {
  background: #111;
  color: #fff;
}

.shuffle-btn:active {
  transform: scale(0.97);
}

/* Narrow window — single photo only */
@media (max-width: 900px) {
  .photo-frame {
    gap: 0;
  }

  .photo-frame img {
    width: 100%;
    height: 80dvh;
    object-fit: contain;
  }

  #photo2 {
    display: none !important;
  }
}
