/* --- Zoomable image cursor --- */
.home-zoomable, .doodeco-zoomable {
    cursor: zoom-in;
}

/* --- Lightbox modal --- */
.home-gallery-modal.active {
    display: flex !important;
}

.home-gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999 !important;
    align-items: center;
    justify-content: center;
}

.home-gallery-close {
    position: absolute;
    top: 16px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 42px;
    cursor: pointer;
    z-index: 100001;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s, transform 0.2s;
}

.home-gallery-close:hover {
    opacity: 1;
    transform: scale(1.15);
}

.home-gallery-counter {
    position: absolute;
    top: 22px;
    left: 28px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    z-index: 100001;
}

.homeGallerySwiper {
    width: 100%;
    height: 100%;
}

.homeGallerySwiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.homeGallerySwiper .swiper-slide img {
    max-width: 88%;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
}

.home-gallery-nav {
    color: #fff !important;
    --swiper-navigation-size: 28px;
}

.home-gallery-nav::after {
    font-weight: 700;
}

@media (max-width: 768px) {
    .homeGallerySwiper .swiper-slide img {
        max-width: 95%;
        max-height: 70vh;
    }
    .home-gallery-close {
        top: 10px;
        right: 15px;
    }
}
