.uniq-posts-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* 썸네일 정사각형 */
.uniq-post-item img,
.uniq-posts-wrap img {
    width: 100%; /* 부모 컨테이너 폭에 맞춤 */
    aspect-ratio: 1 / 1; /* 가로:세로 1:1 */
    object-fit: cover; /* 이미지 비율 유지하면서 꽉 채우기 */
    display: block;
}

.uniq-post-item h3 {
    font-size: 20px;
    margin: 10px 0 0;
    text-align: center;
    font-weight: bold;
}

.uniq-load-more {
    display: block;
    margin: 30px auto;
    padding: 10px 20px;
    background: #222;
    color: #fff;
    border: none;
    cursor: pointer;
}

.uniq-latest6-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* 기본: PC (3개씩) */
.uniq-posts-wrap,
.uniq-latest6-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* 태블릿 (768px ~ 1023px) → 2개 */
@media (max-width: 1523px) {
    .uniq-posts-wrap,
    .uniq-latest6-wrap {
        grid-template-columns: repeat(2, 1fr);
    }

    /*.elementor-13 .elementor-element.elementor-element-495c13f4 {*/
    /*    padding-left: 70px !important;*/
    /*}*/
}

.uniq-slider .uniq-post-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.uniq-slider .swiper-slide {
    padding: 10px;
}

.swiper-container {
    overflow: hidden;
}

.swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
    padding: 10px;
    box-sizing: border-box;
    text-align: left;
}

.img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1; /* 정사각형 유지 */
    overflow: hidden;
    border-radius: 5px;
}

.img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 이미지 비율 유지하며 꽉 채움 */
    transition: transform 0.3s ease;
}

.swiper-slide:hover .img-wrap img {
    transform: scale(1.1); /* 마우스 오버 시 확대 */
}

.slide-text h3 {
    margin: 15px 0 5px 0 !important;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}

.slide-text p {
    margin: 0;
    font-size: 16px;
    color: #555;
}

.swiper-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 10px;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    content: none !important; /* Swiper 기본 내비게이션 아이콘 숨기기 */
}

.swiper-button-next .swiper-navigation-icon,
.swiper-button-prev .swiper-navigation-icon {
    display: none !important;
}

.swiper-button-prev img,
.swiper-button-next img {
    width: 35px;
    height: 35px;
    cursor: pointer;
}

.swiper-button-prev,
.swiper-button-next {
    width: auto !important;
    height: auto !important;
    color: #000 !important;
    position: static !important;
    transform: none !important;
    font-size: 24px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #ddd !important;
    border-radius: 50px !important;
    padding: 10px !important;
    margin: 5px; !important
    transition: background-color 0.3s ease !important;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: #f8f8f8;
}

.swiper-progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    margin-left: 10px;
    margin-right: 10px;
    border-radius: 2px;
    overflow: hidden;
}

.swiper-progress-bar-fill {
    width: 0%;
    height: 100%;
    background: #000;
    transition: width 0.3s;
}

.swiper-horizontal {
    .swiper-button-next,
    .swiper-button-prev,
    ~.swiper-button-next,
    ~.swiper-button-prev {
        position: relative;
        margin-left: 0;
        margin-top: 0; /* 기존 계산식 제거 */
        top: var(--swiper-navigation-top-offset, 50%); /* 필요 시 그대로 유지 */
    }
}

/* 페이지네이션 전체 가운데 정렬 */
.uniq-pagination {
    text-align: center;
    margin-top: 80px;
}

/* 페이지 번호 버튼 */
.uniq-pagination a,
.uniq-pagination span {
    display: inline-block;
    margin: 0 5px; /* 숫자 사이 간격 */
    width: 36px; /* 너비 */
    height: 36px; /* 높이 */
    line-height: 36px; /* 글자 수직 중앙 정렬 */
    text-align: center; /* 글자 가로 중앙 정렬 */
    text-decoration: none;
    color: #333;
    border-radius: 50%; /* 동그라미 */
    transition: all 0.3s;
}

/* 활성화된 페이지 */
.uniq-pagination .current {
    background-color: #f8f8f8;
    color: #000;
}

/* 마우스 오버 효과 */
.uniq-pagination a:hover {
    background-color: #f0f0f0;
    color: #000;
}

/* 모바일 (최대 767px) → 1개 */
@media (max-width: 767px) {
    .uniq-posts-wrap,
    .uniq-latest6-wrap {
        grid-template-columns: 1fr;
    }

    .uniq-post-item img {
        height: 200px !important;
    }

    .slide-text h3 {
        margin: 15px 0 5px 0 !important;
        font-size: 16px;
        font-weight: 700;
        text-align: center;
    }
}
