/*-------------------------
  for Photo group
---------------------------*/

@media screen and (min-width:451px) {
  .album {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    color: var(--note-color);
  }
  
  .album > :not(figure) {
    display: none;
  }
  
  .album > figure {
    flex-basis: 640px;
    box-shadow: var(--box-shadow);
    padding: 1rem;
    cursor: pointer; 
  }
  .album > figure figcaption {
    font-size: 90%;
  }
  
/*  need more works...*/
  .album > figure.lightbox {
    margin: 0;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    z-index: 10;
    box-sizing: border-box;
    overflow: hidden;
    flex-direction: column;
  }
  .album > figure.lightbox img {
    max-width: 100vw;
    max-height: 100vh;
    min-width: 0;
    min-height: 0;
    width: auto;
    height: auto;
    flex: 1 1;
    object-fit: contain;
  }
  .album > figure.lightbox figcaption {
    padding: 0.5rem;
    box-sizing: border-box;
  } 
  
}