.hmd-dims{margin:0 0 16px}
.hmd-image-wrap{margin:0 0 18px}
.hmd-image{width:100%;height:auto;display:block;cursor:pointer}
.hmd-image-wrap img{cursor:pointer}
.hmd-title{font-weight:700;margin:18px 0 6px;}
.hmd-title--packs{margin-top:18px}
.hmd-list{list-style:none;margin:0 0 8px 0;padding:0}
.hmd-auto{margin:2px 0}
.hmd-extra{margin:6px 1.1rem 12px;white-space:pre-line}
.hmd-pack-line{margin:2px 0}
.hmd-pack-line .hmd-pack-txt{margin-left:.35em}

/* ---- Lightbox Dimensions Tab (amélioré) ---- */
.hmd-lightbox-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.7);
  z-index: 9999;
  padding: 2rem;
}
.hmd-lightbox-backdrop.is-open { display: flex; }

/* Conteneur blanc avec légère marge haut/bas */
.hmd-lightbox {
  position: relative;
  max-width: 95vw;
  max-height: 90vh;
  background: #fff;              
  padding: 20px 0;              
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,.3);
}

/* Image centrée, contrainte pour rester dans l’écran */
.hmd-lightbox img {
  display: block;
  max-width: 95vw;
  max-height: 85vh;              
  margin: 0 auto;
}

/* Croix noire simple dans le blanc, coin haut-droit de l’image */
.hmd-lightbox-close {
  position: absolute;
  top: 6px;
  right: 10px;
  width: 28px;
  height: 28px;
  line-height: 26px;
  border: none;
  border-radius: 4px;
  background: #fff;
  color: #000;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  transition: background .2s, transform .15s;
}
.hmd-lightbox-close:hover {
  background: #000;
  color: #eee;
  transform: scale(1.1);
}
