@import url(lightbox.css);

body.no-scroll {
  overflow: hidden;
}

main {

  article.gallery {
    width: var(--body-width);
    max-width: var(--body-max-width);

    section.gallery-container {
      display: grid;
      grid-gap: 10px;
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
      grid-auto-rows: 250px;

      a.lightbox_img_wrap {
        display: block;
        height: 100%;
        width: 100%;

        img {
          object-fit: cover;
          object-position: center;
          width: 100%;
          height: 100%;
        }
      }
    }
  }
}

@media (min-width: 1000px){


  article.gallery {
    section.gallery-start {
      grid-template-columns: 1fr 1fr 1fr;
    }
    section.gallery-overview {
      grid-template-columns: 1fr 1fr;

      a.addParamsButton {
        aspect-ratio: 3/2;
      }
    }
    section.gallery-container {
      grid-auto-rows: 200px;

      a.lightbox_img_wrap:nth-child(3n + 2) {
        grid-row-end: span 2;
      }

      a.lightbox_img_wrap:nth-child(5n + 6) {
        grid-row-end: span 3;
      }
    }
  }

}
