@charset "utf-8";

.flxbt {
    display: flex;
    justify-content: space-between;
    width: auto;
    /* 원본 크기 유지 */
    height: auto;
    /* 원본 크기 유지 */
    max-width: 100%;
    /* 컨테이너를 넘지 않도록 제한 */
    max-height: 100%;
    gap: 180px;
}

.lat_title .colyellow {
    display: block;
    margin: 3rem 0;
}



.lt_img {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    overflow: hidden;
}

.lt_img img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}


.events__left {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.events__name>span {
    color: #615C5C;
}

.events__tools {
    display: flex;
    align-items: center;
}

.events__tools .swiper-button-prev,
.events__tools .swiper-button-next {
    position: static;
    display: flex;
    width: clamp(30px, 4.125vw, 60px);
    ;
    height: clamp(30px, 4.125vw, 60px);
    ;
    margin-top: 0;
    border-radius: 50%;
    background-image: url('../../../img/ic_swiper_arrow_left.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-color: #008EE5;
    background-size: 20%;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25);
}

.swiper-button-prev.mr15 {
    margin-right: 10px;
}

.events__tools .swiper-button-next {
    background-image: url('../../../img/ic_swiper_arrow_right.svg');
}

.events__tools .swiper-button-prev.swiper-button-disabled,
.events__tools .swiper-button-next.swiper-button-disabled {
    background-color: #E5EEF0;
    /* 비활성화된 버튼 색상 변경 */
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('../../../img/ic_swiper_arrow_left_off.svg');
    opacity: 0.5;
    pointer-events: none;
    box-shadow: none;
}

.events__tools .swiper-button-next.swiper-button-disabled {
    background-image: url('../../../img/ic_swiper_arrow_right_off.svg');
}

.swiper--events {
    position: absolute;
    top: 0;
    right: 0;
    width: calc(100% - clamp(300px, 5vw, 480px));
    height: 100%;
    padding-left: 30px;
    max-width: 1200px;
    overflow: visible;
    /* y축 이동을 가능하게 유지 */
    clip-path: inset(0 0 0 0);
    /* x축을 벗어나는 부분만 숨김 */
}

.swiper--events .swiper-wrapper {
    overflow: visible !important;
    /* 내부 요소가 가려지지 않도록 설정 */
    height: auto;
}

.swiper--events .swiper-wrapper .swiper-slide {
    height: auto;
    min-height: 100%;
}

.events__item {
    position: relative;
    border-radius: 30px;
    box-shadow: 14px 24px 14px 0px rgba(0, 0, 0, 0.10);
    /* overflow: hidden; */
}

.events__item__date {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    gap: 4px;
    aspect-ratio: 1;
    top: -25px;
    left: -25px;
    border-radius: 500px;
    background-color: #009F40;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

.swiper--events .swiper-slide:nth-child(even) .events__item__date {
    background-color: #008EE5;
}

.events__item__container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.center__line {
    height: clamp(50px, 7.8vw, 150px);
    width: 1px;
    background: rgba(0, 0, 0, 0.20);
}

.swiper--events .swiper-slide:nth-child(even) .center__line {
    height: clamp(80px, calc(7.8vw + 30px), 180px);
}

@media screen and (max-width:1050px) {
    .events__left {
        white-space: nowrap;
    }

    .lat_title a {
        display: flex;
        gap: 2rem;
        align-items: center;
        flex-wrap: wrap;
    }

    .events__tools {
        position: static;
        margin: 2rem 0;
    }

    .events__tools .swiper-button-prev,
    .events__tools .swiper-button-next {
        width: 40px;
        height: 40px;
    }
}

@media screen and (max-width:700px) {
  .events__left {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
  }
  .swiper--events {
    position: relative;
    width: 100%;
    max-width: none;
    margin-top: clamp(-150px, -7.8vw, -50px);
    padding-bottom: 30px;
  }
  .flxbt{
    flex-direction: column-reverse;
    gap: 30px;
  }

}

@media screen and (max-width: 576px) {
    .lat_title .colyellow {
        margin: 0;
    }
}

@media screen and (max-width: 450px) {
  .events__left {
    width: 100%;
    flex-direction: column;
    gap: 30px;
  }
}
