body {
  background: url('../images/background.png') top / 100%;
  background-color: ivory;
  font-family: Arial, Helvetica, sans-serif;
  color: blue;
  font-size: 1em;
  line-height: 1.2em;
  text-align: center;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

/* Header Styles:*/ 
body > header > a > img {
  width: 100%;
  padding-bottom: 20px;

}



body > div.info {
  position:relative;
}
/* gallery*/ 
body > * {
	clear:both;
  box-sizing: border-box;
}

/* Position the image container (needed to position the left and right arrows) */
.gallery {

  padding-top: 2%;
  position: relative;
  padding-left:5%;
  padding-right:5%;

}


/* Hide the images by default */
.mySlides {
	position: relative;
    margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16/9;  
  display: none;
}

.mySlides img{
  width:100;
  aspect-ratio: 16/9;

    object-fit: contain;	
  display: block;
  margin: 0 auto;
}

div.row#thumbnails img {
  width: 100%;                  /* Fill parent column */
  aspect-ratio: 1 / 1;          /* Always square */
  object-fit: cover;            /* Crop if not square */
  max-width: 120px;   
}
/* Add a pointer when hovering over the thumbnail images */
.cursor {
  cursor: pointer;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  margin-left:30px;
  margin-right:30px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 2%;
  border-radius: 3px 0 0 3px;
}

.prev {
  left: 2%;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 15%;
}

/* Container for image text */
.caption-container {
  max-height: 20px;
  text-align: center;
  padding: 2px 2px;
  color: black;
}

.caption-container p {
	margin: 0px;
}
/* Six columns side by side */

.row::after {
	clear: both;
	content: "";
	display: table;
}
.column {
  float: left;
  width: 16.66%;
}

/* Add a transparency effect for thumnbail images */
.demo {
  opacity: 0.6;
}

.active, .demo:hover {
  opacity: 1;
}
/* body styles */ 



/* flexbox */ 
.flexInfo {
  display: flex;
  padding-left:10%;
  padding-right: 10%;
  justify-content: space-between;
  align-items: center;            
}

.indexFlex {
  width:100%;
}

.indexFlex > p {
  width: 100%;
  margin-bottom: 1em;
}




.itemName {
  padding:5px;
  margin: 2px;
  text-align: left;
}

.itemName h1 {
  color: purple;
  font-size: 1.2em;
  line-height: 1.4em;
}
.price{
  padding:5px;
  margin: 2px;
  text-align: right;
}

body > div.info > p {
  display:block;
  clear: both;	
}


.sqContainer {
  width: 90%;
  max-width: 1200px;
  margin: 40px auto;
  min-height: 350px; /* Ensures container height if squares have fixed height */
  /* clearfix for floats */
  overflow: hidden; /* Easy clearfix method */
}

.squareImg {
  float: left;
  width: 30.33%;          /* 3 squares (some space left for margins) */
  margin-right: 2%;       /* gap between squares */
  box-sizing: border-box;
  position: relative;
  height: 0;
  padding-bottom: 30.33%; /* Makes squares! */
  border-radius: 10px;
  box-shadow: 0 2px 8px #0002;
  background: #eee;
  overflow: hidden;
}



.squareImg > a > img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;           /* Opacity must be decimal! */
  z-index: 1;
}

.squareImg > a > h1 {
  position: absolute;
  top: 50%; left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  color: black;
  font-size: 2rem;
  line-height: 2.2rem;
  font-weight: bold;
  text-shadow: 0 0 8px #fff, 0 0 16px #fff, 0 0 32px #fff;
  text-align: center;
  pointer-events: none;
  margin: 0;
}


img.shop:hover {
  opacity: 50%;
}


body > footer {
	clear:both;
  width: 100%;
  padding-bottom: 20px;
}



div.row {
	margin:10px;
	clear: both;
}

div.row::after {
	clear: both;
	content: "";
	display: table;
}

/*basic grid style*/ 
.grid {
  padding:50px;
  display: grid;
  gap: 16px;
  margin: 10 auto;
}
@media (max-width: 500px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 501px) and (max-width: 800px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 801px) and (max-width: 1100px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1101px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.grid-item {
  background: #f2f2f2;
  padding: 12px;
  border-radius: 6px;
  text-align: center;

}



/* Grid Columns Styles */

div[class^="col-"] {
	float: left;
}





/* img modal (pop up)*/ 
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}
.modal-content {
  margin: auto;
  display: block;
  max-width: 80vw;
  max-height: 80vh;
}
.close {
  position: absolute;
  top: 30px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1000;
}
#modalCaption {
  color: #ccc;
  text-align: center;
  margin-top: 10px;
}




