.qgallery-shortcode {
  /*------------------------------------------------------------------
    [3. Max width: 991px ]
    */
}

.qgallery-shortcode .qgallery-row {
  display: -webkit-flex;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 -10px;
  margin-bottom: -20px;
}

.qgallery-shortcode .qgallery-row .qgallery-col {
  margin-bottom: 20px;
  -webkit-box-flex: 0;
  flex: 0 0 calc(100% / 4);
  width: calc(100% / 4);
  padding: 0 10px;
  max-width: 100%;
  min-width: 225px;
}

@media screen and (max-width: 991px) {
  .qgallery-shortcode .qgallery-row .qgallery-col {
    flex: 0 0 calc(100% / 3);
    width: calc(100% / 3);
  }
}

@media screen and (max-width: 768px) {
  .qgallery-shortcode .qgallery-row .qgallery-col {
    flex: 1 2 auto;
  }
}

.qgallery-shortcode .qgallery-row .qgallery-col.qgallery-col-full {
  -webkit-flex: 0 0 100%;
  -ms-flex: 0 0 100%;
  flex: 0 0 100%;
  flex: 0 0 100%;
  width: 100%;
}

.qgallery-shortcode .qgallery-row .qgallery-col.qgallery-col-full-always {
  -webkit-flex: 0 0 100% !important;
  -ms-flex: 0 0 100% !important;
  flex: 0 0 100% !important;
  flex: 0 0 100% !important;
  width: 100% !important;
}

.qgallery-shortcode .qgallery-row.masonry {
  display: block;
  columns: 4;
  gap: 10px 10px;
}

.qgallery-shortcode .qgallery-row.masonry .qgallery-col {
  width: 100% !important;
  flex: initial !important;
  box-sizing: border-box;
  break-inside: avoid;
  position: initial !important;
}

.qgallery-shortcode .qgallery-card-tiles {
  font-family: "Roboto", Sans-serif;
  --text-color: #fff;
  --text-color-active: #fff;
  --title-font-size: 16px;
  --title-font-weight: 700;
  position: relative;
  margin: 0;
  padding: 0;
  font-size: 0;
  border-radius: 20px;
  overflow: hidden;
}

.qgallery-shortcode .qgallery-card-tiles .thumbnail {
  max-width: 100%;
}

.qgallery-shortcode .qgallery-card-tiles .link,
.qgallery-shortcode .qgallery-card-tiles .qgallery-overlay,
.qgallery-shortcode .qgallery-card-tiles .qgallery-figcaption {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.qgallery-shortcode .qgallery-card-tiles .qgallery-figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 15px;
  color: var(--text-color);
  font-size: var(--title-font-size);
  font-weight: var(--title-font-weight);
  display: none;
}

.qgallery-shortcode .qgallery-card-tiles .qgallery-overlay {
  background-color: rgba(0, 0, 0, 0.25);
}

.qgallery-shortcode .qgallery-card-tiles .qgallery-overlay,
.qgallery-shortcode .qgallery-card-tiles .qgallery-figcaption {
  transition-duration: 0.3s;
  opacity: 0;
}

.qgallery-shortcode .qgallery-card-tiles:hover .qgallery-overlay,
.qgallery-shortcode .qgallery-card-tiles:hover .qgallery-figcaption {
  opacity: 1;
}

.qgallery-shortcode .qgallery-card-tiles .qgallery-blog--title {
  padding: 0;
  margin: 0;
}

.qgallery-shortcode .qgallery-card-tiles .qgallery-blog--title:hover {
  color: var(--text-color-active);
}

.qgallery-shortcode .qgallery-card-tiles .qgallery-blog--title a:hover, .qgallery-shortcode .qgallery-card-tiles .qgallery-blog--title a {
  color: inherit;
  text-decoration: inherit;
  font-size: inherit;
}

.qgallery-shortcode .qgallery-card-tiles .qgallery-blog--text {
  padding: 0;
  margin: 0;
  color: var(--text-color);
  font-size: 17px;
  font-weight: 500;
  line-height: 24px;
}

.qgallery-shortcode .qgallery-card-tiles .qgallery-blog--btn {
  font-size: 18px;
  font-weight: 500;
  display: inline-block;
  padding: 0;
  color: #1C2027;
  background-color: #61CE7000;
  text-decoration: none;
}

.qgallery-shortcode .qgallery-card-tiles .qgallery-blog--btn:hover {
  color: var(--text-color-active);
}

.qgallery-shortcode .qgallery-card-tiles .qgallery-blog--btn i, .qgallery-shortcode .qgallery-card-tiles .qgallery-blog--btn svg {
  font-size: 16px;
  margin-left: 5px;
}

.qgallery-shortcode .qgallery-card-tiles .qgallery-blog--btn svg {
  width: 18px;
  height: 18px;
}

.qgallery-shortcode .qgallery-card-tiles .qgallery-blog--title, .qgallery-shortcode .qgallery-card-tiles .qgallery-blog--btn {
  transition: all .15s;
}

.qgallery-shortcode .qgallery-row:not(.masonry) .qgallery-card-tiles .thumbnail {
width: 100%;
  height: 225px;
  border-radius: 20px;
  object-fit: cover;
}

.qgallery-shortcode .qgallery-row.masonry {
  display: block;
  columns: 4;
  gap: 15px;
}

.qgallery-shortcode .qgallery-paginatio-wrapper {
  text-align: center;
  margin-top: 30px;
}

.qgallery-shortcode .qgallery-btn-load-more {
  display: inline-block;
  text-align: center;
  padding: 15px 15px;
  color: #001C42;
  border: 1px solid #001C42;
  font-size: 18px;
  font-weight: 400;
  transition: all 0.3s;
}

.qgallery-shortcode .qgallery-btn-load-more:hover {
  background: #001C42;
  color: #fff;
}

.qgallery-shortcode .qgallery-btn-load-more.btn_load_indicator {
  position: relative;
}

.qgallery-shortcode .qgallery-btn-load-more.btn_load_indicator::after {
  content: "\f113";
  font-family: dashicons;
  line-height: 1;
  font-weight: 500;
  font-style: normal;
  font-size: 20px;
  speak: never;
  text-decoration: inherit;
  text-transform: none;
  text-rendering: auto;
  -webkit-animation: wdk-spin 2s infinite linear;
  animation: wdk-spin 2s infinite linear;
  margin-left: 7px;
  margin-top: -17px;
  display: inline-block;
  top: 4px;
  position: relative;
}

.qgallery-shortcode .qgallery-btn-load-more.btn_load_indicator.out::after {
  position: absolute;
  right: -30px;
}

@keyframes wdk-spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@media (max-width: 1140px) {
  .qgallery-shortcode .qgallery-row.masonry {
    columns: 3;
  }
}

@media (max-width: 991px) {
  .qgallery-shortcode .qgallery-row.masonry {
    columns: 2;
  }
}
