p {
  margin: .5em 0;
}

.project {
  background: #ffffff22;
  padding: 1em;
  margin: 0.5em;
  border-radius: 5px;
  text-align: left;
  transition: 0.2s ease all;
}

.project .name {
  margin-top: 0;
  font-size: 2em;
  font-weight: bold;
}

.carousel {
  display: flex;
  box-shadow: border-box;
  margin-top: 1em;
  background: #ffffff22;
  padding: 5px;
  border-radius: 5px;
  gap: 5px;
  justify-content: space-between;
}

.carousel .hidden {
  display: none;
}

.carousel-item {
  aspect-ratio: 2/1;
  max-height: 600px;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 5px;
}

.carousel button {
  font-size: 2em;
  font-weight: bold;
  font-family: inherit;
  cursor: pointer;
  background: #ffffff22;
  border: 0;
  color: white;
  padding: 0 0.5em;
  border-radius: 5px;
}

dialog::backdrop {
  background: #000c;
  cursor: pointer;
}

dialog {
  background: none;
  border: none;
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

dialog button {
  width: 2em;
  height: 2em;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 1em;
  background: red;
  color: white;
  border: 2px solid #fbb;
  border-radius: 5px;

}

dialog img {
  width: 95%;
  max-height: 95%;
  border-radius: 5px;
  object-fit: contain;
  object-position: center;
}

@media screen and (max-width: 700px) {
  .carousel {
    flex-direction: column;
  }
}