.notice-game-gallery {
  margin: 20px 0 4px;
  overflow: hidden;
  border: 1px solid #8e7441;
  border-radius: 14px;
  background: #161512;
  color: #f3e5c4;
  white-space: normal;
}
.lobby-notice-detail.has-game-gallery > .lobby-notice-image { display: none; }
.lobby-notice-detail-body > .notice-game-gallery:first-child { margin-top: 0; }
.ngg-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #5d4d2e;
}
.ngg-heading strong { font-size: 14px; }
.ngg-heading span { color: #c7ae77; font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ngg-track {
  display: flex;
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.ngg-track::-webkit-scrollbar { display: none; }
.ngg-slide { flex: 0 0 100%; min-width: 0; margin: 0; scroll-snap-align: start; }
.ngg-picture {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: min(65dvh, 620px);
  min-height: 240px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #10100e;
  color: inherit;
  cursor: zoom-in;
  touch-action: pan-x pan-y;
}
.ngg-picture img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.ngg-picture [hidden], .ngg-viewer [hidden] { display: none !important; }
.ngg-load-error { padding: 24px; color: #c5b995; font-size: 13px; }
.ngg-expand { position: absolute; right: 8px; bottom: 8px; padding: 4px 8px; border: 1px solid #bda46c80; border-radius: 20px; background: #16140fe0; color: #ead7a6; font-size: 10px; line-height: 1.6; }
.ngg-slide figcaption { padding: 10px 12px 4px; color: #eed9a6; font-size: 13px; font-weight: 700; text-align: center; }
.ngg-controls { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid #5d4d2e; }
.ngg-arrow, .ngg-pages button, .ngg-close {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #8d7447;
  border-radius: 50%;
  background: #2c261c;
  color: #f5dfaa;
  font: inherit;
  cursor: pointer;
}
.ngg-arrow { font-size: 28px; line-height: 1; }
.ngg-arrow:disabled { opacity: .3; cursor: default; }
.ngg-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; min-width: 0; }
.ngg-pages button { width: 30px; height: 30px; border-color: #655536; font-size: 12px; }
.ngg-pages button[aria-current="true"] { border-color: #e1c17d; background: #cba865; color: #1d1911; font-weight: 800; }
.notice-game-gallery button:focus-visible, .ngg-track:focus-visible, .ngg-viewer button:focus-visible { outline: 2px solid #f4d58d; outline-offset: -3px; }
.ngg-viewer {
  width: min(900px, calc(100vw - 20px));
  max-width: calc(100vw - 20px);
  max-height: calc(100dvh - 20px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #aa8c4f;
  border-radius: 16px;
  background: #141410;
  color: #f3e5c4;
  font-family: inherit;
  overscroll-behavior: contain;
}
.ngg-viewer::backdrop { background: #000d; }
.ngg-viewer-shell { display: flex; flex-direction: column; height: min(1060px, calc(100dvh - 24px)); }
.ngg-viewer header, .ngg-viewer footer { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; }
.ngg-viewer header { border-bottom: 1px solid #5d4d2e; }
.ngg-viewer header strong { display: -webkit-box; min-width: 0; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 14px; overflow-wrap: anywhere; }
.ngg-close { width: 36px; height: 36px; font-size: 25px; }
.ngg-viewer-image { position: relative; display: grid; flex: 1 1 auto; place-items: center; min-height: 0; overflow: hidden; background: #0e0e0c; }
.ngg-viewer-image img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.ngg-viewer.is-zoomed .ngg-viewer-image { display: block; overflow: auto; }
.ngg-viewer.is-zoomed .ngg-viewer-image img { position: static; width: max(100%, 860px); max-width: none; height: auto; }
.ngg-viewer-image p { padding: 40px 20px; font-size: 13px; }
.ngg-viewer footer { justify-content: center; border-top: 1px solid #5d4d2e; font-size: 12px; }
.ngg-zoom { min-height: 36px; padding: 5px 10px; border: 1px solid #8d7447; border-radius: 18px; background: #2c261c; color: #f5dfaa; font: inherit; cursor: pointer; }
@media (max-height: 460px) {
  .ngg-viewer header, .ngg-viewer footer { padding: 5px 10px; }
}
