/* Shared JPG → PNG result layout; typography and colors stay site-owned. */
.jpg-to-png-page .file-list:has(a[download]) {
  max-height: none;
  overflow: visible;
}
.jpg-to-png-page .file-item:has(a[download]) {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 16px;
}
.jpg-to-png-page .file-item:has(a[download]) > .thumb {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}
.jpg-to-png-page .file-item:has(a[download]) > .file-meta {
  display: contents;
}
.jpg-to-png-page .file-meta > .image-compare__info {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  padding: 8px 36px 8px 0;
  white-space: normal;
  overflow: visible;
}
.jpg-to-png-page .file-meta .image-compare__info > span {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.jpg-to-png-page .image-compare__info > .file-name {
  margin-bottom: auto;
}
.jpg-to-png-page .image-compare__info > :last-child {
  margin-bottom: auto;
}
.jpg-to-png-page .file-meta > a[download] {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  margin-top: 0;
}
.jpg-to-png-page .file-item:has(a[download]) > .remove-file {
  position: absolute;
  top: 14px;
  right: 0;
}
@media (max-width: 480px) {
  .jpg-to-png-page .file-item:has(a[download]) { gap: 12px; }
  .jpg-to-png-page .file-meta > .image-compare__info { padding-right: 0; padding-top: 44px; gap: 8px; }
}
