﻿@font-face {
    font-family: 'farhang';
    src: url('farhang.ttf') format('truetype');
}

body {
    font-family: 'Farhang', sans-serif;
    font-feature-settings: "lnum" 0, "tnum" 0;
    background-image: url(/img/gallerybg.png);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    backdrop-filter: blur(5px);
    color: #ffffff;
}

/* استایل‌های کلی برای کارت‌ها */
.gallery-card {
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
    border: none;
    background: transparent;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .gallery-card:hover {
        transform: scale(1.05);
    }

/* استایل‌های تصاویر داخل کارت */
.card-images {
    position: relative;
    width: 100%;
    height: 150px;
    perspective: 1000px;
    margin-bottom: 10px;
}

.card-body {
    width: 100%;
}

.card-image {
    position: absolute;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

    /* تصویر وسط */
    .card-image.center {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(0deg);
        z-index: 3;
    }

    /* تصویر سمت چپ */
    .card-image.left {
        top: 50%;
        left: 45%;
        transform: translate(-50%, -50%) rotate(-10deg);
        z-index: 2;
    }

    /* تصویر سمت راست */
    .card-image.right {
        top: 50%;
        left: 55%;
        transform: translate(-50%, -50%) rotate(10deg);
        z-index: 1;
    }

/* افکت‌ها هنگام hover */
.gallery-card:hover .card-image.center {
    transform: translate(-50%, -50%) rotate(0deg) scale(1.1);
}

.gallery-card:hover .card-image.left {
    transform: translate(-50%, -50%) rotate(-15deg) scale(1.1);
}

.gallery-card:hover .card-image.right {
    transform: translate(-50%, -50%) rotate(15deg) scale(1.1);
}

/* استایل‌های عنوان دسته‌بندی */
.card-title {
    text-align: center;
    margin-top: 70px !important;
    font-size: 1.2rem;
    color: #ffffff;
}

/* استایل‌های اسلایدر */
#imageSliderContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    visibility: hidden;
}

    #imageSliderContainer.show {
        visibility: visible;
    }

.carousel-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* استایل دکمه ضربدر */
.close-button {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1060;
}

/* استایل‌های واکنش‌گرا برای موبایل */
@media (max-width: 768px) {
    /* کاهش اندازه تصاویر در کارت‌ها */
    body {
        background-position: center; /* قرار دادن بک‌گراند در مرکز */
        backdrop-filter: none; /* غیرفعال کردن افکت بلور در موبایل */
        background-color: rgba(0, 0, 0, 0.7); /* رنگ پس‌زمینه با شفافیت */
    }

    .card-body {
        width: 75%;
    }

    .card-images {
        height: 120px;
    }

    /* تنظیم موقعیت تصاویر در موبایل */
    .card-image.left {
        left: 40%;
    }

    .card-image.right {
        left: 60%;
    }

    /* کاهش فاصله عنوان دسته‌بندی */
    .card-title {
        margin-top: 40px !important;
        font-size: 1rem;
    }

    /* تنظیمات اسلایدر برای موبایل */
    .carousel-caption {
        display: none; /* پنهان کردن کپشن در موبایل */
    }
}
