.photo-page {
  max-width: 1060px;
}

.photo-intro {
  max-width: 680px;
  margin: 0 auto 22px;
  text-align: center;
  color: var(--muted);
}

.photo-page h2 {
  font-size: 1.12rem;
  margin-bottom: 14px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
}

.photo-full {
  grid-column: 1 / -1;
}

.photo-dimensions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.photo-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.photo-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 400;
  margin: 2px 0 10px;
}

.photo-check input {
  margin: 0;
}

.photo-canvas-wrap {
  text-align: center;
  margin-top: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
}

#sourceCanvas {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

#sourceCanvas.cropping {
  cursor: crosshair;
  touch-action: none;
}

#preview {
  min-height: 0;
  margin: 12px 0;
}

#preview img {
  max-height: 420px;
}

#base64Result {
  margin-top: 20px;
}

#base64Output {
  min-height: 125px;
  font-family: Consolas, monospace;
  font-size: 0.82rem;
}

.photo-page .file-info,
.photo-page .small-note {
  overflow-wrap: anywhere;
}

@media (max-width: 650px) {
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .photo-full {
    grid-column: auto;
  }
}
