/* Lightbox Styles */
.lightbox.hidden {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 0;
}

.lightbox-body {
  position: relative;
  width: 100vw;
  height: 100vh;
  padding: 0;
  display: grid;
  grid-template-rows: 1fr;
  align-items: center;
  justify-items: center;
  z-index: 1;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  z-index: 2;
}

.lightbox-img-wrap {
  position: relative;
  width: 92vw;
  height: 92vh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.lightbox-img-wrap img {
  max-width: calc(92vw - 144px);
  max-height: calc(92vh - 100px);
  border-radius: 8px;
  object-fit: contain;
  background-image: 
    linear-gradient(45deg, #e5e7eb 25%, transparent 25%),
    linear-gradient(-45deg, #e5e7eb 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e5e7eb 75%),
    linear-gradient(-45deg, transparent 75%, #e5e7eb 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  background-color: #f9fafb;
  transition: transform 0.1s ease-out;
  z-index: 1;
}

:fullscreen .lightbox-img-wrap img {
  max-width: 92vw;
  max-height: 92vh;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  cursor: pointer;
  z-index: 2;
  font-size: 1.2rem;
}

.lightbox-nav.prev {
  left: 8px;
}

.lightbox-nav.next {
  right: 8px;
}

.lightbox-zoom {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.lightbox-zoom button {
  min-width: 48px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-zoom button i {
  font-size: 1rem;
}

.lightbox-icon-outline {
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.5px currentColor;
}

.lightbox-controls-hidden .lightbox-control-btn {
  display: none !important;
}

.lightbox-info {
  position: absolute;
  left: 24px;
  bottom: 24px;
  max-width: 340px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #f6f8fa;
  font-size: 0.85rem;
  line-height: 1.5;
  z-index: 2;
  font-family: "OPPO Sans 4.0", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.lightbox-info-title {
  font-weight: 600;
  margin-bottom: 4px;
  font-family: "OPPO Sans 4.0", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.lightbox-info-code {
  font-family: "OPPO Sans 4.0", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  word-break: break-all;
}

.lightbox-info a {
  color: #58a6ff;
}

.lightbox-info .info-copy-btn {
  margin-left: 6px;
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  font-family: inherit;
}

.lightbox-info .info-copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

