/* service_gallery.css */

.gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 5000;
    align-items: center;
    justify-content: center;
}

.gallery-modal.open {
    display: flex;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.92);
}

.gallery-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 90vw;
    max-height: 90vh;
    flex-direction: column;
}

.gallery-content img {
    max-width: 80vw;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 12px;
}

.gallery-close {
    position: fixed;
    top: 20px;
    right: 24px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: var(--ui-font-xl);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.gallery-close:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.gallery-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: var(--ui-font-xl);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.gallery-nav.prev {
    left: 20px;
}

.gallery-nav.next {
    right: 20px;
}

.gallery-nav:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

.gallery-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
}

.gdot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.2s;
}

.gdot:hover, .gdot.active {
    background: #fff;
    transform: scale(1.3);
}

.gallery-main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-info {
    margin-top: 20px;
    text-align: center;
}

.gallery-counter {
    color: #fff;
    font-size: var(--ui-font-base);
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .gallery-nav.prev {
        left: 10px;
    }

    .gallery-nav.next {
        right: 10px;
    }

}

@media print {
    .gallery-modal {
        display: none;
    }

}
