:root {
    --primary: #2563eb;
    --secondary: #3b82f6;
    --dark: #0f172a;
    --light: #f8fafc;
    --accent: #f59e0b;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    /* Performance optimizations */
    will-change: scroll-position;
    contain: layout style paint;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 15px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: slideInDown 0.5s ease-out;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    z-index: -1;
}

.alert-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #10b981;
}

.alert-success i {
    color: #10b981;
    animation: pulse 2s infinite;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.alert-danger i {
    color: #ef4444;
    animation: shake 0.5s ease-in-out;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.05) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.alert-warning i {
    color: #f59e0b;
}

.alert .btn-close {
    background: none;
    border: none;
    color: inherit;
    opacity: 0.7;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: static;
    margin-left: 1rem;
    flex-shrink: 0;
}

.alert .btn-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.alert .btn-close::before {
    content: '×';
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* Performance optimizations for images */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Wedding Header Styles */
.wedding-header {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
    backdrop-filter: blur(10px);
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.wedding-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hearts" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M10,6 Q10,0 15,6 T20,6 Q20,10 15,15 T10,20 Q10,10 0,10 Q10,0 10,6" fill="rgba(245,158,11,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23hearts)"/></svg>');
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.wedding-content {
    position: relative;
    z-index: 2;
}

.wedding-title {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 8px rgba(0,0,0,0.1);
    letter-spacing: 2px;
}

.wedding-message {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.wedding-text {
    font-size: 1.1rem;
    color: var(--light);
    line-height: 1.8;
    margin: 0;
    font-weight: 400;
}

.wedding-text i {
    color: var(--accent);
    animation: heartbeat 2s ease-in-out infinite;
}

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

/* Main Content Styles */
.main-content {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* Upload Container Styles */
.upload-container {
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
    border-radius: 20px;
    padding: 1rem;
    margin: 2rem 0;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upload-container:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.upload-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.upload-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.upload-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Gallery Grid Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
    /* Performance optimizations */
    contain: layout style;
    will-change: contents;
    /* Optimize for mobile */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
}

.gallery-item {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    min-height: 350px;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 300px;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

/* Lazy Loading Styles */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-image.loaded {
    opacity: 1;
}

.image-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%), 
                linear-gradient(-45deg, rgba(255,255,255,0.1) 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.1) 75%), 
                linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.1) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 1.2rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.gallery-item-info {
    padding: 15px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.gallery-item-info .btn-primary {
    background: var(--primary);
    border: none;
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    transition: all 0.3s ease;
}

.gallery-item-info .btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.gallery-item-info .text-muted {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Dropzone Styles */
.dropzone {
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 15px;
    background: rgba(255,255,255,0.05);
    padding: 20px;
    min-height: 150px;
}

.dropzone .dz-preview {
    margin: 10px;
}

.dropzone .dz-preview .dz-error-message {
    color: #dc3545;
}

.dropzone .dz-preview.dz-error {
    border-color: #dc3545;
}

.dropzone .dz-preview.dz-success {
    border-color: #28a745;
}

/* Footer Styles */
.footer {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link {
    color: var(--light);
    font-size: 1.2rem;
    margin: 0 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

/* Form Styles */
.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light);
    padding: 0.8rem;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    opacity: 1;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    color: var(--light);
    box-shadow: none;
}

.btn-modern {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-modern:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

/* Modal Styles */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.8) !important;
}

/* Force modal to always center on screen */
.modal.show .modal-dialog,
.modal-dialog {
    position: fixed !important;
    top: 50vh !important;
    left: 50vw !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    max-width: 95vw !important;
    max-height: 90vh !important;
    width: auto !important;
    height: auto !important;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    background: #222;
    z-index: 1060 !important;
}

/* Ensure modal backdrop covers entire viewport */
.modal-backdrop.show {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    opacity: 0.85 !important;
    background: #000 !important;
    z-index: 1040 !important;
}

/* Ensure modal is always in viewport */
.modal.show {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 1050 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.modal-content {
    background: rgba(15, 23, 42, 0.97) !important;
    border-radius: 16px !important;
    border: none !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    height: auto !important;
    min-height: auto !important;
}

.modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    max-width: 90vw;
    max-height: 80vh;
    overflow: auto;
    min-height: auto !important;
}

.modal-body img, .modal-body video {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    width: auto;
    height: auto;
    margin: auto;
    display: block;
}

#modalContent {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: pan-y pinch-zoom;
}

@media (max-width: 768px) {
    #modalContent {
        width: 100vw;
        height: 100vh;
        padding: 0;
    }
    
    #modalContent .modal-media-container {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #modalContent .modal-media-container img,
    #modalContent .modal-media-container video {
        max-width: 95vw !important;
        max-height: 90vh !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
    }
}

.modal-dialog {
    max-width: 90vw !important;
    max-height: 90vh !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: auto !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    overflow: hidden !important;
}

.modal-header {
    position: relative !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    background: rgba(0,0,0,0.9) !important;
    border-radius: 16px 16px 0 0 !important;
    padding: 1rem !important;
    backdrop-filter: blur(10px);
    border: none !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    z-index: 1060 !important;
}

.btn-close, .btn-close-white {
    filter: none !important;
    margin-left: 1rem !important;
    font-size: 1.5rem !important;
    background: none !important;
    border: none !important;
    color: #fff !important;
    opacity: 1 !important;
    z-index: 1061 !important;
    flex-shrink: 0 !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
    position: relative !important;
    overflow: visible !important;
}

.btn-close::before, .btn-close-white::before {
    content: "×" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-size: 1.5rem !important;
    font-weight: bold !important;
    color: #fff !important;
    line-height: 1 !important;
    z-index: 1062 !important;
}

.modal-title {
    color: white !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 1 1 auto !important;
    text-align: left !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    max-width: calc(100% - 50px) !important;
}

/* Ensure close button is always visible */
.modal-header .btn-close,
.modal-header .btn-close-white {
    background: rgba(255,255,255,0.1) !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: visible !important;
}

.modal-header .btn-close::before,
.modal-header .btn-close-white::before {
    content: "×" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-size: 1.5rem !important;
    font-weight: bold !important;
    color: #fff !important;
    line-height: 1 !important;
    z-index: 1062 !important;
}

.modal-header .btn-close:hover,
.modal-header .btn-close-white:hover {
    background: rgba(255,255,255,0.2) !important;
    transform: scale(1.1) !important;
}

/* Modal Navigation Buttons */
.btn-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 1rem;
    z-index: 1060;
    transition: all 0.3s ease;
    opacity: 0.7;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.btn-prev {
    left: 10px;
}

.btn-next {
    right: 10px;
}

/* Modal Download Button */
.modal-media-container {
    position: relative;
    display: inline-block;
}

.modal-download-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1060;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-media-container:hover .modal-download-btn {
    opacity: 1;
}

.modal-download-btn .btn {
    background: rgba(37, 99, 235, 0.9);
    border: none;
    padding: 0.8rem 2rem;
    font-weight: 500;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.modal-download-btn .btn:hover {
    background: rgba(37, 99, 235, 1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive Styles */
@media (max-width: 768px) {
    /* Force modal to always center on mobile */
    .modal.show .modal-dialog,
    .modal-dialog {
        max-width: 98vw !important;
        max-height: 90vh !important;
        top: 50vh !important;
        left: 50vw !important;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .wedding-title {
        font-size: 2.5rem;
    }
    
    .wedding-message {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .wedding-text {
        font-size: 1rem;
    }
    
    /* Mobile Modal Styles */
    .modal-dialog {
        max-width: 95vw !important;
        max-height: 85vh !important;
        margin: 0 auto !important;
        position: fixed !important;
        top: 50vh !important;
        left: 50vw !important;
        transform: translate(-50%, -50%) !important;
        min-height: auto !important;
    }
    
    .modal-content {
        border-radius: 15px;
        height: auto;
        min-height: auto !important;
        position: relative !important;
        overflow: hidden !important;
        padding-top: 0 !important;
    }
    
    .modal-body {
        padding: 5px !important;
        min-height: auto !important;
        max-height: 70vh;
        overflow: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .modal-body img,
    .modal-body video {
        max-height: 65vh !important;
        max-width: 90vw !important;
        width: auto !important;
        height: auto !important;
        border-radius: 8px !important;
        object-fit: contain !important;
    }
    
    .modal-header {
        position: relative !important;
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        background: rgba(0,0,0,0.9) !important;
        border-radius: 15px 15px 0 0 !important;
        padding: 0.5rem 0.75rem !important;
        backdrop-filter: blur(10px);
        border: none !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        z-index: 1060 !important;
    }
    
    .modal-title {
        color: white !important;
        font-size: 0.95rem !important;
        font-weight: 500 !important;
        margin: 0 !important;
        padding: 0 !important;
        flex: 1 1 auto !important;
        text-align: left !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        max-width: calc(100% - 50px) !important;
    }
    
    .btn-close-white {
        filter: none !important;
        margin-left: 0.3rem !important;
        font-size: 1.1rem !important;
        flex-shrink: 0 !important;
        width: 32px !important;
        height: 32px !important;
        color: #fff !important;
        opacity: 1 !important;
        text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
        position: relative !important;
        overflow: visible !important;
    }
    
    .btn-close-white::before {
        content: "×" !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        font-size: 1.25rem !important;
        font-weight: bold !important;
        color: #fff !important;
        line-height: 1 !important;
        z-index: 1062 !important;
    }
    
    .btn-nav {
        padding: 0.8rem;
        min-width: 50px;
        height: 50px;
        opacity: 0.9;
        background: rgba(0, 0, 0, 0.8) !important;
        border-radius: 50% !important;
    }
    
    .btn-prev {
        left: 10px;
    }
    
    .btn-next {
        right: 10px;
    }
    
    .modal-download-btn {
        opacity: 1 !important;
        bottom: 8px !important;
        position: absolute !important;
        z-index: 1060 !important;
    }

    .modal-download-btn .btn {
        padding: 0.8rem 2rem !important;
        font-size: 1rem !important;
        background: rgba(37, 99, 235, 0.9) !important;
        border-radius: 25px !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    }
}

@media (max-width: 480px) {
    /* Force modal to always center on small mobile */
    .modal.show .modal-dialog,
    .modal-dialog {
        max-width: 98vw !important;
        max-height: 95vh !important;
        top: 50vh !important;
        left: 50vw !important;
        transform: translate(-50%, -50%) !important;
    }
    
    .modal-dialog {
        max-width: 98vw !important;
        max-height: 90vh !important;
        margin: 0 !important;
        position: fixed !important;
        top: 50vh !important;
        left: 50vw !important;
        transform: translate(-50%, -50%) !important;
        border-radius: 16px !important;
        min-height: auto !important;
    }
    
    .modal-content {
        border-radius: 16px;
        height: auto;
        min-height: auto !important;
        position: relative !important;
        overflow: hidden !important;
        padding-top: 0 !important;
    }
    
    .modal-body {
        padding: 3px !important;
        min-height: auto !important;
        max-height: 65vh;
        overflow: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .modal-body img,
    .modal-body video {
        max-height: 60vh !important;
        max-width: 95vw !important;
        width: auto !important;
        height: auto !important;
        border-radius: 8px !important;
        object-fit: contain !important;
    }
    
    .modal-header {
        position: relative !important;
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        background: rgba(0,0,0,0.9) !important;
        border-radius: 16px 16px 0 0 !important;
        padding: 0.4rem 0.6rem !important;
        backdrop-filter: blur(10px);
        border: none !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        z-index: 1060 !important;
    }
    
    .modal-title {
        color: white !important;
        font-size: 0.85rem !important;
        font-weight: 500 !important;
        margin: 0 !important;
        padding: 0 !important;
        flex: 1 1 auto !important;
        text-align: left !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        max-width: calc(100% - 45px) !important;
    }
    
    .btn-close-white {
        filter: none !important;
        margin-left: 0.5rem !important;
        font-size: 1.2rem !important;
        flex-shrink: 0 !important;
        width: 32px !important;
        height: 32px !important;
        color: #fff !important;
        opacity: 1 !important;
        text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
        position: relative !important;
        overflow: visible !important;
    }
    
    .btn-close-white::before {
        content: "×" !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        font-size: 1.2rem !important;
        font-weight: bold !important;
        color: #fff !important;
        line-height: 1 !important;
        z-index: 1062 !important;
    }
    
    .btn-nav {
        min-width: 45px;
        height: 45px;
        padding: 0.6rem;
        background: rgba(0, 0, 0, 0.8) !important;
        border-radius: 50% !important;
    }
    
    .modal-download-btn {
        opacity: 1 !important;
        bottom: 10px !important;
        position: absolute !important;
        z-index: 1060 !important;
    }
} 