#gallery a {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

  #gallery > div > img {
  width: 100%;
  min-height: 100%;
  transition: all ease 1s;
} 

[id^=Image-] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    opacity: 0;
    transition: opacity 450ms ease-in-out;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 90;
  }
  [id^=Image-]:target {
    opacity: 1;
    pointer-events: inherit;
  }
  [id^=Image-]:target img {
    filter: blur(0);
  }

  
  [id^=Image-] .content {
    max-width: 90%;
    position: relative;
    color: #fff;
    z-index: 99;
  }
  [id^=Image-] .content > a.close {
    opacity: 1;
    transform: scale(1, 1);
  }
  [id^=Image-] .content > .title {
    opacity: 1;
    transform: translateY(-3px);
    transition-delay: 2s;
  }
  [id^=Image-] .content > .title::after {
    opacity: 1;
    transition-delay: 2s;
  }
  [id^=Image-] .content > * {
    transition: all 450ms ease-in-out;
  }
  
  [id^=Image-] .title {
    display: block;
    margin: 0;
    padding: 1em;
    position: absolute;
    bottom: 0;
    width: 100%;
    transform: translateY(50%);
    font-size: 1.5em;
    opacity: 0;
  }
  [id^=Image-] .title::after {
    content: " ";
    background-color: rgba(0, 0, 0, 0.4);
    bottom: 0;
    left: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    transition: all 350ms ease-in-out 250ms;
    opacity: 0;
    transform-origin: bottom;
    mix-blend-mode: soft-light;
  }
  [id^=Image-] img {
    max-height: 90vh;
    max-width: 100%;
    margin: 0;
    padding: 0;
    filter: blur(50px);
  }
  [id^=Image-] a.close {
    width: 2em;
    height: 2em;
    position: absolute;
    right: 0;
    top: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0, 0);
    opacity: 0;
    transform-origin: right top;
    text-decoration: none;
    color: #fff;
    z-index: 10;
  }
  [id^=Image-] a.close::after {
    content: "×";
  }