body {
  background: #181a1b;
  color: #eee;
  font-family: "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

h1, h3 {
  text-align: center;
  font-weight: 600;
  margin: 0.5em 0;
}

h1 {
  font-size: 2.4em;  /* Reduced from 3.2em */
  letter-spacing: 0.5px;
  margin-top: 24px;  /* Reduced from 32px */
}

.section-title {
  font-size: 1.6em;
  margin: 32px 0 8px;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  margin-bottom: 16px;
  color: #bbb;
}

.authors {
  font-size: 1.1em;
  text-align: center;
  margin: 12px auto 20px;
  max-width: 900px;
  color: #ccc;
}

.abstract {
  max-width: 900px;
  margin: 0 auto 32px;
  font-size: 1.1em;
  color: #ddd;
  background: #202223;
  padding: 20px 28px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

a {
  color: #00bfff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.image-container {
  max-width: 900px;
  width: 100%;
  margin: 32px auto 24px auto;
  text-align: center;
  padding: 0 12px;
}

.image-container img {
  width: 100%;
  max-width: 900px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.method-figure {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
  display: block;
  margin: 0 auto;
}

/* Reuse your existing grid/slider CSS (proj-denoising-grid, reveal-wrapper, slice-denoising-grid, etc.) */

.slice-denoising-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  width: calc(100vw - 72px);
  margin: 8px auto 24px auto;
}
.slice-cell {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #222;
  overflow: hidden;
}
.slice-img, .slice-img-fg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
  border-radius: 0;
}
.slice-img-fg {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0.1s;
}
.slice-slider {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}
.slice-slider input[type="range"] {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: auto;
  cursor: col-resize;
}
.slice-slider .slice-drag-line {
  position: absolute;
  top: 0;
  height: 100%;
  width: 3px;
  background: #fff;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
  transition: left 0.1s;
}
.slice-slider .slice-drag-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  border: 2px solid #888;
  transform: translate(-50%, -50%);
  z-index: 11;
  pointer-events: none;
  box-shadow: 0 1px 4px #0002;
  transition: left 0.1s;
}

.slice-denoising-labels-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  width: calc(100vw - 72px);
  margin: 0 auto 8px auto;
  text-align: center;
}


.header-content h1 {
  font-size: 2.4em;  /* Reduced from 3.2em */
  margin-top: 24px;  /* Reduced from 32px */
  margin-bottom: 8px;
  font-weight: bold;
  letter-spacing: 1px;
}
.grid-description {
  font-size: 1.2em;  /* Reduced from 1.5em */
  text-align: center;
  margin: 32px auto 20px;
  max-width: 800px;
  color: #eee;
}
.grid-description h3 {
  margin: 0 0 8px 0;
  font-size: 1.4em;  /* Reduced from 1.8em */
  color: #00bfff;
}
.row-labels {
  grid-row: 2;
  grid-column: 1;
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  height: 100%;
  align-items: center;
}
.row-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: center;
  font-size: 1em;
  color: #444;
  padding: 8px 0;
  white-space: nowrap;
}
.col-labels {
  grid-row: 1;
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  width: 100%;
  align-items: end;
}
.col-label {
  text-align: center;
  font-size: 1em;
  color: #444;
  padding-bottom: 8px;
  white-space: nowrap;
}
.grid-container {
  grid-row: 2;
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  width: 100%;
}
.reveal-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 120px;
  background: #222;
  border-radius: 0;
  box-shadow: 0 1px 4px #0002;
  overflow: hidden;
}
.reveal-images {
  position: relative;
  width: 100%;
  height: 100%;
}
.reveal-img-bg, .reveal-img-fg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
  border-radius: 0;
}
.reveal-img-fg {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0.1s;
}
.reveal-slider {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}
.reveal-slider input[type="range"] {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: auto;
  cursor: col-resize;
}
.reveal-slider .drag-line {
  position: absolute;
  top: 0;
  height: 100%;
  width: 3px;
  background: #fff;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
  transition: left 0.1s;
}
.reveal-slider .drag-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  border: 2px solid #888;
  transform: translate(-50%, -50%);
  z-index: 11;
  pointer-events: none;
  box-shadow: 0 1px 4px #0002;
  transition: left 0.1s;
}
main, .container {
  width: 100vw !important;
  max-width: 100vw !important;
  padding: 0 !important;
  margin: 0 !important;
}

body > div.container, .container {
  width: 100vw !important;
  max-width: 100vw !important;
  padding: 0 !important;
  margin: 0 !important;
}

body, html {
  width: 100vw !important;
  max-width: 100vw !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow-x: hidden;
}
body > div.container, .container, main {
  width: 100vw !important;
  max-width: 100vw !important;
  padding: 0 !important;
  margin: 0 !important;
}

.grid-labels-wrapper {
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: 48px 1fr;
  width: calc(100vw - 72px);
  margin: 0 auto;
}
.row-labels {
  grid-row: 2;
  grid-column: 1;
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  height: 100%;
  align-items: center;
}
.row-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: center;
  font-size: 1.1em;
  color: #444;
  padding: 8px 0;
  white-space: nowrap;
}
.col-labels {
  grid-row: 1;
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  width: 100%;
  align-items: end;
}
.col-label {
  text-align: center;
  font-size: 1.1em;
  color: #444;
  padding-bottom: 8px;
  white-space: nowrap;
}
.grid-container {
  grid-row: 2;
  grid-column: 2;
}

