/* ==========================================================================
   Gorilla Wear - Black Friday Slideshow
   Адаптация под оригинальную Shopify-секцию .section-slideshow (gorillawear.com)
   ========================================================================== */

.section-slideshow {
    position: relative;
    width: 100%;
    margin-top: 0;
    margin-bottom: 40px;
    background-color: #000000;
    overflow: hidden;
}

@media (min-width: 768px) {
    .section-slideshow {
        margin-bottom: 60px;
    }
}

.section-slideshow .slideshow-wrapper {
    position: relative;
    width: 100%;
}

/* ==========================================================================
   Пропорции слайдов (Десктоп: 2:1, Мобильные: квадрат 1:1 + блок текста снизу)
   ========================================================================== */
.section-slideshow .slideshow-items {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: hidden;
}

.section-slideshow .slideshow__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000000;
}

.section-slideshow .slideshow__slide.uk-active,
.section-slideshow .slideshow__slide:first-child {
    z-index: 1 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ссылка на баннер */
.section-slideshow .slideshow__slide-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: block;
}

/* ==========================================================================
   Фоновые изображения баннера (<picture>)
   ========================================================================== */
.section-slideshow .image-overlay__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.section-slideshow .slideshow__motion-media {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.section-slideshow .slideshow__motion-media source {
    display: none !important;
}

.section-slideshow .slideshow__motion-media img,
.section-slideshow img.theme-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   Текстовый оверлей (Десктоп: внизу слева поверх изображения)
   ========================================================================== */
.section-slideshow .text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    pointer-events: none;
}

.section-slideshow .text-overlay--v-bottom {
    align-items: flex-end;
}

.section-slideshow .text-overlay--h-left {
    justify-content: flex-start;
    text-align: left;
}

.section-slideshow .text-overlay__inner {
    position: relative;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 50px 50px 50px;
    box-sizing: border-box;
    z-index: 1;
}

@media (min-width: 1100px) {
    .section-slideshow .text-overlay__inner {
        padding: 60px 70px 70px 70px;
    }
}

/* Градиентное затемнение под текстом (десктоп) */
.section-slideshow .image-overlay--bg-shadow .text-overlay__inner:before {
    content: "";
    position: absolute;
    z-index: -1;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150%;
    max-width: 900px;
    /*background: radial-gradient(ellipse at bottom left, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.35) 50%, transparent 75%);*/
    pointer-events: none;
}

.section-slideshow .text-overlay__text {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

/* ==========================================================================
   Типографика (Десктоп)
   ========================================================================== */
.section-slideshow .text-overlay__title {
    font-family: var(--uk-font-family, "Roboto", sans-serif);
    font-weight: 700;
    font-size: 42px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-transform: uppercase;
    margin: 0 0 14px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

@media (min-width: 1100px) {
    .section-slideshow .text-overlay__title {
        font-size: 60px;
        margin-bottom: 16px;
    }
}

.section-slideshow .text-overlay__rte {
    font-family: var(--uk-font-family, "Roboto", sans-serif);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 24px 0;
    /*text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);*/
}

.section-slideshow .text-overlay__rte p {
    margin: 0 0 8px 0;
}

.section-slideshow .text-overlay__rte p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Кнопки (Десктоп)
   ========================================================================== */
.section-slideshow .text-overlay__button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
    pointer-events: auto;
}

.section-slideshow .text-overlay__button,
.section-slideshow .btn--secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #ffffff;
    border-radius: 3px;
    padding: 12px 26px;
    font-family: var(--uk-font-family, "Roboto", sans-serif);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease-in-out;
    pointer-events: auto;
}

.section-slideshow .text-overlay__button:hover,
.section-slideshow .btn--secondary:hover {
    background-color: transparent;
    color: #ffffff;
    border-color: #000;
	background-color: #000;
    text-decoration: none;
}

/* ==========================================================================
   АДАПТАЦИЯ ПОД МОБИЛЬНЫЕ (767px И МЕНЕЕ)
   Точное соответствие оригиналу https://gorillawear.com/:
   - Изображение квадратное 1:1 (на всю ширину)
   - Текстовый блок расположен ПОД изображением (на белом фоне)
   - Заголовок и подзаголовок черного цвета, по центру
   - Кнопки белые с черным бордером 1.5px и черным текстом
   ========================================================================== */
@media (max-width: 767.98px) {
    .section-slideshow {
        background-color: #ffffff;
        margin-bottom: 25px;
    }

    .section-slideshow .slideshow-items {
        aspect-ratio: unset;
        height: calc(100vw + 230px);
        min-height: 540px;
        max-height: 1020px;
    }

    .section-slideshow .slideshow__slide {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
        background-color: #ffffff;
    }

    /* Клик по изображению открывает ссылку баннера */
    .section-slideshow .slideshow__slide-link {
        height: 100vw;
        max-height: 767px;
    }

    /* Квадратный контейнер изображения 1:1 */
    .section-slideshow .image-overlay__image {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: 100vw;
        max-height: 767px;
        flex: 0 0 auto;
        overflow: hidden;
    }

    .section-slideshow .slideshow__motion-media img,
    .section-slideshow img.theme-img {
        object-position: 50% 50% !important;
    }

    /* Текстовый блок размещается ПОД изображением */
    .section-slideshow .text-overlay {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        flex: 1 1 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        background-color: #ffffff;
        color: #000000;
        pointer-events: auto;
        padding: 24px 20px 36px 20px;
        box-sizing: border-box;
    }

    .section-slideshow .text-overlay__inner {
        padding: 0 !important;
        max-width: 100%;
        margin: 0 auto;
    }

    /* Отключаем градиентную тень десктопа */
    .section-slideshow .image-overlay--bg-shadow .text-overlay__inner:before {
        display: none !important;
    }

    .section-slideshow .text-overlay__text {
        max-width: 100%;
        margin: 0 auto;
        text-align: center;
    }

    /* Черный заголовок 32px по центру */
    .section-slideshow .text-overlay__title {
        color: #000000 !important;
        font-size: 32px !important;
        line-height: 1.15;
        text-shadow: none !important;
        text-align: center;
        margin: 0 0 8px 0;
    }

    /* Черное описание по центру */
    .section-slideshow .text-overlay__rte {
        color: #000000 !important;
        font-size: 15px !important;
        line-height: 1.4;
        text-shadow: none !important;
        text-align: center;
        margin: 0 0 16px 0;
    }

    .section-slideshow .text-overlay__rte p {
        color: #000000 !important;
        margin: 0;
    }

    /* Кнопки по центру на мобильных */
    .section-slideshow .text-overlay__button-row {
        justify-content: center;
        margin: 16px auto 0 auto;
        gap: 12px;
    }

    /* Стиль кнопок оригинала: белый фон, черная рамка 1.5px, черный текст */
    .section-slideshow .text-overlay__button,
    .section-slideshow .btn--secondary {
        background-color: #ffffff !important;
        color: #000000 !important;
        border: 1.5px solid #000000 !important;
        border-radius: 3px;
        padding: 12px 24px;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.08em;
    }

    .section-slideshow .text-overlay__button:hover,
    .section-slideshow .btn--secondary:hover {
        background-color: #000000 !important;
        color: #ffffff !important;
        border-color: #000000 !important;
    }
}

/* ==========================================================================
   Навигационные точки (при наличии нескольких слайдов)
   ========================================================================== */
.section-slideshow .slideshow__dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.section-slideshow .uk-dotnav > * > * {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.section-slideshow .uk-dotnav > .uk-active > *,
.section-slideshow .uk-dotnav > * > :hover {
    background-color: #ffffff;
    transform: scale(1.3);
}
