.jp-ag-slider,
.jp-ag-collection {
  width: 100%;
  position: relative;
}

.jp-ag-viewport {
  width: 100%;
  overflow: hidden;
  height: 100%;
}

.jp-ag-track {
  display: flex;
  height: 100%;
  transition: transform .35s ease;
  will-change: transform;
}

.jp-ag-slide {
  flex: 0 0 auto;
  height: 100%;
  box-sizing: border-box;
}

.jp-ag-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 1024px) {
  .jp-ag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .jp-ag-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); }
}

.jp-ag-grid-item.is-hidden,
.jp-ag-slide.is-hidden {
  display: none !important;
}

.jp-ag-slider img,
.jp-ag-collection img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.jp-ag-arrow,
.jp-ag-dot,
.jp-ag-filter {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
}

.jp-ag-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  display: block;
}
.jp-ag-arrow--prev { left: 10px; }
.jp-ag-arrow--next { right: 10px; }

.jp-ag-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  z-index: 20;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.jp-ag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.65);
  display: block;
  flex: 0 0 8px;
}
.jp-ag-dot.is-active { background: rgba(255,255,255,.98); }

.jp-ag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.jp-ag-filter {
  font-size: 14px;
  line-height: 1.2;
  color: inherit;
  border-bottom: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.jp-ag-filter:hover { border-bottom-color: currentColor; }
.jp-ag-filter.is-active { border-bottom-color: currentColor; }

.jp-ag-lightbox { display: block; width: 100%; height: 100%; }
.jp-ag-notice {
  padding: 12px 14px;
  border: 1px dashed #ccc;
  border-radius: 10px;
  font-size: 13px;
}


.jp-ag-filter.is-active {
  border-bottom-color: currentColor;
}

.jp-ag-page-hidden {
  display: none !important;
}


.jp-ag-masonry {
  column-count: 3;
  column-gap: 12px;
}

.jp-ag-masonry-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 12px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .jp-ag-masonry { column-count: 2; }
}

@media (max-width: 767px) {
  .jp-ag-masonry { column-count: 1; }
}

.jp-ag-grid-item.is-hidden,
.jp-ag-slide.is-hidden,
.jp-ag-masonry-item.is-hidden,
.jp-ag-page-hidden {
  display: none !important;
}

.jp-ag-collection {
  transition: opacity .2s ease, transform .2s ease;
}

.jp-ag-collection.jp-ag-is-filtering {
  opacity: .72;
}



/* Animation */
.jp-ag-filter-item {
  transition: opacity .25s ease, transform .25s ease;
}

.jp-ag-filter-item.is-hidden {
  opacity: 0;
  transform: scale(0.96);
}

.jp-ag-collection.jp-ag-animating .jp-ag-filter-item {
  opacity: 0.6;
}
