/* Lock page scroll when modal is open */
body.cvdn-modal-open {
  overflow: hidden;
}

/* Modal base */
.cvdn-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
}

/* Visible state */
.cvdn-modal.is-open {
  display: block;
}

/* Backdrop */
.cvdn-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

/* Dialog */
.cvdn-modal__dialog {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  margin: 5vh auto;
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image */
#cvdn-preview-modal-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 6px;
}

/* Close button */
.cvdn-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 28px;
  line-height: 1;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #333;
}

.cvdn-modal__close:hover {
  color: #000;
}
.cvdn-modal__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  align-items: center;
}

.cvdn-modal__share {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  width: 100%;
}

.cvdn-share-btn {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
  cursor: pointer;
  text-decoration: none;
  color: #111;
  font-size: 14px;
}

.cvdn-share-btn:hover {
  border-color: rgba(0,0,0,0.35);
}

.cvdn-modal__share-note {
  font-size: 13px;
  opacity: 0.85;
}
