/* Gallery-only styles: photo grid, lightbox, gallery composer, and gallery card layout. */
/* Gallery module core styles. Shared feed/report/reaction/media-browser rules moved to ui-common.css. */
/* Shared composer state classes are now reused here too so Community / Q&A / Gallery
   keep one submit/error language and future AI changes only touch one logic path. */


.sc-ui-photo-container {
    max-width: 1400px;
    margin: 0 auto;
    background-color: #ffffff;
}

.sc-ui-photo-upload-prompt {
    
    
    padding: 0;
    background-color: transparent;
    border-radius: 0;
}

.sc-ui-photo-prompt-title {
    
    
    
    color: #2d3436;
}



.sc-ui-photo-upload-btn {
    background-color: var(--sc-theme-accent, #00b9cd);
    color: white;
    border: none;
    
    
    
    cursor: pointer;
    transition: background-color 0.2s ease;
    
}

.sc-ui-photo-upload-btn:hover:not(.disabled) {
    background-color: var(--sc-theme-accent-hover, #00a5b9);
}

.sc-ui-photo-upload-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    
}

.sc-ui-photo-upload-overlay.active {
    display: flex;
}

.sc-ui-photo-upload-container {
    background-color: white;
    
    width: 100%;
    
    max-height: 80vh;
    overflow-y: auto;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@media (max-width: 480px) {
    
    
    .sc-ui-photo-upload-container {
        
        max-height: 50vh;
        
        
        
        
        
        
        
        box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    }
}

.sc-ui-photo-upload-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
    width: 100%;
}

.sc-ui-photo-upload-header-content {
    display: flex;
    align-items: center;
}

.sc-ui-photo-upload-title {
    display: none;
}

.sc-ui-photo-upload-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #888;
    transition: color 0.2s ease;
}

.sc-ui-photo-upload-close:hover {
    color: #333;
}

.sc-ui-photo-upload-form {
    display: flex;
    flex-direction: column;
    gap: 3px; /* Set 3px gap between elements */
}

.sc-ui-photo-upload-author {
    display: flex;
    align-items: center;
    margin: 0;
}

.sc-ui-photo-upload-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.sc-ui-photo-upload-name {
    font-weight: 500;
    color: #2d3436;
}

.sc-ui-photo-upload-content {
    margin-bottom: 3px; /* Adjusted to 3px spacing */
    margin-top: 5px;
}

.sc-ui-photo-upload-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: none;
    font-size: 14px;
    min-height: 100px;
    transition: border-color 0.2s ease;
}

.sc-ui-photo-upload-textarea:focus {
    border-color: var(--sc-theme-accent, #00b9cd);
    outline: none;
}

.sc-ui-photo-upload-media {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 3px;
}

/* Gallery composer preview now uses the shared preview renderer/classes.
   Keep the gallery-specific spacing here, but do not maintain a separate preview DOM. */
.sc-ui-photo-upload-preview {
    --sc-upload-preview-cols: 5;
    gap: 6px;
    margin: 0;
    grid-template-columns: repeat(var(--sc-upload-preview-cols), minmax(0, 1fr));
    grid-auto-rows: auto;
    align-items: stretch;
}

.sc-ui-photo-upload-preview.is-empty {
    display: none;
}

.sc-ui-photo-upload-preview.has-images {
    min-height: 0;
}

.sc-ui-photo-upload-preview.sc-ui-composer-preview {
    margin-bottom: 0;
}

.sc-ui-photo-upload-preview .sc-ui-composer-preview-item {
    border-radius: 6px;
}

.sc-ui-photo-upload-preview .sc-ui-composer-preview-remove {
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    font-size: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.sc-ui-photo-upload-add {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    background-color: #f0f0f0;
    
    border-radius: 8px;
    
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    line-height: 1.2;
    margin: 0;
    position: static;
}

.sc-ui-photo-upload-add:hover {
    background-color: #e9ecef;
    border-color: var(--sc-theme-accent, #00b9cd);
    color: var(--sc-theme-accent, #00b9cd);
}

.sc-ui-photo-upload-submit {
    width: 100%;
    padding: 12px;
    background-color: var(--sc-composer-submit-disabled, rgb(127,220,230));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: not-allowed;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    margin-bottom: 15px;
}

@media (max-width: 480px) {
    .sc-ui-photo-upload-submit {
        border-radius: 8px 8px 0 0;
        margin-bottom: 0;
    }
}

.sc-ui-photo-upload-submit.is-ready,
.sc-ui-photo-upload-submit[aria-disabled="false"] {
    background-color: var(--sc-composer-submit-ready, rgb(0,185,205));
    cursor: pointer;
}

.sc-ui-photo-upload-submit.is-ready:hover,
.sc-ui-photo-upload-submit[aria-disabled="false"]:hover,
.sc-ui-photo-upload-submit.is-ready:focus-visible,
.sc-ui-photo-upload-submit[aria-disabled="false"]:focus-visible {
    background-color: var(--sc-composer-submit-ready-hover, rgb(0,165,185));
}

.sc-ui-photo-upload-submit.disabled,
.sc-ui-photo-upload-submit[aria-disabled="true"] {
    background-color: var(--sc-composer-submit-disabled, rgb(127,220,230));
    color: #fff;
    opacity: 1;
    pointer-events: none;
}

.sc-ui-photo-upload-copyright {
    font-size: 11px;
    color: #888;
    line-height: 1.4;
    text-align: left;
}

.sc-ui-photo-upload-hidden {
    display: none;
}

.sc-ui-photo-upload-error {
    color: #e74c3c;
    font-size: 13px;
    margin: 5px 0;
    display: none;
}

.sc-ui-photo-upload-error.active {
    display: block;
}

.sc-ui-photo-upload-loading {
    display: none;
    align-items: center;
    justify-content: center;
    color: #666;
}

.sc-ui-photo-upload-loading.active {
    display: flex;
}

.sc-ui-photo-upload-loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--sc-theme-accent, #00b9cd);
    border-radius: 50%;
    animation: sw-shared-spin 1s linear infinite;
    margin-right: 8px;
}

.sc-ui-photo-h1 {
    display: none;
}

.sc-ui-photo-image-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1px;
    margin-bottom: 0;
}

@media (max-width: 1200px) {
    .sc-ui-photo-image-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 900px) {
    .sc-ui-photo-image-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .sc-ui-photo-image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1px;
    }
}

.sc-ui-photo-grid-item {
    overflow: hidden;
    cursor: pointer;
    position: relative;
    aspect-ratio: 1/1;
    background-color: #f1f1f1;
    transition: transform 0.2s ease;
}

.sc-ui-photo-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.sc-ui-photo-grid-item img.loaded {
    opacity: 1;
}

.sc-ui-photo-grid-item:hover {
    transform: scale(0.98);
}

.sc-ui-photo-image-count {
    position: absolute;
    
    
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    
    font-weight: 500;
    
    
    backdrop-filter: blur(2px);
}

.sc-ui-photo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    
    overflow: hidden;
    padding: 40px;
}

