.property-gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.main-image {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 400px;
    max-height: 500px;
    margin: 0 auto;
    overflow: hidden;
    margin-top: 20px;
    border-radius: 5px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Анимация для свайпа */
.main-image img.swipe-left {
    transform: translateX(-100%);
    opacity: 0;
}

.main-image img.swipe-right {
    transform: translateX(100%);
    opacity: 0;
}

.thumbnail-container {
    overflow-x: auto;
    padding: 10px;
}

.thumbnail {
    transition: border 0.2s ease, opacity 0.2s ease;
}

.thumbnail img {
    object-fit: cover;
    transition: all 0.2s ease;
}

.thumbnail.active img {
    border: 2px solid #2a7169 !important; /* Переопределяем Bootstrap */
}

.thumbnail:hover img {
    opacity: 0.8;
}

.card.sticky-top {
    margin-top: 45px;
    top: 20px;
}

/* Для мобильных (<= 768px) */
@media (max-width: 768px) {
    .card.sticky-top {
        margin-top: 0 !important; /* Переопределяем инлайновый стиль */
    }
}