/* Slider Container Styles - Frontend Only */
body:not(.wp-admin) .acf-slider-container {
    position: relative;
    width: 100%;
    min-height: 100vh; /* Default, will be overridden by inline style */
    overflow: hidden;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
}

body:not(.wp-admin) .acf-slider-wrapper {
    position: relative;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

body:not(.wp-admin) .acf-slides {
    position: relative;
    width: 100%;
    flex: 1;
    overflow: hidden;
}

/* Editor Styles - Backend Only */
.editor-styles-wrapper .acf-slider-container,
.wp-admin .acf-slider-container {
    position: relative;
    width: 100%;
    min-height: 300px;
    background-color: #f5f5f5;
    border: 2px dashed #ccc;
    padding: 0;
    margin: 20px 0;
}

.editor-styles-wrapper .acf-slider-wrapper,
.wp-admin .acf-slider-wrapper {
    position: relative;
    width: 100%;
}

.editor-styles-wrapper .acf-slides,
.wp-admin .acf-slides {
    display: block !important;
    width: 100%;
}

/* Navigation Arrows - Frontend Only */
body:not(.wp-admin) .slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 0;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Hide navigation in editor */
.editor-styles-wrapper .slider-nav,
.wp-admin .slider-nav {
    display: none;
}

.slider-nav:hover {
    background-color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.slider-nav svg {
    fill: #000;
}

.slider-nav-prev {
    left: 36px;
}

.slider-nav-prev svg{
    position: relative;
    left: 0px;
}

.slider-nav-next {
    right: 36px;
}

.slider-nav-next svg{
    position: relative;
    left: 0;
}


/* Slider Dots - Frontend Only */
body:not(.wp-admin) .slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

/* Hide dots in editor */
.editor-styles-wrapper .slider-dots,
.wp-admin .slider-dots {
    display: none;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* Editor Specific Styles - only apply to slider's direct inner blocks */
.editor-styles-wrapper .acf-slides > .block-editor-inner-blocks,
.wp-admin .acf-slides > .block-editor-inner-blocks {
    display: block;
}

/* Stack slides vertically in editor - only direct children of acf-slides */
.editor-styles-wrapper .acf-slides > .block-editor-inner-blocks > .block-editor-block-list__layout,
.wp-admin .acf-slides > .block-editor-inner-blocks > .block-editor-block-list__layout {
    display: block !important;
    height: auto !important;
    max-width: none !important;
    width: 100% !important;
}

/* Ensure each slide in editor has proper spacing */
.editor-styles-wrapper .wp-block-acf-slide,
.wp-admin .wp-block-acf-slide {
    margin-bottom: 20px;
    display: block !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
}

.taco-cat-slide h1.big-slide-text{
  font-size: clamp( 42px, calc(36px + (180 - 42) * ((100vw - 300px) / (1600 - 300))), 180px ) !important;
  line-height: 0.8em;
}



/* Responsive */
@media (max-width: 768px) {
    .slider-nav {
        width: 40px;
        height: 40px;
    }
    
    .slider-nav-prev {
        left: 10px;
    }
    
    .slider-nav-next {
        right: 10px;
    }
    
    .slider-nav svg {
        width: 24px;
        height: 24px;
    }
}

/* Slide CSS*/ 

/* Slide Styles - Frontend */
body:not(.wp-admin) .acf-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    flex-shrink: 0;
}

/* Slide Styles - Editor */
.editor-styles-wrapper .acf-slide,
.wp-admin .acf-slide {
    width: 100%;
    position: relative;
    margin-bottom: 20px;
}

/* Edit Mode Styles */
.acf-slide.slide-edit-mode {
    height: auto;
    min-height: 200px;
    background-color: #f8f9fa;
    border: 2px dashed #d3d4d7;
    border-radius: 8px;
    margin: 10px 0;
    padding: 20px;
}

.slide-edit-message {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 6px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.slide-edit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #e3f2fd;
    border-radius: 50%;
    margin-bottom: 10px;
}

.slide-edit-icon svg {
    fill: #1976d2;
}

.slide-edit-message h3 {
    margin: 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e1e1e;
}

.slide-edit-message p {
    margin: 0;
    color: #757575;
    font-size: 14px;
}

.slide-inner-blocks-edit {
    background-color: #fff;
    border-radius: 6px;
    padding: 20px;
    min-height: 100px;
}

/* Preview Mode Styles - Frontend */
body:not(.wp-admin) .acf-slide.slide-preview-mode {
    align-items: center;
    justify-content: center;
    background-color: #fff;
}

/* Preview Mode Styles - Editor */
.editor-styles-wrapper .acf-slide.slide-preview-mode,
.wp-admin .acf-slide.slide-preview-mode {
    display: flex;
    background-color: #fff;
    min-height: 400px;
    overflow: hidden;
}

.slide-content {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Let inner blocks control their own layout */
.slide-content > * {
    width: 100%;
    height: 100%;
    max-width: 100%;
    margin: 0;
}

/* Full width/height for slide content blocks */
.slide-content .wp-block-group,
.slide-content .wp-block-cover {
    width: 100%;
    height: 100%;
}

/* Editor specific slide content - full width */
.editor-styles-wrapper .slide-content,
.wp-admin .slide-content {
    width: 100%;
    height: 100%;
}

/* Override WordPress editor content width constraints */
.editor-styles-wrapper .acf-slide .wp-block,
.wp-admin .acf-slide .wp-block {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Ensure cover blocks use full width in editor */
.editor-styles-wrapper .slide-content .wp-block-cover,
.wp-admin .slide-content .wp-block-cover {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

/* Override Gutenberg's block list item styles in slides */
.editor-styles-wrapper .acf-slide .block-editor-block-list__block,
.wp-admin .acf-slide .block-editor-block-list__block {
    max-width: none !important;
    margin: 0 !important;
}

/* Force InnerBlocks to full width in editor - only direct children of slide-content */
.editor-styles-wrapper .acf-slide > .slide-content > .block-editor-inner-blocks,
.wp-admin .acf-slide > .slide-content > .block-editor-inner-blocks {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
}

/* Remove Gutenberg's default layout margins */
.editor-styles-wrapper .acf-slide .is-layout-constrained > *,
.wp-admin .acf-slide .is-layout-constrained > * {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Editor specific - ensure slides display properly */
.acf-slider-container .block-editor-block-list__block {
    width: 100%;
    margin: 0;
}

.acf-slider-container .wp-block-acf-slide {
    height: 100%;
}

/* When in editor preview mode, ensure full height */
.acf-slider-container .acf-slide.slide-preview-mode {
    min-height: 500px;
}

/* Style for empty slide prompt */
.slide-inner-blocks-edit .block-editor-default-block-appender {
    margin: 0;
}

.slide-inner-blocks-edit .block-editor-inserter {
    margin: 20px auto;
    display: block;
}

.taco-cat-columns{
    max-width: calc(1400px + 20vw);
    display: block;
    position: relative;
    padding: 0 11vw 0 5vw;
    margin-left: 80px;
    margin-right: 0;
}

.taco-cat-slide h1{
    font-size: clamp(36px, calc(36px + (86 - 36) * ((86vw - 300px) / (1600 - 300))), 86px) !important;
}


.taco-cat-slide h1{
    font-size: clamp(36px, calc(36px + (86 - 36) * ((86vw - 300px) / (1600 - 300))), 86px) !important;
}

.slider-left{
    z-index: 5;
}


.big-logo{
    display: block;
    position: relative;
    width: 140%;
    height: auto !important;
    right: 10vw;
}

@media (max-width: 781px) {
    
    .slide-stack{
        justify-content: center;
        align-items: center;
    }
    
    .taco-cat-columns{
        gap: 20px !important;
        padding: 0;
    }
    
    .big-logo{
        display: block;
        position: relative;
        margin: 0 auto;
        width: 100%;
        right: 0;
        max-width: 320px;
    }
    .taco-cat-slide h1{
        font-size: 60px !important;
        text-align: center;
    }
}
