.red {
    color: rgb(198, 6, 6);
}

.yellow {
    color: rgb(198, 198, 0);
}

.green {
    color: rgb(10, 98, 10);
}

.blue {
    color: rgb(0, 0, 198);
}

.strike {
    text-decoration: line-through;
}

.underline {
    text-decoration: underline;
}

.transparent {
    opacity: 0.01;
}

.mono {
    font-family: monospace;
    background-color: gray;
}

.reveal .adjust-section-structure {
    font-size: 0.5em;
}

.reveal .flex-container {
    display: flex;
}

.reveal .flex-container .half {
    flex: 1;
    width: 50%;
}

.reveal h1,
.reveal h2,
.reveal h3 {
    text-transform: none;
}

.reveal code * {
    font-family: monospace;
}

.fragment.blur {
    filter: blur(5px);
}

.fragment.blur.visible {
    filter: none;
}

.grid2x2 table { 
  width:100%;
  border-collapse: separate;   /* use spacing instead of borders */
  border-spacing: 16px 12px;   /* adjust gaps between cells/rows */
  border: 0;
}

.grid2x2 td, 
.grid2x2 th,
.reveal table td,
.reveal table th {
  border: 0 !important;        /* nuke any theme borders */
  background: transparent;
}

.grid2x2 figure{margin:0}

.grid2x2 img{
  max-height:24vh;       /* keep two rows on screen */
  width:auto;            /* preserve aspect ratio */
  display:block;margin:0 auto;
  object-fit:contain;
}

.grid2x2 figcaption{
  font-size:.8em; line-height:1.2; margin-top:.35em;
  text-align:center; opacity:.8;
}

.three-wide { 
  display:grid; grid-template-columns:repeat(3,1fr); gap:18px; align-items:start;
}

.three-wide img{
  display:block; margin:0 auto;
  max-height:42vh;          /* keep single row + captions on screen */
  width:auto; object-fit:contain;
}

.reveal .three-wide figure{ display:flex; flex-direction:column; align-items:center; margin:0; }

.reveal .three-wide figcaption{
  text-align:center !important;
  margin-top:.4em; font-size:.85em; line-height:1.2; opacity:.85;
  max-width: 90%; /* nicer line breaks */
}

.reveal .three-wide img{
  max-height:42vh; width:auto; object-fit:contain; display:block;
}

@media (max-width: 1100px){
  .three-wide img{ max-height:36vh; } /* smaller displays */
}