/* ============================================================
   St Anthony's Church — News & Events
   List-row cards (used on the public Events page and in the
   Parish Register admin) + the public post/gallery modal.
   ============================================================ */

/* ── List-row card ────────────────────────────────────────── */
.news-list-grid{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.news-list-card{
  display:flex;
  align-items:flex-start;
  gap:18px;
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:16px;
  box-shadow:var(--shadow-sm);
  transition:transform var(--transition-med), box-shadow var(--transition-med);
}

.news-list-card--clickable{
  cursor:pointer;
}

.news-list-card--clickable:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow-md);
}

.news-list-card__thumb{
  flex:0 0 96px;
  width:96px;
  height:96px;
  border-radius:var(--radius-sm);
  overflow:hidden;
  background:var(--cream-dark);
  display:flex;
  align-items:center;
  justify-content:center;
}

.news-list-card__thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.news-list-card__thumb i{
  font-size:1.6rem;
  color:var(--gold);
  opacity:.5;
}

.news-list-card__body{
  flex:1;
  min-width:0;
}

.news-list-card__tag{
  display:inline-block;
  font-size:.68rem;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  padding:3px 10px;
  border-radius:var(--radius-full);
  margin-bottom:8px;
}

.news-list-card__tag--event{ background:var(--tag-liturgy-bg); color:var(--tag-liturgy); }
.news-list-card__tag--news { background:#EEF2FF; color:#3B48B7; }

.news-list-card__title{
  font-family:'DM Sans',sans-serif;
  font-weight:700;
  font-size:1.05rem;
  color:var(--navy);
  margin-bottom:6px;
}

.news-list-card__excerpt{
  font-size:.9rem;
  color:var(--text-muted);
  line-height:1.6;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.news-list-card__meta{
  margin-top:8px;
  font-size:.78rem;
  color:var(--text-light);
}

.news-list-card__actions{
  flex:0 0 auto;
  align-self:center;
}

@media (max-width:560px){
  .news-list-card{ gap:12px; padding:12px; }
  .news-list-card__thumb{ flex-basis:72px; width:72px; height:72px; }
  .news-list-card__title{ font-size:.95rem; }
}

/* ── Public post / gallery modal ─────────────────────────────── */
.news-modal{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(13,27,62,.72);
  z-index:1000;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.news-modal--open{
  display:flex;
}

.news-modal__panel{
  background:var(--cream);
  border-radius:var(--radius-lg);
  max-width:760px;
  width:100%;
  max-height:88vh;
  overflow-y:auto;
  box-shadow:var(--shadow-lg);
  position:relative;
}

.news-modal__close{
  position:absolute;
  top:14px;
  right:14px;
  width:36px;
  height:36px;
  border-radius:50%;
  border:none;
  background:rgba(13,27,62,.55);
  color:var(--white);
  font-size:1rem;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:2;
}

.news-modal__cover{
  width:100%;
  max-height:320px;
  object-fit:cover;
  border-radius:var(--radius-lg) var(--radius-lg) 0 0;
  display:block;
}

.news-modal__body{
  padding:32px 36px 36px;
}

.news-modal__title{
  font-family:'Cinzel',serif;
  font-size:1.5rem;
  color:var(--navy);
  margin:10px 0 6px;
}

.news-modal__meta{
  font-size:.82rem;
  color:var(--text-muted);
  margin-bottom:18px;
}

.news-modal__content{
  font-size:.95rem;
  line-height:1.8;
  color:#444;
  white-space:pre-line;
}

.news-modal__gallery{
  margin-top:26px;
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(110px,1fr));
  gap:10px;
}

.news-modal__gallery a{
  display:block;
  aspect-ratio:1/1;
  border-radius:var(--radius-sm);
  overflow:hidden;
}

.news-modal__gallery img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform var(--transition-fast);
}

.news-modal__gallery a:hover img{
  transform:scale(1.06);
}

@media (max-width:600px){
  .news-modal__body{ padding:24px 20px 28px; }
}
