* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: poppins, sans-serif;
  background-color: #031216;
}

.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: calc(100vh - 20vh);
  position: relative;
}

.title {
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  margin: 1rem;
  font-size: clamp(1rem, 1vw + 1rem, 3rem);
  width: 100%;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 3%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
}

.disable-text-selection {
  user-select: none;
}

.img-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: #98989894;
  padding: 0.06rem;
  margin: 0.5rem;
  border-radius: 0.5rem;
  width: clamp(4rem, 4vw + 2rem, 10rem);
  height: clamp(4rem, 4vw + 2rem, 10rem);
  object-fit: cover;
  cursor: pointer;
}

.img-box:hover {
  opacity: 0.5;
}

.img-overlay {
  background-color: rgb(0 0 0 / 75%);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0px;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dialog {
  display: flex;
  justify-content: stretch;
  flex-direction: column;
  align-items: center;
  background-color: rgb(9 61 77);
  border-radius: 40px;
  margin: 0 1rem;
}

.arrow-next-img {
  transition: transform 0.5s ease;
  height: 2.5rem;
}

.arrow-next-img:hover {
  transform: scale(1.5);
  cursor: pointer;
  border-radius: 100%;
}

.d-none {
  display: none;
}

.show-img {
  object-fit: contain;
  height: clamp(20rem, 20vw + 5rem, 40rem);
  width: clamp(40rem, 80vw + 5rem, 80rem);
  width: 90%;
  border-radius: 0.2rem;
}

.open-img-box {
  display: flex;
  justify-content: center;
  align-items: center;
 }

.wrapper-arrows {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 24px;
}

.dialog-headline {
  font-size: 24px;
  font-weight: bold;
  color: whitesmoke;
}

.dialog-image-length {
  font-size: 16px;
  font-weight: bold;
  color: whitesmoke;
  white-space: nowrap;
}

.close-dialog-wrapper {
  display: flex;
  justify-content: flex-end;
  padding: 10px;
  width: 100%;
  margin-top: 24px;
}

.close-dialog {
  height: 2.5rem;
  margin-right: 3rem;
  cursor: pointer;
}

.close-dialog:hover {
  transform: scale(1.5);
}

@media only screen and (max-width: 700px) and (min-width: 300px) {
  .close-dialog {
    margin-right: 1rem;
  }
}
