.whiteboard-container {
  padding: 4rem 2rem;
  position: relative;
  background-size: cover;
  height: 600px;
  border: 1px solid #e5e5e5;
  border-radius: .8rem;
}

.whiteboard-container h2 {
  margin-top: 0;
  font-weight: 600;
}

.whiteboard-posts-container {
  height: 100%;
  overflow: auto;
}

.fullscreen-button {
  display: flex;
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  background-color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem;
  cursor: pointer;
  transition: background-color 0.1s ease-out;
}

.fullscreen-button:hover {
  background-color: #f9f9f9;
}

/* only show for screen readers */
.fullscreen-button span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.fullscreen-button svg {
  width: 1.5rem;
  height: 1.5rem;
}

.whiteboard-posts {
  padding: 0.5rem;
}

.whiteboard-posts.timeline {
  display: flex;
  overflow-x: auto;
  height: 100%;
  align-items: center;
  margin-bottom: -4rem; /* This is done to avoid vertical scrolling */
}

.whiteboard-posts.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-gap: 20px;
}

.whiteboard-posts.free {
  position: relative;
  height: 100%;
  overflow: auto;
}

.whiteboard-posts.free .whiteboard-card {
  position: absolute;
}

.whiteboard-card {
  flex: 0 0 auto;
  width: 250px;
  margin-right: 20px;
  background-color: white;
  border-radius: 0.75rem;
  padding: 0.5rem;
  overflow: hidden;
  transition: box-shadow 0.1s ease-out;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.whiteboard-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.whiteboard-card a {
  text-decoration: none;
  color: inherit;
}

.whiteboard-card img {
  width: 100%;
  height: 150px;
  border-radius: 0.5rem;
  object-fit: cover;
}

.whiteboard-card h3 {
  margin: 0;
  font-size: 16px;
  text-align: center;
}
