/* Scoped improvements; the existing template and publication layout remain. */
.paper-box-image > div { position: relative; width: 100%; max-width: 400px; }
.paper-box-image video { display: block; width: 100%; height: auto; }
.paper-box-image .badge { z-index: 1; }
/* Gallery layout overrides the template's flex-start figure rules. */
.tiny-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
  padding: 14px 0 4px;
  align-items: start;
}
.tiny-projects-grid .tiny-project {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 180px auto;
  justify-content: normal;
  justify-items: center;
  align-items: stretch;
  align-content: start;
  width: 100%;
  min-width: 0;
  margin: 0;
}
.tiny-projects-grid .tiny-project-media {
  width: 100%;
  max-width: 280px;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.tiny-projects-grid .tiny-project img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  margin: 0;
  border: 0;
  box-shadow: none;
}
.tiny-projects-grid .tiny-project figcaption {
  box-sizing: border-box;
  justify-self: stretch;
  width: 100%;
  min-height: 3.6em;
  margin: 0;
  padding: 12px 6px 0;
  text-align: center;
  line-height: 1.45;
  font-family: inherit;
  font-size: .9em;
  font-weight: 500;
  color: #4c535b;
  overflow-wrap: break-word;
}
@media (max-width: 640px) {
  .tiny-projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .tiny-projects-grid .tiny-project { grid-template-rows: 150px auto; }
  .tiny-projects-grid .tiny-project figcaption { padding-top: 10px; font-size: .88em; }
}
@media (max-width: 360px) {
  .tiny-projects-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .tiny-projects-grid .tiny-project { grid-template-rows: 180px auto; }
}
.paper-box-image video[hidden] { display: none; }
.paper-box-image .animated-fallback { display: block; width: 100%; height: auto; }
.compact-publications p { margin-bottom: .85em; line-height: 1.6; }
