.wollemiah-gallery {
  position: relative;
  overflow: hidden;
  width: 100%; max-width: var(--gallery-max-width);
  margin-left: auto; margin-right: auto;
  margin-top: var(--content-blocks-gap);
  font-family: 'Roboto Flex';
}

.wollemiah-gallery .wollemiah-gallery--header,
.wollemiah-gallery .wollemiah-gallery--header h1,
.wollemiah-gallery .wollemiah-gallery--header h2,
.wollemiah-gallery .wollemiah-gallery--header h3,
.wollemiah-gallery .wollemiah-gallery--header h4 {
  width: 100%; text-align: center; text-transform: uppercase;
  font-family: 'Optima Cyr'; font-weight: 700;
  font-size: 48px;
  color: var(--main-text-color);
}


.wollemia-gallery--viewport, .gallery-viewport {
  width: 100%;
  display: flex;
  list-style: none;
  height: 736px; max-height: 736px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;  -ms-overflow-style: none; 
  margin-bottom: 44px;
}

.wollemia-gallery--viewport::-webkit-scrollbar,
.gallery-viewport::-webkit-scrollbar { width: 0; height: 0; }

.wollemia-gallery--slide, .gallery-slide {
  width: 100%;
  height: 100%;
  flex: 1 0 100%;
}

.wollemia-gallery--controls, .gallery-controls {
  width: 100%; display: flex; position: relative;
  flex-flow: row wrap; align-items: center; justify-content: center;
  height: 50px; width: 100%;
  justify-content: center;
  background-repeat: no-repeat; background-size: cover; background-position: center center;
}

.gallery-control--control {
  opacity: 1.0;
  height: 49px; width: 49px;
}

.gallery-control--control:focus, .gallery-control--control:hover {
  transition: all 0.45s ease-in-out;
  opacity: 0.75;
}

.gallery-controls--prev {
  background: url('../images/prev.svg'); 
  background-size: contain; background-position: center center;
  background-repeat: no-repeat;
  margin-right: 24px;
}
.gallery-controls--next {
  background-size: contain; background-position: center center;
  background-repeat: no-repeat;
  background: url('../images/next.svg');
}


/* @media (min-width: 768px) */
@media (min-width: 768px) {

  .wollemia-gallery--viewport .wollemia-gallery--slide {
    display: inline-grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: 24px; row-gap: 24px;
    justify-content: stretch;
    object-fit: fill;
  }

  .wollemia-gallery--slide .slide-image {
    object-position: center;
    /* object-fit: fill; */
    object-fit: cover;
  }
  
  .wollemia-gallery--slide .slide-image-1 {
    grid-row-start: 1; grid-column: 1 / span 6;
  } 
  
  .wollemia-gallery--slide .slide-image-2 {
    grid-row-start: 1; grid-column: 7 / span 6;
  }

  .wollemia-gallery--slide .slide-image-3 {
    grid-row-start: 2; grid-column: 1 / span 4;
  }

  .wollemia-gallery--slide .slide-image-4 {
    grid-row-start: 2; grid-column: 5 / span 4;
  }

  .wollemia-gallery--slide .slide-image-5 {
    grid-row-start: 2; grid-column: 9 / span 4;
  }

}

@media (max-width: 767px) {

  .wollemiah-gallery.mobile-gallery {
    padding: 4px 8px;
    text-align: center;
    margin-top: var(--content-blocks-gap-mobile);
  }

  .wollemiah-gallery .wollemia-gallery--viewport.mobile-viewport {
    width: 100%;
    display: flex;
    list-style: none;
    /* width: 90vw;  */
    height: auto; max-height: 320px;

    margin: 0;
    padding: 0;
    overflow: scroll;
    scroll-behavior: smooth;
    scrollbar-width: none;  -ms-overflow-style: none; 
    margin-bottom: 0;
  }

  .wollemiah-gallery .wollemiah-gallery--header {
    margin-top: 0; margin-bottom: 24px;
  }

  .wollemia-gallery--viewport .wollemia-gallery--slide {
    display: inline-flex;
    width: 90vw;
    justify-content: stretch;
    object-fit: fill;
    overflow: hidden;
  }

  .wollemia-gallery--viewport .wollemia-gallery--slide .wollemia-gallery--image {width: 100%;}

  .wollemiah-gallery .wollemiah-gallery--header h1,
  .wollemiah-gallery .wollemiah-gallery--header h2,
  .wollemiah-gallery .wollemiah-gallery--header h3,
  .wollemiah-gallery .wollemiah-gallery--header h4 {
    width: 100%; text-align: center; text-transform: uppercase;
    font-family: 'Optima Cyr'; font-weight: 700;
    font-size: 28px;
    color: var(--main-text-color);
    margin: 0 auto;
  }

  .wollemia-gallery--controls, .gallery-controls {
    display: none; visibility: 0; opacity: 0.0; height: 0; margin: 0 0;
  }


}



