.restaurant-gallery {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 12px;
        }

        .restaurant-gallery img {
            width: 100%;
            height: 160px;
            object-fit: cover;
            border-radius: 10px;
            border: 1px solid var(--border-color);
            cursor: zoom-in;
        }

        .restaurant-image-viewer {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 4000;
            background: rgba(0, 0, 0, 0.92);
            align-items: center;
            justify-content: center;
        }

        .restaurant-image-viewer.is-open {
            display: flex;
        }

        .restaurant-image-viewer__img {
            max-width: 95vw;
            max-height: 88vh;
            object-fit: contain;
            border-radius: 8px;
            position: relative;
            z-index: 2;
            cursor: pointer;
        }

        .restaurant-image-viewer__zone {
            position: absolute;
            top: 0;
            bottom: 0;
            width: 50%;
            z-index: 1;
            cursor: pointer;
        }

        .restaurant-image-viewer__zone--left {
            left: 0;
        }

        .restaurant-image-viewer__zone--right {
            right: 0;
        }
        
        .restaurant-image-viewer__btn {
            position: absolute;
            z-index: 3;
            width: 44px;
            height: 44px;
            border: 1px solid rgba(255, 255, 255, 0.4);
            border-radius: 5px;
            background: rgba(0, 0, 0, 0.45);
            color: #fff;
            font-size: 28px;
            line-height: 1;
            cursor: pointer;
            transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
        }

        .restaurant-image-viewer__btn--prev {
            left: 40px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--accent-blue);
        }

        .restaurant-image-viewer__btn--next {
            right: 40px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--accent-blue);
        }

            /* Bouton de fermeture, avec un "×" centré, plus grand et plus visible que les flèches de navigation */
            .restaurant-image-viewer__btn--close {
            top: max(40px, env(safe-area-inset-top)); /* position verticale */
            right: max(40px, env(safe-area-inset-right)); /* position horizontale */
            width: 90px;
            height: 90px;
            border-width: 2px;
            border-radius: 5px;
            padding: 0;
            position: absolute;
            display: flex;
            align-items: center;
            justify-content: center;

            font-size: 0;          /* cache le × natif */
            color: transparent;     /* sécurité */
            }

            .restaurant-image-viewer__btn--close::before {
            content: "×";
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -58%); /* ajuste finement (horizontalement et verticalement) */
            font-size: 78px;
            line-height: 1;
            color: #fff;
            }

            .restaurant-image-viewer__btn--close:hover {
            border-color: var(--accent-red);
            }

            .restaurant-image-viewer__btn--close:hover::before {
            color: var(--accent-red);
            }

        .restaurant-image-viewer__btn--prev:hover,
        .restaurant-image-viewer.is-hover-left .restaurant-image-viewer__btn--prev {
            border-color: var(--accent-blue);
            background: color-mix(in srgb, var(--accent-blue) 35%, #000 65%);
            color: #fff;
            transform: translateY(-50%) scale(1.05);
        }

        .restaurant-image-viewer__btn--next:hover,
        .restaurant-image-viewer.is-hover-right .restaurant-image-viewer__btn--next {
            border-color: var(--accent-blue);
            background: color-mix(in srgb, var(--accent-blue) 35%, #000 65%);
            color: #fff;
            transform: translateY(-50%) scale(1.05);
        }


        @media (max-width: 700px) {
            .restaurant-image-viewer__btn--close {
            top: max(10px, env(safe-area-inset-top));
            right: max(10px, env(safe-area-inset-right));
            width: 48px;
            height: 48px;
            font-size: 32px;
            }
            
            .restaurant-image-viewer__img {
                max-width: 98vw;
                max-height: 78vh;
            }

            .restaurant-image-viewer__btn {
                width: 40px;
                height: 40px;
                font-size: 24px;
            }

            .restaurant-image-viewer__btn--prev {
                left: 10px;
            }

            .restaurant-image-viewer__btn--next {
                right: 10px;
            }
        }