body, html {
  background: #181a1b !important;
  color: #eee !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}

.page-content, .main-content, .header-content, .grid-labels-wrapper, .proj-denoising-grid, .proj-labels-grid {
  max-width: calc(100vw - 48px); /* 24px border on each side */
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.grid-labels-wrapper {
  background: #181a1b;
}

.row-label, .col-label {
  color: #eee;
}

.reveal-wrapper {
  background: #222;
  box-shadow: 0 2px 8px #0008;
}

.reveal-slider .drag-line {
  background: #eee;
}

.reveal-slider .drag-circle {
  background: #222;
  border: 2px solid #eee;
  box-shadow: 0 2px 8px #0008;
}

.proj-denoising-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px; /* Add space between images */
  width: calc(100vw - 72px);
  margin: 8px auto 24px auto;
  min-height: 180px;
}
.proj-cell {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #222;
  overflow: hidden;
}
.proj-img, .proj-img-fg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
  border-radius: 0;
}
.proj-img-fg {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0.1s;
}
.proj-slider {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}
.proj-slider input[type="range"] {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: auto;
  cursor: col-resize;
}
.proj-slider .proj-drag-line {
  position: absolute;
  top: 0;
  height: 100%;
  width: 3px;
  background: #fff;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
  transition: left 0.1s;
}
.proj-slider .proj-drag-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  border: 2px solid #888;
  transform: translate(-50%, -50%);
  z-index: 11;
  pointer-events: none;
  box-shadow: 0 1px 4px #0002;
  transition: left 0.1s;
}

.proj-labels-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  width: calc(100vw - 72px);
  margin: 0 auto 8px auto;
}
.proj-label {
  text-align: center;
  color: #eee;
  font-size: 1.1em;
  margin-top: 4px;
  white-space: nowrap;
}

/* Add max-width constraints and center alignment */
.slice-denoising-grid,
.slice-denoising-labels-grid,
.grid-labels-wrapper,
.proj-denoising-grid,
.proj-labels-grid {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 36px;
}

/* Ensure Figure 4 grid matches Figure 3 width and padding */
.slice-denoising-grid-fig4,
.slice-denoising-labels-grid-fig4 {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 36px;
  width: 100%;
}

/* New styles for Figure 5 grid and labels */
.slice-denoising-grid-fig5,
.slice-denoising-labels-grid-fig5 {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 36px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}


/* Improve spacing between sections */
hr {
  display: block;
  width: 100%;
  max-width: 1400px;
  margin: 48px auto;
  border: none;
  border-top: 1px solid #333;
  padding: 0 36px;
  box-sizing: border-box;
}

/* Make grid cells slightly smaller on large screens */
@media (min-width: 1400px) {
  .slice-cell,
  .reveal-wrapper,
  .proj-cell {
    max-width: 180px;
    margin: 0 auto;
  }
}

/* Add subtle hover effect on sliders */
.reveal-slider:hover .drag-line,
.proj-slider:hover .proj-drag-line,
.slice-slider:hover .slice-drag-line {
  background: #00bfff;
}

.reveal-slider:hover .drag-circle,
.proj-slider:hover .proj-drag-circle,
.slice-slider:hover .slice-drag-circle {
  border-color: #00bfff;
  transform: translate(-50%, -50%) scale(1.1);
}

/* Improve section titles */
.grid-description {
  max-width: 800px;
  margin: 48px auto 24px;
  color: #fff;
  background: #222;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.grid-description h3 {
  margin: 0 0 8px 0;
  font-size: 1.4em;  /* Reduced from 1.8em */
  color: #00bfff;
}

/* Improve labels readability */
.row-label,
.col-label,
.proj-label,
.slice-label {
  color: #888;
  font-size: 0.9em;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Add at the end of the file */

.page-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px;
}

/* Smooth scrolling for better experience */
html {
  scroll-behavior: smooth;
}

/* Improved header spacing */
.header-content {
  max-width: 1200px;
  margin: 0 auto 48px;
  padding: 24px;
}

.author-list {
  max-width: 900px;
  margin: 24px auto;
  text-align: center;
  color: #888;
  font-size: 1.1em;
  line-height: 1.6;
}

footer {
  text-align: center;
  padding: 48px 24px;
  color: #666;
  font-size: 0.9em;
  margin-top: 64px;
  border-top: 1px solid #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-container {
    padding: 12px;
  }
  
  .header-content h1 {
    font-size: 1.8em;  /* Reduced from 2em */
  }
  
  .grid-description h3 {
    font-size: 1.2em;  /* Reduced from 1.4em */
  }
  
  .grid-description {
    font-size: 1em;
  }
}

/* Add to style.css for Figure 4 grid and labels */

.slice-denoising-grid-fig4 {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  width: calc(100vw - 72px);
  margin: 8px auto 24px auto;
}
.slice-denoising-labels-grid-fig4 {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  width: calc(100vw - 72px);
  margin: 0 auto 8px auto;
  text-align: center;
}
.slice-denoising-grid-fig4 .slice-cell,
.slice-denoising-labels-grid-fig4 .slice-label {
  /* Use same styles as Figure 3 for consistency */
}

.slice-denoising-grid-fig5 .slice-cell,
.slice-denoising-labels-grid-fig5 .slice-label {
  /* Use same styles as Figure 3/4 for consistency */
}

.slice-denoising-labels-grid-fig4 .slice-label,
.slice-denoising-labels-grid-fig5 .slice-label {
  color: #888;
  font-size: 0.9em;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-align: center;
  padding-bottom: 4px;
  font-family: "Helvetica Neue", Arial, sans-serif;
}
