#wrapper { overflow-x: hidden; }

        .ce-wrap {
            width: 100%;
            max-width: 700px;
            margin: 0 auto;
            padding: 16px 3%;
            box-sizing: border-box;
        }

        /* Camera + overlay + controls all inside */
        .cam-box {
            position: relative;
            width: 100%;
            aspect-ratio: 4 / 3;
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid #fff;
        }

        html[data-theme='light'] .cam-box {
            border-color: #000;
        }

        .cam-box video {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .cam-box img {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(var(--ov-scale, 1));
            width: 80%;
            height: 80%;
            object-fit: contain;
            pointer-events: none;
            transition: transform 0.15s ease;
        }

        /* Bottom toolbar inside camera */
        .cam-bar {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 10px 12px;
            background: linear-gradient(transparent, rgba(0,0,0,0.6));
            z-index: 5;
        }

        .cb {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            height: 36px;
            padding: 0 12px;
            border-radius: 8px;
            border: 1px solid rgba(255,255,255,0.25);
            background: rgba(0,0,0,0.45);
            color: #fff;
            font-family: var(--font-headings);
            font-size: 0.8rem;
            font-weight: 500;
            cursor: pointer;
            transition: background 0.15s;
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            white-space: nowrap;
        }

        .cb:active { background: rgba(255,255,255,0.15); }

        .cb svg {
            width: 15px;
            height: 15px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .cb--on { background: rgba(33,150,243,0.6); border-color: rgba(33,150,243,0.8); }
        .cb--off { background: rgba(211,47,47,0.6); border-color: rgba(211,47,47,0.8); }

        .sz {
            width: 36px;
            height: 36px;
            padding: 0;
            border-radius: 8px;
            font-size: 1.2rem;
            font-weight: 700;
        }

        .sz-lbl {
            font-size: 0.75rem;
            color: rgba(255,255,255,0.9);
            min-width: 32px;
            text-align: center;
            text-shadow: 1px 1px 2px #000, 0 0 4px #000;
        }

        .cb-div {
            width: 1px;
            height: 22px;
            background: rgba(255,255,255,0.2);
        }

        /* Small note below */
        .ce-note {
            text-align: center;
            font-size: 0.78rem;
            color: var(--text-secondary-color);
            margin-top: 10px;
        }

        /* SEO content grid */
        .grid_items {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 24px;
            padding: 16px 3%;
            max-width: 1200px;
            margin: 0 auto;
        }

        .grid_item {
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 24px;
            flex: 1 1 300px;
            min-width: 260px;
            max-width: 420px;
        }

        @media (max-width: 600px) {
            .ce-wrap { padding: 10px 2%; }
            .cam-box { aspect-ratio: 3 / 4; border-radius: 10px; }
            .cam-bar { gap: 5px; padding: 8px 8px; }
            .cb { height: 34px; padding: 0 10px; font-size: 0.75rem; }
            .sz { width: 34px; height: 34px; }
        }