@media (max-width: 850px) {
    .sc-ui-photo-overlay {
        padding: 0;
    }
}

.sc-ui-photo-overlay.active {
    display: block;
}

.sc-ui-photo-overlay-container {
    width: 100%;
    height: 100%;
    display: flex;
    color: #333;
    background-color: #0a0a0a;
    overflow: hidden;
    
    max-height: calc(100vh - 80px);
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

.sc-ui-photo-main-scroll {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    display: flex;
}

@media (max-width: 850px) {
    .sc-ui-photo-overlay-container {
        flex-direction: column;
        
        
        
    }
}

.sc-ui-photo-gallery-section {
    background-color: #000000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
    flex: 7;
    padding: 30px;
}

@media (max-width: 850px) {
    
}

.sc-ui-photo-gallery-image-container {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sc-ui-photo-gallery-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.sc-ui-photo-gallery-image.loaded {
    opacity: 1;
}

.sc-ui-photo-gallery-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sc-ui-photo-gallery-loading.active {
    opacity: 1;
}

.sc-ui-photo-loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--sc-theme-accent, #00b9cd);
    border-radius: 50%;
    animation: sw-shared-spin 1.2s linear infinite;
    margin: 0 0 15px 0;
}

.sc-ui-photo-loading-text {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
}



.sc-ui-photo-gallery-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
    padding: 0 15px;
}

.sc-ui-photo-nav-btn {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #333;
    font-size: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 15;
}

