/* Interactive Elements CSS - Francis & Princess Wedding */

/* Guest Name Modal */
.guest-name-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.guest-name-modal.show {
    opacity: 1;
}

.guest-name-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.guest-name-modal.show .guest-name-content {
    transform: scale(1);
}

.guest-name-content h3 {
    color: var(--primary-color);
    font-family: var(--font-primary);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.guest-name-content p {
    color: var(--dark-color);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.guest-name-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--accent-color);
    border-radius: 25px;
    font-size: 16px;
    margin-bottom: 25px;
    outline: none;
    transition: border-color 0.3s ease;
}

.guest-name-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(229, 152, 155, 0.2);
}

.guest-name-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 15px;
}

.guest-name-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 152, 155, 0.4);
}

/* Photo Interactions - Desktop Only */
@media (min-width: 769px) {
.photo-interactions {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    gap: 15px;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 25px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    }
}

/* TikTok-style Mobile Layout for Photo Interactions - TRULY FLOATING */
@media (max-width: 768px) {
    /* OLD STYLES REMOVED - USING NEW CONSOLIDATED STYLES BELOW */
}

/* Comments Modal */
.comments-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: white;
    z-index: 15000;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: none;
    flex-direction: column;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
}

.comments-modal.show {
    transform: translateY(0);
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    background: var(--accent-color);
    border-radius: 20px 20px 0 0;
    flex-shrink: 0;
}

.comments-title {
    color: var(--dark-color);
    font-family: var(--font-primary);
    margin: 0;
    font-size: 1.3rem;
    position: relative;
}

.comments-title.timeline-paused::after {
    content: '⏸️';
    font-size: 0.8em;
    margin-left: 8px;
    opacity: 0.7;
}

.comments-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark-color);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.comments-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px 25px;
    max-height: calc(100% - 200px); /* Reserve space for header and form */
    min-height: 200px; /* Minimum height to show scrollable area */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f1f1f1;
    position: relative;
}

/* Scroll indicator for many comments */
.comments-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.comments-list.has-scroll::before {
    opacity: 1;
}

.comments-list::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.comments-list.has-scroll::after {
    opacity: 1;
}

.comments-list::-webkit-scrollbar {
    width: 6px;
}

.comments-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.comment-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    animation: commentSlideIn 0.3s ease;
    position: relative;
}

@keyframes commentSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.comment-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
    position: relative;
}

.comment-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
    align-items: center;
}

.comment-author {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
}

.comment-time {
    color: #666;
    font-size: 12px;
}

.comment-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
    position: relative;
    animation: fadeInActions 0.3s ease;
}

@keyframes fadeInActions {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}



.comment-menu-trigger {
    background: none;
    border: none;
    padding: 6px;
    border-radius: 50%;
    cursor: pointer;
    color: #666;
    font-size: 16px;
    transition: all 0.2s ease;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    position: relative;
}

.comment-menu-trigger::before {
    content: 'Options';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    margin-bottom: 4px;
}

.comment-menu-trigger:hover::before {
    opacity: 1;
}

.comment-menu-trigger:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
    opacity: 1;
    transform: scale(1.1);
}

.comment-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    min-width: 120px;
    padding: 4px 0;
}

.comment-dropdown-menu.show {
    display: block;
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-dropdown-item {
    display: block;
    width: 100%;
    padding: 8px 16px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    transition: background-color 0.2s ease;
}

.comment-dropdown-item:hover {
    background: #f5f5f5;
}

.comment-dropdown-item.delete {
    color: #d32f2f;
}

.comment-dropdown-item.delete:hover {
    background: #ffebee;
}

.comment-dropdown-item.edit {
    color: #1976d2;
}

.comment-dropdown-item.edit:hover {
    background: #e3f2fd;
}

.comment-text {
    color: var(--dark-color);
    line-height: 1.4;
    font-size: 14px;
    word-wrap: break-word;
}

.comment-text.editing {
    display: none;
}

.comment-edit-form {
    display: none;
    gap: 8px;
    margin-top: 5px;
}

.comment-edit-form.active {
    display: flex;
}

.comment-edit-input {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    outline: none;
    font-size: 13px;
    resize: none;
    min-height: 32px;
    max-height: 80px;
}

.comment-edit-save {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 11px;
    cursor: pointer;
    font-weight: 500;
}

.comment-edit-cancel {
    background: #ddd;
    color: #666;
    border: none;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 11px;
    cursor: pointer;
    font-weight: 500;
}

.comment-form {
    display: flex;
    gap: 10px;
    padding: 20px 25px;
    border-top: 1px solid #eee;
    background: #fafafa;
    flex-shrink: 0;
}

.comment-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s ease;
    resize: none;
    min-height: 45px;
    max-height: 80px;
}

