/* AlbumPro WP Gallery Frontend Stylesheet — Exact Studio Parity (RTL & Responsive) */
.albumpro-wrap {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  direction: rtl;
}
.albumpro-wrap.albumpro-theme-dark {
  background: #111318;
  color: #ffffff;
  padding: 20px;
  border-radius: 16px;
}
.albumpro-wrap.albumpro-theme-editorial {
  background: #FBF9F5;
  color: #1C1B18;
  padding: 20px;
  border-radius: 16px;
}

.albumpro-gallery {
  display: grid;
  grid-template-columns: repeat(var(--ap-cols-d, 3), minmax(0, 1fr));
  gap: var(--ap-gap, 16px);
  width: 100%;
  box-sizing: border-box;
}
.albumpro-wrap button {
  box-sizing: border-box;
  font-family: inherit;
  text-transform: none;
  letter-spacing: normal;
}

.albumpro-layout-masonry {
  display: block;
  column-count: var(--ap-cols-d, 3);
  column-gap: var(--ap-gap, 16px);
}
.albumpro-layout-masonry .albumpro-item {
  break-inside: avoid;
  margin-bottom: var(--ap-gap, 16px);
}

.albumpro-layout-bento {
  grid-template-columns: repeat(var(--ap-bento-cols, 3), minmax(0, 1fr));
}
.albumpro-layout-bento .albumpro-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

/* Aspect Ratios */
.albumpro-aspect-1-1 .albumpro-media-box { aspect-ratio: 1 / 1; }
.albumpro-aspect-4-3 .albumpro-media-box { aspect-ratio: 4 / 3; }
.albumpro-aspect-16-9 .albumpro-media-box { aspect-ratio: 16 / 9; }
.albumpro-aspect-3-4 .albumpro-media-box { aspect-ratio: 3 / 4; }
.albumpro-aspect-auto .albumpro-media-box { aspect-ratio: 4 / 3; }

