/* Homepage hero: match top nav content width on large screens (avoid unreadable scaling) */
@media (min-width: 768px) {
    .home-brand-slider.knotnow-photo-slider {
        max-width: min(1200px, 100%);
        margin-left: auto;
        margin-right: auto;
    }
}

/* Full-bleed image sliders — copy baked into JPGs; separate H (desktop) and V (mobile) slide sets */

.knotnow-photo-slider {
    width: 100%;
    background: #0a0a0a;
}

.knotnow-photo-slider--bleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.knotnow-photo-slider-viewport {
    position: relative;
    min-height: clamp(280px, 38vw, 520px);
    overflow: hidden;
}

@media (max-width: 767px) {
    .knotnow-photo-slider-viewport {
        min-height: clamp(420px, 72vh, 680px);
    }
}

.knotnow-photo-slider-stack {
    position: relative;
    min-height: inherit;
}

.knotnow-photo-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

.knotnow-photo-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
    pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
    .knotnow-photo-slide {
        transition: none;
    }
}

.knotnow-photo-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* Homepage: desktop S slides 1200×500; mobile V slides 1132×1600 */
.home-brand-slider.knotnow-photo-slider .home-brand-slider-viewport,
.home-brand-slider.knotnow-photo-slider .knotnow-photo-slider-viewport {
    width: 100%;
    min-height: 0;
    max-height: min(90vh, 820px);
    aspect-ratio: 2000 / 1415;
    height: auto;
}

@media (min-width: 768px) {
    .home-brand-slider.knotnow-photo-slider .home-brand-slider-viewport,
    .home-brand-slider.knotnow-photo-slider .knotnow-photo-slider-viewport {
        aspect-ratio: 1200 / 500;
        max-height: 500px;
    }

    .home-brand-slider.knotnow-photo-slider .knotnow-photo-slide img {
        object-fit: cover;
        object-position: center center;
        vertical-align: middle;
    }
}

/* Viewport height comes from aspect-ratio; stack must fill it (absolute slides don’t stretch the parent). */
.home-brand-slider.knotnow-photo-slider .home-brand-slider-stack,
.home-brand-slider.knotnow-photo-slider .knotnow-photo-slider-stack {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.home-brand-slider.knotnow-photo-slider .knotnow-photo-slide img {
    object-fit: cover;
    object-position: top center;
}

@media (min-width: 768px) {
    .knotnow-photo-slide--mobile-only {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        z-index: -1 !important;
    }
}

@media (max-width: 767px) {
    .knotnow-photo-slide--desktop-only {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        z-index: -1 !important;
    }
}

@media (max-width: 767px) {
    .home-brand-slider.knotnow-photo-slider .home-brand-slider-viewport,
    .home-brand-slider.knotnow-photo-slider .knotnow-photo-slider-viewport {
        aspect-ratio: 1132 / 1600;
        max-height: min(92vh, 900px);
    }
}

.knotnow-photo-slide-hit {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.knotnow-photo-slider-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem clamp(1rem, 4vw, 2rem) 1.15rem;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.45));
}

.knotnow-photo-slider-btn {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.knotnow-photo-slider-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
}

.knotnow-photo-slider-dots {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.knotnow-photo-slider-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.knotnow-photo-slider-dot.is-active {
    background: #7dd3fc;
    transform: scale(1.12);
}

/* Sessions features: CTAs under slider */
.sessions-sell-photo-hero {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sessions-sell-photo-hero-actions {
    padding: clamp(1.25rem, 4vw, 2rem) clamp(1rem, 4vw, 1.5rem) clamp(1.5rem, 5vw, 2.5rem);
    text-align: center;
    background: linear-gradient(180deg, #0c0c0e 0%, #121018 100%);
}

