/* Lớp phủ đen bao bọc toàn màn hình */
.custom-lightbox-modal {
  display: none;
  position: fixed;
  z-index: 999999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px); /* Hiệu ứng làm mờ nền nhẹ */
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Kích hoạt hiển thị modal */
.custom-lightbox-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

/* Khung chứa ảnh full size */
.custom-lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.custom-lightbox-modal.active .custom-lightbox-content {
  transform: scale(1);
}

/* Nút đóng (X) */
.custom-lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: #ffffff;
  font-size: 35px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  z-index: 1000000;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease, transform 0.2s ease;
}

.custom-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}