.news-gallery {
  margin: 26px 0 4px;
  padding: clamp(16px, 2.5vw, 26px);
  border: 1px solid rgba(226, 181, 100, .28);
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 0 0, rgba(112, 42, 135, .16), transparent 55%),
    linear-gradient(135deg, #180d21, #0b0712 65%);
  box-shadow: inset 0 1px rgba(255, 233, 188, .06), 0 18px 35px #0003;
}
.news-gallery-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.news-gallery-heading .news-gallery-kicker {
  margin: 0 0 7px;
  color: #c5a075;
  font: 700 .61rem 'Inter', sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.news-gallery-heading h3 {
  margin: 0;
  color: #f1ddbd;
  font: 700 clamp(1.15rem, 2.1vw, 1.65rem) 'Cinzel', serif;
  line-height: 1.35;
  letter-spacing: -.01em;
}
.news-gallery-heading p:not(.news-gallery-kicker) {
  max-width: 600px;
  margin: 8px 0 0;
  color: #b9a9c5;
  font-size: .78rem;
  line-height: 1.7;
}
.news-gallery-total {
  flex-shrink: 0;
  padding: 8px 12px;
  border: 1px solid #9b734749;
  border-radius: 20px;
  background: #edc48909;
  color: #ddc29c;
  font: 600 .63rem 'Inter', sans-serif;
}
.news-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.news-gallery-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #ab855346;
  border-radius: 7px;
  background: #0d0a12;
  color: #e9d4ab;
  text-decoration: none;
  box-shadow: 0 5px 17px #0005;
  transition: border-color .18s, box-shadow .18s;
}
.news-gallery-item:hover {
  border-color: #ebc47ba6;
  box-shadow: 0 0 0 1px #edc28422, 0 7px 22px #0007;
}
.news-gallery-item:focus-visible {
  outline: 2px solid #ffe2a6;
  outline-offset: 4px;
}
.news-gallery-canvas {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 12px;
  background:
    linear-gradient(0deg, #34233f16 1px, transparent 1px),
    linear-gradient(90deg, #34233f16 1px, transparent 1px),
    radial-gradient(ellipse at center, #20152766, #08070c 85%);
  background-size: 20px 20px, 20px 20px, 100% 100%;
}
.news-gallery-canvas::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid #9c7a5830;
  border-radius: 2px;
  pointer-events: none;
}
.news-gallery-canvas img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  filter: none;
  box-shadow: none;
  image-rendering: auto;
}
.news-gallery-caption {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  height: 55px;
  padding: 9px 11px;
  border-top: 1px solid #96725338;
  background: linear-gradient(100deg, #25142488, #17101dcc);
  color: #e2d0b6;
  font: 600 .69rem/1.45 'Inter', sans-serif;
}
.news-gallery-caption small { color: #a68967; font-size: .57rem; font-variant-numeric: tabular-nums; }
.news-gallery-caption > span { min-width: 0; }
.news-gallery-caption svg { width: 15px; height: 15px; color: #bc9b70; }
.news-lightbox {
  box-sizing: border-box;
  width: min(1260px, calc(100vw - 48px));
  height: min(900px, calc(100vh - 48px));
  height: min(900px, calc(100dvh - 48px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #b78c59a1;
  border-radius: 12px;
  background: #0b0811;
  color: #eadac6;
  box-shadow: 0 25px 100px #000c, 0 0 55px #4a20582e;
}
.news-lightbox[open] { display: grid; grid-template-rows: 76px minmax(0, 1fr) 72px; }
.news-lightbox::backdrop { background: #030207e8; backdrop-filter: blur(7px); }
.news-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
  padding: 14px 22px;
  border-bottom: 1px solid #95704644;
  background: linear-gradient(100deg, #291629, #130c1a);
}
.news-lightbox-header > div { min-width: 0; }
.news-lightbox-header p {
  margin: 0 0 4px;
  color: #b69771;
  font: 700 .54rem 'Inter', sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.news-lightbox-header h2 {
  overflow: hidden;
  margin: 0;
  color: #f0dfc3;
  font: 700 clamp(.83rem, 1.6vw, 1.13rem) 'Cinzel', serif;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-lightbox button {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 44px;
  height: 44px;
  padding: 10px 15px;
  border: 1px solid #a5825b70;
  border-radius: 5px;
  background: linear-gradient(135deg, #38212d, #1c111e);
  color: #f2d7a3;
  font: 600 .75rem 'Inter', sans-serif;
  cursor: pointer;
}
.news-lightbox button:hover { border-color: #f5d696; background: #422537; }
.news-lightbox button:focus-visible { outline: 2px solid #fff0c8; outline-offset: 3px; }
.news-lightbox button svg { width: 18px; height: 18px; }
.news-lightbox-close { padding: 10px !important; }
.news-lightbox-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 20px;
  background: radial-gradient(ellipse at center, #21172455, #08070c 85%);
}
.news-lightbox-stage img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
  filter: none;
  box-shadow: none;
}
.news-lightbox-stage [data-gallery-error] {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 25px;
  background: #100b15;
  color: #d7c7cf;
  font: 400 .9rem/1.7 'Inter', sans-serif;
  text-align: center;
}
.news-lightbox-stage [data-gallery-error][hidden], .news-lightbox-stage img[hidden] { display: none; }
.news-lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 12px 20px;
  border-top: 1px solid #95704644;
  background: #19101e;
}
.news-lightbox-counter { min-width: 60px; margin: 0; color: #d6bea0; font: 600 .78rem 'Inter', sans-serif; text-align: center; font-variant-numeric: tabular-nums; }
.news-gallery-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 900px) {
  .news-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .news-gallery { padding: 13px; margin-top: 20px; border-radius: 10px; }
  .news-gallery-heading { margin-bottom: 15px; }
  .news-gallery-grid { gap: 10px; }
  .news-gallery-canvas { padding: 8px; }
  .news-gallery-caption { grid-template-columns: minmax(0, 1fr) auto; gap: 5px; padding: 8px; height: 58px; font-size: .63rem; }
  .news-gallery-caption small { display: none; }
  .news-gallery-caption svg { width: 12px; height: 12px; }
  .news-lightbox { width: calc(100vw - 16px); height: calc(100vh - 32px); height: calc(100dvh - 32px); border-radius: 8px; }
  .news-lightbox[open] { grid-template-rows: 72px minmax(0, 1fr) 70px; }
  .news-lightbox-header { gap: 10px; padding: 12px; }
  .news-lightbox-stage { padding: 10px; }
  .news-lightbox-footer { gap: 14px; padding: 10px; }
  .news-lightbox button { padding: 10px; font-size: .66rem; gap: 6px; }
  .news-lightbox button svg { width: 16px; height: 16px; }
  .news-lightbox-counter { min-width: 40px; font-size: .7rem; }
}
@media (max-width: 360px) {
  .news-gallery-grid { grid-template-columns: minmax(0, 1fr); }
  .news-gallery-caption { height: 44px; font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
  .news-gallery-item { transition: none; }
}

/* Five screenshots in the September 27 community update. */
.news-update[data-update-id="community-update-2026-09-27"] .news-update-section a {
  color: #ffd17b;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.news-update[data-update-id="community-update-2026-09-27"] .news-update-section a:hover { color: #fff0c5; }
.news-update[data-update-id="community-update-2026-09-27"] .news-update-section a:focus-visible {
  outline: 2px solid #ffd17b;
  outline-offset: 4px;
}
.news-community-gallery .news-gallery-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.news-community-gallery .news-gallery-item { grid-column: span 2; }
.news-community-gallery .news-gallery-item:nth-child(n+4) { grid-column: span 3; }
@media (max-width: 760px) {
  .news-community-gallery .news-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-community-gallery .news-gallery-item,
  .news-community-gallery .news-gallery-item:nth-child(n+4) { grid-column: span 1; }
  .news-community-gallery .news-gallery-item:last-child { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .news-community-gallery .news-gallery-grid { grid-template-columns: minmax(0, 1fr); }
}
