.calio-filterable-gallery {
  display: grid;
  gap: 20px;
}

.calio-filterable-gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.calio-filterable-gallery-toolbar-main {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 560px;
  flex-wrap: wrap;
}

.calio-filterable-gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.calio-filterable-gallery-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 1 240px;
  min-width: 220px;
}

.calio-filterable-gallery-search-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.calio-filterable-gallery-search-input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.34);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.calio-filterable-gallery-status {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}

.calio-filterable-gallery-toolbar-side {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.calio-filterable-gallery-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.calio-filterable-gallery-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.calio-filterable-gallery-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.calio-filterable-gallery-filter:hover,
.calio-filterable-gallery-filter:focus-visible,
.calio-filterable-gallery-filter.is-active {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.24);
  background: #eff6ff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.1);
}

.calio-filterable-gallery.filter-skin-underline .calio-filterable-gallery-filter {
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding-inline: 4px;
}

.calio-filterable-gallery.filter-skin-soft .calio-filterable-gallery-filter {
  background: #f8fafc;
}

.calio-filterable-gallery-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
}

.calio-filterable-gallery-grid {
  display: grid;
  gap: 18px;
}

.calio-filterable-gallery-grid.is-shuffling .calio-filterable-gallery-item.is-visible {
  transition-delay: calc(var(--calio-filter-stagger, 0) * 28ms);
}

.calio-filterable-gallery.flow-masonry .calio-filterable-gallery-grid {
  grid-auto-flow: dense;
}

.calio-filterable-gallery.cols-2 .calio-filterable-gallery-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.calio-filterable-gallery.cols-3 .calio-filterable-gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.calio-filterable-gallery.cols-4 .calio-filterable-gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.calio-filterable-gallery-item {
  min-width: 0;
  margin: 0;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: #fff;
  overflow: hidden;
  opacity: 1;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease, opacity .18s ease;
}

.calio-filterable-gallery-item.is-visible {
  opacity: 1;
}

.calio-filterable-gallery-item.is-hidden {
  opacity: 0;
  transform: translateY(12px) scale(.985);
  pointer-events: none;
}

