/*
Theme Name: Hurdler GP Child
Theme URI: https://hurdlerstudios.com
Description: Child theme for GeneratePress
Author: Jon Winebrenner
Template: generatepress
Version: 1.0
*/

/* ============================================================
   GLOBAL SAFETY
   ============================================================ */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    width: 100%;
}

/* Dynamic viewport height (requires viewport-fix.js) */
:root {
    --vh: 1vh;
}

/* ============================================================
   UNIVERSAL FULLSCREEN HERO + SLIDER SYSTEM
   ============================================================ */

/* Remove WP/GP spacing around these components */
.hero-section,
.horiz-section {
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove block spacing inside hero/slider */
.hero-section .wp-block,
.horiz-section .wp-block {
    margin: 0 !important;
    padding: 0 !important;
}

/* ---------- HERO ---------- */
.hero-section {
    width: 100vw !important;
    height: calc(var(--vh) * 100) !important;
    overflow: hidden !important;
    position: relative;
}

.hero-section video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- SLIDER ---------- */

.horiz-section {
    width: 100vw !important;
    height: calc(var(--vh) * 100) !important;
    overflow: hidden !important;
    position: relative;
}

.horiz-track {
    display: flex;
    flex-wrap: nowrap;
    height: 100%;
    transition: transform 0.45s ease;
}

.horiz-slide {
    width: 100vw !important;
    height: calc(var(--vh) * 100) !important;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
