body {
    background: var(--bs-gray-500);
}

.sm-page-wrapper {

    min-height: calc(100vh - 2rem);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.45);
}

.sm-main-nav {
    border-top: 3px solid #5b0810;
    border-bottom: 3px solid #5b0810;
    position: relative;
    z-index: 1030;
}

.sm-section-divider {
    border: 0;
    border-top: 2px solid #5b0810;
    margin: 1rem 0;
    opacity: 1;
}

@media print {
    body.sm-print-single-bdsm-chart > *:not(.sm-bdsm-chart-print-view) {
        display: none !important;
    }

    body.sm-print-single-bdsm-chart .sm-bdsm-chart-print-view {
        position: static;
        display: flex !important;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 95vh;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }

    body.sm-print-single-bdsm-chart .sm-bdsm-chart-print-view img {
        position: static;
        display: block;
        width: 370px;
        max-width: 100%;
        height: auto;
        max-height: 95vh;
        object-fit: contain;
    }
}

.sm-main-nav .dropdown-menu {
    z-index: 1031;
}

.sm-top-nav {
    position: relative;
    z-index: 1040;
}

.sm-top-nav-icons {
    display: inline-block;
}

.sm-language-switcher {
    display: inline-flex;
    align-items: center;
}

.sm-language-switcher {
    gap: 0.2rem;
}

.sm-language-switcher form {
    display: flex;
    margin: 0;
}

.sm-language-button {
    width: 30px;
    height: 30px;
    padding: 2px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    opacity: 0.55;
    transition: border-color 0.15s ease, opacity 0.15s ease;
}

.sm-language-button:hover,
.sm-language-button:focus-visible,
.sm-language-button.active {
    opacity: 1;
}

.sm-language-button.active {
    border-color: #5b0810;
}

.sm-language-button:focus-visible {
    outline: 2px solid #5b0810;
    outline-offset: 1px;
}

.sm-language-button img {
    display: block;
    width: 24px;
    height: 24px;
}

.sm-top-nav .dropdown-menu {
    z-index: 1041;
    --bs-dropdown-font-size: 0.8rem;
    --bs-dropdown-min-width: 9rem;
}

.sm-top-nav .dropdown-item {
    padding: 0.25rem 0.75rem;
}

.sm-account-menu {
    max-height: calc(100vh - 5rem);
    overflow-y: auto;
}

.sm-top-nav .red {
    color: #db4a37 !important;
}

.sm-top-nav-greeting {
    position: absolute;
    top: 50%;
    left: 0.5rem;
    max-width: 35%;
    color: #000;
    overflow: hidden;
    font-size: 0.875rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    transform: translateY(-50%);
}

.sm-top-nav-greeting a:hover,
.sm-top-nav-greeting a:focus {
    text-decoration: underline !important;
}

@media (max-width: 575.98px) {
    .sm-top-nav-content {
        position: relative;
        padding-top: 2.5rem;
    }

    .sm-top-nav-greeting {
        top: 0.45rem;
        max-width: calc(100% - 10.5rem);
        transform: none;
    }

    .sm-top-nav-icons {
        display: block;
        white-space: nowrap;
    }

    .sm-top-nav-premium {
        position: absolute;
        top: 0;
        right: 0;
    }
}

.sm-top-nav-badge {
    top: -4px !important;
    right: -3px !important;
    z-index: 2;
    padding: 0.15rem 0.3rem;
    font-size: 0.6rem;
    line-height: 1;
}

.sm-notification-menu {
    width: min(24rem, calc(100vw - 1rem));
    max-height: min(32rem, calc(100vh - 5rem));
    overflow-y: auto;
}

.sm-notification-menu .dropdown-item:hover,
.sm-notification-menu .dropdown-item:focus {
    color: #fff;
}

.sm-notification-menu .dropdown-item:hover .text-muted,
.sm-notification-menu .dropdown-item:focus .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.sm-chat-dialog-meta {
    font-size: 0.75rem;
}

.sm-page-wrapper:has(.sm-chat-dialog-card) {
    overflow: clip !important;
}

.sm-chat-dialog-header {
    position: sticky;
    top: 0;
    z-index: 1020;
}

.tooltip {
    --bs-tooltip-bg: #5b0810;
    --bs-tooltip-color: #fff;
}

.tooltip-inner {
    background-color: #5b0810;
    color: #fff;
}

.sm-nav-root-menu,
.sm-nav-submenu-menu {
    min-width: 17rem;
}

