        /* مودال گالری */
        .gallery-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.95);
            z-index: 99999;
            display: none;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            padding: 20px;
        }

        .gallery-modal.active {
            display: flex;
        }

        .gallery-modal-close {
            position: absolute;
            top: 20px;
            right: 30px;
            font-size: 40px;
            color: white;
            background: none;
            border: none;
            cursor: pointer;
            z-index: 100000;
            transition: transform 0.3s;
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .gallery-modal-close:hover {
            transform: rotate(90deg);
            color: var(--color-main);
        }

        .gallery-modal-content {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            gap: 20px;
        }

        .gallery-modal-image-container {
            flex: 1;
            height: 90%;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .gallery-modal-image-container img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            border-radius: var(--radius);
            box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
        }

        .gallery-modal-nav-btn {
            width: 50px;
            height: 50px;
            background: rgba(255, 255, 255, 0.15);
            border: none;
            border-radius: 50%;
            color: white;
            font-size: 24px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
            flex-shrink: 0;
        }

        .gallery-modal-nav-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: scale(1.1);
        }

        .gallery-modal-thumbnails {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
            padding: 10px;
            background: rgba(0, 0, 0, 0.5);
            border-radius: var(--radius);
            backdrop-filter: blur(10px);
        }

        .gallery-modal-thumbnails img {
            width: 60px;
            height: 60px;
            object-fit: cover;
            border-radius: var(--radius);
            cursor: pointer;
            border: 2px solid transparent;
            transition: all 0.3s;
        }

        .gallery-modal-thumbnails img.active {
            border-color: var(--color-main);
            transform: scale(1.1);
        }

        .gallery-modal-thumbnails img:hover {
            transform: scale(1.05);
        }

        .gallery-modal-counter {
            position: absolute;
            bottom: 100px;
            left: 50%;
            transform: translateX(-50%);
            color: rgba(255, 255, 255, 0.7);
            font-size: 14px;
            background: rgba(0, 0, 0, 0.5);
            padding: 6px 16px;
            border-radius: var(--radius);
            backdrop-filter: blur(10px);
        }

        @media (max-width: 768px) {
            .gallery-modal-nav-btn {
                width: 40px;
                height: 40px;
                font-size: 18px;
            }

            .gallery-modal-thumbnails img {
                width: 40px;
                height: 40px;
            }

            .gallery-modal-thumbnails {
                padding: 6px;
                gap: 6px;
            }
        }


.gallery-modal-thumbnails { max-width: calc(100vw - 40px); overflow-x: auto; }
.gallery-modal-thumbnails button { padding: 0; border: 0; background: transparent; flex-shrink: 0; cursor: pointer; }
.gallery-modal-thumbnails button:focus-visible { outline: 2px solid var(--color-main); outline-offset: 3px; }
.gallery-modal-counter { pointer-events: none; }
.gallery-modal-nav-btn:disabled { visibility: hidden; }
