.modal {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 100vw;
  max-height: 100vh;
  background: rgba(0, 0, 0, 0.8);
}

[data-modal] {
  cursor: pointer;
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid black;
  background: white;
  outline: none;
}

.modal-content picture,
  .modal-content figure {
    display: flex;
    margin: 0;
  }

.modal-content .Picture img {
    -o-object-fit: initial;
       object-fit: initial;
    width: auto;
    max-width: 90vw;
    height: auto;
    max-height: calc(100vh - 2px);
    aspect-ratio: auto;
  }

.modal-close {
  position: fixed;
  z-index: 1;
  align-self: flex-end;
  padding: 0.25rem 0.75rem;
  font-size: 3rem;
  background: white;
  cursor: pointer;
}

.chevron {
  position: fixed;
  z-index: 1;
  padding: 0.65rem 0.75rem 0.85rem;
  font-size: 3rem;
  line-height: calc(100% - 0.25rem);
  text-align: center;
  background: white;
  cursor: pointer;
}

.chevron--left {
  left: 0;
}

.chevron--right {
  right: 0;
}