.sm-nav-submenu {
    position: relative;
}

.sm-nav-submenu-menu {
    position: static;
    margin: 0 0 0.25rem 1rem;
    border: 0;
    box-shadow: none;
}

.sm-nav-submenu-icon {
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.sm-nav-submenu > [data-sm-nav-submenu-toggle][aria-expanded="true"] .sm-nav-submenu-icon {
    transform: rotate(90deg);
}

.sm-site-logo {
    max-height: 80px;
    width: auto;
}

/* Footer definition */
.sm-site-footer {
    border-top: 4px solid #5b0810;
}

/* Slider definitions */
.sm-hero-img {
    height: 360px;
    object-fit: cover;
    filter: brightness(55%);
}

.sm-hero-caption {
    left: 8%;
    right: 8%;
    bottom: 3rem;
}

/* Qucklink definitions */
.sm-quicklink-card {
    min-height: 72px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sm-quicklink-card:hover {
    transform: translateY(-2px);
}

.sm-statistic-card {
    min-height: 82px;
}

.sm-statistic-value {
    font-size: 1.4rem;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
}

.sm-group-breadcrumb {
    --bs-breadcrumb-divider: '>';
}

.sm-group-detail-image {
    max-height: 380px;
}

.sm-group-detail-text {
    white-space: pre-line;
}

.sm-group-detail-meta {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
}

.sm-group-detail-meta > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0.75rem;
}

.sm-group-detail-meta > div + div {
    border-top: 1px solid var(--bs-border-color);
}

.sm-group-detail-meta dt {
    color: var(--bs-secondary-color);
    font-weight: 600;
}

.sm-group-detail-meta dd {
    margin: 0;
    text-align: end;
}

.sm-group-forum-topic-main {
    min-width: 0;
}

.sm-group-forum-topic-meta {
    min-width: 12rem;
}

.sm-group-forum-avatar {
    width: 42px;
    height: 42px;
}

.sm-group-forum-topic-icon {
    width: 42px;
    line-height: 42px;
    text-align: center;
}

.sm-group-forum-author {
    width: 110px;
}

.sm-group-forum-author-image {
    width: 110px;
    height: 130px;
    border-radius: 4px;
}

.sm-group-forum-unread {
    position: absolute;
    right: -4px;
    bottom: -4px;
    font-size: 0.8rem;
}

@media (max-width: 575.98px) {
    .sm-group-forum-author {
        width: 76px;
    }

    .sm-group-forum-author-image {
        width: 76px;
        height: 96px;
    }
}

.sm-group-gallery-preview img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.sm-group-gallery-comment-avatar {
    width: 38px;
    height: 38px;
}

.sm-group-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.sm-group-gallery-grid .sm-masonry-item {
    display: flex;
    margin: 0;
}

.sm-group-gallery-grid .sm-masonry-image {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.sm-group-gallery-grid .sm-masonry-link {
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.sm-group-gallery-grid .sm-masonry-link img {
    height: 100%;
    object-fit: cover;
}

.sm-group-gallery-grid .sm-gallery-like-btn,
.sm-group-gallery-grid .sm-gallery-like-count {
    min-height: 2rem;
}

@media (min-width: 576px) {
    .sm-group-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .sm-group-gallery-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}


/* General definitions */
.sm-max-w-720 {
    max-width: 720px;
}

.sm-box-href .sm-overlay {
    font-size: 11px;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.45s ease-in-out, visibility 0.45s ease-in-out;
    pointer-events: none;
}

.sm-box-href:hover .sm-overlay {
    opacity: 0;
    visibility: hidden;
}

.sm-box-image-frame {
    width: min(120px, 100%);
    aspect-ratio: 1 / 1;
}

.sm-box-image-frame-gallery {
    aspect-ratio: 4 / 3;
}

.sm-box-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

img.rounded-circle {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* Profile section */
.profile-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.10), transparent 35%),
        linear-gradient(145deg, #6f0d17 0%, #5b0810 50%, #43060c 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-hero-watermark {
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%) rotate(12deg);
    font-size: 5.5rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.10);
    pointer-events: none;
}

.profile-hero-content {
    position: relative;
    z-index: 1;
}

.profile-hero .badge {
    font-weight: 600;
}

.profile-admin-mark {
    width: 20px;
    height: 20px;
    font-size: 18px;
    line-height: 1;
}

.profile-admin-mark .bi::before {
    vertical-align: 0;
}


.profile-action-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
}

