.textbox_wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--spacing--small)*2);
    max-width: 1400px;
    margin: 0 auto;
    column-gap: 2rem;
    row-gap: 2rem;
}

.textbox_wrapper__box {
    max-width: 410px;
    width: 100%;
    height: 100%;
    padding-bottom: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    position: relative;
    justify-self: center;
}

a .textbox_wrapper__box::after {
    content: "\2192";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35px;
    height: 35px;
    border-bottom-right-radius: 0%;
    border-bottom-left-radius: 0%;
    border-top-right-radius: 0%;
    border-top-left-radius: 38%;
    background: rgb(229 229 229 / 50%);
    text-align: center;
    line-height: 37px;
    color: #b6b6b6;
}

.textbox_wrapper__box:hover img {
    transform: scale(1.03);
    transition: all 0.3s ease-in-out;
}

.textbox_wrapper__box__title {
    font-size: 22px;
    font-weight: bold;
}

.textbox_wrapper__box__title.center {
    text-align: center;
}

.textbox_wrapper__box img {
    width: 100%;
    max-height: 300px;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 0 transparent;
}

.textbox_wrapper__box .box__content {
    padding: 0 24px;
    margin-top: 1rem;
}

.textbox_wrapper a {
    color: black;
}

.textbox_wrapper a:hover {
    text-decoration: none;
}

.textbox_wrapper__box .box__content {

    color: black;
}



.textbox_wrapper .box__content h2 {
    font-size: 23px;
    font-weight: 600;
    margin-bottom: .5rem;
    hyphens: auto;
}

.textbox_wrapper .box__content p,
.textbox_wrapper p {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: .5rem;
    hyphens: auto;
}

.box__image {
    width: 100%;
    margin-bottom: 1rem;

    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    overflow: hidden;
    height: 300px;
}

.box__image img {
    transform: scale(.999);
}

.textbox_wrapper .swiper-slide {
    margin-bottom: 1rem;
}

.textbox_wrapper .swiper-pagination {
    position: relative !important;
    bottom: 0px !important;
    width: auto !important;
    display: flex;
    flex-wrap: wrap;
}

.textbox_wrapper .swiper-button-next,
.textbox_wrapper .swiper-button-prev {
    position: relative;

    width: 30px;
    height: 30px;
    margin-top: 0;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: #137ED0;
    border-radius: 50%;
}

.textbox_wrapper .swiper-button-next:after {
    position: relative;
    left: 2px;

}


.textbox_wrapper .swiper-navigation-controls {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.textbox_wrapper .swiper-button-next:after,
.textbox_wrapper .swiper-button-prev:after {
    font-size: 18px;
}

.swiper-slide .textbox_wrapper__box {
    max-width: 100%;
    margin-bottom: 1rem;
}

ul.case_history__list {
    display: flex;
    margin: 0;
    padding: 0;

    flex-wrap: wrap;
    gap: 5px
}

.textbox_wrapper__box.case_history {
    max-width: 100%;

}

.textbox_wrapper__box.case_history .box__content {
    padding: 0 14px;
}

li.case_history__list__item {
    display: flex;
    flex-direction: column;
    background: aliceblue;
    padding: 10px;
    border-radius: 10px;
    flex: 1;
}

span.case_history__list__item__date {
    font-weight: 900;
    font-size: 1.2rem;
    line-height: 1;
    margin-bottom: 5px;
}

span.case_history__list__item__description {
    line-height: 1;
    font-size: 13px;
}

.textbox_wrapper.dark .textbox_wrapper__box {
    background-color: black;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;

}

.textbox_wrapper.dark .textbox_wrapper__box .box__content {
    color: rgb(255, 255, 255);
}

.textbox_wrapper.dark .textbox_wrapper__box .box__content {
    color: rgb(255, 255, 255);
    margin-top: 210px;
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, .85) 15%);
    padding-top: 2rem;
    padding-bottom: .5rem;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.textbox_wrapper.dark .box__image {
    max-height: 100%;
    position: absolute;
    z-index: 0;
    height: 100%;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.textbox_wrapper.dark li.case_history__list__item {
    background: rgb(255 255 255 / 20%);
    color: white
}

.textbox_wrapper.dark .textbox_wrapper__box img {
    width: 100%;
    max-height: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 0 transparent;
}

@media screen and (max-width: 1024px) {
    .textbox_wrapper {

        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
    }
}

@media screen and (max-width: 768px) {
    .textbox_wrapper {

        grid-template-columns: repeat(1, 1fr);

    }
}

/* ── Skeleton loader ── */
@keyframes skeleton-shimmer {
    0% {
        background-position: -600px 0;
    }

    100% {
        background-position: 600px 0;
    }
}

.textbox_wrapper--skeleton {
    display: flex;
    gap: 20px;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

.textbox_wrapper--skeleton__item {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, .08);
    background: #fff;
}

.skeleton-image,
.skeleton-line {
    background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
    background-size: 600px 100%;
    animation: skeleton-shimmer 1.4s infinite linear;
    border-radius: 6px;
}

.skeleton-image {
    width: 100%;
    height: 230px;
    border-radius: 0;
}

.skeleton-body {
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skeleton-line {
    height: 14px;
    width: 100%;
}

.skeleton-line--title {
    height: 20px;
    width: 70%;
}

.skeleton-line--short {
    width: 50%;
}

.textbox_wrapper--carousel {
    display: none;
}