/* Progress Bar Keyframes & 5 Selectable Styles (RTL Right to Left) */
@keyframes albumproProgressRtl {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes albumproItemFill {
  from { opacity: 0.18; transform: scale(0.78); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes albumproSegmentFill {
  from { opacity: 0.35; transform: scaleX(0); }
  to { opacity: 1; transform: scaleX(1); }
}
.albumpro-progress-track {
  width: min(68%, calc(490px * var(--ap-slider-scale, 1)));
  height: 4px;
  margin: 0 auto 8px;
  background: rgba(203, 213, 225, 0.65);
  border-radius: 9999px;
  overflow: hidden;
}
.albumpro-progress-items {
  display: flex;
  direction: rtl;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: min(68%, calc(490px * var(--ap-slider-scale, 1)));
  margin: 0 auto 8px;
}
.albumpro-progress-sq {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  background: transparent;
  border: 1px solid #000000;
  box-sizing: border-box;
  opacity: 0.18;
  transform: scale(0.78);
}
.albumpro-progress-dot {
  width: 11px;
  height: 11px;
  border-radius: 9999px;
  background: transparent;
  border: 1px solid #000000;
  box-sizing: border-box;
  opacity: 0.18;
  transform: scale(0.78);
}
.albumpro-progress-seg {
  flex: 1;
  height: 4px;
  border-radius: 9999px;
  background: rgba(203, 213, 225, 0.65);
  overflow: hidden;
}
.albumpro-progress-seg > span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--ap-progress, #EC4899);
  transform-origin: right center;
  transform: scaleX(0);
}
.albumpro-progress-fill {
  width: 100%;
  height: 100%;
  background: var(--ap-progress, #EC4899);
  transform-origin: right center;
}
.albumpro-progress-fill.is-glow {
  box-shadow: 0 0 10px var(--ap-progress, #EC4899);
}

/* Deep Sculpted 3D Floating Slider (Exact Studio Parity) */
.albumpro-layout-slider3d {
  display: block;
  position: relative;
  height: calc(395px * var(--ap-slider-scale, 1));
  perspective: 950px;
  overflow: visible;
  padding-block: 12px;
  user-select: none;
}
.albumpro-3d-floor-shadow {
  pointer-events: none;
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 56%;
  max-width: 440px;
  height: 28px;
  border-radius: 9999px;
  opacity: 0.55;
  filter: blur(18px);
  background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.38) 0%, rgba(15, 23, 42, 0) 72%);
}
.albumpro-layout-slider3d .albumpro-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(68%, calc(490px * var(--ap-slider-scale, 1)));
  padding: 4px;
  background: #ffffff;
  border-radius: calc(max(10px, var(--ap-radius, 12px) + 2px));
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease, filter 0.45s ease;
  box-shadow: 0 2px 0 rgba(226, 232, 240, 0.85), 0 26px 52px -12px rgba(15, 23, 42, 0.36), 0 10px 22px -8px rgba(15, 23, 42, 0.22);
}
.albumpro-layout-slider3d .albumpro-media-box {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: calc(max(7px, var(--ap-radius, 12px) - 1px));
  overflow: hidden;
  background: #f1f5f9;
}
.albumpro-3d-gloss {
  pointer-events: none;
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
}
.albumpro-3d-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: var(--ap-accent-bg, rgba(236, 72, 153, 0.9));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ap-accent-text, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.18);
  transition: filter 0.18s ease;
}
.albumpro-3d-arrow:hover {
  filter: brightness(1.1);
}
.albumpro-3d-arrow-prev {
  right: max(6px, calc(50% - min(34%, calc(245px * var(--ap-slider-scale, 1))) - 22px));
}
.albumpro-3d-arrow-next {
  left: max(6px, calc(50% - min(34%, calc(245px * var(--ap-slider-scale, 1))) - 22px));
}
.albumpro-3d-zoom-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid var(--ap-accent-soft, rgba(236, 72, 153, 0.45));
  background: var(--ap-secondary-pill, rgba(8, 10, 14, 0.88));
  backdrop-filter: blur(4px);
  color: var(--ap-secondary-text, #ffffff);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.18s ease;
}
.albumpro-3d-zoom-tag:hover {
  filter: brightness(1.1);
}
.albumpro-3d-zoom-tag svg {
  color: var(--ap-accent, #EC4899);
}
.albumpro-3d-thumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 8px;
  margin-top: 8px;
}
.albumpro-3d-thumb {
  flex: 0 0 auto;
  padding: 2px;
  background: #ffffff;
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.albumpro-3d-thumb.is-active {
  border: 2px solid var(--ap-accent, #2563EB);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16);
  transform: translateY(-2px);
}
.albumpro-3d-thumb img {
  display: block;
  width: var(--ap-thumb-w, 80px);
  height: calc(var(--ap-thumb-w, 80px) * 0.7);
  object-fit: cover;
  border-radius: 7px;
}
.albumpro-3d-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.albumpro-3d-counter {
  background: var(--ap-secondary-pill, rgba(8, 10, 14, 0.92));
  border: 1px solid var(--ap-accent-soft, rgba(236, 72, 153, 0.35));
  color: var(--ap-secondary-text, #ffffff);
  padding: 6px 16px;
  border-radius: 9999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.albumpro-3d-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid var(--ap-accent-soft, rgba(236, 72, 153, 0.45));
  background: var(--ap-secondary-pill, rgba(8, 10, 14, 0.92));
  color: var(--ap-secondary-text, #ffffff);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: filter 0.18s ease;
}
.albumpro-3d-btn:hover {
  filter: brightness(1.1);
}
.albumpro-3d-btn svg {
  color: var(--ap-accent, #2563EB);
}

/* Single-Stage Carousel & Filmstrip */
.albumpro-stage-shell {
  margin-inline: auto;
  max-width: calc(780px * var(--ap-slider-scale, 1));
  width: 100%;
}
.albumpro-stage-shell .albumpro-progress-track,
.albumpro-stage-shell .albumpro-progress-items {
  width: 100%;
}
.albumpro-layout-carousel,
.albumpro-layout-filmstrip {
  display: block;
  position: relative;
  overflow: hidden;
  perspective: 1000px;
  border-radius: var(--ap-radius, 12px);
}
.albumpro-layout-carousel .albumpro-item,
.albumpro-layout-filmstrip .albumpro-item {
  display: none;
}
.albumpro-layout-carousel .albumpro-item.is-active,
.albumpro-layout-filmstrip .albumpro-item.is-active {
  display: block;
  animation: albumproFadeIn 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}
.albumpro-layout-carousel[data-transition="flip"] .albumpro-item.is-active,
.albumpro-layout-filmstrip[data-transition="flip"] .albumpro-item.is-active {
  animation: albumproTransFlip 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}
.albumpro-layout-carousel[data-transition="cube"] .albumpro-item.is-active,
.albumpro-layout-filmstrip[data-transition="cube"] .albumpro-item.is-active {
  animation: albumproTransCube 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}
.albumpro-layout-carousel[data-transition="depth"] .albumpro-item.is-active,
.albumpro-layout-filmstrip[data-transition="depth"] .albumpro-item.is-active {
  animation: albumproTransDepth 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.albumpro-layout-carousel[data-transition="stack"] .albumpro-item.is-active,
.albumpro-layout-filmstrip[data-transition="stack"] .albumpro-item.is-active {
  animation: albumproTransStack 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.albumpro-layout-carousel .albumpro-media-box,
.albumpro-layout-filmstrip .albumpro-media-box {
  aspect-ratio: 16 / 9;
}
@keyframes albumproFadeIn {
  from { opacity: 0; transform: translateX(32px) scale(0.97); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes albumproTransFlip {
  from { opacity: 0; transform: rotateY(45deg) scale(0.94); }
  to { opacity: 1; transform: rotateY(0) scale(1); }
}
@keyframes albumproTransCube {
  from { opacity: 0; transform: rotateY(-35deg) translateX(40px); }
  to { opacity: 1; transform: rotateY(0) translateX(0); }
}
@keyframes albumproTransDepth {
  from { opacity: 0; transform: scale(0.86); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes albumproTransStack {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.albumpro-stage-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  background: var(--ap-accent-bg, rgba(236, 72, 153, 0.9));
  color: var(--ap-accent-text, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22);
  transition: filter 0.18s ease;
}
.albumpro-stage-arrow:hover { filter: brightness(1.1); }
.albumpro-stage-arrow.is-prev { right: 12px; }
.albumpro-stage-arrow.is-next { left: 12px; }
.albumpro-carousel-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.albumpro-carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.albumpro-carousel-dot {
  height: 8px;
  width: 8px;
  border-radius: 9999px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(17, 24, 39, 0.2);
  transition: width 0.2s ease, background 0.2s ease;
}
.albumpro-carousel-dot.is-active {
  width: 24px;
  background: var(--ap-accent, #2563EB);
}

/* Common Card & Hover Styles */
.albumpro-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--ap-radius, 12px);
  cursor: zoom-in;
  background: #f3f4f6;
}
.albumpro-media-box {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--ap-radius, 12px);
}
.albumpro-media-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.albumpro-hover-zoom .albumpro-item:hover .albumpro-media-box img {
  transform: scale(1.06);
}
.albumpro-hover-lift .albumpro-item {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.albumpro-hover-lift .albumpro-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}
.albumpro-loupe-lens {
  pointer-events: none;
  position: absolute;
  width: 112px;
  height: 112px;
  transform: translate(-50%, -50%);
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  background-repeat: no-repeat;
  background-size: 240%;
  z-index: 18;
}
.albumpro-card-zoom-badge {
  pointer-events: none;
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 16;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--ap-secondary-pill, rgba(8, 10, 14, 0.85));
  color: var(--ap-secondary-text, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.16s ease;
}
.albumpro-item:hover .albumpro-card-zoom-badge {
  opacity: 1;
}
.albumpro-caption-hover {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 16px;
  color: var(--ap-secondary-text, #ffffff);
  background: var(--ap-secondary-grad, linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent));
  opacity: 0;
  transition: opacity 0.22s ease;
  display: flex;
  flex-direction: column;
  gap: 2px;
  pointer-events: none;
}
.albumpro-item:hover .albumpro-caption-hover {
  opacity: 1;
}
.albumpro-caption-below {
  padding: 10px 4px 2px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.albumpro-caption-below span {
  font-size: 12px;
  opacity: 0.72;
}

@media (max-width: 1024px) {
  .albumpro-gallery {
    grid-template-columns: repeat(var(--ap-cols-t, 2), minmax(0, 1fr));
  }
  .albumpro-layout-masonry {
    column-count: var(--ap-cols-t, 2);
  }
}

@media (max-width: 640px) {
  .albumpro-gallery {
    grid-template-columns: repeat(var(--ap-cols-m, 1), minmax(0, 1fr));
  }
  .albumpro-layout-bento .albumpro-item:first-child {
    grid-column: auto;
    grid-row: auto;
  }
  .albumpro-layout-carousel .albumpro-media-box,
  .albumpro-layout-filmstrip .albumpro-media-box {
    aspect-ratio: 4 / 3;
  }
  .albumpro-layout-masonry {
    column-count: var(--ap-cols-m, 1);
  }
  .albumpro-progress-track,
  .albumpro-progress-items {
    width: min(82%, calc(280px * var(--ap-slider-scale, 1)));
  }
  .albumpro-layout-slider3d {
    height: calc(245px * var(--ap-slider-scale, 1));
  }
  .albumpro-layout-slider3d .albumpro-item {
    width: min(82%, calc(280px * var(--ap-slider-scale, 1)));
    padding: 3px;
  }
  .albumpro-3d-arrow-prev {
    right: max(6px, calc(50% - min(41%, calc(140px * var(--ap-slider-scale, 1))) - 22px));
  }
  .albumpro-3d-arrow-next {
    left: max(6px, calc(50% - min(41%, calc(140px * var(--ap-slider-scale, 1))) - 22px));
  }
  .albumpro-3d-thumbs {
    justify-content: flex-start;
  }
  .albumpro-3d-thumb img {
    width: calc(var(--ap-thumb-w, 80px) * 0.8);
    height: calc(var(--ap-thumb-w, 80px) * 0.8 * 0.7);
  }
  .albumpro-mobile-horizontal-snap:not(.albumpro-layout-slider3d) {
    display: flex !important;
    column-count: initial !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .albumpro-mobile-horizontal-snap:not(.albumpro-layout-slider3d) .albumpro-item {
    flex: 0 0 78%;
    scroll-snap-align: center;
    margin-bottom: 0;
  }
  .albumpro-mobile-stack:not(.albumpro-layout-slider3d) {
    display: flex !important;
    flex-direction: column;
  }
}

/* Studio Admin Device Switcher Parity (Tablet & Mobile Simulation inside Desktop Browser) */
.albumpro-preview-stage[data-device="tablet"] .albumpro-gallery {
  grid-template-columns: repeat(var(--ap-cols-t, 2), minmax(0, 1fr));
}
.albumpro-preview-stage[data-device="tablet"] .albumpro-layout-masonry {
  column-count: var(--ap-cols-t, 2);
}
.albumpro-preview-stage[data-device="tablet"] .albumpro-layout-slider3d {
  height: calc(335px * var(--ap-slider-scale, 1));
}
.albumpro-preview-stage[data-device="mobile"] .albumpro-gallery {
  grid-template-columns: repeat(var(--ap-cols-m, 1), minmax(0, 1fr));
}
.albumpro-preview-stage[data-device="mobile"] .albumpro-layout-bento .albumpro-item:first-child {
  grid-column: auto;
  grid-row: auto;
}
.albumpro-preview-stage[data-device="mobile"] .albumpro-layout-carousel .albumpro-media-box,
.albumpro-preview-stage[data-device="mobile"] .albumpro-layout-filmstrip .albumpro-media-box {
  aspect-ratio: 4 / 3;
}
.albumpro-preview-stage[data-device="mobile"] .albumpro-layout-masonry {
  column-count: var(--ap-cols-m, 1);
}
.albumpro-preview-stage[data-device="mobile"] .albumpro-progress-track,
.albumpro-preview-stage[data-device="mobile"] .albumpro-progress-items {
  width: min(82%, calc(280px * var(--ap-slider-scale, 1)));
}
.albumpro-preview-stage[data-device="mobile"] .albumpro-layout-slider3d {
  height: calc(245px * var(--ap-slider-scale, 1));
}
.albumpro-preview-stage[data-device="mobile"] .albumpro-layout-slider3d .albumpro-item {
  width: min(82%, calc(280px * var(--ap-slider-scale, 1)));
  padding: 3px;
}
.albumpro-preview-stage[data-device="mobile"] .albumpro-3d-arrow-prev {
  right: max(6px, calc(50% - min(41%, calc(140px * var(--ap-slider-scale, 1))) - 22px));
}
.albumpro-preview-stage[data-device="mobile"] .albumpro-3d-arrow-next {
  left: max(6px, calc(50% - min(41%, calc(140px * var(--ap-slider-scale, 1))) - 22px));
}
.albumpro-preview-stage[data-device="mobile"] .albumpro-3d-thumbs {
  justify-content: flex-start;
}
.albumpro-preview-stage[data-device="mobile"] .albumpro-3d-thumb img {
  width: calc(var(--ap-thumb-w, 80px) * 0.8);
  height: calc(var(--ap-thumb-w, 80px) * 0.8 * 0.7);
}
.albumpro-preview-stage[data-device="mobile"] .albumpro-mobile-horizontal-snap:not(.albumpro-layout-slider3d) {
  display: flex !important;
  column-count: initial !important;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.albumpro-preview-stage[data-device="mobile"] .albumpro-mobile-horizontal-snap:not(.albumpro-layout-slider3d) .albumpro-item {
  flex: 0 0 78%;
  scroll-snap-align: center;
  margin-bottom: 0;
}
.albumpro-preview-stage[data-device="mobile"] .albumpro-mobile-stack:not(.albumpro-layout-slider3d) {
  display: flex !important;
  flex-direction: column;
}
.albumpro-theme-dark .albumpro-carousel-dot {
  background: rgba(255, 255, 255, 0.25);
}

/* Lightbox Zoom Modal (Exact Studio Parity & Mobile Safe Viewport) */
.albumpro-lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  z-index: 2147483647;
  background: var(--ap-secondary, #080a0e);
  display: flex;
  flex-direction: column;
  color: var(--ap-secondary-text, #ffffff);
  direction: rtl;
  box-sizing: border-box;
}
.albumpro-lightbox button {
  box-sizing: border-box;
  font-family: inherit;
  text-transform: none;
  letter-spacing: normal;
}
.albumpro-lightbox[hidden] {
  display: none;
}
.albumpro-lb-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ap-secondary-border, rgba(255, 255, 255, 0.12));
  background: var(--ap-secondary, #080a0e);
  z-index: 3;
}
.albumpro-lb-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.albumpro-lb-title {
  font-size: 13px;
  font-weight: 500;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .albumpro-lb-title {
    display: none;
  }
}
.albumpro-lb-close {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 44px !important;
  min-width: 44px !important;
  padding: 0 16px !important;
  border-radius: 9999px !important;
  border: 2px solid var(--ap-accent, #ffffff) !important;
  background: #ffffff !important;
  color: #111827 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.albumpro-lightbox.is-light-popup .albumpro-lb-close {
  background: #111827 !important;
  color: #ffffff !important;
}
.albumpro-lb-close:hover {
  filter: brightness(0.94);
}
.albumpro-lb-count {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--ap-secondary-text, rgba(255, 255, 255, 0.9));
  opacity: 0.9;
  white-space: nowrap;
  flex-shrink: 0;
}
.albumpro-lb-zoom-pct {
  min-width: 44px;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  opacity: 0.9;
  white-space: nowrap;
}
.albumpro-lb-stage {
  position: relative;
  min-height: 0;
  flex: 1;
  width: 100%;
  padding: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  box-sizing: border-box;
  touch-action: pan-y;
}
.albumpro-lb-stage:active { cursor: grabbing; }
.albumpro-lb-stage img {
  max-width: 92vw;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.15s ease-out;
  user-select: none;
  border-radius: 8px;
}
.albumpro-lb-stage-nav {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 10 !important;
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 9999px !important;
  border: 2px solid rgba(255, 255, 255, 0.85) !important;
  background: var(--ap-accent-bg, #EC4899) !important;
  color: var(--ap-accent-text, #ffffff) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.32);
  transition: filter 0.18s ease;
}
.albumpro-lb-stage-nav:hover {
  filter: brightness(1.1);
}
.albumpro-lb-stage-nav.is-prev { right: 14px; }
.albumpro-lb-stage-nav.is-next { left: 14px; }
.albumpro-lb-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px;
  height: 38px !important;
  min-width: 38px !important;
  background: var(--ap-secondary-btn, rgba(255, 255, 255, 0.14)) !important;
  border: 1px solid var(--ap-secondary-border, rgba(255, 255, 255, 0.24)) !important;
  color: var(--ap-secondary-text, #ffffff) !important;
  padding: 0 11px !important;
  margin: 0 !important;
  border-radius: 9px !important;
  cursor: pointer;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
.albumpro-lb-btn:hover {
  filter: brightness(1.12);
}
.albumpro-lb-btn.is-playing {
  background: var(--ap-accent, #EC4899) !important;
  border-color: var(--ap-accent, #EC4899) !important;
  color: var(--ap-accent-text, #ffffff) !important;
}
.albumpro-lb-footer {
  padding: 10px 14px 14px;
  border-top: 1px solid var(--ap-secondary-border, rgba(255, 255, 255, 0.12));
  background: var(--ap-secondary, #080a0e);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.albumpro-lb-meta {
  text-align: center;
  font-size: 13px;
  max-width: 100%;
  color: var(--ap-secondary-text, #ffffff);
}
.albumpro-lb-meta span {
  display: block;
  font-size: 12px;
  opacity: 0.72;
}
.albumpro-lb-thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 720px;
  max-height: 170px;
  overflow-y: auto;
  padding: 4px;
  box-sizing: border-box;
}
.albumpro-lb-thumbs button {
  flex: 0 0 auto !important;
  padding: 0 !important;
  margin: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border: 2px solid var(--ap-secondary-border, rgba(255, 255, 255, 0.22)) !important;
  border-radius: 8px !important;
  overflow: hidden;
  width: 68px !important;
  height: 50px !important;
  opacity: 0.65;
  cursor: pointer;
  background: #111827 !important;
  transition: transform 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
}
.albumpro-lb-thumbs button.is-active {
  border-color: var(--ap-accent, #ffffff) !important;
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
}
.albumpro-lb-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 640px) {
  .albumpro-lb-thumbs {
    max-height: 162px;
    gap: 7px;
  }
  .albumpro-lb-thumbs button {
    width: 58px !important;
    height: 44px !important;
  }
  .albumpro-lb-play-label {
    display: none;
  }
}
