/* Tournai-City V6.0.25.21 — lightbox contenue + noms des membres */
.tc-lightbox[hidden],.tc-photo-like-summary[hidden],.tc-photo-like-popover[hidden]{display:none!important}

/* La zone disponible est explicitement limitée : l'image ne peut plus déborder. */
.tc-lightbox-image-wrap{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  height:calc(100vh - 118px)!important;
  max-width:100vw!important;
  max-height:calc(100vh - 118px)!important;
  min-width:0!important;
  min-height:0!important;
  overflow:hidden!important;
  margin:0!important;
}
.tc-lightbox-photo-stage{
  position:relative!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  height:auto!important;
  max-width:calc(100vw - 130px)!important;
  max-height:calc(100vh - 118px)!important;
  min-width:0!important;
  min-height:0!important;
  overflow:visible!important;
}
.tc-lightbox-photo-stage>img{
  position:relative!important;
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:calc(100vw - 130px)!important;
  max-height:calc(100vh - 118px)!important;
  margin:0!important;
  object-fit:contain!important;
}

/* Cœur fonctionnel, ancré dans la photo. */
.tc-photo-like-summary{position:absolute!important;z-index:30!important;right:10px!important;bottom:10px!important;left:auto!important;top:auto!important;width:auto!important;max-width:220px!important}
.tc-photo-heart-button{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;min-width:38px!important;height:36px!important;margin:0!important;padding:3px 8px!important;border:1px solid rgba(0,0,0,.28)!important;border-radius:999px!important;background:rgba(255,255,255,.92)!important;color:#111!important;box-shadow:0 2px 10px rgba(0,0,0,.28)!important;line-height:1!important;cursor:pointer!important}
.tc-photo-heart-icon{color:#111!important;font-size:24px!important;line-height:1!important}.tc-photo-heart-button.liked .tc-photo-heart-icon,.tc-photo-heart-button[data-liked="1"] .tc-photo-heart-icon{color:#e3264f!important}.tc-photo-heart-button b{font-size:11px!important;color:#222!important}
.tc-photo-like-popover{position:absolute!important;right:0!important;bottom:calc(100% + 6px)!important;width:190px!important;max-width:calc(100vw - 24px)!important;max-height:150px!important;overflow:auto!important;padding:8px!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:10px!important;background:rgba(15,15,15,.96)!important;color:#fff!important;box-shadow:0 8px 24px rgba(0,0,0,.35)!important}
.tc-photo-like-popover strong{display:block!important;margin:0 0 6px!important;font-size:10px!important}.tc-photo-like-users{display:grid!important;gap:4px!important}.tc-photo-like-users a{display:flex!important;align-items:center!important;gap:6px!important;color:#fff!important;text-decoration:none!important;font-size:10px!important;min-width:0!important}.tc-photo-like-users img,.tc-photo-like-users i{display:grid!important;place-items:center!important;flex:0 0 20px!important;width:20px!important;min-width:20px!important;max-width:20px!important;height:20px!important;min-height:20px!important;max-height:20px!important;margin:0!important;border-radius:50%!important;object-fit:cover!important;line-height:20px!important;text-align:center!important}.tc-photo-like-users i{background:#ffad00!important;color:#111!important;font-style:normal!important;font-weight:800!important}.tc-photo-like-users span{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.tc-photo-like-popover small{font-size:9px!important;color:#bbb!important}
#tcGalleryLikeForm{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important}

/* Membres ayant la photo : centré en bas de la photo, avec noms visibles. */
.tc-lightbox-members{
  position:absolute!important;
  z-index:25!important;
  left:50%!important;
  right:auto!important;
  top:auto!important;
  bottom:10px!important;
  transform:translateX(-50%)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  width:max-content!important;
  max-width:calc(100% - 105px)!important;
  padding:5px 9px!important;
  border-radius:999px!important;
  background:rgba(10,10,10,.78)!important;
  color:#fff!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  backdrop-filter:blur(6px)!important;
}
.tc-lightbox-members:empty{display:none!important}
.tc-lightbox-members>strong{flex:0 0 auto!important;font-size:9px!important}
.tc-lightbox-members .lightbox-member-list{display:flex!important;align-items:center!important;gap:7px!important;min-width:0!important;overflow:hidden!important}
.tc-lightbox-members .lightbox-member-list a{display:flex!important;align-items:center!important;gap:4px!important;min-width:0!important;color:#fff!important;text-decoration:none!important;font-size:9px!important}
.tc-lightbox-members .lightbox-member-list img,
.tc-lightbox-members .lightbox-member-list i{
  display:grid!important;
  place-items:center!important;
  flex:0 0 20px!important;
  width:20px!important;
  min-width:20px!important;
  max-width:20px!important;
  height:20px!important;
  min-height:20px!important;
  max-height:20px!important;
  margin:0!important;
  padding:0!important;
  border-radius:50%!important;
  background:#ffad00!important;
  color:#111!important;
  object-fit:cover!important;
  font-style:normal!important;
  font-size:10px!important;
  font-weight:900!important;
  line-height:20px!important;
  text-align:center!important;
}
.tc-lightbox-members .lightbox-member-list em{display:block!important;max-width:90px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:#fff!important;font-style:normal!important}
.tc-lightbox-members small{flex:0 0 auto!important;font-size:8px!important;color:#ddd!important}

@media(max-width:700px){
  .tc-lightbox-image-wrap{height:calc(100vh - 92px)!important;max-height:calc(100vh - 92px)!important}
  .tc-lightbox-photo-stage,.tc-lightbox-photo-stage>img{max-width:100vw!important;max-height:calc(100vh - 92px)!important}
  .tc-photo-like-summary{right:7px!important;bottom:7px!important}.tc-photo-heart-button{min-width:36px!important;height:34px!important;padding:3px 7px!important}.tc-photo-heart-icon{font-size:22px!important}.tc-photo-like-popover{width:170px!important;max-height:130px!important;padding:7px!important}
  .tc-lightbox-members{bottom:7px!important;max-width:calc(100% - 90px)!important;gap:4px!important;padding:4px 6px!important}
  .tc-lightbox-members>strong{font-size:8px!important}
  .tc-lightbox-members .lightbox-member-list{gap:5px!important}
  .tc-lightbox-members .lightbox-member-list a:nth-child(n+4){display:none!important}
  .tc-lightbox-members .lightbox-member-list em{max-width:62px!important;font-size:8px!important}
  .tc-lightbox-members .lightbox-member-list img,.tc-lightbox-members .lightbox-member-list i{width:18px!important;min-width:18px!important;max-width:18px!important;height:18px!important;min-height:18px!important;max-height:18px!important;line-height:18px!important;font-size:9px!important}
  .tc-lightbox-toolbar{gap:4px!important;padding:6px!important}.tc-lightbox-actions{display:flex!important;gap:4px!important;min-width:0!important;flex:1 1 auto!important}.tc-lightbox-actions form{min-width:0!important;margin:0!important}.tc-lightbox-actions .gallery-add-button{padding:8px 8px!important;font-size:10px!important;white-space:nowrap!important}.tc-lightbox-actions .gallery-profile-button{width:38px!important;min-width:38px!important;max-width:38px!important;padding:8px 0!important;font-size:0!important;overflow:hidden!important}.tc-lightbox-actions .gallery-profile-button:before{content:'\1F464'!important;font-size:16px!important}.tc-lightbox-actions .gallery-detail-button{display:none!important}.tc-lightbox-prev,.tc-lightbox-next{min-width:34px!important;width:34px!important;padding:7px 4px!important}.tc-lightbox-prev em,.tc-lightbox-next em{display:none!important}.tc-lightbox-counter{font-size:9px!important;white-space:nowrap!important}
}
