/* Giti Tasvir: unified 16:9 media sizing, responsive and full-width */
*,*::before,*::after{box-sizing:border-box}
img,video,iframe,svg{max-width:100%}
body{overflow-x:hidden}
input,select,textarea,button{max-width:100%;font-size:16px}
.table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
/* Homepage hero slider: fixed 16:9 frame across desktop/tablet/mobile */
.slider{width:100%;height:auto!important;aspect-ratio:16/9!important;max-height:none!important;min-height:0!important;overflow:hidden;border-radius:14px}
.slider .slide,.slider .dynamic-slide,.slide,.dynamic-slide{height:100%;min-height:0}
.slider img,.slide img,.dynamic-slide img{width:100%;height:100%;object-fit:cover;object-position:center}
/* thumbnails and cards in all homepage/category sections */
.thumb,.thumbnail,.card-image,.article-thumb,.post-thumb,.news-thumb{height:auto!important;aspect-ratio:16/9!important;min-height:0!important;overflow:hidden}
.thumb img,.thumbnail img,.card-image img,.article-thumb img,.post-thumb img,.news-thumb img,.grid img{width:100%;height:100%;aspect-ratio:16/9;object-fit:cover;object-position:center;display:block}
@media(max-width:900px){
 .wrap{max-width:100%}
 .grid,.gallery-grid:not(.mode-slider):not(.mode-filmstrip){grid-template-columns:repeat(2,minmax(0,1fr))}
 .gallery-grid.mode-masonry{columns:2}
 .headrow,.topin,.head,.topline .wrap{flex-wrap:wrap;gap:12px}
 .gt-search-form{max-width:100%}.gt-search-form input,.search input{min-width:0;max-width:100%}.content{min-width:0}
}
@media(max-width:650px){
 .wrap{width:94%}
 .topline .wrap{display:flex;flex-wrap:wrap;gap:5px;padding:6px 0}
 header .wrap,header .headrow,header .topin,header .head,header .nav{display:flex;flex-wrap:wrap;align-items:center;gap:10px;min-width:0}
 header .brand{max-width:100%;white-space:normal;font-size:clamp(17px,5vw,22px)}header .brand img{max-width:min(50vw,180px);height:auto!important}
 header .actions{width:100%;display:flex;flex-wrap:wrap;gap:8px}header .actions .btn,header .home-return{flex:1 1 auto;min-width:110px;text-align:center}
 header .gt-search-form,header form.search,header form{width:100%;max-width:100%;display:flex;flex-wrap:nowrap}header .gt-search-form input,header .search input{width:auto;max-width:none;flex:1;min-width:0}
 header nav{display:flex;flex-wrap:wrap;width:100%;gap:9px}.category-main .wrap{width:100%;padding:0 3%;overflow-x:auto;flex-wrap:nowrap}.category-main a{flex:0 0 auto}
 main.wrap{min-width:0}.grid,.features,.stats,.form-row,.grid-two,.gallery-grid:not(.mode-slider):not(.mode-filmstrip){grid-template-columns:minmax(0,1fr)!important}
 .slider{aspect-ratio:16/9!important;height:auto!important;border-radius:13px}.slide{padding:18px 15px 14px!important}
 .slide h1,.dynamic-slide h1{font-size:clamp(18px,5.2vw,25px)!important;line-height:1.55}.slide p,.dynamic-slide p{font-size:12px!important}.slider-controls{bottom:12px;left:12px}
 .ticker{gap:8px;padding:6px 8px;font-size:11px}.section{padding:18px 0 25px}.section-head{align-items:flex-start;gap:10px;flex-wrap:wrap}.section-head h2{font-size:18px}
 .thumb,.thumbnail,.card-image,.article-thumb,.post-thumb,.news-thumb{aspect-ratio:16/9!important;height:auto!important;min-height:0!important}.card-body,.body{padding:12px}
 .callout{padding:17px;display:block}.callout .btn{margin-top:12px}.foot{display:block;gap:14px}footer .wrap{overflow-wrap:anywhere}.content{padding:15px!important}h1{font-size:clamp(21px,6vw,29px)!important;line-height:1.6}.summary{font-size:15px}
 .gallery-grid{gap:9px}.gallery-grid img{height:auto;max-height:380px;object-fit:contain}.gallery-grid.mode-slider figure{flex-basis:90%}.gallery-grid.mode-filmstrip figure{flex-basis:72vw}
 .gallery-nav button,.lb-close,.lb-prev,.lb-next{min-width:42px;min-height:42px}.lightbox{padding:8px}.lb-content img{max-height:72vh}.ad-banner img{max-width:100%;height:auto}
 form:not(.gt-search-form):not(.search){max-width:100%}input,select,textarea{width:100%;min-width:0}button{touch-action:manipulation}
}
