/* Adaptive previews for the live template. Loaded after style.min.css. */

.sort .sort-meta-fields {
    display: none !important;
}

/* Full-story sidebar: "В тренде" */
.girls-sidebar-item ul li a {
    gap: 12px;
    min-width: 0;
}

.girls-sidebar-item ul li a > div {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    min-width: 0;
}

.girls-sidebar-item ul li img {
    display: block !important;
    width: clamp(60px, 4.5vw, 72px) !important;
    min-width: clamp(60px, 4.5vw, 72px);
    max-width: none !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: cover !important;
    object-position: center top !important;
    border-radius: 50%;
    margin-right: clamp(10px, 1vw, 15px);
    flex: 0 0 clamp(60px, 4.5vw, 72px);
}

/* Main-page publication cards */
.card-link-wrapper,
.card-link-wrapper:hover,
.items {
    width: 100%;
    height: 100%;
}

.items .items-image {
    width: 100%;
    aspect-ratio: 3 / 4;
}

.items .items-image > img {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
}

/* Full story: equal adaptive cards in the "Другие сливы" section. */
.fullstory-related-grid > .fullstory-related-col {
    display: flex;
}

.fullstory-related-card {
    width: 100%;
    height: 100%;
    background: var(--dark-bg-primary);
}

.fullstory-related-media {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: var(--dark-bg-primary);
}

.fullstory-related-image {
    display: block;
    width: 100%;
    height: 100%;
}

.fullstory-related-image img {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
}

/* Main-page category cards */
.cat-card {
    width: 100%;
    aspect-ratio: 420 / 248;
    background: var(--dark-bg-secondary);
}

.cat-card a {
    width: 100%;
    height: 100%;
}

.cat-card img {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
}

/* Random circular previews in full stories; no carousel JavaScript required. */
.related-random-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 122px;
    padding: 2px;
    overflow: visible;
}

.related-random-card {
    display: block;
    flex: 1 1 100px;
    min-width: 100px;
    max-width: 122px;
    width: 122px;
    height: auto;
    aspect-ratio: 1;
    border: 4px solid #303036;
    border-radius: 50%;
    background: #202024;
    overflow: hidden;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.related-random-card:hover,
.related-random-card:focus-visible {
    border-color: var(--link-primary);
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(244, 110, 143, .22);
}

.related-random-card img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center top !important;
}

@media (max-width: 576px) {
    .related-random-list {
        gap: 10px;
        min-height: 94px;
    }

    .related-random-card {
        flex-basis: 82px;
        min-width: 82px;
        max-width: 94px;
        width: 94px;
    }
}

/* Guest notice instead of an unavailable comment form */
.comment-login-notice {
    padding: clamp(16px, 2vw, 24px);
    border: 2px solid var(--link-primary);
    border-radius: 7px;
    background: var(--dark-bg-primary);
}

.comment-login-notice h2 {
    margin: 0 0 6px;
    font-size: 1.25rem;
    font-weight: 700;
}

.comment-login-notice p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
}

.comment-login-notice a {
    font-weight: 600;
}

.auto-story-intro {
    margin: 0 0 10px;
    color: var(--link-primary);
    font-size: clamp(16px, 1.4vw, 19px);
    font-weight: 700;
    line-height: 1.4;
}

/* DLE prints multiple category links without separators. */
.story-categories .cat-link + .cat-link::before {
    content: ", ";
    color: var(--text-color);
}

@media (max-width: 575.98px) {
    .girls-sidebar-item ul li img {
        width: 60px !important;
        min-width: 60px;
        flex-basis: 60px;
    }

    .cat-card {
        aspect-ratio: 16 / 9;
    }
}
