
/* .pic4 {
	border: 4px solid #B8860B;
	border-radius: 5px;
	width: 20%;
} */
.picOver {
	border: 4px solid #B8860B;
	border-radius: .5rem;
	width: 60%;	
}
/* flex-container not shown until the photo array is opened */
 fieldset {margin-top: 2rem;}
 fieldset h2 {
  font-size: 1.5rem;
  line-height: 2rem;
  margin-bottom: 0.5rem;
  color: red;
 }
 fieldset p {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
 }
.flex-container {
      display: none;
      flex-wrap: wrap;
      margin-top: 2rem;
      margin-bottom: 20px;
      border: 10px solid blue;
    }
/* single 'row' with flex-wrap property */
    .row {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 0.25rem;
      }
/* with ind. photo width set at 23% then max photos in the row = 4  this should be changed for smaller screens */
    .photo {
      box-sizing: border-box;
      min-width: 17%;
    }
/* pointer indicates you can click on photo to enlarge */
    .photo img {
      border: 0.25rem solid red;
      border-radius: 8px;
      cursor: pointer;
    }
/* overlay doesn't show until you enlarge pic */
    #popup {
      display: none;
      position: fixed;
      top:0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(225,225, 225, 0.7);
      z-index: 9999;
      overflow: auto;
    }
    #close-btn {
      position: absolute;
      top: 10px;
      right: 10px;
      padding: 5px;
      background-color: blue;
	    color: white;
	    border: 2px solid black;
      border-radius: 8px;
      font-size: 0.75rem;
	    font-weight: 600;
	    cursor: pointer;
    }
    button {
      background-color: blue;
      color: white;
      border: 2px solid black;
      border-radius: 8px;
      font-size: 1.0rem;
			margin-bottom: 32px;
    }
 
@media only screen and (min-width: 500px) and (max-width: 768px) {
  .photo {
      border: 3px solid red;
      border-radius: 8px;
      max-width: 20%;
      height: auto;
      padding: 5px;
  }
 
.picOver {
	width: 70%;}
}

 .flex-container {
   margin-top: 15px;
}
p {
  font-size: 0.9rem;
  font-weight: 400;
  margin: 0 5px;
  padding: 0 5px;
}
.row {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin: 0 auto;
  }
.photo {
  padding: 0px;
  box-sizing: border-box;
  border: 0px solid black;
  border-radius: 8px;
  max-width: 10%;
  margin: 0px;
}
.photo img {
  width: 100%;
  /* height: 80%; */
  /* border: 4px solid red; */
  border-radius: 8px;
  cursor: pointer;
}
figcaption {
  font-size: 0.90rem;
  font-weight: 900;
  padding: 0;
  text-align: center;
}
#popup {
  display: none;
  position: fixed;
  top: 0px;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.90);
  overflow: auto;
}
#popup-img {
  display: block;
  margin: auto;
  border: 5px solid blue;
  border-radius: 8px;
  max-width: 100%;
  max-height: 100%;
  cursor: pointer;
}
@media only screen and (min-width: 290px) and (max-width: 501px) {
.row {
  flex-direction: row;
  margin-left: 5%;
  width: 95%;
}
.photo {
  padding: 5px;
  box-sizing: border-box;
  border: 0px solid black;
  border-radius: 8px;
  max-width: 25%;
}
figcaption {
  font-size: 0.90rem;
  font-weight: 900;
  padding: 0;
  text-align: center;
}
}
