#content-section {
  background-color: transparent;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  height: max-content;
  float: right;
}

#gallery {
  width: 100%;
}

video {
  width: 100%;
}

ul {
  display: flex;
  background-color: transparent;
  flex-wrap: wrap;
  gap: 2vmin;
}

.li {
  display: flex;
  position: relative;
  cursor: pointer;
  height: 40vh;
  background-color: transparent;
  flex-grow: 1;
}

.li:hover > span {
  display: flex;
}

.li a:hover > span {
  display: flex;
}

.li:last-child {
  flex-grow: 10;
}

.li span {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.5);
  height: 100%;
  color: white;
  width: 100%;
  display: none;
  justify-content: center;
  align-items: center;
}

.li a {
  display: flex;
  position: relative;
  text-decoration: none;
  justify-content: center;
  color: inherit;
  align-items: center;
  gap: 5px;
  width: 100%;
  height: 100%;
}

img {
  max-height: 100%;
  min-width: 100%;
  background-color: transparent;
  object-fit: cover;
  vertical-align: bottom;
}

video source {
  height: 100%;
  width: auto;
}

@media (max-aspect-ratio: 1/1) {
  .li {
    height: 30vh;
  }
}

@media (max-height: 480px) {
  .li {
    height: 80vh;
  }
}

@media (max-aspect-ratio: 1/1) and (max-width: 480px) {
  ul {
    flex-direction: row;
  }

  .li {
    height: auto;
    width: 100%;
  }
  img {
    width: 100%;
    max-height: 75vh;
    min-width: 0;
  }
}

@media (max-width: 800px) {
  #content-section {
    margin-top: 0px;
    /* width: calc(100vw - 40px); */
    margin-right: 10px;
  }

  /* ul {
    pointer-events: none;
  } */

  #content-section {
    overflow-y: scroll;
  }

  #gallery {
    display: flex !important;
  }
}
