/* Grid gallery for [dirschl_link_preview_gallery] */
.dirschl-lp-gallery-wrapper {
  position: relative;
  width: 100%;
  --dirschl-lp-gallery-cols: 4;
  --dirschl-lp-gallery-cols-md: 3;
  --dirschl-lp-gallery-cols-sm: 2;
  --dirschl-lp-gallery-gap: 25px;
}

.dirschl-lp-gallery-grid {
  display: grid;
  gap: var(--dirschl-lp-gallery-gap);
  grid-template-columns: repeat(var(--dirschl-lp-gallery-cols), minmax(0, 1fr));
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  margin-left: 0 !important;
  padding: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
  align-items: stretch;
}

.dirschl-lp-gallery-grid .sil-item {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 1100px) {
  .dirschl-lp-gallery-grid {
    grid-template-columns: repeat(var(--dirschl-lp-gallery-cols-md), minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .dirschl-lp-gallery-grid {
    grid-template-columns: repeat(var(--dirschl-lp-gallery-cols-sm), minmax(0, 1fr));
  }
}

@media (max-width: 500px) {
  .dirschl-lp-gallery-grid {
    grid-template-columns: 1fr;
  }
}

.dirschl-lp-gallery-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
}

.dirschl-lp-gallery-pagination a,
.dirschl-lp-gallery-pagination span {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  line-height: 1.3;
}

.dirschl-lp-gallery-pagination a {
  border: 1px solid #5a5a5a;
  background: #2d2d2d;
  color: #fff;
}

.dirschl-lp-gallery-pagination a:hover {
  background: #3d3d3d;
}

.dirschl-lp-gallery-pagination .is-current {
  font-weight: 700;
  color: inherit;
  border: 1px solid transparent;
}

.dirschl-lp-gallery-pagination .is-disabled {
  opacity: 0.45;
  pointer-events: none;
}
