/* Chunara Image Slider */
.ch-isl-wrapper {
    position: relative;
    width: 100%;
    line-height: 0;
}

.ch-isl-wrapper .splide,
.ch-isl-wrapper .splide__track,
.ch-isl-wrapper .splide__list,
.ch-isl-wrapper .splide__slide {
    height: 100%;
}

.ch-isl-slide {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.ch-isl-slide a,
.ch-isl-slide a > * {
    display: block;
    width: 100%;
    height: 100%;
}

.ch-isl-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* Caption */
.ch-isl-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    text-align: center;
    line-height: 1.4;
    z-index: 3;
}

/* Logo band */
.ch-isl-logo-band {
    position: absolute;
    left: 0;
    right: 0;
    height: 90px;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    z-index: 4;
    pointer-events: none;
}

.ch-isl-logo-band.ch-isl-pos-top-left,
.ch-isl-logo-band.ch-isl-pos-top-right {
    top: 0;
}

.ch-isl-logo-band.ch-isl-pos-bottom-left,
.ch-isl-logo-band.ch-isl-pos-bottom-right,
.ch-isl-logo-band.ch-isl-pos-bottom-center {
    bottom: 0;
}

.ch-isl-logo-band.ch-isl-pos-top-right,
.ch-isl-logo-band.ch-isl-pos-bottom-right {
    justify-content: flex-end;
}

.ch-isl-logo-band.ch-isl-pos-bottom-center {
    justify-content: center;
}

.ch-isl-logo {
    padding: 10px 24px;
    line-height: 1;
    pointer-events: auto;
}

.ch-isl-logo img {
    max-height: 60px;
    width: auto;
    display: block;
}

/* Watermark */
.ch-isl-watermark {
    position: absolute;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1;
    z-index: 5;
    pointer-events: none;
    letter-spacing: 0.02em;
}

.ch-isl-watermark.ch-isl-pos-top-left    { top: 0;    left: 0; }
.ch-isl-watermark.ch-isl-pos-top-right   { top: 0;    right: 0; }
.ch-isl-watermark.ch-isl-pos-bottom-left { bottom: 0; left: 0; }
.ch-isl-watermark.ch-isl-pos-bottom-right{ bottom: 0; right: 0; }

.ch-isl-watermark img {
    max-height: 40px;
    width: auto;
    display: block;
}

/* Dots overlay mode */
.ch-isl-wrapper.ch-isl-dots-overlay .splide__pagination {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    z-index: 6;
}

/* Pagination container — reset any theme <ul> styles that leak in. */
.ch-isl-wrapper .splide__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0 0;
    margin: 0;
    list-style: none;
    line-height: 1;
}

.ch-isl-wrapper .splide__pagination li {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
    line-height: 0;
}

/* Dot styling — fully self-sufficient. Every rule below is what a raw <button>
   would otherwise render as a rectangle if Splide's CSS didn't load. */
.ch-isl-wrapper .splide__pagination__page {
    display: inline-block;
    box-sizing: content-box;
    width: 10px;
    height: 10px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: #cccccc;
    opacity: 1;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    transition: transform 0.2s ease, background 0.2s ease;
}

.ch-isl-wrapper .splide__pagination__page:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(164, 38, 44, 0.35);
}

.ch-isl-wrapper .splide__pagination__page.is-active {
    background: #a4262c;
    transform: scale(1.2);
}

/* Arrows */
.ch-isl-wrapper .splide__arrow {
    background: rgba(0, 0, 0, 0.4);
    width: 40px;
    height: 40px;
    opacity: 1;
    transition: background 0.2s ease;
}

.ch-isl-wrapper .splide__arrow:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.65);
}

.ch-isl-wrapper .splide__arrow svg {
    fill: #ffffff;
    width: 16px;
    height: 16px;
}

.ch-isl-wrapper .splide__arrow--prev { left: 12px; }
.ch-isl-wrapper .splide__arrow--next { right: 12px; }

/* Empty state */
.ch-isl-empty {
    padding: 40px;
    text-align: center;
    background: #f5f5f5;
    color: #666;
    border: 1px dashed #ccc;
}
