.topic-hero {
    background: #121212;
    padding: 58px 0 52px;
    color: #fff;
}

.topic-hero .topic-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .14);
    padding: 3px 13px 3px 11px;
    border-radius: 999px;
    font-size: .8rem;
    gap: .35rem;
}

.topic-hero .topic-title {
    font-size: 2rem;
    font-weight: 600;
    margin-top: .7rem;
    margin-bottom: 1.2rem;
    color:#f6f6f6
}

.topic-hero .topic-meta-line {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: .7rem;
}

.topic-hero .topic-summary {
    max-width: 760px;
    opacity: .8;
    line-height: 1.55;
}

.topic-shell {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 1.6rem;
    padding: 2.4rem 1rem 4.3rem;
}

.topic-content {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .03);
    padding: 2.1rem 2.3rem 2.3rem;
    line-height: 1.68;
    color: #2d3436;
}

.topic-content h1 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.topic-content h2 {
    font-size: 1.21rem;
    margin-top: 2.05rem;
    margin-bottom: .6rem;
    font-weight: 600;
}

.topic-content h3 {
    font-size: 1rem;
    margin-top: 1.3rem;
    margin-bottom: .4rem;
}

.topic-content p {
    margin-bottom: .75rem;
}

.topic-content ul,
.topic-content ol {
    padding-left: 1.25rem;
    margin-bottom: .65rem;
}

.topic-content blockquote {
    border-left: 3px solid #4dabf7;
    background: #f6fbff;
    border-radius: 12px;
    padding: .7rem 1.2rem .7rem 1.3rem;
    margin: 1.1rem 0;
    color: #375270;
}

.topic-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-size: .9rem;
}

.topic-content table th,
.topic-content table td {
    border: 1px solid #edf0f3;
    padding: .45rem .5rem;
}

.topic-content pre {
    background: #0f172a;
    color: #fff;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    overflow-x: auto;
    margin-bottom: 1.25rem;
}

.topic-content code {
    background: #eef2ff;
    padding: .15rem .35rem;
    border-radius: 4px;
    font-size: .78rem;
}

.topic-content img {
    max-width: 100%;
    border-radius: 16px;
    display: block;
    margin: 1.1rem auto 1.4rem;
}

.topic-content .table-of-contents {
    background: #f3f5fb;
    border-radius: 14px;
    padding: 1rem 1.2rem;
    list-style: none;
    margin-bottom: 1rem;
}

.topic-content .table-of-contents a {
    text-decoration: none;
    color: #273c75;
    font-size: .87rem;
}

.topic-content .table-of-contents>li>a {
    font-weight: 600;
}

.topic-side {
    position: sticky;
    top: 110px;
    height: fit-content;
}

.topic-panel {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .03);
    padding: 1.15rem 1.1rem 1.15rem;
    margin-bottom: 1.1rem;
}

.topic-panel-title {
    font-size: .77rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: .65rem;
    color: #546e7a;
}

.topic-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.topic-panel a {
    display: block;
    font-size: .85rem;
    color: #2d3436;
    padding: .3rem .35rem;
    border-radius: 8px;
    text-decoration: none;
}

.topic-panel a:hover {
    background: #f2f4ff;
}

a[data-type="place"],
a[data-type="dictionary"] {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-weight: bolder;
    background: #edf4ff;
    border: 1px solid rgba(57, 113, 255, .12);
    border-radius: 999px;
    padding: .25rem .75rem .25rem .6rem;
    text-decoration: none;
    font-size: .8rem;
    line-height: .9;
    color: #182744;
    white-space: nowrap;
}

a[data-type="place"]::before {
    content: "📍";
}


a[data-type="place"]:hover,
a[data-type="dictionary"]:hover {
    background: #dfe8ff;
}

.topic-comments {
    margin-top: 2.5rem;
    background: #ffffff;
    border-radius: 22px;
    padding: 1.4rem 1.6rem 1.6rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .04);
    border: 1px solid #ecf2f7;
    position: relative;
    overflow: hidden;
}

.topic-comments::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, #02b3b3, #00c1aa);
}

.topic-comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .9rem;
}

.topic-comments-header h3 {
    font-size: .98rem;
    font-weight: 600;
    margin: 0;
}