@media (max-width: 500px) {
    .sc-ui-photo-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

.sc-ui-photo-nav-btn:hover {
    background-color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.sc-ui-photo-gallery-dots {
    position: absolute;
    
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 10;
}

@media (max-width: 850px) {
    
}

.sc-ui-photo-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sc-ui-photo-dot.active {
    background-color: var(--sc-theme-accent, #00b9cd);
    transform: scale(1.4);
}

.sc-ui-photo-details-section {
    background-color: white;
    overflow-y: auto;
    position: relative;
    z-index: 20;
    flex: 3;
    max-width: 420px;
    padding: 20px;
}

.sc-ui-photo-mobile-details-head {
    display: block;
}

.sc-ui-photo-details-scroll {
    display: block;
}

@media (max-width: 850px) {
    
}

.sc-ui-photo-author-info {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.sc-ui-photo-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    border: 2px solid #f0f0f0;
}

.sc-ui-photo-author-name {
    font-weight: 600;
    font-size: 16px;
    color: #2d3436;
}

.sc-ui-photo-post-date {
    font-size: 12px;
    color: #888;
    margin-top: 1px;
}

.sc-ui-photo-content {
    margin-bottom: 12px;
    
    color: #555;
    
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.sc-ui-photo-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.sc-ui-photo-stat-item {
    display: flex;
    align-items: center;
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease;
}

.sc-ui-photo-stat-item:hover {
    color: var(--sc-theme-accent, #00b9cd);
}

.sc-ui-photo-like-stat {
    font-weight: 500;
    padding: 3px 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.sc-ui-photo-comment-stat {
    font-weight: 500;
    padding: 3px 6px;
    border-radius: 4px;
}

.sc-ui-photo-reactions-container {
    display: inline-flex;
    margin-right: 6px;
    position: relative;
    height: 22px;
}

.sc-ui-photo-reaction-icon {
    position: relative;
    font-size: 16px;
    margin-left: -6px;
    z-index: 1;
    transition: transform 0.2s ease;
}

.sc-ui-photo-reaction-icon:first-child {
    margin-left: 0;
}

.sc-ui-photo-reaction-icon:hover {
    transform: scale(1.3);
    z-index: 10;
}

.sc-ui-photo-stat-item i {
    margin-right: 6px;
    font-size: 16px;
}

.sc-ui-photo-actions {
    display: flex;
    width: 100%;
    margin-bottom: 12px;
    position: relative;
}

.sc-ui-photo-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--sc-theme-accent, #00b9cd);
    
    
    cursor: pointer;
    
    border-radius: 6px;
    transition: all 0.2s ease;
    text-align: center;
}

.sc-ui-photo-action-btn:hover:not(.disabled) {
    
    color: var(--sc-theme-accent-hover, #00a5b9);
}

.sc-ui-photo-action-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sc-ui-photo-action-btn i {
    margin-right: 6px;
    font-size: 16px;
}

.sc-ui-photo-like-btn {
    position: relative;
    display: inline-flex;
    width: 100%;
    justify-content: center;
}

.sc-ui-photo-emoji-popup {
    position: absolute;
    bottom: 100%;
    left: 0;
    transform: scale(0);
    transform-origin: bottom left;
    background-color: white;
    
    
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
    pointer-events: none;
    z-index: 100;
    white-space: nowrap;
    border: 1px solid #eee;
}

/* 1.17.28: keep the popup anchored to the Like action, but open it from a
   stable center-right position instead of offsetting from the full button edge.
   This keeps the tray visible on desktop, and lets mobile open it via the JS
   sc-popup-open state without drifting into the comments stat. */
.sc-ui-photo-overlay .sc-ui-photo-actions .sc-ui-photo-like-btn {
    position: relative;
    overflow: visible !important;
}

.sc-ui-photo-overlay .sc-ui-photo-actions .sc-ui-photo-like-btn > .sc-ui-photo-emoji-popup {
    left: 50% !important;
    right: auto !important;
    bottom: calc(100% + 6px) !important;
    transform: translate(-14%, 8px) !important;
    transform-origin: bottom center !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.sc-ui-photo-overlay .sc-ui-photo-actions .sc-ui-photo-like-btn:hover > .sc-ui-photo-emoji-popup,
.sc-ui-photo-overlay .sc-ui-photo-actions .sc-ui-photo-like-btn:focus-within > .sc-ui-photo-emoji-popup,
.sc-ui-photo-overlay .sc-ui-photo-actions .sc-ui-photo-like-btn.sc-popup-open > .sc-ui-photo-emoji-popup,
.sc-ui-photo-overlay .sc-ui-photo-actions .sc-ui-photo-like-btn > .sc-ui-photo-emoji-popup.active {
    transform: translate(-14%, 0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.sc-ui-photo-overlay .sc-ui-photo-actions .sc-ui-photo-like-btn.sc-popup-closed > .sc-ui-photo-emoji-popup,
.sc-ui-photo-overlay .sc-ui-photo-actions .sc-ui-photo-like-btn.sc-picked > .sc-ui-photo-emoji-popup {
    transform: translate(-14%, 8px) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

@media (max-width: 850px) {
    .sc-ui-photo-overlay .sc-ui-photo-actions .sc-ui-photo-like-btn > .sc-ui-photo-emoji-popup {
        bottom: calc(100% + 4px) !important;
        transform: translate(-6%, 8px) !important;
    }

    .sc-ui-photo-overlay .sc-ui-photo-actions .sc-ui-photo-like-btn:hover > .sc-ui-photo-emoji-popup,
    .sc-ui-photo-overlay .sc-ui-photo-actions .sc-ui-photo-like-btn:focus-within > .sc-ui-photo-emoji-popup,
    .sc-ui-photo-overlay .sc-ui-photo-actions .sc-ui-photo-like-btn.sc-popup-open > .sc-ui-photo-emoji-popup,
    .sc-ui-photo-overlay .sc-ui-photo-actions .sc-ui-photo-like-btn > .sc-ui-photo-emoji-popup.active {
        transform: translate(-6%, 0) !important;
    }

    .sc-ui-photo-overlay .sc-ui-photo-actions .sc-ui-photo-like-btn.sc-popup-closed > .sc-ui-photo-emoji-popup,
    .sc-ui-photo-overlay .sc-ui-photo-actions .sc-ui-photo-like-btn.sc-picked > .sc-ui-photo-emoji-popup {
        transform: translate(-6%, 8px) !important;
    }
}

.sc-ui-photo-emoji {
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.sc-ui-photo-emoji:hover {
    transform: scale(1.2);
    background-color: #f0f0f0;
}

.sc-ui-photo-emoji-tooltip {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    white-space: nowrap;
}

.sc-ui-photo-emoji:hover .sc-ui-photo-emoji-tooltip {
    opacity: 1;
}

.sc-ui-photo-comments-section {
    margin-top: 12px;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
    display: none;
}

.sc-ui-photo-comments-section.active {
    display: block;
    /* Avoid transform animations moving the scroll anchor on first reveal. */
}

.sc-ui-photo-comments-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2d3436;
    display: flex;
    align-items: center;
}

.sc-ui-photo-comments-title i {
    margin-right: 6px;
    color: var(--sc-theme-accent, #00b9cd);
}

.sc-ui-photo-comment-form {
    display: none;
    
}

.sc-ui-photo-comments-section.active .sc-ui-photo-comment-form {
    display: block;
    animation: sc-ui-photo-fadeIn 0.3s ease;
}
.sc-ui-photo-comment-composer-box {
    border: 1px solid var(--sc-theme-border, #d9dde3);
    background: var(--sc-theme-card, #fff);
}
.sc-ui-photo-comment-composer-box:focus-within {
    border-color: var(--sc-theme-accent, #00b9cd);
    box-shadow: 0 0 0 1px var(--sc-theme-accent, #00b9cd);
}

.sc-ui-photo-comment-composer-box:focus-within .sc-ui-photo-comment-composer-actions,
.sc-ui-photo-comment-composer-box.has-value .sc-ui-photo-comment-composer-actions { display: flex; }
.sc-ui-photo-comment-composer-box:not(:focus-within):not(.has-value) .sc-ui-photo-comment-input { min-height: 24px; margin-bottom: 0; }
.sc-ui-photo-comment-stat { cursor: default; }
.sc-ui-photo-comments-section:not(.active) .sc-ui-photo-loading-overlay,
.sc-ui-photo-comments-section:not(.active) .sc-ui-photo-comments-list { display: none; }
.sc-ui-photo-comment-composer-box:not(:focus-within):not(.has-value) .sc-ui-photo-comment-composer-actions { display: none; }

@keyframes sc-ui-photo-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.sc-ui-photo-comment-input {
    width: 100%;
    
    
    border-radius: 8px;
    
    font-size: 13px;
    
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sc-ui-photo-comment-input:focus {
    border-color: var(--sc-theme-accent, #00b9cd);
    
    outline: none;
}

.sc-ui-photo-comment-submit {
    background-color: var(--sc-theme-accent, #00b9cd);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 13px;
}

.sc-ui-photo-comment-submit:hover:not(.disabled) {
    background-color: var(--sc-theme-accent-hover, #00a5b9);
}

.sc-ui-photo-comment-submit.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sc-ui-photo-comments-list {
    margin-bottom: 12px;
}

.sc-ui-photo-comment-item {
    
    background-color: #f9f9f9;
    border-radius: 8px;
    
    position: relative;
}

.sc-ui-photo-comment-header {
    display: flex;
    
    align-items: center;
    
}

.sc-ui-photo-comment-header-left {
    display: flex;
    align-items: center;
}

.sc-ui-photo-comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
}

.sc-ui-photo-comment-author {
    font-weight: 600;
    font-size: 12px;
    color: #2d3436;
}

.sc-ui-photo-comment-time {
    font-size: 10px;
    color: #999;
}

.sc-ui-photo-comment-text {
    
    
    line-height: 1.5;
    margin-bottom: 10px;
    padding-bottom: 5px;
}

.sc-ui-photo-comment-actions {
    display: flex;
    
    
}

.sc-ui-photo-comment-like-btn {
    
    border: none;
    display: flex;
    align-items: center;
    color: #888;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
    
    border-radius: 4px;
}

.sc-ui-photo-comment-like-btn:hover:not(.disabled) {
    color: var(--sc-theme-accent, #00b9cd);
    background-color: rgba(0, 185, 205, 0.1);
}

.sc-ui-photo-comment-like-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sc-ui-photo-comment-like-btn i {
    margin-right: 5px;
    font-size: 12px;
}

.sc-ui-photo-comment-like-count {
    margin-left: 4px;
}

.sc-ui-photo-load-more-comments {
    background: none;
    border: 1px solid var(--sc-theme-accent, #00b9cd);
    color: var(--sc-theme-accent, #00b9cd);
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s ease, color 0.2s ease;
    margin-top: 8px;
    font-size: 13px;
}

.sc-ui-photo-load-more-comments:hover:not(.disabled) {
    background-color: var(--sc-theme-accent, #00b9cd);
    color: white;
}

.sc-ui-photo-load-more-comments.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sc-ui-photo-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: white;
    color: #333;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 20px;
    z-index: 1001;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

@media (min-width: 851px) {
    .sc-ui-photo-close-btn {
        top: 25px;
        right: 25px;
    }
}

@media (max-width: 500px) {
    .sc-ui-photo-close-btn {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

.sc-ui-photo-close-btn:hover {
    background-color: #f5f5f5;
    transform: rotate(90deg);
}

.sc-ui-photo-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sc-ui-photo-loading-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sc-ui-photo-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--sc-theme-accent, #00b9cd);
    border-radius: 50%;
    animation: sw-shared-spin 1s linear infinite;
}

.sc-ui-photo-error-message {
    color: #e74c3c;
    padding: 12px;
    text-align: center;
    background-color: #fef0f0;
    border-radius: 8px;
    margin-bottom: 12px;
    display: none;
    font-size: 13px;
}

.sc-ui-photo-error-message.active {
    display: block;
}

.sc-ui-photo-error-message button {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    margin-top: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 12px;
}

.sc-ui-photo-error-message button:hover {
    background-color: #c0392b;
}

.sc-ui-photo-load-more-container {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

#sc-js-gallery-loadMoreGridWrap[style*="display:none"] {
    padding: 0 !important;
}

#sc-js-gallery-loadMoreGridDiv[hidden] {
    display: none !important;
}

#sc-js-gallery-loadMoreGridDiv {
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--sc-theme-accent, #00b9cd);
    color: white;
    padding: 12px 24px;
    
    cursor: pointer;
    font-size: 16px;
    margin: 20px auto;
    user-select: none;
}

#sc-js-gallery-loadMoreGridDiv:hover:not(.disabled) {
    background: var(--sc-theme-accent-hover, #00a5b9);
}

#sc-js-gallery-loadMoreGridDiv.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

    


/* ===== Iteration 1.12.5: style rollback + QA/community ===== */
.sc-ui-photo-upload-prompt {
    text-align: left;
    margin-bottom: 26px;
}

.sc-ui-photo-prompt-title {
    font-size: 30px;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 10px;
}

.sc-ui-photo-prompt-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 18px;
}

.sc-ui-photo-upload-btn {
    min-width: 360px;
    min-height: 58px;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sc-ui-photo-upload-add,
.sc-ui-photo-upload-submit {
    min-height: 56px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sc-ui-photo-upload-add {
    border: 0;
    background: #f2f2f4;
    color: #657082;
}

.sc-ui-photo-upload-submit {
    background: #d8dde5;
}

.sc-ui-photo-upload-submit.is-ready,
.sc-ui-photo-upload-submit[aria-disabled="false"] {
    background: var(--sc-composer-submit-ready, rgb(0,185,205));
}

.sc-ui-photo-upload-submit.is-ready:hover,
.sc-ui-photo-upload-submit[aria-disabled="false"]:hover,
.sc-ui-photo-upload-submit.is-ready:focus-visible,
.sc-ui-photo-upload-submit[aria-disabled="false"]:focus-visible {
    background: var(--sc-composer-submit-ready-hover, rgb(0,165,185));
}

.sc-ui-photo-upload-overlay {
    padding: 20px;
    align-items: center !important;
}

.sc-ui-photo-upload-container {
    max-width: 590px;
    border-radius: 12px;
}

@media (max-width: 480px) {
    .sc-ui-photo-upload-overlay {
        padding: 12px;
    }

    .sc-ui-photo-upload-container {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin: auto;
        width: 100%;
        max-height: 88vh;
        border-radius: 12px;
        padding: 18px;
    }

    .sc-ui-photo-upload-media {
        gap: 8px;
    }

    .sc-ui-photo-upload-preview {
        gap: 4px;
    }
}

.sc-ui-photo-image-count {
    bottom: 8px;
    right: 8px;
    border-radius: 5px;
    font-size: 14px;
    padding: 2px 8px;
}

#sc-js-gallery-loadMoreGridDiv {
    border-radius: 8px;
    font-weight: 700;
}

.sc-ui-photo-overlay {
    z-index: 100000;
}

.sc-ui-photo-overlay-container {
    max-width: 1680px;
    height: calc(100vh - 80px);
}

.sc-ui-photo-gallery-section {
    background: #0d1424;
}

.sc-ui-photo-gallery-image-container {
    background: #0d1424;
}

.sc-ui-photo-gallery-dots {
    bottom: 14px;
}

.sc-ui-photo-close-btn,
.sc-ui-photo-nav-btn {
    background-color: #ececec;
    color: #555;
}

.sc-ui-photo-close-btn:hover,
.sc-ui-photo-nav-btn:hover {
    background-color: #ffffff;
    color: #111;
}

.sc-ui-photo-author-info {
    position: relative;
    padding-right: 40px;
}

.sc-ui-photo-more-btn {
    position: absolute;
    top: 0;
    right: 0;
    border: 0;
    background: transparent;
    color: #666;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 4px;
}

.sc-ui-photo-content {
    font-size: 18px;
    line-height: 1.45;
}

.sc-ui-photo-stats,
.sc-ui-photo-actions,
.sc-ui-photo-comments-section {
    border-top-color: #e8e8e8;
}

.sc-ui-photo-stat-item,
.sc-ui-photo-action-btn {
    color: #5d6676;
}

.sc-ui-photo-action-btn {
    font-size: 16px;
    font-weight: 700;
    padding: 12px 8px;
}

.sc-ui-photo-action-btn:hover:not(.disabled) {
    background-color: #f6f8fb;
    color: #4d5563;
}

.sc-ui-photo-current-reaction {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
}

.sc-ui-photo-emoji-popup {
    border-radius: 999px;
    padding: 8px 10px;
}

.sc-ui-photo-comment-form {
    margin-bottom: 16px;
}

.sc-ui-photo-comment-composer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.sc-ui-photo-comment-composer-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 34px;
}

.sc-ui-photo-comment-composer-box {
    flex: 1;
    border: 2px solid #9fe3ec;
    border-radius: 14px;
    background: #fff;
    padding: 12px 14px 10px;
}

.sc-ui-photo-comment-input {
    border: 0;
    box-shadow: none;
    padding: 0;
    min-height: 56px;
    margin-bottom: 10px;
    color: #5c6574;
    resize: none;
}

.sc-ui-photo-comment-input:focus {
    border: 0;
    box-shadow: none;
}

.sc-ui-photo-comment-composer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sc-ui-photo-comment-icon,
.sc-ui-photo-comment-send {
    border: 0;
    background: transparent;
    color: #b6bdc8;
    font-size: 26px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.sc-ui-photo-comment-send {
    font-size: 22px;
}

.sc-ui-photo-comment-item {
    background: transparent;
    padding: 0;
    margin-bottom: 18px;
}

.sc-ui-photo-comment-header {
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 6px;
}

.sc-ui-photo-comment-time {
    margin-left: auto;
}

.sc-ui-photo-comment-text {
    background: #f3f3f4;
    border-radius: 6px;
    padding: 10px 14px;
    margin: 0 0 8px 38px;
    color: #222;
    font-size: 14px;
}

.sc-ui-photo-comment-actions {
    justify-content: flex-start;
    gap: 14px;
    margin-left: 38px;
    color: #6a7282;
    font-size: 12px;
}

.sc-ui-photo-comment-like-btn {
    padding: 0;
    background: transparent;
}

.sc-ui-photo-mobile-nav-strip {
    display: none;
}

/* iteration 1.17.17: mobile gallery lightbox now uses one unified scroll host for the
   image area and the details area, while the post-to-post navigator is an independent
   floating bar pinned above the safe area. This keeps comments clear of the navigator
   and avoids desktop layout regressions. */
@media (max-width: 850px) {
    .sc-ui-photo-overlay-container {
        position: relative;
        display: block;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
        box-shadow: none;
        overflow: hidden;
    }

    .sc-ui-photo-main-scroll {
        display: block;
        width: 100%;
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        background: #ffffff;
        padding-bottom: 0;
        scroll-padding-bottom: 0;
    }

    .sc-ui-photo-gallery-section {
        display: flex;
        flex: none;
        min-height: 62vh;
        min-height: 62dvh;
        height: auto;
        padding: 14px 14px 18px;
        align-items: center;
        overflow: hidden;
    }

    .sc-ui-photo-gallery-image-container {
        min-height: 0;
        width: 100%;
        height: calc(62vh - 32px);
        height: calc(62dvh - 32px);
        max-height: 70vh;
        max-height: 70dvh;
        overflow: hidden;
    }

    .sc-ui-photo-gallery-image {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        display: block;
    }

    .sc-ui-photo-gallery-dots {
        bottom: 12px;
    }

    .sc-ui-photo-details-section {
        flex: none;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: none;
        padding: 0 16px 22px;
        overflow: visible;
        background: #fff;
        position: relative;
        z-index: 1;
    }

    #sc-js-gallery-detailsContent {
        display: block;
        height: auto;
        min-height: 0;
    }

    .sc-ui-photo-mobile-details-head {
        display: block;
        padding-top: 14px;
        background: #fff;
    }

    .sc-ui-photo-author-info {
        margin-bottom: 8px;
        padding-bottom: 10px;
    }

    .sc-ui-photo-details-scroll {
        display: block;
        overflow: visible;
        min-height: 0;
        padding-bottom: env(safe-area-inset-bottom);
        background: #fff;
    }

    /* iteration 1.17.19: on mobile the post-to-post navigator should sit flush to
       the viewport edges and not create a large visible spacer inside the details
       content. Keep the bar independent, but trim the content padding down to the
       safe-area minimum so the lower pane does not end with an empty block. */
    .sc-ui-photo-mobile-nav-strip {
        display: flex !important;
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 80;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        min-height: 50px;
        padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
        border-radius: 0;
        border: 0;
        border-top: 1px solid #e5e7eb;
        background: #ffffff;
        box-shadow: 0 -2px 6px rgba(15, 23, 42, 0.06);
        backdrop-filter: none;
    }

    .sc-ui-photo-mobile-nav-btn {
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: #6b7280 !important;
        font-size: 38px !important;
        line-height: 1;
        padding: 0 !important;
        width: auto !important;
        height: auto !important;
        min-width: 20px !important;
        cursor: pointer;
        flex: 0 0 auto;
    }

    .sc-ui-photo-mobile-nav-center {
        flex: 1 1 auto;
        min-width: 0;
        text-align: center;
        color: #6b7280;
        font-size: 14px;
        font-weight: 700;
    }

    .sc-ui-photo-mobile-nav-count {
        white-space: nowrap;
    }

    .sc-ui-photo-mobile-nav-side {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 0 0 92px;
        min-width: 92px;
    }

    .sc-ui-photo-mobile-nav-side-next {
        justify-content: flex-end;
    }

    .sc-ui-photo-mobile-thumb {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid var(--sc-theme-accent, #00b9cd);
        background: #f0f0f0;
        cursor: pointer;
        flex: 0 0 auto;
    }

    .sc-ui-photo-group-edge {
        display: none !important;
    }

    /* 1.17.26: comment reveal should clear the bottom navigator by the navigator height
       plus only a small extra 15px, rather than introducing a larger false spacer. */
    .sc-ui-photo-comments-section,
    .sc-ui-photo-comment-form,
    .sc-ui-photo-comment-input {
        scroll-margin-bottom: calc(65px + 15px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 700px) {
    .sc-ui-photo-prompt-title {
        font-size: 22px;
    }

    .sc-ui-photo-prompt-text {
        font-size: 16px;
    }

    .sc-ui-photo-upload-btn {
        min-width: 0;
        width: 100%;
    }
}

/* 1.18.44: lightbox action row should size by content instead of forcing equal 50/50 buttons */
.sc-ui-photo-details-section .sc-ui-photo-actions {
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
}

.sc-ui-photo-details-section .sc-ui-photo-actions > .sc-ui-photo-action-btn {
    flex: 0 1 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    padding: 0 8px !important;
    white-space: nowrap !important;
}

.sc-ui-photo-details-section .sc-ui-photo-like-btn {
    justify-content: flex-start !important;
    margin-right: auto !important;
}

.sc-ui-photo-details-section .sc-ui-photo-comment-toggle {
    justify-content: flex-end !important;
    margin-left: auto !important;
    text-align: right !important;
}

.sc-ui-photo-details-section .sc-ui-photo-action-btn span:last-child {
    white-space: nowrap !important;
}

@media (max-width: 850px) {
    .sc-ui-photo-details-section .sc-ui-photo-actions {
        gap: 8px !important;
    }

    .sc-ui-photo-details-section .sc-ui-photo-actions > .sc-ui-photo-action-btn {
        font-size: 13px !important;
        padding: 0 4px !important;
    }

    .sc-ui-photo-details-section .sc-ui-photo-action-btn .icon,
    .sc-ui-photo-details-section .sc-ui-photo-action-btn .sc-ui-photo-current-reaction,
    .sc-ui-photo-details-section .sc-ui-photo-action-btn .sc-ui-action-icon-svg {
        width: 20px !important;
        min-width: 20px !important;
    }
}


/* 1.18.51: on mobile, keep the lightbox action row visually above the bottom navigator
   without leaving a large empty spacer in the details panel. */
@media (max-width: 850px) {
    .sc-ui-photo-details-section {
        padding-bottom: calc(68px + env(safe-area-inset-bottom)) !important;
    }

    .sc-ui-photo-details-scroll {
        padding-bottom: 0 !important;
        scroll-padding-bottom: 0 !important;
    }

    .sc-ui-photo-details-section .sc-ui-photo-actions {
        position: static !important;
        bottom: auto !important;
        z-index: 6 !important;
        margin-bottom: 0 !important;
        padding: 4px 0 !important;
        background: var(--sc-theme-surface, #fff) !important;
    }

    .sc-ui-photo-comments-section,
    .sc-ui-photo-comment-form,
    .sc-ui-photo-comment-input {
        scroll-margin-bottom: 0 !important;
    }
}

/* Reply media selection and submission, restricted to the Gallery lightbox */
.sc-community-gallery .sw-reply-photo-picker, .sc-ui-photo-overlay .sw-reply-photo-picker{display:inline-flex;cursor:pointer;min-height:34px;min-width:34px;align-items:center;justify-content:center;color:var(--sc-primary-color,#21b6c9)}
.sc-community-gallery .sc-ui-photo-comment-send[aria-busy="true"], .sc-ui-photo-overlay .sc-ui-photo-comment-send[aria-busy="true"]{opacity:.5;pointer-events:none}
.sc-community-gallery .sw-reply-media, .sc-ui-photo-overlay .sw-reply-media{display:flex;flex-wrap:wrap;gap:8px;margin-top:7px}
.sc-community-gallery .sw-reply-media img, .sc-ui-photo-overlay .sw-reply-media img{width:75px;height:75px;object-fit:cover;border-radius:8px}

/* Shared attachment previews for Community and Woo native review replies. */
.sc-community-gallery .sw-gallery-reply-previews, .sc-ui-photo-overlay .sw-gallery-reply-previews{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}
.sc-community-gallery .sw-gallery-reply-preview, .sc-ui-photo-overlay .sw-gallery-reply-preview{position:relative;width:66px;height:66px;flex:0 0 66px}
.sc-community-gallery .sw-gallery-reply-preview img, .sc-ui-photo-overlay .sw-gallery-reply-preview img{width:100%;height:100%;object-fit:cover;border-radius:7px}
.sc-community-gallery .sw-gallery-reply-remove, .sc-ui-photo-overlay .sw-gallery-reply-remove{position:absolute;top:-7px;right:-7px;border:0;border-radius:50%;background:#263544;color:#fff;width:23px;height:23px;cursor:pointer;padding:0;line-height:1}
/* Native Woo review replies use the same shared photo composer as Community. */



@media(max-width:850px){
  
  
  
}

/* RC.24: top-level dialog scroll/focus protection and mobile safe-area clearance. */


@media (max-width:850px){
  
  
}

/* RC.27: unified compact comment list and composer, aligned with Q&A/Feed. */
.sc-ui-photo-overlay .sc-ui-photo-comment-item{display:flex;align-items:flex-start;gap:10px;margin:0 0 13px;padding:0;border:0;background:transparent;min-width:0}
.sc-ui-photo-overlay .sc-ui-photo-comment-avatar{height:35px;width:35px;flex:0 0 35px;border-radius:50%;margin:2px 0 0;object-fit:cover}
.sc-ui-photo-overlay .sc-ui-photo-comment-stack{min-width:0;flex:1}
.sc-ui-photo-overlay .sc-ui-photo-comment-main{display:flex;align-items:flex-start;gap:6px;min-width:0;position:relative}
.sc-ui-photo-overlay .sc-ui-photo-comment-bubble{display:inline-flex;flex-direction:column;align-items:flex-start;max-width:min(100%,560px);min-width:0;background:#f6f7f9;border-radius:9px;padding:10px 13px;box-sizing:border-box}
.sc-ui-photo-overlay .sc-ui-photo-comment-author{font-size:14px;font-weight:700;color:#151a24;line-height:1.3}
.sc-ui-photo-overlay .sc-ui-photo-comment-text{background:transparent!important;padding:0!important;margin:3px 0 0!important;color:#202935!important;font-size:14px;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap}
.sc-ui-photo-overlay .sc-ui-photo-comment-actions{margin:5px 0 0 2px;padding:0;display:flex;align-items:center;gap:12px;color:#737e8d;font-size:12px;justify-content:flex-start}
.sc-ui-photo-overlay .sc-ui-photo-comment-time{margin:0;color:inherit;font-size:12px}
.sc-ui-photo-overlay .sc-ui-photo-comment-like-btn{padding:0;min-height:0;border-radius:0;color:inherit}
.sc-ui-photo-overlay .sc-ui-photo-comment-overflow-wrap{position:relative;flex:0 0 auto}
.sc-ui-photo-overlay .sw-reply-media{display:flex;flex-wrap:wrap;gap:8px;margin:7px 0 0;max-width:100%}
.sc-ui-photo-overlay .sw-reply-media a{display:inline-flex;line-height:0;max-width:100%;border-radius:9px;overflow:hidden}
.sc-ui-photo-overlay .sw-reply-media img{display:block;width:min(330px,100%);height:auto;max-height:260px;object-fit:cover;border-radius:9px}
.sc-ui-photo-overlay .sc-ui-photo-comment-composer{gap:9px;align-items:flex-start}
.sc-ui-photo-overlay .sc-ui-photo-comment-composer-box{border:2px solid #b2eaf0;border-radius:13px;min-width:0;min-height:102px;padding:10px 12px 8px;background:#f8fafb!important;box-sizing:border-box}
.sc-ui-photo-overlay .sc-ui-photo-comment-input{height:42px;min-height:42px!important;resize:vertical!important;margin:0 0 3px!important;line-height:1.45!important}
.sc-ui-photo-overlay .sc-ui-photo-comment-composer-actions{display:flex;justify-content:space-between;align-items:center;min-height:32px}
.sc-ui-photo-overlay .sw-reply-photo-picker{display:inline-grid;place-items:center;min-width:32px;min-height:32px;padding:3px;background:#fff;border:0;border-radius:8px;color:var(--sc-theme-accent,#24b8c9)}
.sc-ui-photo-overlay .sw-reply-photo-picker .sw-reply-camera-svg,.sc-ui-photo-overlay .sw-reply-send-svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round;display:block}
.sc-ui-photo-overlay .sc-ui-photo-comment-send{display:grid;place-items:center;cursor:pointer}
.sc-ui-photo-overlay .sc-ui-photo-comment-send.is-sending{opacity:.5;pointer-events:none;cursor:progress}
.sc-ui-photo-overlay .sc-ui-photo-comment-send.is-sending::after{content:"…";margin-left:4px}
.sc-ui-photo-overlay .sc-ui-photo-comments-section:not(.active) #sc-js-gallery-commentsLoading,
.sc-ui-photo-overlay #sc-js-gallery-commentsLoading:not(.active){display:none!important}
@media(max-width:850px){
 .sc-ui-photo-overlay{inset:0;width:100vw;height:100dvh;z-index:2147482000;padding:0}
 .sc-ui-photo-overlay-container{height:100dvh;max-height:100dvh}
 .sc-ui-photo-overlay .sc-ui-photo-main-scroll{padding-bottom:0;scroll-padding-bottom:0;overflow-anchor:none}
 .sc-ui-photo-overlay .sc-ui-photo-details-section{min-width:0;overflow-wrap:anywhere}
 .sc-ui-photo-overlay .sc-ui-photo-comment-composer-box{min-width:0}
}
.sc-ui-photo-overlay[role="dialog"]:focus{outline:none}
.sc-ui-photo-overlay .sc-ui-photo-main-scroll{overscroll-behavior-y:contain}
