.ag-no-scroll { overflow: hidden !important; }

.ag-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.ag-lightbox.is-open { 
  padding: 20px;
  display: flex; 
  align-items: center;
  justify-content: center;
}
.ag-lightbox__meta_titles{
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 7px;
  max-width: 60%;
}
.ag-lightbox__meta{
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.ag-lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 90%);
}

.ag-lightbox__dialog {
  position: relative;
  gap: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.ag-lightbox__viewport {
  max-width: 900px;
  width: 100%;
  max-height: calc(100vh - 140px);
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
}

.ag-lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  transform: translate(0, 0) scale(1);
  transition: transform 180ms ease;
  user-select: none;
  will-change: transform;
  cursor: zoom-in;
}

.ag-lightbox.is-zoomed .ag-lightbox__img {
  cursor: grab;
}
.ag-lightbox.is-dragging .ag-lightbox__img {
  cursor: grabbing;
  transition: none;
}

.ag-lightbox__close,
.ag-lightbox__zoom,
.ag-lightbox__zoom-out {
  z-index: 10;
  position: absolute;
  right: -60px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.7);
  color: #111;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.ag-lightbox__close { top: 30px; }
.ag-lightbox__zoom  { top: 86px; font-size: 22px; }
.ag-lightbox__zoom-out { top: 142px; font-size: 22px; }

.ag-lightbox__arrow {
  z-index: 9;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.35);
  color: #111;
  font-size: 20px;
  cursor: pointer;
}

.ag-lightbox__arrow--prev { left: -60px; }
.ag-lightbox__arrow--next { right: -60px; }

.ag-lightbox__meta {
  /* position: absolute; */
  /* bottom: 30px; */
  /* left: 50%; */
  /* transform: translateX(-50%); */
  gap: 30px;
  width: calc(100% - 24px);
  background: rgba(0,0,0,0.35);
  color: #fff;
  padding: 12px;
  min-width: 260px;
  align-items: center;
  backdrop-filter: blur(19px);
  font-size: 12px;
}

.ag-lightbox__meta-title {
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.ag-lightbox__meta-artist{
  font-size: 20px;
  text-transform: uppercase;
}
.ag-lightbox__meta-counter {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.85;
}

@media (max-width: 1024px){
  .ag-lightbox__close, .ag-lightbox__zoom, .ag-lightbox__zoom-out{
    right: 0;
  }
  .ag-lightbox__arrow--prev {
    left: 0;
  }
  .ag-lightbox__arrow--next {
    right: 0;
  }
  .ag-lightbox__close {
    top: 10px;
  }
  .ag-lightbox__zoom {
    top: 64px;
  }
  .ag-lightbox__zoom-out {
    top: 118px;
  }

}
@media (max-width: 768px) {
  .ag-lightbox__meta { bottom: 16px; width: calc(100% - 40px); }
}