        .media-gallery {
            padding: 40px 20px;
            background: var(--offwhite);
        }

        .media-gallery h2 {
            font-size: 1.8rem;
            margin-bottom: 20px;
            text-align: center;
            color: var(--text-dark);
        }

        .gallery-wrapper {
            position: relative;
        }

        /* Horizontal scroll container */
        .gallery-scroll {
            display: flex;
            gap: 20px;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            padding: 10px 0 20px;
            scroll-behavior: smooth;
        }

        .gallery-scroll::-webkit-scrollbar {
            height: 8px;
        }

        .gallery-scroll::-webkit-scrollbar-thumb {
            background: var(--indigo-dark);
            border-radius: 4px;
        }

        /* Media Pair Blocks */
        .gallery-pair {
            display: grid;
            grid-template-rows: 1fr 1fr;
            gap: 10px;
            flex: 0 0 22%;
            /* ~4 pairs visible on desktop */
            height: 400px;
            scroll-snap-align: start;
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .gallery-pair img,
        .gallery-pair video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        /* Prev/Next buttons */
        .gallery-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(254, 253, 249, 0.9);
            border: none;
            border-radius: 50%;
            width: 45px;
            height: 45px;
            cursor: pointer;
            font-size: 24px;
            font-weight: bold;
            color: var(--indigo-dark);
            z-index: 5;
        }

        .gallery-btn.prev {
            left: 10px;
        }

        .gallery-btn.next {
            right: 10px;
        }

        /* Lightbox */
        .lightbox {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.85);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }

        .lightbox-content {
            max-width: 90%;
            max-height: 90%;
        }

        .lightbox-content img,
        .lightbox-content video {
            width: 100%;
            height: auto;
            max-height: 90vh;
            display: block;
            border-radius: 8px;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
        }

        .lightbox-close {
            position: absolute;
            top: 20px;
            right: 30px;
            font-size: 32px;
            color: white;
            cursor: pointer;
            z-index: 1001;
        }

        .lightbox-nav.prev {
            left: 20px;
        }

        .lightbox-nav.next {
            right: 20px;
        }

        /* Responsive Breakpoints */
        @media (max-width: 1200px) {
            .gallery-pair {
                flex: 0 0 28%;
            }

            /* ~3 pairs visible */
        }

        @media (max-width: 900px) {
            .gallery-pair {
                flex: 0 0 40%;
                height: 320px;
            }

            /* ~2 pairs visible */
        }

        @media (max-width: 600px) {
            .gallery-pair {
                flex: 0 0 80%;
                height: 260px;
            }

            /* ~1 pair visible */
            .gallery-btn {
                width: 35px;
                height: 35px;
                font-size: 18px;
            }

            .lightbox-nav {
                width: 36px;
                height: 36px;
                font-size: 20px;
            }

            .lightbox-close {
                font-size: 24px;
                right: 15px;
            }
        }