/* plexx-lightbox.css */

#plexx-lb {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
}
#plexx-lb.is-open {
  display: flex;
}

#plexx-lb-inner {
  display: grid;
  grid-template-columns: 55fr 45fr;
  width: 94vw;
  max-width: 1400px;
  height: 90vh;
  background: #000;
  overflow: hidden;
  position: relative;
  border: none;
  outline: none;
}

#plexx-lb-left {
  height: 90vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#plexx-lb-left a {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

#plexx-lb-left a img,
#plexx-lb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

#plexx-lb-right {
  height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: #000;
  border-left: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#plexx-lb-right::-webkit-scrollbar {
  width: 0;
  display: none;
}

#plexx-lb-info {
  padding: 40px 36px 60px;
  background: #000;
}

#plexx-lb-title {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #e8e4df;
  margin: 0 0 6px;
  line-height: 1.3;
}

#plexx-lb-subtitle {
  font-size: 13px;
  font-style: italic;
  color: #8a8078;
  margin: 0 0 20px;
  line-height: 1.5;
}

#plexx-lb-meta {
  border: none;
  padding: 10px 0;
  margin-bottom: 20px;
}

.plb-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 5px 0;
}

.plb-meta-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b6460;
  flex-shrink: 0;
}

.plb-meta-val {
  font-size: 12px;
  color: #b5a898;
  text-align: right;
}

.plb-meta-val a {
  color: #b5a898;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#plexx-lb-shop {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: none;
}

.plb-price,
.plb-price .woocommerce-Price-amount,
.plb-price bdi {
  font-size: 18px;
  font-weight: 400;
  color: #e8e4df;
}

.plb-cart-btn {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 9px 20px;
  background: #e8e4df;
  color: #111 !important;
  text-decoration: none !important;
  transition: background 0.2s;
}

.plb-cart-btn:hover { background: #fff; }

.plb-sold {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b6460;
  border: 0.5px solid #6b6460;
  padding: 9px 20px;
}

#plexx-lb-body {
  font-size: 13px;
  line-height: 1.75;
  color: #a09890;
  margin-bottom: 28px;
}

#plexx-lb-body p { margin: 0 0 0.8em; }

#plexx-lb-body h2,
#plexx-lb-body h3 {
  color: #e8e4df;
  font-weight: 400;
  font-size: 14px;
  margin: 1.2em 0 0.4em;
}

#plexx-lb-body .wp-block-gallery,
#plexx-lb-body .blocks-gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 6px !important;
  margin: 12px 0 !important;
  padding: 0 !important;
}

#plexx-lb-body .wp-block-gallery figure,
#plexx-lb-body .blocks-gallery-item {
  width: 100% !important;
  margin: 0 !important;
}

#plexx-lb-body .wp-block-gallery img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

#plexx-lb-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.plb-gal-item {
  display: block;
  overflow: hidden;
  background: #000;
  cursor: zoom-in !important;
}

.plb-gal-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.plb-gal-item:hover img { transform: scale(1.03); }

#plexx-lb-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  color: #e8e4df;
  font-size: 20px;
  cursor: pointer;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
}

#plexx-lb-prev,
#plexx-lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #e8e4df;
  font-size: 20px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
}

#plexx-lb-prev { left: 14px; }
#plexx-lb-next { right: 14px; }

@media (max-width: 768px) {
  #plexx-lb-inner {
    grid-template-columns: 1fr;
    grid-template-rows: 50vh auto;
    height: auto;
    max-height: 90vh;
    overflow-y: auto;
  }
  #plexx-lb-left { height: 50vh; }
  #plexx-lb-right { height: auto; overflow-y: visible; }
}

#plexx-zoom {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0,0,0,0.96);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#plexx-zoom.is-open {
  display: flex;
}

#plexx-zoom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 85vh;
}

#plexx-zoom-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}

#plexx-zoom-caption {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-top: 14px;
  text-align: center;
}

#plexx-zoom-counter {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.2);
  margin-top: 6px;
}

#plexx-zoom-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  color: #e8e4df;
  font-size: 20px;
  cursor: pointer;
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#plexx-zoom-prev,
#plexx-zoom-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #e8e4df;
  font-size: 24px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#plexx-zoom-prev { left: 14px; }
#plexx-zoom-next { right: 14px; }