
*, *::before, *::after
{
  box-sizing: inherit;
}

html
{
  box-sizing:border-box;
}
html
{
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* keep images and video from overflowing viewport */
img, picture, svg, video
{
  display:block;
  max-width:100%;
}

/* have forms inherit fonts */
input, textarea, button, select
{
  font:inherit;
}

/* balance multi-line text so characters per line are similar */
h1, h2, h3, h4, h5, h6
{
  text-wrap:balance;
}

/* avoid orphan words */
p, li, figcaption
{
  text-wrap:pretty;
}

/* keep input elements from overflowing out of flex container */
input, textarea
{
  min-width: 0;   /* allow flex algorithm to shrink elements below intrinsic width */
}


.bubblegum-sans-regular, h2 {
  font-family: "Bubblegum Sans", var(--font-stack-sans-serif);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.08em;
}

.coiny-regular, h1 {
  font-family: "Coiny", system-ui;
  font-weight: 400;
  font-style: normal;
}



html
{
  --font-stack-sans-serif: Candara, Calibri, Segoe, "Segoe UI", Optima, Arial, sans-serif;
  font-size:1.4em;
}

body
{
  font-family: var(--font-stack-sans-serif);
  margin: 0;
}

.frame
{
  background: whitesmoke;
  background: linear-gradient(150deg, rgba(255, 199, 199, 1) 0%, rgba(161, 219, 255, 1) 50%, rgba(255, 246, 161, 1) 100%);
  min-height: 100vh;
  min-height: 100svh;
}

.content
{
  margin:0 0.25rem;
}

.banner
{
  padding-top:1rem;
}

.banner h1
{
  margin:0;
}

.footer
{
  margin:0.5rem 0.5rem 0;
  padding-bottom: 0.5rem;
}

.grid
{
  --grid-gap: 1em;
  --grid-max-column-count: 3;
  --grid-min-item-width: 15em;

  /* bigger of (available space / number of columns) and min item width */
  /* If there is enough space for the target number of columns, then width is set
     to available space / target number of columns. Otherwise, it is set to the min item width.
   */
  --grid-min-item-width-per-column-calc:
      max(var(--grid-min-item-width),
          calc( (100% - (var(--grid-max-column-count) - 1) * var(--grid-gap) )
                / var(--grid-max-column-count)
          )
      );
  /* If available space is less than the min item width, set to available space */
  --grid-min-item-width-calc: min(var(--grid-min-item-width-per-column-calc), 100%);

  display: grid;
  gap: var(--grid-gap);
  /* 1fr is used when available space isn't big enough for target number of columns
     but is larger than the min item width */
  grid-template-columns: repeat(
    auto-fit,
    minmax(var(--grid-min-item-width-calc),
           1fr)
  );
}

h1
{
  text-align: center;
}

.card > *
{
  margin: 0.5rem 0.5rem 0;
}

.card
{
  align-items: center;
  display: flex;
  flex-direction: column;
  padding-bottom: 1rem;
}

.card h2
{
  text-align: center;
}

.grid .card img.landscape
{
  --image-width: 80%;
}

.grid .card img.portrait
{
  --image-width: 60%;
}

.grid .card img
{
  border-radius: 1rem;
  object-fit: contain;
  width: var(--image-width);
}