.calio-filterable-gallery-item.is-featured {
  border-color: rgba(14, 165, 233, 0.24);
  background: linear-gradient(-180deg, #ffffff, #f4fbff);
  box-shadow: 0 24px 56px rgba(14, 165, 233, 0.12);
}

.calio-filterable-gallery.flow-masonry .calio-filterable-gallery-item.size-wide {
  grid-column: span 2;
}

.calio-filterable-gallery.flow-masonry .calio-filterable-gallery-item.size-tall .calio-filterable-gallery-media {
  aspect-ratio: 3 / 5;
}

.calio-filterable-gallery-item:hover,
.calio-filterable-gallery-item:focus-within {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
}

.calio-filterable-gallery-media {
  position: relative;
  overflow: hidden;
  background: #e2e8f0;
}

.calio-filterable-gallery-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(-180deg, rgba(15, 23, 42, 0) 26%, rgba(15, 23, 42, 0.48) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease;
}

.calio-filterable-gallery-item:hover .calio-filterable-gallery-media::after,
.calio-filterable-gallery-item:focus-within .calio-filterable-gallery-media::after,
.calio-filterable-gallery.skin-overlay .calio-filterable-gallery-media::after {
  opacity: 1;
}

.calio-filterable-gallery-featured {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.calio-filterable-gallery.is-featured-first .calio-filterable-gallery-featured {
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.calio-filterable-gallery-media a {
  display: block;
  color: inherit;
}

.calio-filterable-gallery-overlay-link {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, background-color .22s ease, color .22s ease;
  backdrop-filter: blur(12px);
}

.calio-filterable-gallery-overlay-link.is-featured-link {
  background: linear-gradient(-135deg, rgba(2, 132, 199, 0.92), rgba(37, 99, 235, 0.92));
  box-shadow: 0 16px 34px rgba(14, 165, 233, 0.2);
}

.calio-filterable-gallery-overlay-note {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  max-width: calc(100% - 116px);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease;
}

.calio-filterable-gallery-overlay-link::after {
  content: '>';
  margin-right: 8px;
  transition: transform .2s ease;
}

.calio-filterable-gallery-item:hover .calio-filterable-gallery-overlay-link,
.calio-filterable-gallery-item:focus-within .calio-filterable-gallery-overlay-link,
.calio-filterable-gallery-item:hover .calio-filterable-gallery-overlay-note,
.calio-filterable-gallery-item:focus-within .calio-filterable-gallery-overlay-note {
  opacity: 1;
  transform: translateY(0);
}

.calio-filterable-gallery-item.is-featured:hover .calio-filterable-gallery-overlay-link.is-featured-link,
.calio-filterable-gallery-item.is-featured:focus-within .calio-filterable-gallery-overlay-link.is-featured-link {
  transform: translateY(0) scale(1.02);
}

.calio-filterable-gallery-item:hover .calio-filterable-gallery-overlay-link,
.calio-filterable-gallery-item:focus-within .calio-filterable-gallery-overlay-link {
  pointer-events: auto;
}

.calio-filterable-gallery-overlay-link:hover,
.calio-filterable-gallery-overlay-link:focus-visible {
  background: rgba(37, 99, 235, 0.9);
  color: #fff;
}

.calio-filterable-gallery-overlay-link:hover::after,
.calio-filterable-gallery-overlay-link:focus-visible::after {
  transform: translateX(-2px);
}

.calio-filterable-gallery-media img {
  width: 100%;
  height: 100%;
  display: block;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform .28s ease, opacity .24s ease;
}

.calio-filterable-gallery.ratio-square .calio-filterable-gallery-media {
  aspect-ratio: 1 / 1;
}

.calio-filterable-gallery.ratio-landscape .calio-filterable-gallery-media {
  aspect-ratio: 4 / 3;
}

.calio-filterable-gallery.ratio-portrait .calio-filterable-gallery-media {
  aspect-ratio: 3 / 4;
}

.calio-filterable-gallery.ratio-auto .calio-filterable-gallery-media img {
  height: auto;
}

.calio-filterable-gallery-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 18px;
}

.calio-filterable-gallery-title {
  display: block;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.calio-filterable-gallery-meta,
.calio-filterable-gallery-submeta {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.calio-filterable-gallery-caption {
  color: #475569;
  font-size: 14px;
  line-height: 1.65;
}

.calio-filterable-gallery.skin-overlay .calio-filterable-gallery-copy {
  position: absolute;
  right: 14px;
  left: 14px;
  bottom: 14px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.48);
  color: #f8fafc;
  backdrop-filter: blur(12px);
}

.calio-filterable-gallery.overlay-chrome-glass .calio-filterable-gallery-copy {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.14);
}

.calio-filterable-gallery.overlay-chrome-editorial .calio-filterable-gallery-copy {
  right: 0;
  left: 0;
  bottom: 0;
  border-radius: 0;
  background: linear-gradient(-180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.84) 100%);
  padding-top: 40px;
}

.calio-filterable-gallery.skin-overlay .calio-filterable-gallery-title,
.calio-filterable-gallery.skin-overlay .calio-filterable-gallery-meta,
.calio-filterable-gallery.skin-overlay .calio-filterable-gallery-submeta,
.calio-filterable-gallery.skin-overlay .calio-filterable-gallery-caption {
  color: inherit;
}

.calio-filterable-gallery.skin-minimal .calio-filterable-gallery-item {
  border-color: transparent;
  border-radius: 0;
  box-shadow: none;
}

.calio-filterable-gallery.skin-minimal .calio-filterable-gallery-copy {
  padding-inline: 0;
  padding-bottom: 0;
}

.calio-filterable-gallery.has-featured-first .calio-filterable-gallery-item.is-featured:first-of-type {
  grid-column: span 2;
}

.calio-filterable-gallery.has-featured-first .calio-filterable-gallery-item.is-featured:first-of-type .calio-filterable-gallery-copy {
  gap: 10px;
  padding: 20px 22px 22px;
}

.calio-filterable-gallery.has-featured-first .calio-filterable-gallery-item.is-featured:first-of-type .calio-filterable-gallery-title {
  font-size: 1.18rem;
}

.calio-filterable-gallery.has-featured-first .calio-filterable-gallery-item.is-featured:first-of-type .calio-filterable-gallery-overlay-link.is-featured-link {
  min-height: 44px;
  padding-inline: 16px;
}

.calio-filterable-gallery.featured-hero-split .calio-filterable-gallery-item.is-featured:first-of-type .calio-filterable-gallery-media {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: stretch;
}

.calio-filterable-gallery.featured-hero-split .calio-filterable-gallery-item.is-featured:first-of-type .calio-filterable-gallery-media > a,
.calio-filterable-gallery.featured-hero-split .calio-filterable-gallery-item.is-featured:first-of-type .calio-filterable-gallery-media > img {
  min-height: 100%;
}

.calio-filterable-gallery.featured-hero-split .calio-filterable-gallery-item.is-featured:first-of-type .calio-filterable-gallery-copy {
  position: static;
  min-height: 100%;
  border-radius: 0;
}

.calio-filterable-gallery.featured-hero-spotlight .calio-filterable-gallery-item.is-featured:first-of-type {
  background: linear-gradient(-135deg, #ffffff, #eef8ff 48%, #eff6ff 100%);
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: 0 28px 70px rgba(14, 165, 233, 0.18);
}

.calio-filterable-gallery.featured-hero-spotlight .calio-filterable-gallery-item.is-featured:first-of-type .calio-filterable-gallery-copy {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.calio-filterable-gallery-item:hover img,
.calio-filterable-gallery-item:focus-within img {
  transform: scale(1.04);
}

.calio-filterable-gallery-empty-state,
.calio-filterable-gallery-empty {
  padding: 24px;
  border: 1px dashed rgba(148, 163, 184, 0.38);
  border-radius: 18px;
  color: #64748b;
  text-align: center;
}

.calio-filterable-gallery-empty-state {
  display: grid;
  justify-items: center;
  gap: 12px;
  background: linear-gradient(-180deg, rgba(248, 250, 252, 0.9), rgba(255, 255, 255, 0.98));
}

.calio-filterable-gallery-empty-title {
  color: #0f172a;
  font-size: 1.1rem;
  font-weight: 700;
}

.calio-filterable-gallery-empty-copy {
  max-width: 46ch;
  color: #64748b;
  line-height: 1.7;
}

.calio-filterable-gallery-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.calio-filterable-gallery-reset:hover,
.calio-filterable-gallery-reset:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.34);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.12);
}

