/* ==========================================================================
   MariaSigns — WordPress-only styles (real photos/videos, blog posts, pages)
   ========================================================================== */

/* Real photos inside placeholder frames keep every layout rule of .ph */
.ph.has-photo { padding: 0; background: var(--sand); }
.ph.has-photo::before, .ph.has-photo::after { display: none; }
.ph.has-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.event-photos .ph.has-photo, .bento .feature .ph.has-photo { position: relative; }

/* Real videos */
.video.has-video video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--ink); border-radius: var(--r-lg); }

/* Form messages */
.form-alert { margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; background: #FBEAEA; color: #7A1B1B; font-size: .92rem; font-weight: 600; }
.form-card [type=submit]:disabled { cursor: progress; }

/* Admin bar offset for the fixed header */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* ---------- Blog cards (real posts) ---------- */
.post { display: flex; flex-direction: column; }
.post-thumb { display: block; aspect-ratio: 16 / 11; overflow: hidden; background: var(--sand); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post:hover .post-thumb img { transform: scale(1.05); }
.post-body { display: flex; flex-direction: column; flex: 1; }
.post-title { font-size: 1.4rem; margin: 0 0 12px; }
.post-title a { transition: color .3s; }
.post-title a:hover { color: var(--gold); }
.post-excerpt { color: var(--muted); font-size: .97rem; margin-bottom: 18px; }
.post .link-arrow { margin-top: auto; align-self: flex-start; font-size: .92rem; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; display: grid; place-items: center; border: 1px solid var(--line-strong); font-weight: 700; color: var(--forest); }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--forest); color: var(--gold-soft); border-color: var(--forest); }

/* ---------- Single article ---------- */
.article-hero { padding-bottom: clamp(60px, 7vw, 90px); }
.article-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); max-width: 900px; margin-inline: auto; }
.article-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; color: rgba(255, 255, 255, .7); font-size: .9rem; font-weight: 600; }
.article-meta span { display: inline-flex; align-items: center; gap: 8px; }
.article-meta span + span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold-soft); margin-right: 12px; }
.article-cover { width: min(100% - 48px, 1040px); margin: -40px auto 0; position: relative; z-index: 2; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.article-cover img { width: 100%; height: auto; display: block; }

.entry-content { font-size: 1.12rem; line-height: 1.8; color: #2A3431; }
.entry-content > * { margin: 0 0 1.25em; }
.entry-content h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); margin: 1.8em 0 .6em; color: var(--ink); }
.entry-content h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin: 1.6em 0 .5em; color: var(--ink); }
.entry-content a { color: var(--forest); font-weight: 700; border-bottom: 1px solid var(--gold); }
.entry-content a:hover { color: var(--gold); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .5em; }
.entry-content li::marker { color: var(--gold); }
.entry-content blockquote { margin: 2em 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--gold); font-family: var(--serif); font-style: italic; font-size: 1.45rem; line-height: 1.45; color: var(--wine); }
.entry-content img, .entry-content figure { border-radius: var(--r); height: auto; }
.entry-content figcaption { font-size: .88rem; color: var(--muted); text-align: center; margin-top: 10px; }
.entry-content .alignwide { width: min(100vw - 48px, 1100px); margin-left: 50%; transform: translateX(-50%); }
.entry-content hr { border: 0; height: 1px; background: var(--line-strong); margin: 3em 0; }

.author-box { display: flex; gap: 22px; align-items: center; margin-top: 56px; padding: 28px; border-radius: var(--r-lg); background: var(--ivory); border: 1px solid var(--line); }
.author-box .ph-ic { margin: 0; width: 64px; height: 64px; flex-shrink: 0; color: var(--gold); border-color: var(--gold); }
.author-box strong { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 400; color: var(--ink); }
.author-box p { margin: 4px 0 0; color: var(--muted); font-size: .97rem; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.post-nav a { display: block; padding: 20px 24px; border-radius: var(--r); border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; }
.post-nav a:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.post-nav small { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.post-nav span { font-family: var(--serif); font-size: 1.1rem; color: var(--ink); }
.post-nav .next { text-align: right; grid-column: 2; }

@media (max-width: 680px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { grid-column: auto; text-align: left; }
  .author-box { flex-direction: column; align-items: flex-start; }
  .article-cover { width: calc(100% - 36px); margin-top: -28px; }
}
