/* ==========================================================================
   Fil-Am World Magazine — additions for CMS-driven content
   Loaded AFTER styles.css. Everything here is additive: no existing rule is
   changed or overridden, so the responsive design is untouched.
   ========================================================================== */

/* A plate that contains a real photograph rather than an icon. */
.story .plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Article body typography inside the narrow shell. */
.article-body { margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.article-body > * + * { margin-top: 1.15em; }
.article-body p { font-size: 1.0625rem; line-height: 1.75; color: var(--text); }
.article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  margin-top: 2.25em;
}
.article-body h3 { font-size: 1.1875rem; margin-top: 1.9em; }
.article-body ul,
.article-body ol { padding-left: 1.35rem; }
.article-body li + li { margin-top: .4em; }
.article-body blockquote {
  margin: 2em 0;
  padding: 1.1rem 1.4rem;
  border-left: 4px solid var(--gold);
  background: var(--paper-cool);
  border-radius: 0 var(--r-sm, 6px) var(--r-sm, 6px) 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-md, 10px);
  display: block;
  margin: 2em auto;
}
.article-body figure { margin: 2em 0; }
.article-body figcaption,
.article-hero figcaption {
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: .6rem;
  text-align: center;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  display: block;
  overflow-x: auto;
}
.article-body th,
.article-body td {
  border: 1px solid var(--line);
  padding: .55rem .75rem;
  text-align: left;
}
.article-body .ql-align-center { text-align: center; }
.article-body .ql-align-right  { text-align: right; }

.article-hero {
  margin: clamp(1.75rem, 3vw, 2.5rem) 0 0;
}
.article-hero img {
  width: 100%;
  height: auto;
  border-radius: var(--r-md, 10px);
  display: block;
}

/* Public gallery grid, matching the site's card rhythm. */
.filam-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(.75rem, 1.6vw, 1.25rem);
}
.filam-gallery-item {
  margin: 0;
  border-radius: var(--r-md, 10px);
  overflow: hidden;
  background: var(--paper-cool);
}
.filam-gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.filam-gallery-item:hover img { transform: scale(1.04); }
.filam-gallery-item figcaption {
  font-size: .82rem;
  color: var(--text-muted);
  padding: .55rem .7rem .75rem;
}

/* Managed magazine covers and partner marks. */
[data-filam-feed="issues"] .card > img {
  width: min(12rem, 100%);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--r-md, 10px);
  box-shadow: var(--shadow-md);
}
[data-filam-feed="partners"] .logo-card > img {
  width: 100%;
  height: 5rem;
  object-fit: contain;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .filam-gallery-item img { transition: none; }
  .filam-gallery-item:hover img { transform: none; }
}