.calio-filterable-gallery-footer {
  display: flex;
  justify-content: center;
}

.calio-filterable-gallery-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 999px;
  background: linear-gradient(-180deg, #ffffff, #eff6ff);
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.calio-filterable-gallery-load-more:hover,
.calio-filterable-gallery-load-more:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.14);
}

.calio-filterable-gallery-load-more[hidden] {
  display: none;
}

@media (max-width: 1024px) {
  .calio-filterable-gallery.cols-4 .calio-filterable-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .calio-filterable-gallery.flow-masonry .calio-filterable-gallery-item.size-wide {
    grid-column: span 2;
  }
}

@media (max-width: 767px) {
  .calio-filterable-gallery.cols-2 .calio-filterable-gallery-grid,
  .calio-filterable-gallery.cols-3 .calio-filterable-gallery-grid,
  .calio-filterable-gallery.cols-4 .calio-filterable-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calio-filterable-gallery-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .calio-filterable-gallery-toolbar-main,
  .calio-filterable-gallery-search {
    width: 100%;
  }

  .calio-filterable-gallery-toolbar-side {
    justify-items: start;
    width: 100%;
  }

  .calio-filterable-gallery-badges {
    justify-content: flex-start;
  }

  .calio-filterable-gallery.skin-overlay .calio-filterable-gallery-copy {
    right: 10px;
    left: 10px;
    bottom: 10px;
    padding: 14px;
  }

  .calio-filterable-gallery.has-featured-first .calio-filterable-gallery-item.is-featured:first-of-type {
    grid-column: span 2;
  }

  .calio-filterable-gallery.flow-masonry .calio-filterable-gallery-item.size-wide,
  .calio-filterable-gallery.flow-masonry .calio-filterable-gallery-item.size-tall {
    grid-column: span 1;
  }

  .calio-filterable-gallery.flow-masonry .calio-filterable-gallery-item.size-tall .calio-filterable-gallery-media {
    aspect-ratio: 4 / 5;
  }

  .calio-filterable-gallery-overlay-link {
    left: 10px;
    bottom: 10px;
  }

  .calio-filterable-gallery-overlay-note {
    right: 10px;
    bottom: 10px;
  }

  .calio-filterable-gallery.featured-hero-split .calio-filterable-gallery-item.is-featured:first-of-type .calio-filterable-gallery-media {
    grid-template-columns: 1fr;
  }
}

