var Flickity = require('flickity');

(function(Flickity) {
    "use strict";

    if(document.querySelector('.rotate') !== null) {
        new Flickity('.rotate', {
            on: {
                ready: function() {
                    // Get the height of the first image that loaded and dynamically set the height
                    if(document.querySelector('.flickity-enabled .is-selected img') != null) {
                        document.querySelector('.flickity-viewport').style.height = document.querySelector('.flickity-enabled .is-selected img').offsetHeight + 'px';
                    }

                    // Visually hide the dots for accessibility
                    if(document.querySelector('.flickity-page-dots') != null) {
                        document.querySelector('.flickity-page-dots').classList.add('visually-hidden');
                    }
                }
            },
            accessibility: true,
            prevNextButtons: true,
            pageDots: true,
            resize: true,
            setGallerySize: true,
            wrapAround: true,
        });
    }
})(Flickity);

var Flickity = require('flickity');

(function(Flickity) {
    "use strict";

    if(document.querySelector('.rotate') !== null) {
        new Flickity('.rotate', {
            on: {
                ready: function() {
                    // Get the height of the first image that loaded and dynamically set the height
                    if(document.querySelector('.flickity-enabled .is-selected img') != null) {
                        document.querySelector('.flickity-viewport').style.height = document.querySelector('.flickity-enabled .is-selected img').offsetHeight + 'px';
                    }

                    // Visually hide the dots for accessibility
                    if(document.querySelector('.flickity-page-dots') != null) {
                        document.querySelector('.flickity-page-dots').classList.add('visually-hidden');
                    }
                }
            },
            accessibility: true,
            prevNextButtons: true,
            pageDots: true,
            resize: true,
            setGallerySize: true,
            wrapAround: true,
        });

        document.querySelector('.rotate').removeAttribute('tabindex');
    }
})(Flickity);

Remove the tabindex that flickity adds so it does not tab to it, rather it will tab to natural tabbable elements inside the hero area.
Remove the tabindex that flickity adds so it does not tab to it, rather it will tab to natural tabbable elements inside the hero area.
