/*
	Theme Name: Apola (child)
	Theme URI: http://velikorodnov.com/wordpress/apola
	Description: Apola Premium Portfolio WordPress Theme.
	Author: Designed by monkeysan
	Author URI: https://themeforest.net/user/monkeysan/portfolio
	Template: apola
	Version: 1.0.0
	License: Commercial
	License URI: http://themeforest.net/licenses/regular_extended
	Text Domain: apola
	Tags: one-column, two-columns, left-sidebar, right-sidebar, sticky-post, rtl-language-support, threaded-comments, translation-ready, theme-options, featured-images
*/

/*------------------------------------------------------------------
[Add Your Custom CSS Here] */

@media (max-width: 768px) {
    .vc_images_carousel {
        overflow: visible !important;
    }

    .vc_images_carousel ol.vc_carousel-indicators {
        position: static !important;
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        margin: 14px 0 0 0 !important;
        padding: 0 !important;
        left: auto !important;
        bottom: auto !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
    }

    .vc_images_carousel ol.vc_carousel-indicators li {
        display: inline-block !important;
        float: none !important;
        margin: 0 2px !important;
    }
}

// ===== FIX OVERFLOW HORIZONTAL MOBILE HOME =====
add_action( 'wp_head', function() { ?>
<style>
@media (max-width: 768px) {
    html {
        overflow-x: hidden !important;
    }
    body.apo-fp-photo-stream {
        overflow-x: hidden !important;
        touch-action: pan-y !important;
    }
    body.apo-fp-photo-stream .apo-page,
    body.apo-fp-photo-stream .apo-full-page-container,
    body.apo-fp-photo-stream #apo-full-page {
        overflow-x: hidden !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }
}
</style>
<?php }, 5 );