:root {
  /*font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;*/
  font-family: sans-serif;
  line-height: 1.5;
  font-weight: 400;
}

html {
  /*scroll-behavior: smooth;*/
  overflow-anchor: none; /* Enable scroll anchoring for the entire page (default) */
  margin: 0;
  padding: 0;
}

body {
  background-color: lightgray;
  transition: background-color 0.6s ease;
  overflow-anchor: none; /* Enable scroll anchoring for the entire page (default) */
  margin: 0;
  padding: 0;
}

#spacer {
  height: 0;
  width: 100%;
  transition: height 0.6s ease;
  pointer-events: none;   /* inert spacer */
  display: block;
}

h1 {
  font-size: 3.0em;
  line-height: 1.1;
  margin:  60px 4vw 60px 4vw;
  width: 90vw;
  max-width: 100%;
}

h2 {
  font-size: 2.0em;
  line-height: 1.2;
  margin:  6px 0px 6px 0px;
  
  max-width: 100%;
  
}

h3 {
  font-size: 1.5em;
  color:#333;
  max-width: 100%;
  margin: 5px 0px 5px 0px;
}

h4 {
  font-size: 1.2em;
  color:#353535;
  max-width: 100%;
  margin: 0px 0px 0px 0px;
}

p {
  font-size: 0.8em;
  line-height: 1.4;
  margin:  5px 0px 5px 0px;
  max-width: 100%;
}

.responsive-img {
  width: 900px;
  max-width: 100%;
  height: auto;
  /*margin: 2vw auto;*/
  object-fit: fill;
  cursor: pointer;
}

video {
  max-width: 100%;
}

video::-webkit-media-controls {
  display: none !important;
  opacity: 1 !important;
}

.responsive-video {
  width: 900px;
  max-width: 100%;
  height: auto;
  /*margin: 2vw auto;*/
  object-fit: fill;
  display: block;
}

.square-video {
  max-height: 520px;
  object-fit: cover;
}

.flexbox-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; /* space between items */
  margin-top: 10px;
  margin-bottom: 10px;
  max-width: fit-content;
}

.flexbox-item {
  /*flex: 1 1 300px; /* grow, shrink, basis */
  justify-content: left; /* center content horizontally */
  align-items: left;     /* center content vertically */
  max-width: fit-content;
  border: 2px #000;
  padding: 0;
}

.flexbox-container-2 {
  display: flex;
}

.flexbox-item-2 {
  width:200px;
  margin:10px;
  border:3px solid #222;
  /*background-color: white;*/
  min-height:100px;
}

img {
  padding: 0;
  object-fit: cover
}

.inline-img {
  width: 850px;
  max-width: 100%;
  height: auto;
  /*margin: 2vw auto;*/
  object-fit: fill;
}

.big-img {
  width: 1400px;
  max-width: 100%;
  height: auto;
  margin: 1vw auto;
  object-fit: fill;
} 

.big-video {
  width: 1400px;
  max-width: 100%;
  height: auto;
  margin: 1vw auto;
  object-fit: fill;
} 

.dropdown {
  /*border: 1px solid #ccc;*/
  margin-bottom: 0; 
  overflow: hidden; /* hides the content when collapsed */

  display: block;
  max-width: 100%;
  /*margin-left: 4vw;
  margin-right: 4vw;
*/
  
  padding: 0.5em 4vw 0.5em 4vw;

  width: fill;
  transition: background-color 0.2s ease;

}


.dropdown-content {
  max-height: 0;
  max-width: screen-width;
  overflow: hidden;
  transition: max-height 0.6s ease;
  padding: 0 1em;
}

/* Open state */
.dropdown.open .dropdown-content {
  max-height: 1000px; /* large enough to fit content */
  /*transition: all 0.6s ease;  /* smooth open/close THIS IS THE OPEN ANIMATION*/
}

/*
.dropdown.open {
  border: 2px solid #888;
  border-radius: 4px;
  /*transition: all 0.6s ease;  /* smooth open/close THIS IS THE OPEN ANIMATION
}
*/

.image-container {
  position: relative;  
  background-size: cover;
  background-position: center;
  cursor: pointer;
  
  display: inline-block;
  line-height: 0;
}

.image-container::before {
  content: '';  
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.0); 
  z-index: 1; 
  pointer-events: none;
  transition: background-color 0.2s ease;
}
.image-container:hover::before { background-color: rgba(0, 0, 0, 0.2);  }

  /* Project title overlay */
.image-title {
  position: absolute;
  bottom: 5%;
  left: 5%;
  color: #eee;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 0.1em 0.7em; /* optional horizontal padding */
  font-weight: bold;
  text-shadow: none;
  z-index: 1;
  display: inline-block;
  line-height: 1.0; /* ensures height scales with font size */
  opacity: 0.85;
}

img {
  max-width: 100%;
  height: auto;
}

.closebutton {
  padding-top: 8px;
  padding-bottom: 8px;
  margin-top:20px;
  width: 100%;
  max-width: 400px;
  font-weight: bold;
  font-size: 16px;
  color: #000;
  text-shadow: none;
  line-height: 1.0; /* ensures height scales with font size */
  opacity: 0.9;
  cursor: pointer;
  /*border: 3px solid #222; */
  background-color: #dfdfdf;
  border-radius: 3px;
  border: 1px solid #999;
  text-align: center;
}

iframe {
  max-height: 600px;
  aspect-ratio: 16 / 9;
  border: none;
  margin-top: 10px;
  margin-bottom: 10px;
  display: block;
  max-width: fit-content;
}

.textbox {
  max-width: 1400px;
  text-align: justify;
}

#threecanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Allow clicks to pass through */
}

/*
p {}        <p> elements
#para1 {}   id selector
.center {}  class selector
p.center {}  <p> elements with class center
* { }       universal selector

*/