
/* Стили для галереи */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
}

.gallery-img {
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s;
}

.gallery-img:hover {
    transform: scale(1.02);
}

/* Стили для lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox-container {
    position: relative;
    /* max-width: 90%; */
    /* max-height: 90%; */
    overflow: hidden;
    cursor: zoom-in;
}

.lightbox-content {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.lightbox-content.zoomed {
    cursor: grab;
}

.lightbox-content.zoomed:active {
    cursor: grabbing;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    color: var(--base-color);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    font-size: 40px;
    cursor: pointer;
    user-select: none;
    z-index: 1001;
    width: 50px;
    height: 50px;
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--base-color);
    font-size: 36px;
    cursor: pointer;
    user-select: none;
    padding: 5px;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev-btn {
    left: 30px;
}

.next-btn {
    right: 30px;
}

.zoom-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 1001;
}

.zoom-btn {
    background: rgba(0, 0, 0, 0.5);
    color: var(--base-color);
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
}

.zoom-info {
    position: absolute;
    top: 20px;
    left: 30px;
    color: var(--base-color);
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 1001;
}

/* Анимация появления */
.fade-in {
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Лупа для курсора при зуме */
.zoom-cursor {
    cursor: crosshair;
}


 .no-scroll {
    overflow: hidden;
 }