.app-page {
  padding: 5rem 0;
}

.app-page__hero {
  display: grid;
  gap: 1rem;
  max-width: 820px;
}

.app-page__actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.app-page__media {
  margin-top: 2.5rem;
}

.app-placeholder-large {
  min-height: 360px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: repeating-linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0 10px, transparent 10px 20px);
  display: grid;
  place-items: center;
  color: #5c5c82;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-align: center;
}

.app-gallery {
  display: grid;
  gap: 0.7rem;
}

.app-gallery__main {
  width: 100%;
  height: clamp(320px, 56vw, 680px);
  box-shadow: var(--shadow);
}

.app-gallery__caption {
  color: var(--muted);
  font-size: 0.9rem;
}

.app-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.app-gallery__thumb {
  aspect-ratio: 16 / 10;
  padding: 0;
}

.app-gallery__thumb.is-active,
.app-gallery__thumb:hover {
  border-color: var(--accent);
}

.app-gallery__thumb img {
  display: block;
}

@media (max-width: 760px) {
  .app-page {
    padding: 3.5rem 0;
  }

  .app-gallery__main {
    height: clamp(260px, 76vw, 420px);
  }

  .app-gallery__thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-placeholder-large {
    min-height: 260px;
  }
}
