/* Gallery */
.full-gallery-tablecell {
    text-align: center;
    -ms-flex-line-pack: revert;
    align-content: revert;
}
.full-gallery-section {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    min-height: 500px;
    color: #fff;
    font-family: "graphik";
    border: 0px solid #fff;
    background: rgba(0, 0, 0, 0.3);
}
.full-gallery-tablecell h1 {
    font-weight: 400;
    font-size: 40px;
}
.full-gallery-btn {
    background-color: transparent;
    color: #fff;
    text-transform: uppercase;
    padding: 10px 30px;
    cursor: pointer;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
    border: 1px solid #fff;
}
.full-gallery-btn:hover {
    background-color: #fff;
    color: #1e1e1e;
}
.full-gallery-btn:focus {
    outline: 0 none;
}

.fullgallerymodal {
    padding: 0 !important;
}
.fullgallerymodal .fullGalleryPopUpContent {
    min-height: 100vh;
}
.fullgallerymodal .modal-dialog.modal-md {
    width: 100%;
    max-width: inherit;
    height: 100%;
    top: 0;
    left: 0;
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
    margin: 0;
}
.fullgallerymodal .modal-dialog.modal-md .modal-content {
    border-radius: 0;
}

.single-gallery-img img {
    width: 100%;
}
.single-gallery-img {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    height: 100%;
    margin-bottom: 30px;
}
.single-gallery-img a {
    width: 100%;
}
.open-image {
    width: 100%;
    cursor: pointer;
}

.fullgallerymodal .close {
    position: absolute;
    left: auto;
    right: 0;
    color: #1e1e1e;
    font-family: "graphik";
    font-weight: 400;
    z-index: 9;
    cursor: pointer;
    font-size: 20px;
    top: 15px;
    right: 15px;
}
.fullgallerymodal .close span {
    font-size: 24px;
}
.center-tablecell {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}
.preview-img {
    position: relative;
    z-index: 1;
    display: none;
    text-align: center;
    border-bottom: 1px solid#efefef;
    padding-bottom: 50px;
}
.fullgallerymodal .close.close-preview {
    right: auto;
    left: auto;
    z-index: 9;
    bottom: -38px;
    top: auto;
}
.popup-logo {
    margin-bottom: 30px;
}
.popup-logo img {
    max-height: 30px;
}
.photoby.text-center {
    margin-top: 30px;
    margin-bottom: 30px;
    font-size: 18px;
}
.owl-carousel .owl-item .single-slide-gallery-img img {
    width: 100%;
    height: auto;
    margin: 0 auto;
    max-width: 100%;
}
.gallery-popup-slider .owl-nav button {
    position: absolute;
    top: 50%;
    left: -50px;
    font-family: "graphik" !important;
    font-size: 18px !important;
    line-height: 28px !important;
    margin-top: -14px;
}

.gallery-popup-slider .owl-nav .owl-next {
    left: auto;
    right: -50px;
}

.gallery-popup-slider .owl-nav button:focus {
    outline: none;
}

.gallery-popup-slider .owl-nav .disabled {
    display: none;
}

.imagecount {
    color: #1e1e1e;
    font-size: 18px;
    margin-top: 15px;
}
.imagecount span {
    color: #1e1e1e;
}
button.grid-view,
button.slider-view {
    position: absolute;
    border: none;
    background-color: transparent;
    text-transform: uppercase;
    font-size: 18px;
    cursor: pointer;
    left: 0px;
    top: 30px;
}
button.slider-view {
    left: 0;
    top: 30px;
}
.grid-hidden.hide,
.gallery-popup-slider-wrap.hide {
    display: none;
}

.preview-img img {
    height: calc(100vh - 132px);
}

.gallery-popup-slider.owl-carousel .owl-item img {
    margin: auto;
    width: auto;
    height: calc(100vh - 132px);
}

/*
.owl-carousel .owl-item .single-slide-gallery-img img {
	width: 100%;
	height: auto;
}
.masonry_grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: masonry;
	gap: 10px;
}
.open-image {
	margin: 0;
	display: grid;
	grid-template-rows: 1fr auto;
}
.open-image img {
	grid-row: 1 / -1;
	grid-column: 1;
}
.open-image img {
  max-width: 100%;
  display: block;
}
.open-image {
 margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
}
.open-image > img {
  grid-row: 1 / -1;
  grid-column: 1;
}
.open-image a {
  color: black;
  text-decoration: none;
}
.masonry_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: masonry;
  gap: 10px;
}*/

/* Main CSS */
.grid-wrapper {
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
}
.grid-wrapper > div {
    display: flex;
    justify-content: center;
    align-items: center;
}
.grid-wrapper > div > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}
.grid-wrapper .wide {
    grid-column: span 2;
}
.grid-wrapper .tall {
    grid-row: span 2;
}
.grid-wrapper .big {
    grid-column: span 2;
    grid-row: span 2;
}
