/* =========================================================
   GALLERY BLOCK — BEM
   ========================================================= */

.smartfix-gallery {
    background-color: var(--sf-bg-dark-2);
    padding: var(--sf-padding-section);
}

.smartfix-gallery__inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Header */
.smartfix-gallery__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.smartfix-gallery__headline {
    font-family: var(--sf-font-heading);
    font-weight: 700;
    font-size: var(--sf-fs-h2);
    line-height: var(--sf-lh-h2);
    color: var(--sf-text-white);
    margin: 0;
    max-width: 720px;
}

.smartfix-gallery__sub {
    font-family: var(--sf-font-body);
    font-size: var(--sf-fs-body);
    line-height: var(--sf-lh-body);
    color: var(--sf-text-white-72);
    max-width: 680px;
    margin: 0;
}

/* Carousel */
.smartfix-gallery__carousel {
    display: flex;
    gap: 12px;
    overflow: hidden;
    border-radius: var(--sf-card-radius);
}

.smartfix-gallery__slide {
    flex-shrink: 0;
    border-radius: var(--sf-card-radius);
    overflow: hidden;
    position: relative;
    margin: 0;
}

.smartfix-gallery__slide:nth-child(1),
.smartfix-gallery__slide:nth-child(5) {
    width: 165px;
}

.smartfix-gallery__slide:nth-child(2),
.smartfix-gallery__slide:nth-child(4) {
    width: 212px;
}

.smartfix-gallery__slide:nth-child(3) {
    flex: 1;
}

.smartfix-gallery__slide-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.smartfix-gallery__slide:hover .smartfix-gallery__slide-image {
    transform: scale(1.04);
}

.smartfix-gallery__slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 12px;
    background: linear-gradient(transparent, rgba(7,18,18,0.8));
    font-family: var(--sf-font-body);
    font-size: 12px;
    color: var(--sf-text-white);
}

/* Dots */
.smartfix-gallery__dots {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.smartfix-gallery__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.smartfix-gallery__dot--active {
    background-color: var(--sf-color-primary);
    transform: scale(1.3);
}

/* CTA */
.smartfix-gallery__cta-wrap {
    display: flex;
    justify-content: center;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1200px) {
    .smartfix-gallery {
        padding: 60px 40px;
    }
}

@media (max-width: 834px) {
    .smartfix-gallery {
        padding: 60px 24px;
    }

    .smartfix-gallery__headline {
        font-size: 32px;
        line-height: 38px;
    }

    .smartfix-gallery__carousel {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .smartfix-gallery__carousel::-webkit-scrollbar {
        display: none;
    }

    .smartfix-gallery__slide {
        width: 240px !important;
        flex-shrink: 0;
    }

    .smartfix-gallery__slide-image {
        height: 280px;
    }
}

@media (max-width: 375px) {
    .smartfix-gallery {
        padding: 48px 16px;
    }

    .smartfix-gallery__headline {
        font-size: 26px;
        line-height: 32px;
    }

    .smartfix-gallery__slide {
        width: 200px !important;
    }

    .smartfix-gallery__slide-image {
        height: 220px;
    }

    .smartfix-gallery__cta-wrap .sf-btn {
        width: 100%;
        justify-content: center;
    }
}
