body.lb-disable-scrolling {
    overflow: hidden;
}

.lightboxOverlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9999;
    background-color: black;
    opacity: 0.8;
    display: none;
}

.lightbox {
    position: absolute;
    left: 0;
    width: 100%;
    z-index: 10000;
    text-align: center;
    line-height: 0;
    font-weight: normal;
    outline: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: pan-y;
}

    .lightbox .lb-image {
        display: block;
        height: auto;
        max-width: inherit;
        max-height: none;
        border-radius: 4px;
        border: none;
    }

    .lightbox a img {
        border: none;
    }

.lb-outerContainer {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto;
    border-radius: 4px;
    background-color: transparent;
}

    .lb-outerContainer:after {
        content: "";
        display: table;
        clear: both;
    }

.lb-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    text-align: center;
    line-height: 0;
    z-index: 10001;
}

.lb-cancel {
    display: block;
    width: 40px;
    height: 40px;
    margin: 0 auto;
    background: transparent !important;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: #ffffff;
    border-radius: 50%;
    box-sizing: border-box;
    animation: lb-spinner 0.8s linear infinite;
    cursor: pointer;
}

@keyframes lb-spinner {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.lb-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10002;
    pointer-events: none;
}

.lb-container > .nav {
    left: 0;
}

.lb-nav a {
    outline: none;
}

.lb-prev, .lb-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: rgba(20, 20, 20, 0.65);
    backdrop-filter: blur(8px);
    cursor: pointer;
    display: block;
    pointer-events: auto;
    opacity: 0.85;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.lb-nav a.lb-prev {
    left: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M328 112L184 256l144 144'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;
}

.lb-nav a.lb-next {
    right: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M184 112l144 144-144 144'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;
}

.lb-nav a.lb-prev:hover,
.lb-nav a.lb-next:hover {
    background-color: #3a3836;
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.lb-dataContainer {
    margin: 0 auto;
    padding-top: 18px;
    width: 100%;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.lb-dataContainer:after {
    content: "";
    display: table;
    clear: both;
}

.lb-data {
    padding: 0 4px;
    color: #ccc;
}

.lb-data .lb-details {
    width: 100%;
    float: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    line-height: 1;
}

.lb-data .lb-caption {
    display: none !important;
}

.lb-data .lb-number {
    display: inline-block;
    padding: 0;
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #aaaaaa;
    white-space: nowrap;
}

.lb-data .lb-gallery-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 6px 16px;
    background-color: rgba(35, 35, 35, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #cccccc;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    cursor: pointer;
    pointer-events: auto;
    white-space: nowrap;
}

.lb-data .lb-gallery-link:hover {
    background-color: #3a3836;
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.lb-data .lb-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(20, 20, 20, 0.65);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M368 368L144 144M368 144L144 368'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;
    backdrop-filter: blur(8px);
    z-index: 10003;
    opacity: 0.85;
    outline: none;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.lb-data .lb-close:hover {
    background-color: #3a3836;
    opacity: 1;
    transform: scale(1.1);
}

@media (max-width: 600px) {
    .lb-prev, .lb-next {
        width: 42px;
        height: 42px;
    }
    .lb-nav a.lb-prev {
        left: 10px;
        background-size: 20px;
    }
    .lb-nav a.lb-next {
        right: 10px;
        background-size: 20px;
    }
    .lb-data .lb-close {
        top: 15px;
        right: 15px;
        width: 38px;
        height: 38px;
        background-size: 16px;
    }
    .lb-dataContainer {
        padding-top: 14px;
    }
    .lb-data .lb-details {
        gap: 8px;
    }
    .lb-data .lb-number {
        font-size: 12px;
    }
    .lb-data .lb-gallery-link {
        font-size: 11px;
        padding: 5px 12px;
        margin: 0;
    }
}
