/* Scoped homepage gallery layouts: no changes to article or admin styles. */
.hgo-home .dga-home-section,.hgo-home .dgv9-section{min-width:0;max-width:100%;box-sizing:border-box}
.hgo-home .dga-home-grid,.hgo-home .dgv9-grid{min-width:0}
.hgo-home .dga-home-tile,.hgo-home .dgv9-card{min-width:0;overflow:hidden}
.hgo-home .dga-home-tile img,.hgo-home .dgv9-card img{display:block;width:100%;object-fit:cover}
@media(max-width:767px){
 .hgo-home .dga-home-section,.hgo-home .dgv9-section{padding:16px 12px;border-radius:16px;overflow:hidden}
 .hgo-home .dga-home-heading,.hgo-home .dgv9-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}
 .hgo-home .dga-home-heading h2,.hgo-home .dgv9-heading h2{font-size:21px;line-height:1.25;margin:0}
 .hgo-home .dga-home-heading a,.hgo-home .dgv9-heading a{font-size:12px;white-space:nowrap}
 /* A single horizontal rail, rather than an infinitely tall mobile stack. */
 .hgo-home .dga-home-grid,.hgo-home .dgv9-grid{display:flex!important;flex-wrap:nowrap!important;gap:12px!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;padding:4px 2px 14px;align-items:stretch}
 .hgo-home .dga-home-grid>.dga-home-tile,.hgo-home .dgv9-grid>.dgv9-card{display:block!important;position:relative;flex:0 0 min(78vw,310px)!important;width:min(78vw,310px)!important;max-width:none!important;min-width:0!important;scroll-snap-align:start;box-sizing:border-box;aspect-ratio:auto!important;min-height:0!important}
 .hgo-home .dga-home-grid>.dga-home-tile:first-child,.hgo-home .dgv9-grid>.dgv9-card:first-child{flex-basis:min(86vw,350px)!important;width:min(86vw,350px)!important}
 .hgo-home .dga-home-tile img,.hgo-home .dgv9-image,.hgo-home .dgv9-image img{height:185px!important;max-height:185px!important;min-height:0!important;aspect-ratio:16/10;object-fit:cover}
 .hgo-home .dga-home-tile h3,.hgo-home .dgv9-card h3{font-size:15px!important;line-height:1.35!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .hgo-home .dgv9-card p{display:none}
 .hgo-home .dga-home-tile>div{box-sizing:border-box}
}
@media(min-width:768px) and (max-width:1024px){
 .hgo-home .dga-home-grid,.hgo-home .dgv9-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
}
