/* v117 — fotos completas, cuadrícula 4-6, imágenes dentro de informativas, panel del perfil y muro */

/* ---------- Publicaciones normales: fotos completas (feed) ---------- */
.moment-imgs.n-1,.moment-imgs.n-2,.moment-imgs.n-3{grid-template-columns:minmax(0,1fr)}
.moment-imgs.n-1 .moment-img,.moment-imgs.n-2 .moment-img,.moment-imgs.n-3 .moment-img{aspect-ratio:auto;background:none}
.moment-imgs.n-1 .moment-img img,.moment-imgs.n-2 .moment-img img,.moment-imgs.n-3 .moment-img img{height:auto;object-fit:contain}
/* 4 a 6 fotos: cuadrícula alineada, cada foto completa dentro de su celda */
.moment-imgs.n-4{grid-template-columns:repeat(2,minmax(0,1fr))}
.moment-imgs.n-5,.moment-imgs.n-6,.moment-imgs.n-7,.moment-imgs.n-8,.moment-imgs.n-9,.moment-imgs.n-10,.moment-imgs.n-11,.moment-imgs.n-12{grid-template-columns:repeat(3,minmax(0,1fr))}
.moment-imgs.n-4 .moment-img,.moment-imgs.n-5 .moment-img,.moment-imgs.n-6 .moment-img,.moment-imgs.n-7 .moment-img,.moment-imgs.n-8 .moment-img,.moment-imgs.n-9 .moment-img,.moment-imgs.n-10 .moment-img,.moment-imgs.n-11 .moment-img,.moment-imgs.n-12 .moment-img{aspect-ratio:1;background:rgba(0,0,0,.28)}
.moment-imgs.n-4 .moment-img img,.moment-imgs.n-5 .moment-img img,.moment-imgs.n-6 .moment-img img,.moment-imgs.n-7 .moment-img img,.moment-imgs.n-8 .moment-img img,.moment-imgs.n-9 .moment-img img,.moment-imgs.n-10 .moment-img img,.moment-imgs.n-11 .moment-img img,.moment-imgs.n-12 .moment-img img{height:100%;object-fit:contain}

/* ---------- Publicaciones normales: fotos completas (dentro de la publicación) ---------- */
#threadDetail .thread-gallery.tg-full{display:flex;flex-direction:column;gap:.5rem}
#threadDetail .thread-gallery.tg-full .thread-gallery-cell{aspect-ratio:auto;height:auto}
#threadDetail .thread-gallery.tg-full .thread-gallery-cell img{height:auto;object-fit:contain}
#threadDetail .thread-gallery.tg-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem;margin:1rem 0 .8rem;border-radius:12px}
#threadDetail .thread-gallery.tg-grid.tg-n5,#threadDetail .thread-gallery.tg-grid.tg-n6,#threadDetail .thread-gallery.tg-grid.tg-n7,#threadDetail .thread-gallery.tg-grid.tg-n8,#threadDetail .thread-gallery.tg-grid.tg-n9,#threadDetail .thread-gallery.tg-grid.tg-n10,#threadDetail .thread-gallery.tg-grid.tg-n11,#threadDetail .thread-gallery.tg-grid.tg-n12{grid-template-columns:repeat(3,minmax(0,1fr))}
#threadDetail .thread-gallery.tg-grid .thread-gallery-cell{aspect-ratio:1;height:auto;background:rgba(0,0,0,.28)}
#threadDetail .thread-gallery.tg-grid .thread-gallery-cell img{width:100%;height:100%;object-fit:contain}

/* ---------- Informativas: imágenes entre el texto ---------- */
.info-post-body .info-inline-img{display:block;width:100%;padding:0;border:0;background:none;margin:.9rem 0;border-radius:12px;overflow:hidden;cursor:pointer}
.info-post-body .info-inline-img img{display:block;width:100%;height:auto}

/* ---------- Perfil: el panel oscuro se expande ---------- */
#profileModal .profile-shade{
  margin-left:-1.4rem;margin-right:-1.4rem;margin-bottom:-3.5rem;
  padding:1.3rem 1.4rem 4.9rem;
  border-radius:26px 26px 0 0;
  border-left:0;border-right:0;border-bottom:0;
  min-height:62vh;min-height:62dvh;
}

/* ---------- Muro: semirrectángulo translúcido, carrusel hacia arriba ---------- */
#profileModal #wallSection{background:rgba(255,255,255,.05);border:1px solid rgba(239,233,225,.1);border-radius:18px;padding:.8rem .8rem .7rem}
#profileModal #wallSection h4{margin:0 0 .6rem}
#profileModal #wallNotesList{display:flex;flex-direction:column-reverse;gap:.5rem;max-height:15rem;overflow-y:auto;overscroll-behavior:contain;scroll-snap-type:y proximity;padding:.1rem 0 .3rem;scrollbar-width:thin}
#profileModal #wallNotesList .profile-empty-hint{margin:.4rem 0}
#profileModal .wall-note{display:flex;align-items:flex-start;gap:.55rem;scroll-snap-align:end;padding:.5rem .8rem .5rem .55rem;border-radius:18px;background:rgba(239,233,225,.09);text-align:left}
#profileModal .wall-note>.avatar{width:2rem;height:2rem;min-width:2rem;font-size:.8rem;flex:none}
#profileModal .wall-note-main{min-width:0;flex:1}
#profileModal .wall-note-head{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem;font-size:.7rem;opacity:.75}
#profileModal .wall-note-body{font-size:.88rem;word-break:break-word}
#profileModal .wall-write{display:flex;align-items:center;gap:.4rem;margin-top:.6rem;padding:.3rem .4rem .3rem .85rem;border-top:0;border-radius:999px;background:rgba(255,255,255,.07)}
#profileModal .wall-write textarea{flex:1;min-width:0;min-height:0;padding:.35rem 0;border:0;outline:0;resize:none;background:transparent;color:inherit;font:inherit;font-size:.88rem}
#profileModal .wall-write .terminal-btn{padding:.35rem .8rem;border-radius:999px}