.comments-count {
    font-size: .78rem;
    opacity: .65;
    margin-left: .4rem;
}

.comments-list {
    position: relative;
    min-height: 40px;
}

.comment-skeleton {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-skel-avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #f2f4f7;
}

.comment-skel-lines {
    flex: 1;
}

.skel-line {
    height: 15px;
    border-radius: 999px;
    background: #f2f4f7;
    margin-bottom: .5rem;
}

.skel-line-short {
    width: 55%;
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }

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

.shimmer {
    background-image: linear-gradient(90deg,
            #f2f4f7 0px,
            #e5e9f0 40px,
            #f2f4f7 80px);
    background-size: 200px 100%;
    animation: shimmer 1.2s infinite linear;
}

.comment-thread {
    padding: .3rem 0 .4rem;
}

.comment-item {
    padding: .8rem 0 .7rem;
    border-bottom: 1px solid #f3f5fa;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-row {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #02b3b340;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 600;
    color: #0f172a;
    flex-shrink: 0;
}

.comment-main {
    flex: 1;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin-bottom: .15rem;
}

.comment-author {
    font-size: .83rem;
    font-weight: 600;
    color: #111827;
    text-transform: capitalize;
}

.comment-dot {
    width: 3px;
    height: 3px;
    border-radius: 999px;
    background: #cbd2e1;
}

.comment-date {
    font-size: .72rem;
    color: #94a3b8;
}

.comment-text {
    font-size: .88rem;
    color: #374151;
    white-space: pre-line;
    margin-top: .1rem;
    margin-bottom: .1rem;
}

.comment-footer {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-top: .15rem;
}

.comment-reply-btn {
    font-size: .76rem;
    color: #2563eb;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

.comment-reply-btn:hover {
    text-decoration: underline;
}

.comment-menu-wrap {
    position: relative;
    margin-left: auto;
}

.comment-menu-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: .15rem;
    border-radius: 999px;
    line-height: 0;
}

.comment-menu-btn span {
    font-size: 1.1rem;
    color: #94a3b8;
}

.comment-menu-btn:hover {
    background: #f3f4ff;
}

.comment-menu {
    position: absolute;
    right: 0;
    top: 130%;
    min-width: 140px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .15);
    border-radius: 10px;
    padding: .25rem 0;
    z-index: 10;
}

.comment-menu-item {
    font-size: .8rem;
    padding: .4rem .8rem;
    cursor: pointer;
    white-space: nowrap;
}

.comment-menu-item:hover {
    background: #f3f4ff;
}

.comment-thread--has-replies .comment-item:first-child {
    padding-bottom: .2rem;
}

.comment-children {
    margin-left: 2.1rem;
    padding-left: .9rem;
    border-left: 2px solid rgba(2, 179, 179, .08);
}

.comment-children-hidden {
    margin-top: .15rem;
    margin-bottom: .15rem;
}

.comment-more-replies-btn {
    margin: .1rem 0 .3rem;
    border: none;
    background: transparent;
    font-size: .78rem;
    color: #0284c7;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.comment-more-replies-btn::before {
    content: "⋮";
    font-size: 1rem;
    color: #cbd5e1;
    transform: translateY(1px);
}

.comment-more-replies-btn:hover {
    text-decoration: underline;
    color: #0369a1;
}

.comment-form-wrapper {
    border-top: 1px solid #f1f4fb;
    margin-top: .85rem;
    padding-top: .85rem;
}

.comment-form-title {
    font-size: .86rem;
    font-weight: 600;
    margin-bottom: .45rem;
}

.comment-form-field label {
    display: block;
    font-size: .78rem;
    margin-bottom: .25rem;
    color: #6b7280;
}

.comment-form-field textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #dde3ef;
    font-size: .86rem;
    padding: .55rem .7rem;
    resize: vertical;
}

.comment-form-field textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}

.comment-form-actions {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-top: .45rem;
}

.comment-status {
    font-size: .78rem;
    opacity: .8;
}

.comment-status--error {
    color: #dc2626;
}

.comment-status--success {
    color: #16a34a;
}

.comment-overlay {
    margin-top: .8rem;
    padding: .6rem .75rem;
    border-radius: 10px;
    background: #f9fafb;
    font-size: .8rem;
    color: #4b5563;
}

