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

:root {
  --space: 14px;
  --color-bg: #FFFFFF;
  --color-text: #222;
  --color-link-hover: #ddd;
}

/* Detect user's preference */
@media (prefers-color-scheme: dark) {
  :root {
    --background: #1a1a1a;
    --text: #e0e0e0;
    --link: #66b3ff;
    --accent: #ff6b6b;
  }
}

body, h1, h2, h3, h4, figure, blockquote, dl, dd {
  margin: 0; 
  font-family: Helvetica, Arial, sans-serif;
  background-color: var(--background);
  color: var(--text);
}


/* — Layout / Container — */
.container {
  max-width: 768px;
  margin: 0 auto;
  padding: 14px;
}

/* — Typography — */
h2 {
  font-size: 2rem;
  font-weight: 300;
  margin-top: 40px;
}

h3 {
  font-size: 1rem;
  text-transform: uppercase; 
  letter-spacing: 0.3em;
  margin-bottom: 7px;
  margin-top: 30px;
  font-weight: 600;
}

h4 {
  font-size: 2rem;
  font-size: 24px;
  margin-top: 15px;
  font-weight: 300;
}

h4 a {
  text-decoration: none;
}

p {
  margin: var(--space) 0;
  font-weight: 300;
  font-size: 1.25rem;
  line-height: 1.2;
}

p strong {
  font-weight: 600;
}

a {
  color: var(--text);
}

/* Make sure focus indicators are visible */
a:focus, button:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

hr {
  width: 100%;
  text-align: left;
  margin-left: 0;
  height: 1px;
  border-width: 0;
  color:#808080;
  background-color: var(--color-bg);
}

ul {
  list-style-type: inherit;
  margin: 0;
  padding: var(--space);
  background-color: inherit;
  /* display: flex; */
}

ul li {
  margin: 14px 0px;
  font-size: 20px;
  font-weight: 300;
}

/* ul li a {
  display: block;
  color: #FFFFFF;
  padding: 14px 16px;
  text-decoration: none;
} */

ul li a:hover {
/*  background-color: var(--color-bg); */
} 

/* — Navigation — */
.topnav {
  display: flex;
  gap: 0.5rem;
/*  overflow: hidden; */
  max-width: 768px;
  margin: 30px auto;
  align-items: flex-end;
}

.topnav a {
/*  color: var(--color-text); */
  text-align: left;
  padding: 14px 14px;
  text-decoration: none;
  font-size: 1rem;
  height: 30px;
  flex-grow: 1;
}

.topnav a:hover {
/*  color: var(--color-link-hover); */
  font-weight: 700px;
  border-radius: 7px;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.topnav a.active {
/*  background-color: var(--color-bg); 
  color: var(--color-text); */
  text-decoration: underline;
  text-underline-offset: 5px;
  font-weight: 700;
}

.topnav a.title {
  font-size: 2rem;
  padding-top: 0px;
  padding-left: 14px;
  flex-grow: 4;
  font-weight: 600;
}

figure {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.grid {
  width: 49%;
}

img {
  width: 48%;
  max-width: 100%;
  height: auto;
  display: block;
  border: solid;
  border-color: #d3d3d3;
  border-width: thin;
  margin: 15px 0 15px 0;
}

.grid img {
  width: 100%;
}

.full {
  width: 100%;
}

.full img {
  width: 100%;
  margin-bottom: 0;
}

figcaption {
  font-size: 1rem;
/*  color: #595959; */
  margin-bottom: 75px;
  margin-right: 75px;
}

.credit {
  font-size: 1rem;
  margin-bottom: 60px;
}

.viz-container {
  display: flex;
  flex-wrap: wrap; /* Allows them to stack on mobile */
  gap: 20px;       /* Space between the posts */
  justify-content: center;
  margin-bottom: 60px;
}

.viz-container .instagram-media {
  flex: 1 1 350px !important; /* Grow, shrink, and set base width */
  margin: 0 !important;       /* Resets Instagram's default margins */
  max-width: 540px !important; /* Prevents them from getting too huge */
  min-width: 326px !important; 
}

.viz-container .desktop-wrap {
  flex: 1 1 350px; /* Grow, shrink, and set base width */
  margin: 0;       /* Resets default margins */
  max-width: 540px; /* Prevents from getting too huge */
  min-width: 326px; 
}

.viz-container img {
  width: 100%;
  margin-top: 30px;
}



@media only screen and (max-width: 600px) {
  .grid {
    width: 100%;
  }
  
  img {
    width: 100%;
  }

