/*
Theme Name: Digiqole
Theme URI: https://themeforest.net/user/tripples/portfolio
Author: Tripples
Author URI: https://themewinter.com
Description: Digiqole is a Newspaper & Magazine WordPress Theme.
Version: 2.2.7
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: digiqole
Tags: theme-options, post-formats, featured-images
Requires at least: 5.2
Tested up to: 6.8
Requires PHP: 7.4
*/

/* Mobile menu fixes */
@media (max-width: 1024px) {
  /* Bootstrap collapse menu: prevent oversized dark block and improve readability */
  .header .navbar-collapse {
    max-height: 70vh;
    overflow-y: auto;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  }

  .header .navbar-light .navbar-nav > li > a,
  .header .navbar-light .navbar-nav li ul.dropdown-menu li a {
    color: #222222;
  }

  /* ElementsKit off-canvas menu: keep it as a proper slide panel */
  .header .ekit-wid-con .digiqole-elementskit-menu.elementskit-menu-offcanvas-elements {
    position: fixed !important;
    top: 0;
    left: -110%;
    width: min(85vw, 320px) !important;
    height: 100vh !important;
    max-width: 100%;
    overflow-y: auto;
    background: #ffffff !important;
    z-index: 99999;
  }

  .header .ekit-wid-con .digiqole-elementskit-menu.elementskit-menu-offcanvas-elements.active {
    left: 0;
  }

  .header .ekit-wid-con .elementskit-menu-overlay.active {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99998;
  }
}
