.swiper {
  width: 100%;
  height: fit-content;
}

.slider-home{
    width: 100%;
    height: calc(100vh - 1px);
    position: fixed;
    top: 0;
    z-index: 0;

    & .slide{
        position: relative;

        &::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: linear-gradient(45deg, black, transparent);
            z-index: 5;
        }

        & img{
            width: 100%;
            object-fit: cover;
        }
    }

    & .slide__content {
        position: absolute;
        top: 0;
        left: 2rem;
        padding: 1rem;
        color: #fff;
        width: 800px;
        max-width: 100%;
        height: calc(90vh - 2rem);
        max-height: calc(100% - 2rem);
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        z-index: 10;

        & .more-link a{
            margin: 1rem 0 0;
        }
    }

    & .swiper-pagination-bullet {
      width: 20px;
      height: 20px;
      text-align: center;
      line-height: 20px;
      font-size: 12px;
      color: #000;
      opacity: 1;
      background: rgba(0, 0, 0, 0.2);
      color: #808080;
    }

    & .swiper-pagination-bullet-active {
      color: #fff;
      background: #007aff;
    }
}

.swiper-button-next, .swiper-button-prev {
    --swiper-navigation-size: 1.5rem;
    color: #969696;
}

.autoplay-progress {
    --swiper-theme-color: #fff;
    opacity: 0.5;
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 10;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--swiper-theme-color);
}

.autoplay-progress svg {
    --progress: 0;
    position: absolute;
    left: 0;
    top: 0px;
    z-index: 10;
    width: 100%;
    height: 100%;
    stroke-width: 4px;
    stroke: var(--swiper-theme-color);
    fill: none;
    stroke-dashoffset: calc(125.6px * (1 - var(--progress)));
    stroke-dasharray: 125.6;
    transform: rotate(-90deg);
}


.slide{
    
    &.swiper-slide-active img{
        transform: scale(1);
        animation: zoom 30s ease infinite alternate;
    }
}

@keyframes zoom {
    from{
        transform: scale(1);
    }
    to{
        transform: scale(1.2);
    }
}

@media screen and (max-width: 1023px) {
    .slider-home {
        height: fit-content;
        position: relative;
        & .slide__content {
            position: relative;
            color: #000000;
            bottom: auto;
            left: auto;
            height: auto;
            & .more-link a{
                margin: 0 0 1rem;
            }
        }
        & .slide{
            &::before{
                display: none;
            }
        }
    }

    .autoplay-progress {
        top: 4px;
        right: auto;
        left: 4px;
        bottom: auto;
    }
}