﻿.lightbox {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    flex-direction: column;
}

.lightbox.show {
    opacity: 1;
    visibility: visible;
}

.lightbox-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10000; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.prev,
.next {
    color: #f1f1f1;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 20px;
    transition: 200ms;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.close {
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 20px;
    transition: 200ms;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.close:hover,
.close:focus,
.prev:hover,
.prev:focus,
.next:hover,
.next:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.lightbox-content-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: 5px;
    z-index: 1; 
}

@media (max-width: 768px) {
    .lightbox-content {
        max-width: 80%;
        max-height: 70%;
    }
}

@media (max-width: 480px) {
    .lightbox-content {
        max-width: 90%;
        max-height: 60%;
    }
}