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

.sc-ui-photo-upload-prompt {
    text-align: center;
    margin-bottom: 30px;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
}

.sc-ui-photo-prompt-title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 5px;
    color: #2d3436;
}

.sc-ui-photo-prompt-text {
    font-size: 14px;
    margin-bottom: 15px;
    color: #555;
}

.sc-ui-photo-upload-btn {
    background-color: #00b9cd;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px;
}

.sc-ui-photo-upload-btn:hover:not(.disabled) {
    background-color: #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;
    padding: 20px;
}

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

.sc-ui-photo-upload-container {
    background-color: white;
    border-radius: 12px;
    width: 100%;
    max-width: 550px;
    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-overlay {
        padding: 0;
    }
    
    .sc-ui-photo-upload-container {
        border-radius: 12px 12px 0 0;
        max-height: 50vh;
        width: 100%;
        padding: 15px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        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: #00b9cd;
    outline: none;
}

/* Image preview container with 5 fixed grid cells */
.sc-ui-photo-upload-preview {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    margin: 3px 0; /* Adjusted to 3px spacing */
    height: 0; /* Hidden by default */
    overflow: hidden;
    transition: height 0.3s ease;
}

/* Show preview container when there are images */
.sc-ui-photo-upload-preview.has-images {
    height: 80px;
}

.sc-ui-photo-preview-item {
    position: relative;
    height: 100%;
    border-radius: 6px;
    overflow: hidden;
    /* Removed background and border */
}

.sc-ui-photo-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sc-ui-photo-preview-remove {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #e74c3c;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.sc-ui-photo-upload-add {
    width: 100%;
    padding: 12px;
    background-color: #f0f0f0;
    border: 2px dashed #ccc;
    border-radius: 8px;
    color: #666;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    margin-bottom: 3px;
}

.sc-ui-photo-upload-add:hover {
    background-color: #e9ecef;
    border-color: #00b9cd;
    color: #00b9cd;
}

.sc-ui-photo-upload-submit {
    width: 100%;
    padding: 12px;
    background-color: #00b9cd;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 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:hover:not(.disabled) {
    background-color: #00a5b9;
}

.sc-ui-photo-upload-submit.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #ccc;
}

.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: #00b9cd;
    border-radius: 50%;
    animation: sc-ui-photo-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;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 14px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 12px;
    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;
    z-index: 1000;
    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-width: 1600px;
    max-height: calc(100vh - 80px);
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

@media (max-width: 850px) {
    .sc-ui-photo-overlay-container {
        flex-direction: column;
        max-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }
}

.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-section {
        flex: 3;
        padding: 15px;
    }
}

.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 {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    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: #00b9cd;
    border-radius: 50%;
    animation: sc-ui-photo-spin 1.2s linear infinite;
    margin: 0 0 15px 0;
}

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

@keyframes sc-ui-photo-spin {
    to { transform: rotate(360deg); }
}

.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;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 10;
}

@media (max-width: 850px) {
    .sc-ui-photo-gallery-dots {
        bottom: 20px;
    }
}

.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: #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;
}

@media (max-width: 850px) {
    .sc-ui-photo-details-section {
        flex: 1;
        width: 100%;
        max-width: 100%;
        padding: 15px;
    }
}

.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;
    line-height: 1.5;
    color: #555;
    font-size: 13px;
    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: #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: #00b9cd;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 10px 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-align: center;
}

.sc-ui-photo-action-btn:hover:not(.disabled) {
    background-color: rgba(0, 185, 205, 0.1);
    color: #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;
    border-radius: 8px;
    padding: 6px;
    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;
}

@media (max-width: 850px) {
    .sc-ui-photo-emoji-popup {
        left: 50%;
        transform: translateX(-50%) scale(0);
        transform-origin: bottom center;
    }
}

.sc-ui-photo-like-btn:hover .sc-ui-photo-emoji-popup {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 850px) {
    .sc-ui-photo-like-btn:hover .sc-ui-photo-emoji-popup {
        transform: translateX(-50%) scale(1);
    }
}

.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;
    animation: sc-ui-photo-fadeIn 0.3s ease;
}

.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: #00b9cd;
}

.sc-ui-photo-comment-form {
    display: none;
    margin-bottom: 12px;
}

.sc-ui-photo-comments-section.active .sc-ui-photo-comment-form {
    display: block;
    animation: sc-ui-photo-fadeIn 0.3s ease;
}

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

.sc-ui-photo-comment-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: none;
    font-size: 13px;
    margin-bottom: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sc-ui-photo-comment-input:focus {
    border-color: #00b9cd;
    box-shadow: 0 0 0 3px rgba(0, 185, 205, 0.1);
    outline: none;
}

.sc-ui-photo-comment-submit {
    background-color: #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: #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 {
    padding: 12px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 10px;
    position: relative;
}

.sc-ui-photo-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.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 {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 10px;
    padding-bottom: 5px;
}

.sc-ui-photo-comment-actions {
    display: flex;
    justify-content: flex-end;
    font-size: 11px;
}

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

.sc-ui-photo-comment-like-btn:hover:not(.disabled) {
    color: #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 #00b9cd;
    color: #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: #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;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.sc-ui-photo-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #00b9cd;
    border-radius: 50%;
    animation: sc-ui-photo-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-loadMoreGridDiv {
    display: none;
    align-items: center;
    justify-content: center;
    background: #00b9cd;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin: 20px auto;
    user-select: none;
}

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

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

.sc-ui-photo-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.sc-ui-photo-toast.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.sc-ui-photo-toast.error {
    background-color: #e74c3c;
}

.sc-ui-photo-toast.success {
    background-color: #2ecc71;
}
    

.woocommerce ul.products li.product img { width:auto; height:auto; object-fit:contain; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { white-space:normal; line-height:1.4; }
.related.products ul.products { display:block; } /* 或使用主题默认的布局方式 */
