/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

body {
  font-family: "Fira Code", ui-monospace, monospace;
}

body:has(.photo-stack) {
  margin: 0;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  margin-top: 4px;
}

img.photo-stack {
  display: block;
  width: 100%;
  height: auto;
}

img.admin-preview {
  display: block;
  max-width: 540px;
  max-height: 540px;
  width: auto;
  height: auto;
}

@media (min-width: 768px) {
  .photo-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
  }

  .photo-grid img.photo-stack[width][height] {
    width: auto;
    height: 45vh;
    max-width: 100%;
    flex: none;
    object-fit: contain;
  }
}
