/* Align the studio panels without stretching the page canvas or physical book. */
#editor-view {
  --editor-panel-padding: 24px;
}
#editor-view :is(.photo-edit-area, .album-preview-layout) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
  width: 100%;
}
#editor-view .photo-edit-area {
  padding-top: 24px;
}
#editor-view :is(.page-preview-wrap, .photo-settings, .album-settings) {
  min-width: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: var(--editor-panel-padding);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  align-self: stretch;
}
#editor-view .page-preview-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#editor-view .edit-page-preview {
  width: 100%;
  max-width: 450px;
  flex: none;
  align-self: center;
}
#editor-view .page-preview-wrap > .field-hint {
  width: min(100%, 450px);
  margin: 16px auto 0;
}
#editor-view :is(.photo-settings, .album-settings) {
  display: block;
}
#editor-view .album-preview-scene {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: var(--editor-panel-padding);
}
#editor-view .album-preview-display {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
#editor-view .album-preview-display > :is(.editor-preview-books, .wood-shelf) {
  flex: none;
}
@media (max-width: 960px) {
  #editor-view :is(.photo-edit-area, .album-preview-layout) {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}
@media (max-width: 720px) {
  #editor-view {
    --editor-panel-padding: 16px;
  }
}
