/* Global Reset */

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

body {
  font-family: "Bree Serif", serif;
  font-weight: 400;
  font-style: normal;
  background-color: #93b7ba;
}
 
header {
  margin-top: 2em;
}

main {
  width: 60vw;
  margin: 2em auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 1em;
  /* background-color: beige; */

}


/* Semantic Styling */

h1 {
  text-align: center;
  font-size: 2rem;
  color: #232d2d;
  text-shadow: 4px 4px 10px grey;
  padding: 0 1rem;

}


figure {
    background-color: #6b8a8c;
    border-radius: 10px;
    box-shadow: 0px 0px 12px grey ;
  }


  
  figcaption {
    color: white;
    background-color: #6b8a8c;
    font-size: 1rem;
    padding: 1em;
    text-align: center;
    border-radius: 0px 0px 6px 6px;
  }

figure img {
  width: 100%;
  border-radius: 10px 10px 0px 0px;
}



@media screen and (width < 1000px) {
  main {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media screen and (width <800px) {
  main {
    grid-template-columns: 1fr 1fr;
  }
h1 {
  font-size: 1.2rem;
}

}

@media screen and (width<600px){

  main {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 1rem;
  }
}