* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Ez biztosítja, hogy a padding és a border ne növelje meg az elemek méretét */
	border: none;
    outline: none;
}
html, body {
    margin: 0;
    padding: 0;
  
}
.gallery {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  width: 100vw;
background-image: linear-gradient(#D3D3D3 1%, #FFFFFF 90%);
	 padding-top: 15%;

 

}
.gallery img {
  width: 20vw;
  height:20vw;
  display: flex;
  flex-direction: row;
  justify-content: center;
    object-fit: cover;

}
.basic {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;

  width: 100vw;
    height:30vw;
}

.more {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
 
  width: 100vw;
min-height: calc(content + 100px);
padding: 20px 0;
}


.more img{
flex: 1 1 calc(25% - 10px); /* 25% szélesség, a "10px" a margó miatt van */
  margin: 5px; /* Margót adhatsz a képeknek */
  max-width: 100%; /* Biztosítja, hogy ne lépjék túl a konténert */
  box-sizing: border-box; /* Margó és padding figyelembe vétele */
}

}
.thumbnail {
  width: 30vw;
  height:30vw;
   object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s;
  
}

.thumbnail:hover {
  transform: scale(1.1);
}




.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  position: relative;

  width: 100vw;
  height: 100vw;
  text-align: center;
}

.modal img {
	width: 30vw;
  height: auto;
  padding-top:3%;
    object-fit: cover;
}

.close {
  position: absolute;
  top: 30px;
  right: 20px;
  font-size: 30px;
  color: white;
  cursor: pointer;
  z-index: 1000;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 20%;
  font-size: 30px;
  color: white;
  background-color: transparent;
  border: none;
  outline: none;
  padding: 10px;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}
h2 {
  padding-top: 0%;
  margin-left: 5%;

}
summary {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

@media (max-width: 938px) {
  .gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100vw;
	padding-top: 30%;
  }
  .gallery img {
    width: 40vw;
	height: 30vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .basic {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2px;
    width: 100vw;
	height:80vw;
  }

  .more {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100vw;
	height:auto;
    padding-top: -10%;
  }
  .more img {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
	
  }

  .thumbnail {
    width: 100vw;
	
    cursor: pointer;
    transition: transform 0.3s;
  }

  .thumbnail:hover {
    transform: scale(1.1);
  }

  .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
  }

  .modal-content {
    position: relative;

    width: 100vw;
    height: 100vw;
    text-align: center;
  }

  .modal img {
    width: 80vw;
    height: auto;
  }

  .close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    z-index: 1000;
  }

  .prev,
  .next {
    cursor: pointer;
    position: absolute;
    top: 20%;
    font-size: 30px;
    color: white;
    background-color: transparent;
    border: none;
    outline: none;
    padding: 10px;
  }

  .prev {
    left: 10px;
  }

  .next {
    right: 10px;
  }
  h2 {
    padding-top: 10%;
  }
}

@media only screen and (max-width: 600px) {
	  .gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100vw;
	padding-top: 50%;
  }
	
}

@media only screen and (max-width: 807px) and (orientation: landscape) {
 .modal img{
 height:45vw;
 width:auto;
  object-fit: cover;
 }
 
  
}