/*
Theme Name: WP Sports Gallery
Theme URI: https://example.com
Author: Sasan
Description: قالب گالری ورزشی: رویداد، تیم، بازیکن و نوع ورزش، آپلود گروهی عکس، گالری چندستونه با لایت‌باکس، جستجو، صفحه‌ساز بلوکی و پنل تنظیمات تب‌دار.
Version: 3.0.0
Requires at least: 5.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: wp-sports-gallery
Tags: rtl-language-support, custom-colors, custom-menu, featured-images, photography
*/
/* استایل اصلی قالب در assets/css/main.css قرار دارد. */

/* Demo Premium Gallery */
.sg-footer-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;padding:35px 0}.sg-footer-col{padding:18px;border-radius:14px;background:rgba(255,255,255,.04)}.sg-footer-col h3{margin-top:0}@media(max-width:768px){.sg-footer-grid{grid-template-columns:1fr}}
.sg-gallery-demo-hero{background:#071b33;color:#fff;padding:55px 0;text-align:center}.sg-gallery-demo-hero h1{font-size:42px}.sg-premium-home{padding:35px 0}.sg-filter{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-bottom:30px}.sg-filter span{background:#12345b;color:#fff;padding:10px 22px;border-radius:25px}.sports-demo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.sg-card-img{height:280px;position:relative;overflow:hidden;border-radius:18px;background:#162b45}.sg-placeholder{height:100%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:28px}.sg-overlay{position:absolute;bottom:0;left:0;right:0;padding:22px;color:#fff;background:linear-gradient(transparent,rgba(0,0,0,.85))}.sg-overlay h3{margin:8px 0}.sg-overlay span{background:#007bff;padding:5px 12px;border-radius:12px}.sg-pagination{text-align:center;padding:30px;font-size:20px}.sg-pagination b{background:#007bff;color:#fff;padding:8px 14px;border-radius:8px}@media(max-width:768px){.sports-demo-grid{grid-template-columns:1fr}.sg-gallery-demo-hero h1{font-size:30px}}
.sg-card-img img{width:100%;height:100%;object-fit:cover;display:block}.sg-card a{text-decoration:none}.sg-card{background:#fff;border-radius:18px;overflow:hidden}.sports-demo-grid{grid-template-columns:repeat(4,1fr)}@media(max-width:1024px){.sports-demo-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.sports-demo-grid{grid-template-columns:1fr}}

/* Final gallery columns fix */
.sports-demo-grid{
 display:grid !important;
 grid-template-columns:repeat(4,minmax(0,1fr)) !important;
 gap:25px !important;
}
@media(max-width:1024px){
 .sports-demo-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
}
@media(max-width:768px){
 .sports-demo-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
}
@media(max-width:480px){
 .sports-demo-grid{grid-template-columns:1fr !important;}
}

/* Gallery final hard fix */
.sports-demo-grid{
width:100% !important;
display:grid !important;
grid-template-columns:repeat(4, 1fr) !important;
}
.sg-card{min-width:0 !important;}
.sg-card-img{min-height:280px !important;}
@media(max-width:1024px){.sports-demo-grid{grid-template-columns:repeat(3,1fr) !important;}}
@media(max-width:768px){.sports-demo-grid{grid-template-columns:repeat(2,1fr) !important;}}
@media(max-width:480px){.sports-demo-grid{grid-template-columns:1fr !important;}}

/* Final isolated demo gallery layout */
.sports-demo-grid{
 display:grid !important;
 grid-template-columns:repeat(4,minmax(0,1fr)) !important;
 gap:24px !important;
}
.sports-demo-grid .sg-card{
 min-width:0 !important;
}
.sports-demo-grid .sg-card-img{
 height:280px !important;
}
@media(max-width:1024px){
 .sports-demo-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
}
@media(max-width:768px){
 .sports-demo-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
}
@media(max-width:480px){
 .sports-demo-grid{grid-template-columns:1fr !important;}
}

/* Demo gallery connected to theme settings */
.sports-demo-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:25px!important;}
.sports-demo-grid.columns-2{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
.sports-demo-grid.columns-3{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
.sports-demo-grid.columns-4{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
@media(max-width:1024px){.sports-demo-grid,.sports-demo-grid.columns-4,.sports-demo-grid.columns-3{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
@media(max-width:600px){.sports-demo-grid,.sports-demo-grid.columns-4,.sports-demo-grid.columns-3,.sports-demo-grid.columns-2{grid-template-columns:1fr!important;}}
