/* Email gallery (demos.etaridigitals.com/emails/), on the index's own tokens. */
.em-back { margin: 0 0 18px; font-size: .9rem; }
.em-back a { color: inherit; opacity: .75; text-decoration: none; }
.em-back a:hover { opacity: 1; }
.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
.em-brand { padding: 56px 0 24px; border-top: 1px solid rgba(255,255,255,.08); }
.em-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; align-items: end; margin-bottom: 28px; }
.em-head h2 { margin: 0; }
.em-head p { margin: 0; opacity: .8; max-width: 60ch; }
.em-head a { color: inherit; white-space: nowrap; }
.em-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.em-card { display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.02); }
.em-meta { padding: 20px 20px 16px; }
.em-meta p { margin: 0 0 8px; font-size: .9rem; line-height: 1.45; }
.em-flow { font-weight: 600; font-size: 1rem !important; }
.em-when { opacity: .7; }
.em-subject span, .em-preview span { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; opacity: .55; margin-bottom: 2px; }
.em-open { display: inline-block; margin-top: 6px; font-size: .88rem; color: inherit; }
/* The card preview is a screenshot of the top of the email (see
   build-emails.mjs); the whole card links to the full email. */
.em-frame { display: block; position: relative; height: 560px; overflow: hidden; background: #fff; border-top: 1px solid rgba(255,255,255,.08); }
.em-frame img { display: block; width: 100%; height: auto; }
@media (max-width: 1100px) { .em-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .em-head { grid-template-columns: minmax(0, 1fr); }
  .em-grid { grid-template-columns: minmax(0, 1fr); }
  .em-frame { height: 480px; }
}
