/* GDA — HivePress Chat Attachment Preview */

.gda-hp-attachment{
  margin-top: 10px;
}

.gda-hp-attachment__thumb{
  display: block;
  max-width: 260px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
  cursor: pointer;
}

.gda-hp-attachment__link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  text-decoration: none;
}

/* Keep HivePress icon */
.gda-hp-attachment__link i.hp-icon{
  margin-right: 0;
}


/* Hide filename text when image preview loaded (keep download icon/link). */
.gda-hp-attachment__link--hide-name span{
  display: none !important;
}


/* When image preview is loaded: hide filename AND icon completely */
.gda-hp-attachment__link--hide-name span,
.gda-hp-attachment__link--hide-name i.hp-icon{
  display:none !important;
}

/* Keep link clickable but visually empty */
.gda-hp-attachment__link--hide-name{
  padding:0 !important;
  border:0 !important;
}

/* ===== Fullscreen image lightbox for chat (HivePress-like) ===== */
.gda-hp-lightbox{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
}
.gda-hp-lightbox.is-open{
  display: flex;
}
.gda-hp-lightbox__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.85);
}
.gda-hp-lightbox__img{
  position: relative;
  max-width: 96vw;
  max-height: 96vh;
  width: auto;
  height: auto;
  z-index: 1;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
}
.gda-hp-lightbox__close{
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}
body.gda-hp-lightbox-open{
  overflow: hidden;
}
