body {
    margin: 0;
    padding: 0;
    background-color: white;
    background-size: cover;
}

.grid-main-section {
  display: grid;
  grid-template-rows: auto;
  grid-template-columns: 1fr 1fr 1fr;
  align-content: center;
  align-items: center;
  justify-content: center;
  justify-items: center;
  overflow: hidden;
  min-width: 0;
  min-height: inherit;
}

.description {
  border: 5px solid #746e69;
}

.description p {
  font-family: cursive;
  padding: 20px;
  text-indent: 20px;
}

.popup-gallery-img {
  display: none;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .8);
  position: fixed;
  top: 0;
  left: 0;
}

.popup-gallery-img img{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: calc(-160px + 100vh);
  object-fit: contain;
}

.popup-gallery-img span{
  position: fixed;
  top: 10px;
  right: 20px;
  height: 40px;
  width: 40px;
  background: white;
  font-size: 50px;
  font-weight: 600;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  cursor: pointer;
}

.title-text {
  text-align: center;
}

.title-text span {
  white-space: nowrap;
}

.main-grid {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100vh;
  justify-items: center;
  min-width: 0;
  min-height: inherit;
}

.gallery-section {
  display: grid;
  justify-items: center;
  grid-template-rows: max-content;
  background: black;
  min-width: 0;
  min-height: inherit;
}

.gallery-section span{
  padding: 5px;
  margin: 0;
  font-size: 14pt;
  color: white;
}

.gallery-images {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 5px;
  background: black;
  padding: 5px;
  min-width: 0;
  min-height: inherit;
}

.gallery-images img {
  width: 100%;
  height: auto;
  object-fit: cover;
  cursor: pointer;
  aspect-ratio: 1 / 1;
}

.info-section {
  display: grid;
  grid-template-columns: 1fr 30%;
  align-content: center;
  border: 1px solid black;
  padding: 10px;
  gap: 10px;
  min-width: 0;
  min-height: inherit;
}

.info-text {
  text-indent: 20px;
  font-size: 17pt;
}

.info-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.first-scheme-img {
    display: none;
  }

@media (max-width: 1600px) {
    .info-text {
    font-size: 15pt;
  }
}

@media (max-width: 1300px) {
    .info-text {
    font-size: 14pt;
  }
}

@media (max-width: 1400px) {
    .gallery-images {
      grid-template-columns: repeat(9, 1fr);
  }
}

@media (max-width: 1100px) {
  .gallery-images {
    grid-template-columns: repeat(6, 1fr);
  }

  .info-section img {
    display: none;
  }

  .info-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .gallery-images {
    grid-template-columns: repeat(4, 1fr);
  }
}