/*
Theme Name: America First Legal
Theme URI: https://americafirstlegal.org/
Author: Baron Miller
Description: Custom theme for America First Legal Foundation
Version: 1.0.3
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: america-first-legal
*/

/* Typography Notes
   Primary Font: Raleway (Variable Font)
   - Full weight range from 100-900
   - Both normal and italic styles available
   - Variable font format provides optical sizing
   - Weights:
     100 - Thin
     200 - Extra Light
     300 - Light
     400 - Regular
     500 - Medium
     600 - Semi Bold
     700 - Bold
     800 - Extra Bold
     900 - Black

   Secondary Font: Source Sans Pro
   - Weights: 400, 500, 600, 700, 900
*/

/* All styles are compiled from SCSS files in /scss/ directory.
   The main compiled stylesheet is css/main.css
   Individual page stylesheets are in css/pages/ directory
*/

/* Import the main compiled CSS */
@import url('css/main.css');

/* Mobile Slider Fixes - Prevent disappearing and freezing issues */
@media (max-width: 768px) {
    .featured-slider,
    .afl-slider,
    .universal-slider-featured,
    .victories-slider {
        position: relative !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        transition: transform 0.3s ease !important;
        overflow: hidden;
        touch-action: pan-y pinch-zoom;
    }
    
    .featured-slider .featured-card,
    .afl-slider__slide {
        position: relative !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-height: 200px;
        transition: opacity 0.3s ease, transform 0.3s ease !important;
    }
    
    .featured-slider .featured-card.active,
    .afl-slider__slide.active {
        opacity: 1 !important;
        transform: translateX(0) !important;
    }
    
    /* Prevent touch conflicts */
    .featured-slider *,
    .afl-slider *,
    .universal-slider-featured * {
        pointer-events: auto;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
    }
    
    /* Ensure smooth touch interactions */
    .featured-slider,
    .afl-slider,
    .universal-slider-featured {
        -webkit-overflow-scrolling: touch;
        will-change: transform;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
    
    /* Fix for disappearing content */
    .featured-slider .featured-card img,
    .afl-slider__slide img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        opacity: 1 !important;
    }
}