.comment-overlay a {
    text-decoration: none;
}

.comment-overlay a:hover {
    text-decoration: underline;
}

.comment-submit-btn,
.reply-send {
    border: none;
    border-radius: 999px;
    padding: .46rem 1.4rem;
    font-size: .82rem;
    font-weight: 500;
    background: #02b3b3;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(2, 179, 179, .25);
    transition: background .15s ease, transform .06s ease, box-shadow .15s ease;
}

.comment-submit-btn:hover,
.reply-send:hover {
    background: #029292;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(2, 146, 146, .3);
}

.reply-cancel {
    border-radius: 999px;
    padding: .46rem 1.15rem;
    font-size: .8rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.reply-cancel:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
}

@media (max-width: 992px) {
    .topic-shell {
        display: block;
        padding: 1.5rem .75rem 4rem;
    }

    .topic-side {
        position: static;
        margin-top: 1rem;
    }

    .topic-content {
        padding: 1.5rem 1.15rem 1.5rem;
    }

    .topic-hero .topic-title {
        font-size: 1.6rem;
    }

    .comment-children {
        margin-left: 1.4rem;
        padding-left: .7rem;
    }
}

.mention-dropdown {
    position: absolute;
    z-index: 30;
    min-width: 240px;
    max-height: 260px;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .15);
    padding: .3rem 0;
    font-size: .82rem;
}

.mention-dropdown-item {
    padding: .45rem .9rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mention-dropdown-item-main {
    font-weight: 500;
    color: #0f172a;
}

.mention-dropdown-item-sub {
    font-size: .75rem;
    color: #94a3b8;
}

.mention-dropdown-item:hover,
.mention-dropdown-item.is-active {
    background: #f0fbfa;
}

.comment-places-card .comment-places-list {
    max-height: 240px;
    overflow-y: auto;
    padding-right: 4px;
}

.comment-place-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .35rem .25rem;
    border-radius: .5rem;
    text-decoration: none;
    color: inherit;
    font-size: .875rem;
}

.comment-place-row+.comment-place-row {
    margin-top: .15rem;
}

.comment-place-row:hover {
    background: #f3f6fb;
}

.comment-place-main {
    display: flex;
    flex-direction: column;
}

.comment-place-name {
    font-weight: 600;
}

.comment-place-meta {
    font-size: .75rem;
    color: #6c757d;
}

.comment-place-count {
    font-weight: 600;
    font-size: .85rem;
}

.comment-places-panel {
    margin-top: .8rem;
}

.comment-places-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .4rem;
    margin-bottom: .35rem;
}

.comment-places-tabs {
    display: inline-flex;
    gap: .25rem;
}

.comment-places-tab {
    border: 1px solid #e2e8f0;
    background: #f9fafb;
    color: #4b5563;
    border-radius: 999px;
    padding: .18rem .7rem;
    font-size: .72rem;
    line-height: 1.1;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease,
        box-shadow .15s ease, transform .06s ease;
}

.comment-places-tab:hover {
    background: #eef2ff;
    border-color: #cbd5e1;
    color: #111827;
}

.comment-places-tab.is-active {
    background: #02b3b3;
    border-color: #02b3b3;
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(2, 179, 179, .25);
    transform: translateY(-1px);
}

.comment-places-list {
    max-height: 230px;
    overflow-y: auto;
    padding-right: 2px;
    margin-top: .25rem;
}

.comment-places-list::-webkit-scrollbar {
    width: 5px;
}

.comment-places-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 999px;
}

.comment-places-list::-webkit-scrollbar-track {
    background: transparent;
}

.comment-place-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .32rem .25rem;
    border-radius: .55rem;
    text-decoration: none;
    color: inherit;
    font-size: .83rem;
}

.comment-place-row+.comment-place-row {
    margin-top: .08rem;
}

.comment-place-row:hover {
    background: #f3f6fb;
}

.comment-place-main {
    display: flex;
    flex-direction: column;
}

.comment-place-name {
    font-weight: 600;
    color: #111827;
}

.comment-place-meta {
    font-size: .74rem;
    color: #6b7280;
    margin-top: .05rem;
}

.comment-place-count {
    font-weight: 600;
    font-size: .8rem;
    color: #111827;
}

