/* Заголовок галереи */
.gallery-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin: 25px 0 15px;
    color: #007acc;
    letter-spacing: 0.5px;
}

/* Контейнер галереи */
.my-gallery {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 40px;
    position: relative;
}

/* Слайды */
.my-gallery .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Изображения в галерее */
.my-gallery img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    border-radius: 10px;
}

/* Стрелки */
.my-arrow {
    width: 42px;
    height: 42px;
    background: rgba(0,0,0,0.55);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    transition: 0.25s;
}

.my-arrow:hover {
    background: rgba(0,0,0,0.8);
}

.my-prev { left: 10px; }
.my-next { right: 10px; }

/* Иконки стрелок */
.my-prev::before,
.my-next::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    border-top: 3px solid white;
    border-right: 3px solid white;
    transform-origin: center;
}

.my-prev::before {
    transform: translate(-40%, -50%) rotate(-135deg);
}

.my-next::before {
    transform: translate(-60%, -50%) rotate(45deg);
}

/* Пагинация */
.my-pagination {
    margin-top: -10px;
    margin-bottom: 170px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

/* Увеличенные точки */
.my-pagination .swiper-pagination-bullet {
    width: 20px;
    height: 20px;
    background: #8fd3ff;
    opacity: 0.8;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 12px;
    font-weight: 700;
    color: #004f7a;
    font-family: "Segoe UI", Arial, sans-serif;

    transition: 0.25s;
}

/* Активная точка */
.my-pagination .swiper-pagination-bullet-active {
    background: #0099ff;
    opacity: 1;
    transform: scale(1.25);
    color: white;
}

/* Лайтбокс — затемнение */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Картинка в лайтбоксе — универсально для всех браузеров */
.lightbox img {
    width: auto;
    height: auto;
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
    cursor: zoom-out;
}

/* На смартфонах — убрать скругления */
@media (max-width: 600px) {
    .lightbox img {
        border-radius: 0;
    }
}
