/* Boxy Lightbox Styles */
/* modified SVZ 2026 */

.boxy-overlay {  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.8); z-index: 10000; opacity: 0; transition: opacity 0.8s ease; }
.boxy-overlay.active { display: flex; opacity: 1; }

.boxy-lightbox {   max-width: 90%; max-height: 90vh; margin: auto; background-color: #181818; border-radius: 8px; }

.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;
    display: flex; align-items: center; justify-content: center;
    transition: background-color 0.2s;
    width: 5%; height: 100vh; font-size: 3em;
}

.boxy-close, .boxy-share { width:40px; height: 40px; }

.boxy-close:hover, .boxy-share:hover, .boxy-prev:hover, .boxy-next:hover { 
    background: rgba(0, 0, 0, 0.8); 
}

.boxy-prev, .boxy-next { position: absolute; top: 50%; transform: translateY(-50%); }
.boxy-prev { left: 0px; }
.boxy-next { right: 0px; }
.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-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: 6px 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); }
}