/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.1.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/
.ss02 {
    -moz-font-feature-settings: "ss02";
    -webkit-font-feature-settings: "ss02";
    font-feature-settings: "ss02";
}

/* ===== Classic WordPress Gallery ===== */

.gallery {
    display: grid !important;
    gap: 16px;
    width: 100%;
}

/* تعداد ستون‌ها */
.gallery.gallery-columns-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gallery.gallery-columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery.gallery-columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery.gallery-columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery.gallery-columns-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.gallery.gallery-columns-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.gallery.gallery-columns-7 {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.gallery.gallery-columns-8 {
    grid-template-columns: repeat(8, minmax(0, 1fr));
}

.gallery.gallery-columns-9 {
    grid-template-columns: repeat(9, minmax(0, 1fr));
}


/* آیتم گالری */
.gallery .gallery-item {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* قاب یکسان برای تمام تصاویر */
.gallery .gallery-icon {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}


/* خود تصویر */
.gallery .gallery-icon a {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery .gallery-icon img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center;
    border: 0 !important;
    margin: 0 !important;
}


/* حذف br های ساختار قدیمی وردپرس */
.gallery > br {
    display: none !important;
}


/* تبلت */
@media (max-width: 1024px) {

    .gallery.gallery-columns-4,
    .gallery.gallery-columns-5,
    .gallery.gallery-columns-6,
    .gallery.gallery-columns-7,
    .gallery.gallery-columns-8,
    .gallery.gallery-columns-9 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* موبایل */
@media (max-width: 767px) {

    .gallery.gallery-columns-3,
    .gallery.gallery-columns-4,
    .gallery.gallery-columns-5,
    .gallery.gallery-columns-6,
    .gallery.gallery-columns-7,
    .gallery.gallery-columns-8,
    .gallery.gallery-columns-9 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* موبایل کوچک */
@media (max-width: 480px) {

    .gallery {
        grid-template-columns: 1fr !important;
    }
}