/*******************************************************************************/
/* CSS styles for columns.                                                     */
/*   "@media screen" declaration allows columns to stack onto next row for     */
/*   narrow screens. Adjust 'max-width' in @media declaration to change width  */
/*   that this happens. 48em (equiv to 768px given default 16px font size)     */
/*   Using "em" vs "px" adjusts for browser/user increasing font size.         */
/*******************************************************************************/

.two-columns {
  display: grid;
  grid-template-columns: var(--column1) var(--column2); 
    /* these variables indicate width - defined in invoking html */
  gap: .25em 1.0em;
    /* .25em gap vertically when content stacked        */
    /* 1.0em gap horizontally when room for two columns */
  align-items: baseline;
    /* so 1st column aligns with 2nd even if diff font size */
  margin: 0 0 .5em; /* top right/left bottom */
  min-width: 0;
    /* min-width: 0 ensures the grid items shrink cleanly inside column */
  }

@media screen and (max-width: 48em) {
/* If viewport is narrower than 48em the columns collapse */
/*   into a single column so items stack vertically.      */
  .two-columns { grid-template-columns: minmax(0, 1fr); }
}

