* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #111;
  color: white;
}

.page {
  padding-bottom: 48px;
}

#sketch-frame {
  width: 100vw;
  height: 60vh;
  border: 0;
  display: block;
  background: black;
}


.controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.nav-button {
  margin: 0;
  padding: 12px 20px;
  border: 1px solid white;
  background: transparent;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

.nav-button:hover {
  background: white;
  color: black;
}

#counter {
  margin: 12px 16px 32px;
  text-align: center;
  font-size: 16px;
  color: #ccc;
}

.sketch-grid {
  width: min(1200px, calc(100vw - 32px));
  margin: 0 auto;
}

#grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid-item {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  padding: 0;
  border: 1px solid #444;
  background: #000;
  overflow: hidden;
  cursor: pointer;
}

.grid-item:hover {
  border-color: white;
}

.grid-item iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  pointer-events: none;
}

@media (max-width: 800px) {
  #grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  #grid-container {
    grid-template-columns: 1fr;
  }
}
