.elementor-7607 .elementor-element.elementor-element-11a78c9{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}/* Start custom CSS for html, class: .elementor-element-dde8a78 *//* استایل کلی صفحه */
body {
    background-color: #1a1a1a;
    font-family: 'Vazirmatn', sans-serif;
}

/* نگهدارنده اصلی گالری */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 1600px;
    padding: 25px;
    box-sizing: border-box;
}

/* استایل هر آیتم در گالری */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: block;
    /* --- تغییر اصلی اینجاست --- */
    /* aspect-ratio حذف شد تا ارتفاع به صورت خودکار تنظیم شود */
}

.gallery-item:hover {
    transform: scale(1.02); /* کمی افکت بزرگنمایی رو کمتر کردم تا طبیعی‌تر باشه */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9);
}

/* استایل عکس‌ها */
.gallery-item img {
    /* --- تغییر اصلی اینجاست --- */
    width: 100%;
    height: auto; /* مهم‌ترین تغییر: ارتفاع خودکار برای حفظ نسبت ابعاد */
    display: block; /* برای حذف فاصله احتمالی زیر عکس */
    object-fit: contain; /* اطمینان از اینکه عکس کاملا نمایش داده می‌شود */
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.gallery-item:hover img {
    filter: grayscale(0%);
}

/* بقیه استایل‌ها برای افکت اسم، بدون تغییر باقی می‌مونن */
.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 60%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
    box-sizing: border-box;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item .anime-title {
    color: white;
    font-size: 1.6rem;
    font-weight: bold;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
    transform: translateY(30px);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover .anime-title {
    transform: translateY(0);
}/* End custom CSS */