.comment-places-loading,
.comment-places-empty {
    font-size: .78rem;
    color: #9ca3af;
    margin: .15rem 0;
}

.comments-older-toggle {
    margin: 0 0 .75rem;
    padding: 4px 10px;
    font-size: 13px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, .06);
    background: #f5f7fb;
    color: #4a5a6b;
    cursor: pointer;
}

.comments-older-toggle:hover {
    background: #e9edf5;
}

.comments-older-block {
    margin-bottom: .75rem;
    border-left: 2px dashed rgba(0, 0, 0, .04);
    padding-left: .75rem;
}

.comment-places-widget {
    font-size: 13px;
}

.comment-places-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .25rem;
}

.comment-places-title {
    font-weight: 600;
    font-size: 13px;
}

.comment-places-tabs {
    display: inline-flex;
    gap: .25rem;
}

.comment-places-tab {
    border: none;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    line-height: 1.4;
    background: #f1f5f9;
    color: #475569;
    cursor: pointer;
}

.comment-places-hint {
    margin: 0 0 .4rem;
    font-size: 11px;
    color: #6b7280;
}

.comment-place-row {
    width: 100%;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 6px 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f9fafb;
    cursor: pointer;
    text-align: left;
    margin-bottom: 4px;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.comment-place-row:hover {
    background: #eef2ff;
}

.comment-place-row.is-active {
    border-color: #2563eb;
    background: #e0ecff;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, .08);
}

.comment-place-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.comment-place-name {
    font-weight: 500;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.comment-place-meta {
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.comment-place-count {
    flex-shrink: 0;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, .06);
    background: #ffffff;
    color: #111827;
}

.comment-places-clear {
    border: none;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 11px;
    background: #fefce8;
    color: #854d0e;
    cursor: pointer;
}

.comment-places-clear:hover {
    background: #fef3c7;
}

.comment-thread.comments-thread--hidden {
    display: none;
}
.topic-hero {
    position: relative;
}

.topic-share-btn {
    position: absolute;
    top: 20px;
    right: 32px;
    display: inline-flex;
    align-items: center;
    gap: .35rem;

    padding: .4rem .9rem;
    border-radius: 999px;
    border: none;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;

    background: #ffffff;
    color: #111827;
    box-shadow: 0 8px 22px rgba(0,0,0,.28);
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.topic-share-btn i {
    font-size: 1rem;
}

.topic-share-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(0,0,0,.32);
}

.topic-share-btn:active {
    transform: translateY(0);
    box-shadow: 0 5px 14px rgba(0,0,0,.26);
}

.topic-photo-shell {
    padding-top: 1.5rem;
    padding-bottom: 0;
}

.topic-photo-slider {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    background: #000;
    box-shadow: 0 14px 40px rgba(15, 23, 42, .35);
}

.topic-photo-track {
    display: flex;
    transition: transform .4s ease;
}

.topic-photo-slide {
    min-width: 100%;
    max-height: 420px;
    background: #000;
}

.topic-photo-slide img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: cover;
}

.topic-photo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    border-radius: 999px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    background: rgba(15, 23, 42, .82);
    color: #f9fafb;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
    transition: background .12s ease, transform .12s ease, box-shadow .12s ease;
}

.topic-photo-nav--prev { left: 16px; }
.topic-photo-nav--next { right: 16px; }

.topic-photo-nav:hover {
    background: rgba(15, 23, 42, .96);
    transform: translateY(-50%) scale(1.02);
}

.topic-photo-nav:active {
    transform: translateY(-50%) scale(.96);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
}

.topic-photo-dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.topic-photo-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    padding: 0;
    background: rgba(249, 250, 251, .4);
    cursor: pointer;
    transition: width .15s ease, background .15s ease;
}

.topic-photo-dot.is-active {
    width: 18px;
    background: #02b3b3;
}

.topic-photo-slider.single-slide .topic-photo-nav,
.topic-photo-slider.single-slide .topic-photo-dots {
    display: none;
}

.comment-photos-field {
    margin-top: .5rem;
}

.comment-photos-label {
    display: block;
    font-size: .8rem;
    font-weight: 500;
    margin-bottom: .25rem;
}

.comment-photos-max {
    opacity: .7;
    font-weight: 400;
}