.profile-action-icons {
    min-height: 34px;
}

.sm-profile-tabs-viewport::before,
.sm-profile-tabs-viewport::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0.5rem;
    width: 1.75rem;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.15s ease-in-out;
}

.sm-profile-tabs-viewport::before {
    left: 0;
    background: linear-gradient(90deg, var(--bs-card-bg, #fff), rgba(255, 255, 255, 0));
}

.sm-profile-tabs-viewport.has-scroll-left::before {
    opacity: 1;
}

.sm-profile-tabs-viewport::after {
    right: 0;
    background: linear-gradient(270deg, var(--bs-card-bg, #fff), rgba(255, 255, 255, 0));
}

.sm-profile-tabs-viewport.has-scroll-right::after {
    opacity: 1;
}

.sm-profile-tabs-scroll {
    width: 2rem;
    height: 2rem;
    padding: 0;
    display: none !important;
}

@media (min-width: 768px) {
    .sm-profile-tabs-scroll.d-md-inline-flex {
        display: inline-flex !important;
    }
}

.sm-profile-tabs .nav-link {
    white-space: nowrap;
}

.sm-profile-info-tile {
    min-height: 105px;
}

.sm-profile-info-icon {
    min-width: 2.4rem;
}

.sm-profile-text-box {
    overflow: hidden;
}

.sm-profile-sidebar-picture img {
    object-fit: cover;
}

.sm-profile-action-icon {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sm-masonry {
    column-count: 1;
    column-gap: 1rem;
}

.sm-masonry.sm-masonry-cols {
    column-count: unset;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

.sm-masonry.sm-masonry-cols .sm-masonry-item {
    min-width: 0;
    margin-bottom: 0;
}

.sm-masonry-item {
    break-inside: avoid;
    margin-bottom: 1rem;
}

.sm-masonry-link img {
    display: block;
    transition: opacity 0.15s ease-in-out;
}

.sm-masonry-image {
    border: 1px solid #5b0810;
    border-radius: 0.375rem;
    overflow: hidden;
}

.sm-masonry-link:hover img {
    opacity: 0.92;
}

.sm-gallery-like-btn {
    color: var(--bs-secondary-color);
}

.sm-gallery-like-count,
.sm-gallery-comment-count {
    color: #5b0810;
}

.sm-gallery-like-btn.is-liked,
.sm-gallery-like-btn:hover,
.sm-gallery-like-btn:focus,
.sm-gallery-comment-btn:hover,
.sm-gallery-comment-btn:focus,
.sm-gallery-like-count:hover,
.sm-gallery-like-count:focus,
.sm-gallery-comment-count:hover,
.sm-gallery-comment-count:focus {
    color: #5b0810;
}

.sm-gallery-comment-btn {
    color: var(--bs-secondary-color);
}

.sm-gallery-comment-text {
    white-space: pre-line;
}

.sm-lexicon-alphabet .page-link {
    color: #5b0810;
    border-color: #5b0810;
}

.sm-lexicon-alphabet .page-link:hover,
.sm-lexicon-alphabet .page-link:focus {
    color: #fff;
    background-color: #5b0810;
    border-color: #5b0810;
}

.sm-lexicon-alphabet .active > .page-link,
.sm-lexicon-alphabet .page-link.active {
    color: #fff;
    background-color: #5b0810;
    border-color: #5b0810;
}

.sm-lexicon-entry-nav .list-group-item {
    color: #5b0810;
}

.sm-lexicon-entry-nav .list-group-item:hover,
.sm-lexicon-entry-nav .list-group-item:focus,
.sm-lexicon-entry-nav .list-group-item.active {
    color: #fff;
    background-color: #5b0810;
    border-color: #5b0810;
}

.magazine-teaser {
    font-size: 1rem;
    line-height: 1.55;
}

.magazine-content {
    font-size: 0.95rem;
    line-height: 1.6;
}

.magazine-content h2 {
    font-size: 1.2rem;
}

.magazine-content h3 {
    font-size: 1.1rem;
}

.magazine-content h4,
.magazine-content h5,
.magazine-content h6 {
    font-size: 1rem;
}

.sm-profile-gallery-modal-image {
    max-height: 75vh;
    object-fit: contain;
    background: #111;
}

.sm-profile-gallery-underlay {
    pointer-events: none;
}

.sm-profile-gallery-detail-modal {
    --bs-modal-zindex: 1075;
}

.sm-profile-gallery-detail-backdrop {
    --bs-backdrop-zindex: 1070;
}

.sm-public-gallery-stage {
    display: flex;
    min-height: 20rem;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bs-gray-200);
}

.sm-public-gallery-image-link {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.sm-public-gallery-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 75vh;
    object-fit: contain;
}

@media (max-width: 575.98px) {
    .sm-public-gallery-stage {
        min-height: 12rem;
    }
}

.sm-profile-picture-modal-image {
    max-height: 80vh;
    object-fit: contain;
}

@media (min-width: 576px) {
    .sm-masonry.sm-masonry-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .sm-masonry.sm-masonry-cols {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .group-members-grid-item {
        flex: 0 0 12.5%;
        max-width: 12.5%;
    }

    .sm-nav-submenu-menu {
        position: absolute;
        top: -0.5rem;
        left: 100%;
        margin: 0;
        border: var(--bs-dropdown-border-width) solid var(--bs-dropdown-border-color);
        box-shadow: var(--bs-dropdown-box-shadow);
    }

    .sm-nav-submenu > [data-sm-nav-submenu-toggle][aria-expanded="true"] .sm-nav-submenu-icon {
        transform: none;
    }

    .sm-nav-submenu:hover > .sm-nav-submenu-menu {
        display: block;
    }

}

/* Bootstrap Overrides */
.btn-xs {
    padding: 0 0.2rem;
    font-size: 0.8rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

.btn-danger {
    --bs-btn-bg: #5b0810;
    --bs-btn-border-color: #5b0810;

    --bs-btn-hover-bg: #750b16;
    --bs-btn-hover-border-color: #750b16;

    --bs-btn-active-bg: #750b16;
    --bs-btn-active-border-color: #750b16;

    --bs-btn-disabled-bg: #5b0810;
    --bs-btn-disabled-border-color: #5b0810;

    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
}

.bg-danger {
    background-color: #5b0810 !important;
    color: #fff !important;
}

.btn-outline-danger {
    --bs-btn-color: #5b0810;
    --bs-btn-border-color: #5b0810;

    --bs-btn-hover-bg: #5b0810;
    --bs-btn-hover-border-color: #5b0810;
    --bs-btn-hover-color: #fff;

    --bs-btn-active-bg: #5b0810;
    --bs-btn-active-border-color: #5b0810;
    --bs-btn-active-color: #fff;

    --bs-btn-disabled-color: #5b0810;
    --bs-btn-disabled-border-color: #5b0810;
}

.sm-shop-favorite-active {
    --bs-btn-hover-bg: #5b0810;
    --bs-btn-hover-border-color: #5b0810;
    --bs-btn-active-bg: #5b0810;
    --bs-btn-active-border-color: #5b0810;
}

.form-check-input:checked {
    background-color: #5b0810;
    border-color: #5b0810;
}

.form-check-input[type="radio"]:checked {
    background-color: #5b0810;
    border-color: #5b0810;
}

.form-check-input:focus {
    border-color: #5b0810;
    box-shadow: 0 0 0 0.25rem rgba(91, 8, 16, 0.25);
}

.form-check-input:checked:focus {
    background-color: #5b0810;
    border-color: #5b0810;
}

.form-check-input[type="radio"]:checked:focus {
    background-color: #5b0810;
    border-color: #5b0810;
}

.nav-tabs .nav-link {
    color: #5b0810;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
    color: #5b0810;
    border-color: rgba(91, 8, 16, 0.35);
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    color: #fff;
    background-color: #5b0810;
    border-color: #5b0810;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active {
    background-color: #5b0810;
    color: #fff;
}

.red,
.text-danger {
    color: #5b0810 !important;
}

.bg-danger,
.text-bg-danger {
    background-color: #5b0810 !important;
    color: #fff !important;
}

.timeline-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
    margin-right: auto;
    margin-left: auto;
}

.timeline-entry-media {
    display: flex;
    justify-content: center;
    width: 100%;
}

.timeline-entry-media .timeline-event-picture {
    max-width: 320px;
}

.timeline-gallery-grid-item {
    display: block;
    overflow: hidden;
    border: 2px solid #5b0810;
    background-color: #fff;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.12);
    aspect-ratio: 1 / 1;
}

.timeline-gallery-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 160ms ease;
}

.timeline-gallery-grid-item:hover img,
.timeline-gallery-grid-item:focus-visible img {
    transform: scale(1.035);
}

.timeline-gallery-grid--1 {
    grid-template-columns: minmax(0, 320px);
    max-width: 320px;
}

.timeline-gallery-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 240px));
    max-width: 480px;
}

@media (max-width: 767.98px) {
    main:has([data-timeline-page]) {
        padding: 0.5rem !important;
    }

    .sm-timeline-feed-body {
        padding: 0.75rem;
    }

    .sm-timeline-entry {
        min-width: 0;
    }

    .sm-timeline-mobile-heading,
    .sm-timeline-mobile-heading > div,
    .sm-timeline-following-nick {
        min-width: 0;
    }

    .sm-timeline-mobile-heading {
        overflow-wrap: anywhere;
    }

    .sm-timeline-menu-toggle {
        display: grid;
        place-items: center;
        width: 36px;
        height: 40px;
        padding: 0;
    }

    .sm-timeline-followings {
        flex-direction: column;
        flex-wrap: nowrap !important;
    }

    .sm-timeline-followings > a {
        min-height: 40px;
        min-width: 0;
    }

    .sm-timeline-followings img {
        flex-shrink: 0;
        margin-right: 0.25rem;
    }

    .sm-timeline-following-nick {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sm-timeline-actions {
        border-top: 0 !important;
        flex-wrap: wrap;
        row-gap: 0.25rem !important;
    }

    .sm-timeline-actions .btn {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
    }

    .sm-timeline-actions .sm-timeline-like-label > span {
        display: none;
    }

    .sm-timeline-entry .timeline-entry-media > img {
        max-width: 100% !important;
        max-height: 320px !important;
        width: auto !important;
        height: auto;
        object-fit: contain !important;
    }
}

@media (min-width: 768px) {
    .sm-main {
        padding: 1.5rem;
    }

    .sm-site-footer {
        padding: 2.5rem 1.5rem 1.25rem;
    }

    .sm-hero-img {
        height: 300px;
    }

    .sm-hero-caption {
        left: 1rem;
        right: 1rem;
        bottom: 2rem;
    }

    .sm-hero-caption h1,
    .sm-hero-caption h2 {
        font-size: 1.35rem;
    }

    .sm-hero-caption p {
        font-size: 0.9rem;
    }

    .sm-profile-tabs {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .sm-profile-tabs::-webkit-scrollbar {
        display: none;
    }

    .sm-profile-info-tile {
        min-height: 92px;
    }

    .timeline-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .timeline-gallery-grid--1 {
        grid-template-columns: minmax(0, 320px);
    }

    .timeline-gallery-grid--2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 520px;
    }

    .timeline-gallery-grid--3,
    .timeline-gallery-grid--4,
    .timeline-gallery-grid--5,
    .timeline-gallery-grid--6,
    .timeline-gallery-grid--7,
    .timeline-gallery-grid--8,
    .timeline-gallery-grid--9,
    .timeline-gallery-grid--10 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-rows: 132px;
    }

    .timeline-gallery-grid--3 .timeline-gallery-grid-item,
    .timeline-gallery-grid--4 .timeline-gallery-grid-item,
    .timeline-gallery-grid--5 .timeline-gallery-grid-item,
    .timeline-gallery-grid--6 .timeline-gallery-grid-item,
    .timeline-gallery-grid--7 .timeline-gallery-grid-item,
    .timeline-gallery-grid--8 .timeline-gallery-grid-item,
    .timeline-gallery-grid--9 .timeline-gallery-grid-item,
    .timeline-gallery-grid--10 .timeline-gallery-grid-item {
        aspect-ratio: auto;
    }

    .timeline-gallery-grid--3 {
        grid-template-areas:
            "main main picture-2 picture-3"
            "main main picture-2 picture-3";
    }

    .timeline-gallery-grid--4 {
        grid-template-areas:
            "main main picture-2 picture-3"
            "main main picture-4 picture-4";
    }

    .timeline-gallery-grid--5 {
        grid-template-areas:
            "main main picture-2 picture-3"
            "main main picture-4 picture-5";
    }

    .timeline-gallery-grid--6 {
        grid-template-areas:
            "main main picture-2 picture-3"
            "main main picture-4 picture-5"
            "picture-6 picture-6 picture-6 picture-6";
    }

    .timeline-gallery-grid--7 {
        grid-template-areas:
            "main main picture-2 picture-3"
            "main main picture-4 picture-5"
            "picture-6 picture-6 picture-7 picture-7";
    }

    .timeline-gallery-grid--8 {
        grid-template-areas:
            "main main picture-2 picture-3"
            "main main picture-4 picture-5"
            "picture-6 picture-6 picture-7 picture-8";
    }

    .timeline-gallery-grid--9 {
        grid-template-areas:
            "main main picture-2 picture-3"
            "main main picture-4 picture-5"
            "picture-6 picture-7 picture-8 picture-9";
    }

    .timeline-gallery-grid--10 {
        grid-template-areas:
            "main main picture-2 picture-3"
            "main main picture-4 picture-5"
            "picture-6 picture-7 picture-8 picture-9"
            "picture-10 picture-10 picture-10 picture-10";
    }

    .timeline-gallery-grid--3 .timeline-gallery-grid-item:nth-child(1),
    .timeline-gallery-grid--4 .timeline-gallery-grid-item:nth-child(1),
    .timeline-gallery-grid--5 .timeline-gallery-grid-item:nth-child(1),
    .timeline-gallery-grid--6 .timeline-gallery-grid-item:nth-child(1),
    .timeline-gallery-grid--7 .timeline-gallery-grid-item:nth-child(1),
    .timeline-gallery-grid--8 .timeline-gallery-grid-item:nth-child(1),
    .timeline-gallery-grid--9 .timeline-gallery-grid-item:nth-child(1),
    .timeline-gallery-grid--10 .timeline-gallery-grid-item:nth-child(1) {
        grid-area: main;
    }

    .timeline-gallery-grid--3 .timeline-gallery-grid-item:nth-child(2),
    .timeline-gallery-grid--4 .timeline-gallery-grid-item:nth-child(2),
    .timeline-gallery-grid--5 .timeline-gallery-grid-item:nth-child(2),
    .timeline-gallery-grid--6 .timeline-gallery-grid-item:nth-child(2),
    .timeline-gallery-grid--7 .timeline-gallery-grid-item:nth-child(2),
    .timeline-gallery-grid--8 .timeline-gallery-grid-item:nth-child(2),
    .timeline-gallery-grid--9 .timeline-gallery-grid-item:nth-child(2),
    .timeline-gallery-grid--10 .timeline-gallery-grid-item:nth-child(2) {
        grid-area: picture-2;
    }

    .timeline-gallery-grid--3 .timeline-gallery-grid-item:nth-child(3),
    .timeline-gallery-grid--4 .timeline-gallery-grid-item:nth-child(3),
    .timeline-gallery-grid--5 .timeline-gallery-grid-item:nth-child(3),
    .timeline-gallery-grid--6 .timeline-gallery-grid-item:nth-child(3),
    .timeline-gallery-grid--7 .timeline-gallery-grid-item:nth-child(3),
    .timeline-gallery-grid--8 .timeline-gallery-grid-item:nth-child(3),
    .timeline-gallery-grid--9 .timeline-gallery-grid-item:nth-child(3),
    .timeline-gallery-grid--10 .timeline-gallery-grid-item:nth-child(3) {
        grid-area: picture-3;
    }

    .timeline-gallery-grid--4 .timeline-gallery-grid-item:nth-child(4),
    .timeline-gallery-grid--5 .timeline-gallery-grid-item:nth-child(4),
    .timeline-gallery-grid--6 .timeline-gallery-grid-item:nth-child(4),
    .timeline-gallery-grid--7 .timeline-gallery-grid-item:nth-child(4),
    .timeline-gallery-grid--8 .timeline-gallery-grid-item:nth-child(4),
    .timeline-gallery-grid--9 .timeline-gallery-grid-item:nth-child(4),
    .timeline-gallery-grid--10 .timeline-gallery-grid-item:nth-child(4) {
        grid-area: picture-4;
    }

    .timeline-gallery-grid--5 .timeline-gallery-grid-item:nth-child(5),
    .timeline-gallery-grid--6 .timeline-gallery-grid-item:nth-child(5),
    .timeline-gallery-grid--7 .timeline-gallery-grid-item:nth-child(5),
    .timeline-gallery-grid--8 .timeline-gallery-grid-item:nth-child(5),
    .timeline-gallery-grid--9 .timeline-gallery-grid-item:nth-child(5),
    .timeline-gallery-grid--10 .timeline-gallery-grid-item:nth-child(5) {
        grid-area: picture-5;
    }

    .timeline-gallery-grid--6 .timeline-gallery-grid-item:nth-child(6),
    .timeline-gallery-grid--7 .timeline-gallery-grid-item:nth-child(6),
    .timeline-gallery-grid--8 .timeline-gallery-grid-item:nth-child(6),
    .timeline-gallery-grid--9 .timeline-gallery-grid-item:nth-child(6),
    .timeline-gallery-grid--10 .timeline-gallery-grid-item:nth-child(6) {
        grid-area: picture-6;
    }

    .timeline-gallery-grid--7 .timeline-gallery-grid-item:nth-child(7),
    .timeline-gallery-grid--8 .timeline-gallery-grid-item:nth-child(7),
    .timeline-gallery-grid--9 .timeline-gallery-grid-item:nth-child(7),
    .timeline-gallery-grid--10 .timeline-gallery-grid-item:nth-child(7) {
        grid-area: picture-7;
    }

    .timeline-gallery-grid--8 .timeline-gallery-grid-item:nth-child(8),
    .timeline-gallery-grid--9 .timeline-gallery-grid-item:nth-child(8),
    .timeline-gallery-grid--10 .timeline-gallery-grid-item:nth-child(8) {
        grid-area: picture-8;
    }

    .timeline-gallery-grid--9 .timeline-gallery-grid-item:nth-child(9),
    .timeline-gallery-grid--10 .timeline-gallery-grid-item:nth-child(9) {
        grid-area: picture-9;
    }

    .timeline-gallery-grid--10 .timeline-gallery-grid-item:nth-child(10) {
        grid-area: picture-10;
    }
}

@media (max-width: 576px) {
    .sm-site-logo {
        max-height: 85px;
    }

    .sm-quicklink-card {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 0.5rem;
        min-height: 96px;
        padding: 0.9rem 0.5rem;
    }

    .sm-quicklink-card i {
        font-size: 1.75rem;
    }

    .sm-quicklink-card span {
        font-size: 0.85rem;
    }
}

.sm-my-group-image {
    width: 64px;
    height: 64px;
}

.form-floating > .form-control.sm-group-manage-description {
    height: 18rem;
}

.form-floating > .form-control.sm-group-manage-textarea {
    height: 15rem;
}

.sm-shop-list-image {
    width: 160px;
}

.matching-candidate-layout {
    min-height: 25rem;
}

.matching-candidate-media {
    min-height: 25rem;
    background: #1d1d1d;
}

.matching-candidate-picture {
    width: 100%;
    height: 100%;
    min-height: 25rem;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.matching-candidate-content {
    display: flex;
    height: 100%;
    flex-direction: column;
    padding: 1.5rem;
}

.matching-candidate-about {
    line-height: 1.6;
}

.matching-candidate-actions {
    margin-top: auto;
}

.matching-candidate-actions .btn {
    flex: 1 1 9rem;
}

.matching-list-picture {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

@media (max-width: 575.98px) {
    .sm-shop-list-image {
        width: 100%;
    }

    .matching-candidate-layout,
    .matching-candidate-media,
    .matching-candidate-picture {
        min-height: 20rem;
    }
}
.modal-dialog-scrollable .sm-modal-form-scroll {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.modal-dialog-scrollable .sm-modal-form-scroll .modal-body {
    overflow-y: auto;
}
.sm-chat-attachment-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.sm-chat-attachment-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sm-chat-attachment-preview-item {
    width: 72px;
    height: 72px;
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.25rem;
    background: var(--bs-light);
}

.sm-chat-attachment-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sm-ft-question {
    min-width: 0;
    margin: 0;
    padding: 1rem 0;
    border-bottom: 1px solid var(--bs-border-color);
}

.sm-ft-answer-scale {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    max-width: 28rem;
    gap: 0.5rem;
}

.sm-ft-answer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.25rem;
    min-height: 3rem;
    cursor: pointer;
}

.sm-ft-answer input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--bs-danger);
}

.sm-ft-answer:has(input:checked) {
    color: var(--bs-danger);
    font-weight: 700;
}

.sm-ft-result-row {
    display: grid;
    grid-template-columns: minmax(10rem, 1fr) minmax(5rem, 2fr) 3.5rem;
    gap: 0.75rem;
    align-items: center;
    padding-top: 0.75rem;
}

.sm-ft-result-row strong {
    text-align: right;
}

.sm-ft-example .sm-ft-result-row {
    grid-template-columns: minmax(0, 1fr) 3.5rem;
    gap: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.sm-ft-example .sm-ft-result-row > span {
    grid-column: 1 / -1;
}

.sm-ft-result-row meter {
    appearance: none;
    width: 100%;
    height: 1.25rem;
    border: 0;
    background: var(--bs-light);
}

.sm-ft-result-row meter::-webkit-meter-bar {
    background: var(--bs-light);
    border: 0;
    border-radius: 0.25rem;
}

.sm-ft-result-row meter::-webkit-meter-optimum-value {
    background: #5b0810;
}

.sm-ft-result-row meter::-moz-meter-bar {
    background: #5b0810;
}

.sm-ft-details {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.sm-ft-details summary {
    margin-top: 0.25rem;
    color: var(--bs-danger);
    cursor: pointer;
    font-size: 0.875rem;
}

.sm-ft-result-image {
    display: block;
    width: 100%;
    max-width: 450px;
    height: auto;
}

.sm-ft-statistic-details {
    padding: 0;
    border: 0;
    background: none;
    color: var(--bs-danger);
    font-size: 0.75rem;
}

.sm-ft-statistic-details:hover {
    text-decoration: underline;
}

.sm-ft-statistic-row {
    position: relative;
    height: 1rem;
    font-size: 0.75rem;
}

.sm-ft-statistic-row > span {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 120px;
    line-height: 1rem;
    white-space: nowrap;
    font-style: italic;
}

.sm-ft-statistics-header h1 {
    flex: 1;
    text-align: center;
}

.sm-ft-statistic-bar {
    display: block;
    width: 100%;
    height: 1rem;
    overflow: hidden;
    border-radius: 0.25rem;
}

.sm-ft-statistic-track {
    fill: var(--bs-gray-200);
}

.sm-ft-statistic-present .sm-ft-statistic-fill {
    fill: #5ab41e;
}

.sm-ft-statistic-absent .sm-ft-statistic-fill {
    fill: #5b0810;
}

.sm-ft-statistic-bar text {
    fill: white;
    font-size: 0.75rem;
    paint-order: stroke;
    stroke: #555;
    stroke-width: 0.5px;
}

@media (max-width: 575.98px) {
    .sm-ft-result-row {
        grid-template-columns: minmax(0, 1fr) 3.5rem;
        gap: 0.25rem 0.5rem;
    }

    .sm-ft-result-row > span {
        grid-column: 1 / -1;
    }
}

@media print {
    body:has(.sm-fetish-test) header,
    body:has(.sm-fetish-test) nav,
    body:has(.sm-fetish-test) .sm-top-nav,
    body:has(.sm-fetish-test) footer,
    body:has(.sm-fetish-test) .modal,
    body:has(.sm-fetish-test) .tooltip,
    .sm-fetish-test .card-header,
    .sm-fetish-test .sm-ft-actions,
    .sm-fetish-test .sm-ft-results,
    .sm-fetish-test .card-body > p,
    .sm-fetish-test .card-body > :not(.sm-ft-result-image) {
        display: none !important;
    }

    body:has(.sm-fetish-test) .sm-page-wrapper {
        margin: 0 !important;
        width: 100%;
        max-width: none;
        min-height: 0;
        overflow: visible !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    body:has(.sm-fetish-test) main,
    .sm-fetish-test .card-body {
        padding: 0 !important;
    }

    .sm-fetish-test {
        border: 0;
        box-shadow: none;
    }

    .sm-ft-result-image {
        margin: 0 !important;
        max-width: 100%;
        max-height: 250mm;
        width: auto;
    }
}

.sm-bdsm-test-charts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 370px));
    justify-content: center;
    align-items: start;
    gap: 1rem;
}

.sm-bdsm-test-chart-shell {
    width: 100%;
    max-width: 370px;
    margin-right: auto;
    margin-left: auto;
}

.sm-bdsm-test-chart-canvas {
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 37 / 42;
    background: #fff;
}

@media (max-width: 1399.98px) {
    .sm-bdsm-test-charts {
        grid-template-columns: repeat(2, minmax(0, 370px));
    }
}

@media (max-width: 767.98px) {
    .sm-bdsm-test-charts {
        grid-template-columns: minmax(0, 370px);
    }
}
.sm-bdsm-statistics-chart {
    height: 320px;
    min-height: 320px;
    position: relative;
}

.sm-bdsm-statistics-pair .table-responsive {
    max-height: 560px;
}

.sm-privacy-content,
.sm-terms-content {
    font-size: 0.875rem;
    line-height: 1.6;
}

.sm-privacy-content :is(h1, h2, h3, h4, h5, h6),
.sm-terms-content :is(h1, h2, h3, h4, h5, h6) {
    font-size: 1.125rem;
}
