#myLightboxOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100000; /* Adjusted z-index for WP themes */
    overflow: hidden;
}
.lb-main-container {
    position: relative;
    width: 90%;
    height: 70%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
.lb-main {
    max-width: 100%;
    max-height: 100%;
    position: absolute;
}
.lb-buttons {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 100001;
}
.lb-buttons button {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 4px;
}
.lb-nav-button, .lb-buttons button {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s, transform 0.2s;
}
.lb-nav-button:hover, .lb-buttons button:hover {
    background: rgba(255, 255, 255, 0.2);
}
button svg {
    pointer-events: none;
}
.lb-prev {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}
.lb-next {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}
.lb-thumbs {
    display: flex;
    gap: 5px;
    margin-top: 10px;
    overflow-x: auto;
    max-width: 90%;
}
.lb-thumbs::-webkit-scrollbar {
    display: none;
}
.lb-thumbs img {
    height: 60px;
    cursor: pointer;
    opacity: 0.5;
    transition: 0.3s;
    flex-shrink: 0;
}
.lb-thumbs img.active {
    opacity: 1;
    border: 2px solid #fff;
}
.qmsg {
    z-index: 100002;
}
@media (max-width: 768px) {
    .lb-nav-button:hover, .lb-buttons button:hover {
        background: rgba(0, 0, 0, 0.6);
    }
}