.comment-photos-input-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    width: auto;
    max-width: 100%;
}

#comment-photos {
    padding: .35rem 1.1rem;
    border-radius: 999px;
    border: 1px dashed rgba(0,0,0,.18);
    font-size: .82rem;
    cursor: pointer;
    background: #fff;
    color: #333;
}

#comment-photos::-webkit-file-upload-button {
    visibility: hidden;
}

#comment-photos::before {
    content: "Fotoğraf Seç";
    display: inline-block;
    padding: .25rem .9rem;
    border-radius: 999px;
    background: #002c48;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
}
.comment-photos-preview {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .4rem;
}

.comment-photo-thumb {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: .75rem;
    overflow: hidden;
    background: #e5e7eb;
}

.comment-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-photo-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: none;
    background: rgba(15,23,42,.85);
    color: #f9fafb;
    font-size: .8rem;
    line-height: 1;
    cursor: pointer;
}


.comment-photos-field {
    margin-top: 0.75rem;
}

#comment-photos,
.reply-photos-input {
    padding: .4rem .7rem;
    border-radius: 999px;
    border: 1px dashed rgba(0,0,0,0.15);
    background: rgba(0,0,0,0.02);
    font-size: .8rem;
    cursor: pointer;
}

#comment-photos:hover,
.reply-photos-input:hover {
    border-color: rgba(0,0,0,0.3);
    background: rgba(0,0,0,0.04);
}
.comment-photos-preview,
.reply-photos-preview,
.comment-photos-inline {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .5rem;
}

.comment-photo-thumb {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: .5rem;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    background: #f5f5f5;
}

.comment-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.comment-photo-thumb .comment-photo-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    border: none;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    padding: 0;
    line-height: 18px;
    font-size: 13px;
    cursor: pointer;
    background: rgba(0,0,0,0.6);
    color: #fff;
}

.comment-photo-thumb--in-comment .comment-photo-remove {
    display: none;
}

#comment-photo-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease-out;
}

#comment-photo-lightbox.is-active {
    opacity: 1;
    pointer-events: auto;
}

#comment-photo-lightbox img {
    max-width: min(900px, 90vw);
    max-height: min(700px, 90vh);
    border-radius: 16px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
    display: block;
}

#comment-photo-lightbox button {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: rgba(0,0,0,.7);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}
.comment-photo-strip {
    position: relative;
    margin-bottom: .35rem;
    margin-top: .15rem;
}

.comment-photo-strip-track {
    display: flex;
    gap: .4rem;
    overflow-x: auto;
    padding-bottom: .15rem;
    scroll-snap-type: x mandatory;
}

.comment-photo-thumb {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.comment-photo-thumb--in-comment {
    flex: 0 0 auto;
    width: 96px;
    height: 96px;
    scroll-snap-align: start;
    box-shadow: 0 0 0 1px rgba(0,0,0,.04);
}

.comment-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.comment-photo-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: none;
    font-size: 13px;
    line-height: 1;
    background: rgba(0,0,0,.7);
    color: #fff;
    cursor: pointer;
}

.comment-photo-strip-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: none;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.comment-photo-strip-nav--prev { left: -6px; }
.comment-photo-strip-nav--next { right: -6px; }

#comment-gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(2px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

#comment-gallery-modal.is-active {
  display: flex;
}

.comment-gallery-inner {
  position: relative;
  max-width: 80vw;
  max-height: 90vh;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.comment-gallery-track {
  display: flex;
  transition: 0.3s;
}

.comment-gallery-slide {
  flex: 0 0 100%;
  text-align: center;
}

.comment-gallery-slide img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.comment-gallery-prev,
.comment-gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0,0,0,.4);
  color: #fff;
  font-size: 32px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
}

.comment-gallery-prev { left: 8px; }
.comment-gallery-next { right: 8px; }

.comment-gallery-meta {
  padding: 12px 16px;
  font-size: 14px;
}

#comment-photos {
    color: transparent;
}
#comment-photos::-ms-value {
    color: transparent;
}

.comment-photos-input-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    width: auto;
    max-width: 100%;
}

#comment-photos {
    flex: 0 0 auto;
}

#comment-photos-filename {
    flex: 0 0 auto;
    white-space: nowrap;
}
.comment-avatar img {width: 32px;}