.image-gallery-module {
    width:1440px;
    margin:auto;
    padding-top:56px;
    padding-bottom: 56px;
  }
  .gallery-image img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    display: inline-block;
    height:362px;
    object-fit: cover;
  }
  .gallery-wrapper > div > div {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .gallery-wrapper > div > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .gallery-wrapper > div {
    display: grid;
    grid-gap: 4px;
    grid-template-columns: repeat(auto-fit, minmax(354px, 1fr));
    grid-auto-rows: 362px;
    grid-auto-flow: dense;
    align-items: flex-start;
    cursor: pointer;
  }
  .gallery-wrapper .wide {
    grid-column: span 2;
    grid-row: span 1;
  }
  .gallery-wrapper .tall {
    grid-column: span 1;
    grid-row: span 1;
  }
  .gallery-wrapper .short {
    height:50%;
  }
  .short-combo{
     flex-direction:column-reverse;
     height:362px;
     gap:4px;
  }
  .short-combo img{
    max-height: 179px!important;
  }
  #myModal .row:after {
    content: "";
    display: table;
    clear: both;
  }
  #myModal .column {
   display: flex;
   float:left;
  }
  .modal {
    display: none;
    position: fixed;
    z-index: 2;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0,0,0,.9);
    padding-top: 11rem;
  }
  .mySlides img{
    background: #f2f2f2;
    height:630px;
    object-fit: cover;
    width:100%;
  }
  .modal-content {
    position: relative;
    background-color: rgba(0,0,0,.9);
    margin: auto;
    padding: 0;
    width: 50%;
    max-width: 1440px;
  }
  #myModal .close {
    font-size: 0px;
    position: absolute;
    top:0;
    right:0;
    transition: 0.3s ease-in-out;
    display: flex;
    padding: 5px 10px;
    justify-content: center;
    align-items: center;
    top: 16px;
    right: 16px;
    background-color: #fff;
    border-radius: 8px;
  }
  .close.cursor svg{
    fill:#fff;
  }
  #myModal .close:hover,
  #myModal .close:focus {
    cursor: pointer;
  }
  .mySlides {
    display: none;
  }
  #myModal .cursor {
    cursor: pointer;
  }
  #myModal .prev #text,
  #myModal .next #text{
    display:none!important;
  }
  #myModal .prev,
  #myModal .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    margin-top: -50px;
    width: auto;
    transition: 0.6s ease;
    -webkit-user-select: none;
    border-radius: 0 16px 16px 0;
    transition: .3s ease-in-out;
  }
  #myModal .next svg{
    top: 2px;
    position: relative;
  }

  #myModal .prev svg{
    top:4px;
    position: relative;
  }

  #myModal .prev svg path,#myModal .next svg path:first-of-type{
    transition:.25s;
  }

  #myModal .prev:hover svg path:first-of-type,#myModal .next:hover svg path:first-of-type{
    fill:#ffffff;
  }

  .close.cursor svg:hover{
    fill:#E9E9E9;
  }
  .close.cursor svg:active{
  fill:#D3D3D3;
  }
  #myModal .next{
     transform: rotate(180deg);
     right: 0;
  }
  .numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
  }
  #myModal .close.cursor #text{
    display: none;
  }
  #myModal .active,
  #myModal .demo:hover {
    opacity: 1;
  }
  #myModal img.hover-shadow {
    transition: 0.3s;
  }
  #myModal .hover-shadow:hover {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  }
  #myModal .bottom-gallery{
    margin:auto;
  }
  #myModal img.demo.cursor{
    border-radius: 12px;
    height:152px;
    object-fit: cover;
    padding:4px;
  }
  #myModal .column img{
    transition: 0.3s ease-in-out;
  }
  #myModal .column img:hover{
    padding:0;
  }
   #myModal img.demo.cursor.active{
    padding:0;
  }
  .click-off-close{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 7rem;
    color: rgba(0,0,0,.9);
  }
  #myModal .bottom-gallery .column img{
    width:137px;
    height:137px;
    object-fit: cover;
    cursor: pointer;
  }
  #myModal .column img{
    transition: 0.3s ease-in-out;
  }
  #myModal .column img:hover{
    padding:0;
  }
  #myModal .column img.active{
    padding:0;
  }

  @media screen and (max-width: 1500px) {
    .image-gallery-module{
      width: auto;
    }
    .modal-content{
      width: 64.5%;
    }
    .gallery-image img:first-child,
    .gallery-image img:last-child{
      width:1000px;
    }
  }

  @media screen and (max-width: 1400px) {
    #myModal img.demo.cursor{
      height: 130px;
    }
    #myModal .bottom-gallery .column figure picture img{
      height:130px;
    }
    .image-gallery-module{
      margin-left:0;
    }
  }

  @media screen and (max-width: 1280px) {
    .modal{
      padding-top: 7.5rem;
    }
    .modal-content{
      max-width: none;
    }
    .gallery-image img:first-child,
    .gallery-image img:last-child{
      width: 1280px;
    }
  }

  @media screen and (max-width: 1000px) {
    .modal{
      padding-top:8rem;
      padding-bottom: 11.5rem;
    }
    .mySlides img{
      height:430px;
    }
    #myModal img.demo.cursor{
      height:80px;
    }
    #myModal .bottom-gallery .column figure picture img{
      height:80px;
    }
    .gallery-image .tall:first-child,
    .gallery-image .tall:nth-child(2),
    .gallery-image .tall img:nth-child(2),
    .gallery-image .tall:nth-child(3),
    .gallery-image .tall img:nth-child(3),
    .gallery-image .wide:last-child{
      display: none;
    }
    .gallery-wrapper > div{
      grid-auto-rows: auto;
    }
    .modal-content{
      width:67%;
    }
  }

  @media screen and (max-width: 500px) {
    .mySlides img{
      height:300px;
    }
    .modal-content{
      width:100%;
    }
   .gallery-wrapper .tall{
      width:84%;
    }
    .gallery-wrapper .short{
      width:200px;
    }
    .short-combo{
      position: relative;
      left:-57px;
    }
    .image-gallery-module{
      overflow: hidden;
    }
  }

  @media screen and (max-width: 415px) {
    .gallery-wrapper .tall{
      width:60%;
    }
    .short-combo{
      position: relative;
      left:-142px;
    }
  }

@media screen and (max-width: 380px) {
  .gallery-wrapper .tall{
    width:53%;
  }
  .short-combo{
    position: relative;
    left:-166px;
  }
}
