/* Announcement card styles shared by index.php (display) and the editor
   preview in admin.php, so the preview cannot drift from the screen. */

.title {
  position: absolute;
  top: 0;
  z-index: 1;
  width: 100%;
  font-size: 4em;
  line-height: 110%;
  text-align: center;
  background: rgb(0, 129, 214);
  color: white;
}

.grid-item {
  margin-top: 10px;
  padding: 10px 20px;
  background: rgba(105, 195, 255, 0.3);
  border: 2px solid hsla(0, 0%, 0%, 0.5);
  border-radius: 25px;
  color: white;
}
.grid-item a { color: white !important; }
.grid-item img { vertical-align: middle; }

/* Default size; display.js steps it down for long headlines. */
.aHeader { font-size: 4em; }

/* One body size on every card: long bodies scroll, they do not shrink. */
.aBody { font-size: 2em; }
/* Stored image width/height attributes (up to 1728x2304) must not push past the card. */
.aBody img { max-width: 100%; height: auto; }
/* Bootstrap's trailing margin on the last paragraph/list gave cards uneven bottoms. */
.aBody > :last-child { margin-bottom: 0; }

.catImage { display: flex; align-items: center; }
