.fc-footer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px 32px;
}

.ui.container.fc-footer-layout {
  display: grid;
}

.fc-footer-details {
  overflow-wrap: anywhere;
}

.fc-footer-qr {
  margin: 0;
  text-align: center;
}

.fc-footer-qr img {
  display: block;
  width: 144px;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}

.fc-footer-qr figcaption {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .fc-footer-layout { grid-template-columns: minmax(0, 1fr); }
  .fc-footer-qr { justify-self: center; }
}

/* Older page templates use the browser's wider default viewport on phones. */
@media (min-width: 641px) and (max-width: 1024px) and (pointer: coarse) {
  .fc-footer-layout--legacy { grid-template-columns: minmax(0, 1fr); }
  .fc-footer-layout--legacy .fc-footer-qr { justify-self: center; }
  .fc-footer-layout--legacy .fc-footer-qr img { width: min(36vw, 360px); }
  .fc-footer-layout--legacy .fc-footer-qr figcaption { font-size: 30px; }
}
