/* Lightbox is enqueued separately. Gap / columns / Custom Style are inline. */

.module-gallery .container {
    left: 0 !important;
    opacity: 1 !important;
}

.grid-gallery {
    display: grid;
}

.grid-gallery .box img {
  max-width: 100%;
  width: 100%;
}

.grid-gallery .ioverlay {
  cursor: pointer;
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.grid-gallery .ioverlay img {
  font-size: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: .7s all;
  -moz-transition: .7s all;
  -webkit-transition: .7s all;
  -o-transition: .7s all;
}

.grid-gallery .ioverlay .text {
     font-size: 1.6em; 
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: auto;
    width: 100%;
    text-align: center;
    background-color: rgba(0,0,0,0.8);
    opacity: 0;
    -webkit-transition: opacity 0.6s;
    -moz-transition: opacity 0.6s;
    transition: opacity 0.6s;
    vertical-align: middle;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-gallery .ioverlay .text span {
    display: inline-table;
    vertical-align: middle;
    line-height: 100%;
    margin: 0;
    color: #fff !important;
    border: 2px solid #ffffff;
    padding: 0.5em;
    border-radius: 3px;
    text-decoration: none;
    margin: 0;
}

.ioverlay .text:hover {
    opacity: 1;
}
