.flyer-gallery-wrap {
  background: transparent;
  color: inherit;
  padding: 22px 0 18px;
}

.flyer-gallery-filter-row {
  margin-bottom: 14px;
  /*max-width: 1120px;*/
  margin-left: auto;
  margin-right: auto;
}

.flyer-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
  justify-content: center;
}

.flyer-toolbar {
  display: none;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  margin-bottom: 6px;
  justify-content: center;
}

.flyer-chip {
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #454545;
  border-radius: 4px;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.flyer-sort,
.flyer-search-input,
.flyer-tool-btn {
  height: 30px;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font-size: 11px;
}

.flyer-sort {
  width: 130px;
  padding: 0 8px;
}

.flyer-search-input {
  width: 170px;
  padding: 0 10px;
}

.flyer-tool-btn {
  width: 32px;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.flyer-tool-btn .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
  line-height: 14px;
}

.flyer-chip span {
  color: #777;
}

.flyer-check {
  display: none;
  width: 10px;
  height: 10px;
  border: 1px solid #111;
  border-radius: 2px;
  position: relative;
  vertical-align: middle;
  margin: 0 3px;
}

.flyer-chip.is-active .flyer-check {
  display: inline-block;
  border-color: #0f6dff;
  background: #eaf2ff;
}

.flyer-chip.is-active .flyer-check::after {
  content: "";
  position: absolute;
  left: 2px;
  top: -1px;
  width: 4px;
  height: 7px;
  border: solid #0f6dff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.flyer-chip.is-active {
  background: #fff;
  color: #111;
  border-color: #fff;
  font-weight: 700;
}

.flyer-chip.is-active span {
  color: #111;
}

.flyer-chip:hover {
  background: #fff;
  color: #111;
  border-color: #fff;
}

.flyer-chip:hover span {
  color: #111;
}

.flyer-chip:focus,
.flyer-chip:focus-visible,
.flyer-chip:active {
  background: #fff !important;
  color: #111 !important;
  border-color: #fff !important;
  outline: 2px solid #0f6dff;
  outline-offset: 1px;
  box-shadow: none;
}

.flyer-chip:focus span,
.flyer-chip:focus-visible span,
.flyer-chip:active span {
  color: #111 !important;
}

.flyer-masonry {
  column-count: 4;
  column-gap: 8px;
  /*max-width: 1120px;*/
  margin: 0 auto;
}

.flyer-card {
  break-inside: avoid;
  margin: 0 0 8px;
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  transform: translateY(0) scale(1);
  opacity: 1;
  transition: transform .25s ease, opacity .25s ease;
}

.flyer-card img {
  display: block;
  width: 100%;
  height: auto;
}

.flyer-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .35);
  opacity: 0;
  transition: opacity .2s ease;
}

.flyer-card:hover .flyer-card-overlay {
  opacity: 1;
}

.flyer-card-actions {
  display: flex;
  gap: 10px;
}

.flyer-action {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
}

.flyer-action .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
  line-height: 18px;
}

.flyer-action.link {
  display: inline-flex;
}

.flyer-load-wrap {
  text-align: center;
  margin-top: 16px;
}

.flyer-load-more {
  border: 1px solid #fff;
  color: #fff;
  background: transparent;
  padding: 10px 22px;
  border-radius: 4px;
  cursor: pointer;
}

.flyer-load-more.is-loading {
  opacity: .7;
  pointer-events: none;
}

.fly-in {
  animation: flyerFlyIn .35s ease both;
}

@keyframes flyerFlyIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.flyer-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .95);
  z-index: 99999;
  display: none;
}

.flyer-lightbox.is-open {
  display: block;
}

.flyer-lightbox-stage {
  position: absolute;
  inset: 60px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flyer-lightbox-image {
  max-width: 100%;
  max-height: 100%;
}

.flyer-lightbox-close,
.flyer-lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, .18);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.flyer-lightbox-close { top: 12px; right: 16px; font-size: 24px; padding: 0; }
.flyer-lightbox-nav.prev { left: 16px; top: 50%; transform: translateY(-50%); }
.flyer-lightbox-nav.next { right: 16px; top: 50%; transform: translateY(-50%); }

body.flyer-lightbox-open {
  overflow: hidden;
}

@media (max-width: 1024px) {
  .flyer-masonry { column-count: 3; }
}
@media (max-width: 767px) {
  .flyer-masonry { column-count: 2; }
  .flyer-toolbar { flex-wrap: wrap; }
  .flyer-sort,
  .flyer-search-input { width: 100%; max-width: 280px; }
}
@media (max-width: 480px) {
  .flyer-masonry { column-count: 1; }
}

