.lightview-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lightview-container {
    position: relative;
    width: 90%;
    height: 90%;
    background: #222;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.lightview-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.lightview-media-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
    padding: 20px;
}

.lightview-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightview-pdf-canvas {
    max-width: 100%;
    border: 1px solid #444;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.lightview-caption,
.lightview-counter {
    color: white;
    text-align: center;
    padding: 10px;
    background: rgba(0,0,0,0.7);
}

.lightview-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.lightview-prev,
.lightview-next {
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 20px;
    background: rgba(0,0,0,0.5);
    pointer-events: all;
}

.lightview-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
}

.lightview-pdf-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(0,0,0,0.7);
}

.lightview-pdf-controls button {
    padding: 5px 10px;
    background: #444;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.lightview-pdf-controls button:hover {
    background: #555;
}

.lightview-error {
    color: white;
    padding: 20px;
    text-align: center;
}

.lightview-video {
    max-width: 100%;
    max-height: 80vh;
}

.lightview-unsupported {
    color: white;
    text-align: center;
    padding: 20px;
}

.lightview-unsupported a {
    color: #4da6ff;
    text-decoration: none;
}

.lightview-unsupported a:hover {
    text-decoration: underline;
}
