        .frame-type-image .gallery-row {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 30px;
            align-items: center;
        }

        .frame-type-image .gallery-row img {
            max-width: 100%;
            width: auto;
            height: auto;
            display: block;
            margin: 0 auto;
        }

        @media (max-width: 767px) {
            .frame-type-image .gallery-row {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        @media (max-width: 480px) {
            .frame-type-image .gallery-row {
                grid-template-columns: 1fr;
            }
        }