@import url("https://unpkg.com/photoswipe@5.4.3/dist/photoswipe.css");

.pswp__custom-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    pointer-events: none;
    display: flex;
    justify-content: center;
}
.pswp__caption-content {
    pointer-events: auto;
    width: 100%;
    max-width: 1200px;
    padding: 40px 20px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 60%, transparent 100%);
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.pswp__caption-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}
.pswp__caption-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}
.pswp__caption-desc {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 8px;
    max-width: 800px;
}
.pswp__caption-count {
    font-size: 0.8rem;
    opacity: 0.5;
    font-variant-numeric: tabular-nums;
}
.pswp__badge {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.pswp__badge--verified { background-color: #673ab7; color: white; }
.pswp__badge--warning { background-color: #ff9800; color: white; }

/* Custom Buttons Styling */
.pswp__button i {
    font-size: 1.25rem;
    vertical-align: middle;
    color: #ffffff !important;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.8));
}

.pswp__button--verify { background-color: rgba(76, 175, 80, 0.3) !important; margin-right: 4px; }
.pswp__button--verify:hover { background-color: rgba(76, 175, 80, 0.5) !important; }

.pswp__button--mod-details { background-color: rgba(33, 150, 243, 0.3) !important; margin-right: 4px; }
.pswp__button--mod-details:hover { background-color: rgba(33, 150, 243, 0.5) !important; }

.pswp__button--report { background-color: rgba(244, 67, 54, 0.3) !important; }
.pswp__button--report:hover { background-color: rgba(244, 67, 54, 0.5) !important; }

.pswp__button--pdf-lock { background-color: rgba(255, 255, 255, 0.1) !important; margin-right: 10px; }

/* PDF Handling */
.pswp__pdf-wrapper {
    background: #525659;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.pswp__pdf-container {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}
.pswp__pdf-container iframe {
    background: white;
    display: block;
    width: 100%;
    height: 100%;
}

/* Force zoom button for non-image types */
.pswp__button--zoom {
    display: block !important;
}

/* Fix for Radzen Dialog background conflict */
.pswp-dialog {
    background-color: black !important;
    box-shadow: none !important;
}
.pswp-dialog .rz-dialog-content {
    padding: 0 !important;
    background: black !important;
}
