/**
 * StoriesWP - Circles (Preview no front-end)
 */

.storieswp-circles-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.storieswp-circles-container::-webkit-scrollbar {
    display: none;
}

/* === Circle Item === */
.storieswp-circles-container .storieswp-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    flex-shrink: 0;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.storieswp-circles-container .storieswp-circle-item:hover .storieswp-circle-ring {
    transform: scale(1.05);
}

.storieswp-circles-container .storieswp-circle-item:active .storieswp-circle-ring {
    transform: scale(0.95);
}

/* === Circle Ring (Gradient Border) === */
.storieswp-circles-container .storieswp-circle-ring {
    border-radius: 50% !important;
    padding: 3px;
    transition: transform 0.2s ease;
    position: relative;
    overflow: hidden;
}

.storieswp-circles-container .storieswp-circle-inner {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1;
    border-radius: 50% !important;
    overflow: hidden !important;
    background: #fff;
    padding: 2px;
    position: relative;
}

.storieswp-circles-container .storieswp-circle-inner img {
    position: absolute !important;
    top: 2px !important;
    left: 2px !important;
    right: 2px !important;
    bottom: 2px !important;
    width: calc(100% - 4px) !important;
    height: calc(100% - 4px) !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.storieswp-circles-container .storieswp-circle-inner .storieswp-circle-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0e0e0, #bdbdbd);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

/* === Viewed state (gray border) === */
.storieswp-circles-container .storieswp-circle-item.is-viewed .storieswp-circle-ring {
    background: #dbdbdb !important;
}

/* === Circle Label === */
.storieswp-circles-container .storieswp-circle-label {
    font-size: 11px;
    color: #262626;
    text-align: center;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 400;
    line-height: 1.2;
}

/* === Sizes === */

/* Small */
.storieswp-size-small .storieswp-circle-ring {
    width: 60px;
    height: 60px;
}

.storieswp-size-small .storieswp-circle-label {
    font-size: 10px;
    max-width: 60px;
}

/* Medium (default) */
.storieswp-size-medium .storieswp-circle-ring {
    width: 80px;
    height: 80px;
}

.storieswp-size-medium .storieswp-circle-label {
    font-size: 11px;
    max-width: 80px;
}

/* Large */
.storieswp-size-large .storieswp-circle-ring {
    width: 100px;
    height: 100px;
}

.storieswp-size-large .storieswp-circle-label {
    font-size: 12px;
    max-width: 100px;
}

/* === Responsive === */

@media (max-width: 1023px) {
    .storieswp-size-large .storieswp-circle-ring {
        width: 85px;
        height: 85px;
    }
}

@media (max-width: 767px) {
    .storieswp-circles-container {
        gap: 12px;
        padding: 8px 0;
    }

    .storieswp-size-medium .storieswp-circle-ring,
    .storieswp-size-large .storieswp-circle-ring {
        width: 66px;
        height: 66px;
    }

    .storieswp-size-small .storieswp-circle-ring {
        width: 54px;
        height: 54px;
    }

    .storieswp-circles-container .storieswp-circle-label {
        font-size: 10px !important;
        max-width: 66px !important;
    }
}
