    html,
    body {
      height: 100%;
      margin: 0;
      display: flex;
      flex-direction: column;
    }

    body>.lightbox {
      flex: 1;
    }


    .lightbox {
      margin-top: 0;
      display: flex;
      position: relative;
      /* Allows scrolling */
      z-index: 1000;
      left: 0;
      top: 0;
      width: 100%;
      min-height: 80vh;
      height: auto;
      background-color: rgba(255, 255, 255, 0.8);
      justify-content: center;
      align-items: center;
      flex-direction: column;
      flex-wrap: wrap;

    }


    .lightbox-content {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      width: 25%;
      height: 25%;
      margin: 0;
      padding: 0;
      border-radius: 0;
    }



    .lightbox-content img {
      max-height: 100%;
      max-width: 100%;
      height: auto;
      width: auto;
      object-fit: contain;
      display: block;
      margin: 0 auto;
    }


    .title,
    .caption {
      background-color: rgba(0, 0, 0, 0.7);
      color: #fff;
      padding: 10px;
      text-align: center;
      box-sizing: border-box;

      white-space: normal;
      word-wrap: break-word;
      overflow-wrap: break-word;

      width: 100%;
    }


    @media (max-width: 600px) {

      .title,
      .caption {
        font-size: 0.9em;
        padding: 8px;
      }
    }

    .arrow {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      font-size: 2rem;
      text-decoration: none;
      color: #000;
      padding: 10px;
      background-color: rgba(255, 255, 255, 0.6);
      border-radius: 5px;
      user-select: none;
      z-index: 10;
    }

    .arrow-left {
      left: 200px;
    }

    .arrow-right {
      right: 200px;
    }

    .arrow:hover {
      background-color: #eee;
      border-radius: 5px;
    }


    img {
      width: 100%;
      height: auto;
      display: block;
      max-width: 600px;
      margin: 0 auto;
    }