.comment-input:focus {
    border-color: var(--primary-color);
}

.comment-submit {
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.comment-submit:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.no-comments {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
}

/* Upload Modal */
.upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 12000;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upload-modal.show {
    opacity: 1;
}

.upload-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90%;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.upload-modal.show .upload-content {
    transform: scale(1);
}

.upload-header {
    text-align: center;
    margin-bottom: 30px;
}

.upload-title {
    color: var(--primary-color);
    font-family: var(--font-primary);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.upload-subtitle {
    color: var(--dark-color);
    font-size: 1.1rem;
}

.upload-drop-zone {
    border: 3px dashed var(--accent-color);
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: #fafafa;
    z-index: 1;
    overflow: hidden;
}

.upload-drop-zone:hover,
.upload-drop-zone.drag-over {
    border-color: var(--primary-color);
    background: var(--accent-color);
    cursor: pointer;
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.upload-drop-zone:active {
    transform: scale(0.98);
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.upload-text {
    color: var(--dark-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.upload-hint {
    color: #666;
    font-size: 0.9rem;
}

.upload-input {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    z-index: -1 !important;
    border: none !important;
    background: transparent !important;
    pointer-events: auto !important;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(229, 152, 155, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.upload-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.upload-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.upload-btn:not(.secondary) {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(229, 152, 155, 0.4);
}

.upload-btn:not(.secondary):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 152, 155, 0.6);
}

.upload-btn.secondary {
    background: #f5f5f5;
    color: var(--dark-color);
    border: 2px solid #e0e0e0;
}

.upload-btn.secondary:hover {
    background: #e0e0e0;
}

/* Guest Wall Improvements */
.guest-wall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    max-height: 600px;
    overflow-y: auto;
    padding: 20px 0;
}

.guest-message {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.guest-message:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.message-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.message-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.message-meta {
    flex: 1;
}

.message-author {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 16px;
    margin-bottom: 5px;
}

.message-time {
    color: #666;
    font-size: 12px;
}

.message-content {
    color: var(--dark-color);
    line-height: 1.6;
    font-size: 14px;
}

.no-messages {
    grid-column: 1 / -1;
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Remove conflicting rules - TikTok style is handled above */
    .comments-modal {
        height: 80%;
    }
    
    .guest-name-content {
        padding: 30px 20px;
    }
    
    .upload-content {
        padding: 25px;
        width: 95%;
        max-height: 95%;
    }
    
    .upload-drop-zone {
        padding: 30px 15px;
    }
    
    .guest-wall-grid {
        grid-template-columns: 1fr;
        max-height: 500px;
    }
}

@media (max-width: 480px) {
    /* Remove conflicting rules - TikTok style is handled above */
    .comments-modal {
        height: 85%;
    }
    
    .upload-drop-zone {
        padding: 30px 15px;
    }
    
    .upload-actions {
        flex-direction: column;
    }
} 

/* SweetAlert2 Success Modal Customization */
.mobile-success-modal {
    padding: 20px !important;
}

.mobile-close-btn {
    background: var(--primary-color) !important;
    color: white !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 1000 !important;
}

.mobile-close-btn:hover {
    background: var(--secondary-color) !important;
    transform: scale(1.1) !important;
}

/* Message Success Modal Close Button Styling */
.message-success-modal {
    padding: 20px !important;
}

.message-close-btn {
    background: #ff6b6b !important;
    color: white !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 1000 !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-weight: bold !important;
    line-height: 1 !important;
}

.message-close-btn:hover {
    background: #ee5a24 !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4) !important;
}

.message-close-btn:active {
    transform: scale(0.95) !important;
}

/* Message Error Modal Styling */
.message-error-modal {
    padding: 20px !important;
}

/* The close button for error modals will use the same .message-close-btn class */

/* Year Info Modal Close Button Styling */
.year-info-modal {
    padding: 20px !important;
}

.year-close-btn {
    background: #e5989b !important;
    color: white !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 1000 !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-weight: bold !important;
    line-height: 1 !important;
}

.year-close-btn:hover {
    background: #d8787b !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(229, 152, 155, 0.4) !important;
}

.year-close-btn:active {
    transform: scale(0.95) !important;
}

@media (max-width: 768px) {
    .mobile-success-modal {
        width: 95% !important;
        margin: 10px !important;
        padding: 15px !important;
    }
    
    .mobile-close-btn {
        top: 10px !important;
        right: 10px !important;
        width: 35px !important;
        height: 35px !important;
        font-size: 16px !important;
    }
    
    .swal2-confirm {
        font-size: 16px !important;
        padding: 12px 25px !important;
        border-radius: 25px !important;
    }
    
    /* Mobile responsive styling for message close button */
    .message-success-modal {
        width: 95% !important;
        margin: 10px !important;
        padding: 15px !important;
    }
    
    .message-close-btn {
        top: 10px !important;
        right: 10px !important;
        width: 35px !important;
        height: 35px !important;
        font-size: 18px !important;
    }
    
    /* Mobile responsive styling for year close button */
    .year-info-modal {
        width: 95% !important;
        margin: 10px !important;
        padding: 15px !important;
    }
    
    .year-close-btn {
        top: 10px !important;
        right: 10px !important;
        width: 35px !important;
        height: 35px !important;
        font-size: 18px !important;
    }
} 

.photo-stats {
    display: flex;
    gap: 15px;
    align-items: center;
}

.photo-reactions {
    display: flex;
    gap: 10px;
}

.reaction-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 25px;
    padding: 8px 15px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.reaction-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.reaction-btn.animate {
    animation: reactionPop 0.6s ease;
}

@keyframes reactionPop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.comments-btn, .views-count {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.comments-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.views-count {
    cursor: default;
} 

/* Enhanced mobile animations for TikTok-style interactions */
@media (max-width: 768px) {
    
    /* Beautiful heart bounce animation - Dark TikTok Style */
    .reaction-btn.animate {
        animation: heartPopTikTok 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    }
    
    @keyframes heartPopTikTok {
        0% { 
            transform: scale(1.05);
            background: rgba(0, 0, 0, 0.75);
        }
        30% {
            transform: scale(1.4) rotate(5deg);
            background: rgba(255, 23, 68, 0.2);
        }
        60% {
            transform: scale(1.15) rotate(-3deg);
            background: rgba(0, 0, 0, 0.85);
        }
        100% { 
            transform: scale(1.05);
            background: rgba(0, 0, 0, 0.9);
        }
    }
    
    /* Remove floating animation - causes positioning issues */
    .photo-interactions {
        animation: none !important;
    }
    
    /* Beautiful pulse for active heart - Dark TikTok Style */
    .reaction-btn.active {
        animation: heartPulseTikTok 1.5s ease-in-out infinite !important;
        background: rgba(255, 23, 68, 0.15) !important;
        box-shadow: 0 4px 20px rgba(255, 23, 68, 0.6) !important;
    }
    
    @keyframes heartPulseTikTok {
        0%, 100% {
            transform: scale(1.05);
            background: rgba(255, 23, 68, 0.15);
            box-shadow: 0 4px 20px rgba(255, 23, 68, 0.6);
        }
        50% {
            transform: scale(1.2);
            background: rgba(255, 23, 68, 0.25);
            box-shadow: 0 6px 25px rgba(255, 23, 68, 0.8);
        }
    }
    
    /* Add click feedback for comments - Dark Style */
    .comments-btn:active {
        animation: commentClickTikTok 0.2s ease-out !important;
    }
    
    @keyframes commentClickTikTok {
        0% { 
            transform: scale(1); 
            background: rgba(0, 0, 0, 0.75);
        }
        50% { 
            transform: scale(1.15); 
            background: rgba(0, 0, 0, 0.9);
        }
        100% { 
            transform: scale(1.1); 
            background: rgba(0, 0, 0, 0.85);
        }
    }
    
    /* Improved touch targets for better mobile UX */
    .reaction-btn,
    .comments-btn,
    .views-count {
        position: relative !important;
        overflow: visible !important;
        -webkit-tap-highlight-color: transparent !important;
        touch-action: manipulation !important;
    }
    
    /* Beautiful glow effect for active reactions - TikTok Style */
    .reaction-btn.active::after {
        content: '' !important;
        position: absolute !important;
        top: -3px !important;
        left: -3px !important;
        right: -3px !important;
        bottom: -3px !important;
        border-radius: 50% !important;
        background: linear-gradient(45deg, #ff1744, #ff4569, #ff1744) !important;
        z-index: -1 !important;
        animation: glowPulseTikTok 2s ease-in-out infinite !important;
        opacity: 0.6 !important;
    }
    
    @keyframes glowPulseTikTok {
        0%, 100% {
            opacity: 0.4;
            transform: scale(1);
        }
        50% {
            opacity: 0.8;
            transform: scale(1.1);
        }
    }
}

/* Remove additional problematic animations */
@media (max-width: 480px) {
    /* Animations are beautiful - keep them! */
}

/* Prevent interaction conflicts during swipe gestures */
@media (max-width: 768px) {
    .timeline-photo-container {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
        -webkit-tap-highlight-color: transparent;
        touch-action: pan-x pan-y; /* Allow horizontal and vertical panning */
    }
    
    /* PHOTO INTERACTIONS - STABLE FLOATING POSITIONING */
    .photo-interactions,
    .timeline-gallery-modal .photo-interactions,
    .swal2-container .photo-interactions,
    .timeline-photo-container .photo-interactions,
    .image-navigation-container .photo-interactions {
        position: fixed !important;
        right: 20px !important;
        bottom: 35% !important; /* Updated to match new lower position */
        transform: translateY(50%) !important;
        left: auto !important;
        top: auto !important;
        width: auto !important;
        height: auto !important;
        z-index: 999999 !important;
        pointer-events: none !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        backdrop-filter: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 15px !important;
        will-change: transform !important;
        backface-visibility: hidden !important;
        perspective: 1000px !important;
        isolation: isolate !important;
    }
    
    /* Only buttons themselves are clickable */
    .photo-interactions .reaction-btn,
    .photo-interactions .comments-btn {
        pointer-events: auto !important;
        touch-action: manipulation !important;
    }
    
    /* Views and labels don't interfere */
    .photo-interactions .views-count,
    .photo-interactions span {
        pointer-events: none !important;
    }
    
    /* Override any SweetAlert2 container issues */
    .timeline-gallery-modal .photo-interactions {
        position: fixed !important;
        z-index: 9999 !important;
        bottom: 120px !important;
        right: 15px !important;
        pointer-events: none !important;
    }
    
    .timeline-gallery-modal .photo-interactions .reaction-btn,
    .timeline-gallery-modal .photo-interactions .comments-btn {
        pointer-events: auto !important;
    }
} 

/* MOBILE RESPONSIVENESS OVERRIDES */
@media (max-width: 768px) {
    /* OLD STYLES COMPLETELY REMOVED - REPLACED BY NEW UNIFIED STYLES ABOVE */
} 

/* Floating Photo Interaction Buttons (FAB-style) - Mobile Only */
.floating-photo-interactions {
    position: fixed;
    bottom: 35%;
    right: 20px;
    transform: translateY(50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999998;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.floating-photo-interactions.hidden {
    opacity: 0;
    transform: translateY(50%) translateX(20px);
    pointer-events: none;
}

.photo-fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    overflow: visible;
    transform: scale(1) translateZ(0);
    animation: photoFabEntrance 0.6s ease-out;
    pointer-events: auto; /* Individual buttons are clickable */
    touch-action: manipulation;
    flex-direction: column;
    gap: 2px;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.8);
    will-change: transform, background-color, box-shadow;
    backface-visibility: hidden;
    isolation: isolate;
}

/* Entrance Animation - Copy from FAB */
@keyframes photoFabEntrance {
    0% {
        transform: scale(0) rotate(180deg) translateZ(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) rotate(90deg) translateZ(0);
        opacity: 0.8;
    }
    100% {
        transform: scale(1) rotate(0deg) translateZ(0);
        opacity: 1;
    }
}

/* Stagger the animation for multiple buttons */
.photo-fab:nth-child(1) {
    animation-delay: 0.1s;
}

.photo-fab:nth-child(2) {
    animation-delay: 0.2s;
}

.photo-fab:nth-child(3) {
    animation-delay: 0.3s;
}

/* Individual Photo FAB Styling */
.photo-fab-heart {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 23, 68, 0.3);
}

.photo-fab-heart i {
    color: #ff1744;
    font-size: 20px;
}

.photo-fab-heart.active {
    background: rgba(255, 23, 68, 0.2);
    border-color: rgba(255, 23, 68, 0.6);
    box-shadow: 0 4px 25px rgba(255, 23, 68, 0.5);
    animation: photoHeartPulse 1.5s ease-in-out infinite;
}

@keyframes photoHeartPulse {
    0%, 100% {
        transform: scale(1) translateZ(0);
        box-shadow: 0 4px 25px rgba(255, 23, 68, 0.5);
    }
    50% {
        transform: scale(1.05) translateZ(0);
        box-shadow: 0 6px 30px rgba(255, 23, 68, 0.7);
    }
}

.photo-fab-comment {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

.photo-fab-comment i {
    color: #ffffff;
    font-size: 18px;
}

.photo-fab-views {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.05);
    cursor: default;
    pointer-events: none; /* Views are not clickable */
}

.photo-fab-views i {
    color: #ffffff;
    font-size: 16px;
}

/* Photo FAB Count Styling */
.photo-fab-count {
    font-size: 11px;
    color: #ffffff;
    font-weight: 600;
    line-height: 1;
    display: block;
    margin: 0;
    padding: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    text-align: center;
}

/* Hover Effects - Copy from FAB */
.photo-fab:hover {
    transform: translateY(-3px) scale(1.1) translateZ(0);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.photo-fab-heart:hover {
    background: rgba(255, 23, 68, 0.1);
    border-color: rgba(255, 23, 68, 0.4);
    box-shadow: 0 8px 30px rgba(255, 23, 68, 0.4);
}

.photo-fab-comment:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

/* Pulse Animation on Hover - Copy from FAB */
.photo-fab:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: inherit;
    opacity: 0.3;
    animation: photoFabPulse 1.5s infinite;
    pointer-events: none;
}

@keyframes photoFabPulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Tooltip Styling - Copy from FAB */
.photo-fab-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1001;
}

.photo-fab-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.9);
}

.photo-fab:hover .photo-fab-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-5px);
}

/* Active/Click Animation - Copy from FAB */
.photo-fab:active {
    transform: translateY(-1px) scale(0.95) translateZ(0);
    transition: transform 0.1s ease;
}

.photo-fab i {
    transition: transform 0.3s ease;
    z-index: 1;
    position: relative;
}

.photo-fab:hover i {
    transform: scale(1.1);
}

/* Mobile responsiveness - Copy from FAB responsive design */
@media (max-width: 768px) {
    .floating-photo-interactions {
        display: flex; /* Show on mobile */
        bottom: 35%; /* Moved down to match main positioning */
        right: 20px;
        transform: translateY(50%);
        gap: 12px;
    }
    
    .photo-fab {
        width: 56px;
        height: 56px;
        font-size: 16px;
    }
    
    .photo-fab-tooltip {
        font-size: 11px;
        padding: 6px 10px;
        right: 66px;
    }
}

@media (max-width: 480px) {
    .floating-photo-interactions {
        right: 15px;
        bottom: 30%; /* Slightly lower on smaller screens */
        gap: 10px;
    }
    
    .photo-fab {
        width: 50px;
        height: 50px;
        font-size: 14px;
    }
    
    .photo-fab-count {
        font-size: 10px;
    }
    
    .photo-fab-tooltip {
        font-size: 10px;
        padding: 5px 8px;
        right: 60px;
    }
}

@media (max-width: 320px) {
    .floating-photo-interactions {
        right: 12px;
        bottom: 28%; /* Even lower on very small screens */
        gap: 8px;
    }
    
    .photo-fab {
        width: 46px;
        height: 46px;
        font-size: 13px;
    }
    
    .photo-fab-count {
        font-size: 9px;
    }
    
    .photo-fab-tooltip {
        font-size: 9px;
        padding: 4px 6px;
        right: 56px;
    }
}

/* Hide on desktop - use original photo-interactions */
@media (min-width: 769px) {
    .floating-photo-interactions {
        display: none !important;
    }
}

/* Touch Support - Copy from FAB */
@media (hover: none) and (pointer: coarse) {
    .photo-fab.touch-active .photo-fab-tooltip {
        opacity: 1;
        visibility: visible;
        transform: translateY(-50%) translateX(-5px);
    }
    
    .photo-fab:hover {
        transform: scale(1.05) translateZ(0);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    }
    
    .photo-fab:hover::before {
        display: none;
    }
    
    .photo-fab:hover i {
        transform: none;
    }
    
    .photo-fab:active {
        transform: scale(0.95) translateZ(0);
    }
}

/* Accessibility - Copy from FAB */
.photo-fab:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.photo-fab:focus:not(:focus-visible) {
    outline: none;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .photo-fab {
        border-color: rgba(255, 255, 255, 0.5);
        background: rgba(0, 0, 0, 0.9);
    }
    
    .photo-fab-tooltip {
        background: rgba(0, 0, 0, 1);
        border: 1px solid rgba(255, 255, 255, 0.5);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .photo-fab {
        animation: none !important;
        transition: none !important;
    }
    
    .photo-fab:hover {
        transform: none !important;
    }
    
    .photo-fab:hover::before {
        animation: none !important;
    }
    
    .photo-fab-heart.active {
        animation: none !important;
    }
} 

/* Hide original photo-interactions on mobile when in timeline gallery */
@media (max-width: 768px) {
    .timeline-gallery-modal .photo-interactions,
    .swal2-container .photo-interactions,
    .timeline-photo-container .photo-interactions,
    .image-navigation-container .photo-interactions {
        display: none !important;
    }
} 

/* Mobile Responsiveness - Half Screen */
@media (max-width: 768px) {
    .comments-modal {
        height: 50vh; /* Half screen height */
        min-height: 400px; /* Minimum height for usability */
        max-height: 60vh; /* Maximum height to prevent overflow */
    }
    
    .comments-header {
        padding: 15px 20px;
        border-radius: 15px 15px 0 0;
    }
    
    .comments-title {
        font-size: 1.1rem;
    }
    
    .comments-close {
        font-size: 20px;
        padding: 8px;
    }
    
    .comments-list {
        padding: 15px 20px;
        max-height: calc(100% - 160px); /* Adjust for mobile header/form */
        min-height: 150px;
    }
    
    .comment-item {
        margin-bottom: 15px;
        gap: 12px;
    }
    
    .comment-avatar {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .comment-author {
        font-size: 13px;
    }
    
    .comment-time {
        font-size: 11px;
    }
    
    .comment-text {
        font-size: 13px;
    }
    
    .comment-actions {
        position: absolute;
        top: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 8px;
        padding: 4px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        display: flex;
    }
    
    .comment-item:hover .comment-actions,
    .comment-actions.always-show {
        display: flex;
    }
    
    .comment-menu-trigger {
        width: 24px;
        height: 24px;
        font-size: 14px;
        opacity: 1;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .comment-menu-trigger:hover {
        transform: none;
        background: rgba(255, 255, 255, 0.2);
    }
    
    .comment-menu-trigger::before {
        display: none;
    }
    
    .comment-dropdown-menu {
        right: -4px;
        font-size: 12px;
        min-width: 100px;
    }
    
    .comment-dropdown-item {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .comment-form {
        padding: 15px 20px;
        gap: 8px;
        /* Move to bottom - already positioned correctly */
    }
    
    .comment-input {
        padding: 10px 16px;
        font-size: 13px;
        min-height: 40px;
        max-height: 60px;
    }
    
    .comment-submit {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .comment-edit-input {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .comment-edit-save,
    .comment-edit-cancel {
        font-size: 10px;
        padding: 4px 8px;
    }
}

/* Extra small mobile screens */
@media (max-width: 480px) {
    .comments-modal {
        height: 45vh;
        min-height: 350px;
    }
    
    .comments-header {
        padding: 12px 16px;
    }
    
    .comments-list {
        padding: 12px 16px;
        max-height: calc(100% - 140px);
    }
    
    .comment-form {
        padding: 12px 16px;
    }
    
    .comment-input {
        padding: 8px 14px;
        font-size: 12px;
        min-height: 36px;
    }
    
    .comment-submit {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
} 

@keyframes commentSlideOut {
    from {
        opacity: 1;
        max-height: 200px;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        max-height: 0;
        transform: translateX(-20px);
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
} 