/* Boxy Lightbox Styles */
#boxy {
    position: relative;
    padding: 20px 40px;
    width: 100%;
    overflow: hidden;
}

#boxy .boxy-grid-container {
    display: flex;
    gap: 20px;
    overflow-x: scroll;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
}

#boxy .boxy-grid-container::-webkit-scrollbar {
    display: none;
}

#boxy .boxy-grid-container img {
    flex: 0 0 200px;
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#boxy .boxy-grid-container img:hover {
    transform: scale(1.05);
}

#boxy .boxy-container-prev,
#boxy .boxy-container-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(114, 52, 173, 0.8);
    color: #FFFFFF;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 2;
    transition: all 0.3s ease;
}

#boxy .boxy-container-prev:hover,
#boxy .boxy-container-next:hover {
    background: #3F3F3F;
    transform: translateY(-50%) scale(1.1);
}

#boxy .boxy-container-prev:disabled,
#boxy .boxy-container-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#boxy .boxy-container-prev {
    left: 10px;
}

#boxy .boxy-container-next {
    right: 10px;
}

.boxy-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.boxy-overlay.active {
    display: flex;
    opacity: 1;
}

.boxy-lightbox {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    background-color: #3F3F3F;
    border-radius: 8px;
    overflow: hidden;
}

.boxy-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.boxy-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.boxy-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
}

.boxy-close,
.boxy-share,
.boxy-prev,
.boxy-next {
    background: rgba(0, 0, 0, 0.5);
    color: #FFFFFF;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.boxy-close:hover,
.boxy-share:hover,
.boxy-prev:hover,
.boxy-next:hover {
    background: rgba(0, 0, 0, 0.8);
    color: #7234AD;
}

.boxy-prev,
.boxy-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.boxy-prev {
    left: 20px;
}

.boxy-next {
    right: 20px;
}

.boxy-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #3F3F3F;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 20001;
    animation: boxyFadeInUp 0.3s ease;
}

.boxy-toast-close {
    background: none;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    padding: 0 5px;
}

.boxy-toast-close:hover {
    color: #7234AD;
}

.boxy-container-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.boxy-container-nav button {
    background: #3F3F3F;
    color: #FFFFFF;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s;
}

.boxy-container-nav button:hover {
    background: #595959;
}

.boxy-container-nav button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.boxy-pagination {
    color: #FFFFFF;
    padding: 10px;
    font-size: 14px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    min-width: 60px;
    text-align: center;
}

.boxy-description {
    color: #FFFFFF;
    padding: 15px;
    text-align: center;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.5);
    margin: 10px 0;
    border-radius: 4px;
}

@keyframes boxyFadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}