/**
 * 1. Make the dialog container, and its child overlay spread across
 *    the entire window.
 */
.dialog-container,
.dialog-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

/**
 * 1. Make sure the dialog container and all its descendants sits on
 *    top of the rest of the page.
 * 2. Make the dialog container a flex container to easily center the
 *    dialog.
 */
.dialog-container {
  z-index: 2; /* 1 */
  display: flex; /* 2 */
}

/**
 * 1. Make sure the dialog container and all its descendants are not
 *    visible and not focusable when it is hidden.
 */
.dialog-container[aria-hidden='true'] {
  display: none;
}

/**
 * 1. Make the overlay look like an overlay.
 */
.dialog-overlay {
  background-color: rgb(43 46 56 / 0.9); /* 1 */
  animation: fade-in 200ms both;
}

/**
 * 1. Vertically and horizontally center the dialog in the page.
 * 2. Make sure the dialog sits on top of the overlay.
 * 3. Make sure the dialog has an opaque background.
 */
.dialog-content {
  margin: auto; /* 1 */
  z-index: 2; /* 2 */
  position: relative; /* 2 */
  background-color: white; /* 3 */


  animation: fade-in 400ms 200ms both, slide-up 400ms 200ms both;
  max-width: 90%;
  width: 1200px;
  border-radius: 5px;
}
.dialog-content img {
  max-width: 100%;
  height: auto;

  object-fit: contain;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}
@keyframes slide-up {
  from {
    transform: translateY(10%);
  }
}


  .dialog-overlay,
  .dialog-content {
    animation: none;
  }


.dialog-content h1 {
  margin: 0;
  font-size: 1.25em;
}

.dialog-close {
  position: absolute;
  top: 0.5em;
  right: 0.5em;
  border: 0;
  padding: 0.25em;
  font-size: 1.5em;
  width: 1.5em;
  height: 1.5em;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: 0.15s;
  border-radius: 50%;
}

.dialog-close:hover {
  background-color: rgb(255 255 255);
}

@media screen and (min-width: 700px) {
  .dialog-close {
    top: 5px;
    right: 5px;
  }
}



/* move this after finished */
.event-photos-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.event-photos-list li {
  flex: 1 0 30%;
  list-style: none !important;
  max-width: 590px; /* 50% size on desktop */
}
.event-photos-list > li > button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 20px;
}
.event-photos-list > li > button > img {
  max-height: 180px;
  width: 100%;
  object-fit: cover;
  border-radius: 20px;
}
.event-photos-list img {
  display: block;
  margin: 0 auto;
}
.dialog-content {
  display: flex;
  max-height: 85vh;
}