:where(.agic-slider) {
  --agic-slides: 3;
  --agic-gap: 20px;
}
:where(.agic-viewport) {
  overflow: hidden;
}
:where(.agic-track) {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  gap: var(--agic-gap);
  will-change: transform;
}
:where(.agic-slide) {
  flex: 0 0 var(--agic-slide-w, calc((100vw - var(--agic-gap) * (var(--agic-slides) - 1)) / var(--agic-slides)));
  min-width: 0;
}
:where(.agic-link) {
  display: block;
  cursor: zoom-in;
}
:where(.agic-figure) {
  margin: 0;
}
:where(.agic-image) {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}
:where(.agic-stretch .agic-track) {
  align-items: stretch;
}
:where(.agic-stretch .agic-link, .agic-stretch .agic-figure) {
  height: 100%;
}
:where(.agic-stretch .agic-image) {
  height: 100%;
  object-fit: cover;
}

.agic-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .9);
}
.agic-lightbox__image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}
.agic-lightbox button {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  cursor: pointer;
}
.agic-lightbox button:hover,
.agic-lightbox button:focus-visible {
  background: rgba(255, 255, 255, .35);
}
.agic-lightbox button svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.agic-lightbox__close { top: 1rem; right: 1rem; }
.agic-lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.agic-lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
