/* Только раскладка классической фотогалереи. */
.classic-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 840px;
  max-width: 100%;
  margin: 0;
  text-align: left;
}
.classic-gallery__item {
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid #a1b9e1;
  background: #fff;
}
.classic-gallery__photo {
  display: flex;
  height: 190px;
  align-items: center;
  justify-content: center;
}
.classic-gallery__photo img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: contain;
  border: 0;
}
.classic-gallery__photo:focus-visible {
  outline: 2px solid #7752a2;
  outline-offset: 3px;
}
.classic-gallery__item figcaption {
  margin-top: 10px;
  color: #000066;
  font: 12px/1.5 Verdana, Arial, sans-serif;
  text-align: center;
  overflow-wrap: anywhere;
}
@media print {
  .classic-gallery__item { break-inside: avoid; }
}
