/* =========================================================
   Sean Aidan — News pages (/news and /view/...)
   Loaded after 2026.css, nav2026.css, logo.css, footer.css
   ========================================================= */

/* ---------- Helpers ---------- */
.skip-link{
  position:absolute; left:-9999px; top:0;
  background:#111111; color:#ffffff;
  padding:10px 16px; z-index:10000;
}
.skip-link:focus{ left:10px; top:10px; }

.wrap{
  max-width:990px;
  margin:0 auto;
  padding:0 10px;
  box-sizing:border-box;
  text-align:left;
}
.section{ padding:10px 0 40px; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-block;
  padding:12px 18px;
  border-radius:6px;
  border:0;
  font-family:"Raleway", Arial, Helvetica, sans-serif;
  font-size:13px;
  letter-spacing:0.04em;
  text-transform:uppercase;
  text-decoration:none;
  cursor:pointer;
  transition:background 0.2s ease, transform 0.2s ease;
}
/* !important so the site stylesheet's link colours can't override the buttons */
a.btn.btn-dark,
a.btn.btn-dark:link,
a.btn.btn-dark:visited{ background:#111111 !important; color:#ffffff !important; text-decoration:none !important; }
a.btn.btn-dark:hover,
a.btn.btn-dark:focus-visible{ background:#333333 !important; color:#ffffff !important; transform:translateY(-1px); }
a.btn.btn-light,
a.btn.btn-light:link,
a.btn.btn-light:visited{ background:#f7f7f7 !important; color:#111111 !important; border:1px solid #d8d8d8; text-decoration:none !important; }
a.btn.btn-light:hover,
a.btn.btn-light:focus-visible{ background:#efefef !important; color:#111111 !important; }

/* ---------- Page heading ---------- */
.page-head{ padding:30px 0 20px; }
.crumbs{
  margin:0 0 12px;
  font-size:13px;
  letter-spacing:0.04em;
  color:#777777;
}
.crumbs a,
.crumbs a:visited{ color:#777777 !important; text-decoration:none; }
.crumbs a:hover{ color:#111111 !important; text-decoration:underline; }
.crumbs span{ margin:0 8px; color:#bbbbbb; }

.page-head h1{
  margin:0 0 10px;
  font-family:"Raleway", Arial, Helvetica, sans-serif;
  font-size:34px;
  line-height:1.2;
  font-weight:400;
  color:#111111;
  text-align:left;
}
.page-head p{
  margin:0;
  font-size:17px;
  line-height:1.7;
  color:#555555;
  font-weight:300;
  text-align:left;
}

/* ---------- News list ---------- */
.news-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:24px;
  margin:0;
  padding:0;
  list-style:none;
}
.news-card{
  background:#ffffff;
  border:1px solid #e2e2e2;
  border-radius:10px;
  overflow:hidden;
  text-align:left;
  transition:box-shadow 0.2s ease, transform 0.2s ease;
}
.news-card:hover{
  box-shadow:0 10px 24px rgba(0,0,0,0.10);
  transform:translateY(-2px);
}
.news-card a,
.news-card a:visited{
  display:block;
  height:100%;
  color:inherit !important;
  text-decoration:none !important;
}
.news-card img{
  width:100%;
  aspect-ratio:3 / 2;
  object-fit:cover;
  display:block;
  background:#eeeeee;
}
.news-card-noimg{
  aspect-ratio:3 / 2;
  background:#f2f2f2 url("https://seanaidan.com/gifs/logo2026.png") no-repeat center / 40% auto;
}
.news-card-body{ padding:14px 16px 18px; }
.news-card time,
.news-card-date{
  display:block;
  margin:0 0 6px;
  font-family:"Raleway", Arial, Helvetica, sans-serif;
  font-size:12px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:#777777;
}
.news-card h2,
.news-card h3{
  margin:0 0 8px;
  font-size:18px;
  line-height:1.35;
  font-weight:600;
  color:#111111;
  text-align:left;
}
.news-card p{
  margin:0;
  font-size:14px;
  line-height:1.6;
  color:#333333;
  font-weight:300;
  text-align:left;
}

/* First item on page 1 spans the full width, like a lead story */
.news-grid--lead > :first-child{
  grid-column:1 / -1;
  display:grid;
}
.news-grid--lead > :first-child a{
  display:grid;
  grid-template-columns:1.4fr 1fr;
}
.news-grid--lead > :first-child img,
.news-grid--lead > :first-child .news-card-noimg{ height:100%; aspect-ratio:auto; min-height:280px; }
.news-grid--lead > :first-child .news-card-body{ padding:26px 28px; align-self:center; }
.news-grid--lead > :first-child h2,
.news-grid--lead > :first-child h3{ font-size:26px; }
.news-grid--lead > :first-child p{ font-size:16px; line-height:1.7; }

.news-empty{
  padding:30px;
  background:#f7f7f7;
  border:1px solid #e2e2e2;
  border-radius:10px;
  text-align:center;
}
.news-empty p{ margin:0 0 16px; color:#333333; text-align:center; }

/* ---------- Pager ---------- */
.pager{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:6px;
  margin:34px 0 0;
}
.pager a,
.pager span{
  min-width:40px;
  padding:9px 12px;
  border:1px solid #d8d8d8;
  border-radius:6px;
  font-size:14px;
  text-align:center;
  text-decoration:none !important;
  color:#111111 !important;
  background:#ffffff;
  box-sizing:border-box;
}
.pager a:hover{ background:#f2f2f2; }
.pager .current{ background:#111111; border-color:#111111; color:#ffffff !important; }

/* ---------- Single article ---------- */
.article{
  max-width:780px;
  margin:0 auto;
  text-align:left;
}
.article-meta{
  margin:0 0 10px;
  font-family:"Raleway", Arial, Helvetica, sans-serif;
  font-size:13px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:#777777;
}
.article-cover{
  margin:0 0 28px;
}
.article-cover img{
  width:100%;
  height:auto;
  display:block;
  border-radius:8px;
  cursor:zoom-in;
}
.article-cover figcaption{
  margin:8px 0 0;
  font-size:13px;
  color:#777777;
}
.article-body{
  font-size:17px;
  line-height:1.8;
  color:#222222;
  font-weight:300;
}
.article-body p{ margin:0 0 18px; text-align:left; font-size:inherit; line-height:inherit; }
.article-body h2,
.article-body h3{ margin:32px 0 12px; color:#111111; text-align:left; }
.article-body a{ color:#111111; text-decoration:underline; }
.article-body ul,
.article-body ol{ margin:0 0 18px; padding-left:24px; }
.article-body blockquote{
  margin:24px 0;
  padding:4px 0 4px 20px;
  border-left:3px solid #111111;
  font-style:italic;
}
.article-body img{ max-width:100%; height:auto; border-radius:6px; }

.gallery-title{
  margin:40px 0 16px;
  padding-top:24px;
  border-top:1px solid #eeeeee;
  font-family:"Raleway", Arial, Helvetica, sans-serif;
  font-size:18px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  font-weight:400;
  color:#777777;
  text-align:left;
}
.gallery{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(170px, 1fr));
  gap:10px;
}
.gallery a{
  display:block;
  border-radius:6px;
  overflow:hidden;
  cursor:zoom-in;
}
.gallery img{
  width:100%;
  aspect-ratio:1 / 1;
  object-fit:cover;
  display:block;
  transition:transform 0.3s ease, opacity 0.2s ease;
}
.gallery a:hover img,
.gallery a:focus-visible img{ transform:scale(1.04); opacity:0.92; }

.article-share{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin:36px 0 0;
  font-size:14px;
  color:#555555;
}

.article-nav{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin:40px 0 0;
  padding-top:24px;
  border-top:1px solid #eeeeee;
}
.article-nav a,
.article-nav a:visited{
  display:block;
  padding:14px 16px;
  border:1px solid #e2e2e2;
  border-radius:10px;
  color:#111111 !important;
  text-decoration:none !important;
  line-height:1.4;
  transition:background 0.2s ease;
}
.article-nav a:hover{ background:#f7f7f7; }
.article-nav small{
  display:block;
  margin:0 0 4px;
  font-size:12px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:#777777;
}
.article-nav .next{ grid-column:2; text-align:right; }

/* ---------- Lightbox ---------- */
.lightbox{
  position:fixed;
  inset:0;
  z-index:10001;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  background:rgba(0,0,0,0.92);
  padding:50px 60px;
  box-sizing:border-box;
}
.lightbox[hidden]{ display:none; }
.lightbox img{
  max-width:100%;
  max-height:calc(100vh - 140px);
  object-fit:contain;
  display:block;
}
.lightbox-caption{
  margin:12px 0 0;
  color:#dddddd;
  font-size:14px;
  text-align:center;
  max-width:800px;
}
.lightbox button{
  position:absolute;
  border:0;
  background:rgba(255,255,255,0.12);
  color:#ffffff;
  cursor:pointer;
  border-radius:50%;
  width:46px; height:46px;
  font-size:28px;
  line-height:46px;
  transition:background 0.2s ease;
}
.lightbox button:hover,
.lightbox button:focus-visible{ background:rgba(255,255,255,0.28); }
.lb-close{ top:14px; right:14px; }
.lb-prev{ left:12px; top:50%; transform:translateY(-50%); }
.lb-next{ right:12px; top:50%; transform:translateY(-50%); }

/* ---------- Cookie bar (same as other pages) ---------- */
.privacyDiv{ position:fixed; left:20px; right:20px; bottom:20px; z-index:9999; }
.privacyDiv[hidden]{ display:none; }
.cookie-bar{
  max-width:990px; margin:0 auto;
  display:flex; justify-content:space-between; align-items:center; gap:20px;
  background:#ffffff; border:1px solid #d9d9d9; border-radius:12px;
  box-shadow:0 10px 30px rgba(0,0,0,0.14);
  padding:18px 22px;
}
.cookie-text{ text-align:left; flex:1; }
.cookie-text strong{
  display:block; margin-bottom:6px;
  font-family:"Raleway", Arial, Helvetica, sans-serif;
  font-size:15px; letter-spacing:0.05em; text-transform:uppercase; color:#111111;
}
.cookie-text p{ margin:0; text-align:left; font-size:14px; line-height:1.6; color:#333333; font-weight:300; }
.cookie-text a{ color:#111111; text-decoration:underline; }
.cookie-actions{ display:flex; align-items:center; gap:12px; flex-shrink:0; }
a.cookie-link,
a.cookie-link:visited{
  display:inline-block; padding:11px 16px;
  border:1px solid #d8d8d8; border-radius:6px;
  background:#f7f7f7; color:#111111 !important; text-decoration:none;
  font-family:"Raleway", Arial, Helvetica, sans-serif;
  font-size:13px; letter-spacing:0.04em; text-transform:uppercase;
}
a.cookie-link:hover{ background:#efefef; }
.cookie-close{
  border:0; background:#111111; color:#ffffff;
  padding:12px 18px; border-radius:6px; cursor:pointer;
  font-family:"Raleway", Arial, Helvetica, sans-serif;
  font-size:13px; letter-spacing:0.04em; text-transform:uppercase;
}
.cookie-close:hover{ background:#333333; }

/* ---------- Tablet ---------- */
@media only screen and (max-width: 899px){
  .news-grid{ grid-template-columns:1fr 1fr; }
  .news-grid--lead > :first-child a{ grid-template-columns:1fr; }
  .news-grid--lead > :first-child img,
  .news-grid--lead > :first-child .news-card-noimg{ min-height:0; aspect-ratio:3 / 2; }
}

/* ---------- Mobile ---------- */
@media only screen and (max-width: 799px){
  .wrap{ width:90%; padding:0; }
  .page-head{ padding:20px 0 14px; }
  .page-head h1{ font-size:27px; }
  .page-head p{ font-size:16px; }
  .article-body{ font-size:16px; line-height:1.75; }
  .article-nav{ grid-template-columns:1fr; }
  .article-nav .next{ grid-column:auto; text-align:left; }
  .gallery{ grid-template-columns:repeat(auto-fill, minmax(110px, 1fr)); gap:6px; }
  .lightbox{ padding:60px 8px 30px; }
  .lb-prev, .lb-next{ top:auto; bottom:14px; transform:none; }
  .lb-prev{ left:calc(50% - 56px); }
  .lb-next{ right:calc(50% - 56px); }

  .privacyDiv{ left:12px; right:12px; bottom:12px; }
  .cookie-bar{ display:block; padding:16px; border-radius:10px; }
  .cookie-text{ margin-bottom:14px; }
  .cookie-actions{ flex-direction:column; align-items:stretch; gap:10px; }
  a.cookie-link, .cookie-close{ width:100%; text-align:center; box-sizing:border-box; }
}
@media only screen and (max-width: 559px){
  .news-grid{ grid-template-columns:1fr; }
  .news-grid--lead > :first-child h2,
  .news-grid--lead > :first-child h3{ font-size:21px; }
}
