/* ATRIOXAI V28: small, bounded thumbnail cards. Full-resolution images open in the dialog only.
   V27 styles were present but not linked from index.html; V28 links them in the right order. */
.v25-demos .v27-screen-grid{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:12px!important;
  align-items:start!important;
  width:100%; min-width:0;
}
.v25-demos .v27-screen-grid > *{min-width:0;max-width:100%;box-sizing:border-box}
.v25-demos .v27-screen-card{
  display:flex!important;flex-direction:column!important;
  align-self:start;
  width:100%;min-width:0;max-width:100%;
  margin:0; padding:0!important; position:relative;
  overflow:hidden!important; border-radius:11px;
  transform:none;
}
.v25-demos .v27-screen-card:hover{transform:translateY(-2px)}
.v25-demos .v27-screen-preview{
  position:relative; display:block!important;
  width:100%!important; height:115px!important;
  max-height:115px!important; min-height:0!important;
  aspect-ratio:auto!important;
  padding:5px!important; overflow:hidden!important;
  box-sizing:border-box;
}
.v25-demos .v27-screen-preview > img{
  display:block!important; position:static!important;
  width:100%!important; height:100%!important;
  min-width:0!important; max-width:100%!important;
  min-height:0!important; max-height:100%!important;
  object-fit:contain!important; object-position:center!important;
  margin:0!important; padding:0!important; transform:none!important;
  filter:none!important;
}
.v25-demos .v27-screen-open{
  position:absolute; bottom:6px; right:6px; left:auto;
  z-index:1;font-size:9px;padding:4px 6px;
  line-height:1.25;border-radius:6px;
  max-width:calc(100% - 12px);white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;
}
.v25-demos .v27-screen-text{
  display:flex;flex-direction:column;gap:5px;
  min-width:0; width:100%; padding:10px 11px 12px!important;
  overflow:hidden;
}
.v25-demos .v27-screen-text strong{
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
  overflow:hidden;font-size:12px!important;line-height:1.25;
}
.v25-demos .v27-screen-text small{font-size:9px!important;line-height:1.3}
.v25-demos .v27-screen-text > span{
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
  overflow:hidden;font-size:10px!important;line-height:1.35;
}
.v25-demos .v27-future-shots{min-width:0;min-height:0!important;height:206px;padding:12px;border-radius:11px;gap:7px}
.v25-demos .v27-future-shots small{font-size:10px;line-height:1.35}
/* A true full-viewport image viewer, fit by default; native pixels via 100% button. */
.v25-demos #v27-shot-dialog{
  position:fixed;inset:0;margin:auto;
  box-sizing:border-box; width:calc(100vw - 16px)!important;
  height:calc(100dvh - 16px)!important;
  max-width:none!important;max-height:none!important;
  padding:0!important;overflow:hidden;
}
.v25-demos .v27-shot-shell{height:100%;max-height:100%;min-height:0}
.v25-demos .v27-shot-canvas{min-height:0;flex:1;overflow:auto;align-items:center}
.v25-demos .v27-shot-canvas img{width:auto;max-width:100%;max-height:calc(100dvh - 190px);object-fit:contain}
.v25-demos #v27-shot-dialog.v27-actual .v27-shot-canvas{align-items:flex-start;justify-content:flex-start}
.v25-demos #v27-shot-dialog.v27-actual .v27-shot-canvas img{max-width:none!important;max-height:none!important;width:auto!important;height:auto!important}
@media(max-width:1200px){.v25-demos .v27-screen-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:880px){.v25-demos .v27-screen-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:620px){
 .v25-demos .v27-screen-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
 .v25-demos .v27-screen-preview{height:95px!important;max-height:95px!important}
 .v25-demos .v27-screen-text{padding:9px 8px 10px!important}
 .v25-demos .v27-screen-text strong{font-size:11px!important}
 .v25-demos .v27-screen-text > span{font-size:9px!important}
 .v25-demos .v27-future-shots{height:190px;padding:8px}
 .v25-demos .v27-future-shots strong{font-size:11px}
 .v25-demos .v27-future-shots small{font-size:9px}
 .v25-demos .v27-shot-canvas img{max-height:calc(100dvh - 175px)}
}
