/* =========================================
   تنسيقات معرض الصور المنبثق (Lightbox Gallery)
   ========================================= */
.gallery-item-wrap {
    position: relative;
    border-radius: 8px;
    background-color: #000;
}
.gallery-img {
    transition: transform 0.3s ease;
}
.gallery-item-wrap:hover .gallery-img {
    transform: scale(1.05);
    opacity: 0.8;
}
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 97, 101, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item-wrap:hover .gallery-overlay {
    opacity: 1;
}

.custom-lightbox {
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}
.lightbox-content {
    margin: auto;
    display: block;
    max-width: 85%;
    max-height: 85vh;
}
.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    object-fit: contain;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}
.lightbox-close:hover {
    color: var(--accent-green);
}
.lightbox-prev, .lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 20px;
    transition: 0.3s ease;
    border-radius: 50%;
    user-select: none;
    text-decoration: none !important;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.lightbox-prev:hover, .lightbox-next:hover {
    background-color: rgba(6, 97, 101, 0.9);
    color: white !important;
    border-color: var(--accent-green);
    transform: translateY(-50%) scale(1.1);
}
.lightbox-prev {
    right: 25px;
}
.lightbox-next {
    left: 25px;
}
