:root {
    --s7-pad-y: clamp(40px, 6vw, 90px);
    --s7-max: 1200px;
    --s7-text: #111827;
    --s7-dim: #4b5563;
    --s7-cta-bg: #e11d23; /* red */
    --s7-cta-bg-h: #c11218;
    --s7-gap: 12px;
}

.service-section-7 {
    padding: var(--section-pad-y) var(--section-pad-x);
    background: #fff;
    color: var(--s7-text);
}

.service-section-7 .container {
    width: min(var(--s7-max), 92%);
    margin: 0 auto;
}

/* Layout */
.s7__grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(20px, 3vw, 48px);
    align-items: center;
}

/* Content */
.s7__heading {
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1.15;
    margin: 0 0 18px;
}

.s7__text {
    color: var(--s7-dim);
    line-height: 1.7;
    max-width: 62ch;
}

/* CTA button (local copy to avoid coupling) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    padding: 14px 20px;
}

.btn--primary {
    background: var(--s7-cta-bg);
    color: #fff;
}

.btn--primary:hover {
    background: var(--s7-cta-bg-h);
}

.btn--wide {
    width: 100%;
}

.s7__cta {
    margin-top: clamp(28px, 4vw, 80px);
    max-width: 460px;
}

/* Gallery */
.s7__gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--s7-gap);
}

.s7__shot {
    position: relative;
    border-radius: var(--img-radius);
    overflow: hidden;
}

.s7__shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 4-image collage inspired by Section-1 */
.s7__shot--1 {
    grid-column: 3 / span 3;
    grid-row: 1;
    aspect-ratio: 16 / 15;
    top: 100px;
}

.s7__shot--2 {
    grid-column: 6 / span 7;
    grid-row: 1;
    aspect-ratio: 5 / 3;
}

.s7__shot--3 {
    grid-column: 1 / span 5;
    grid-row: 2;
    aspect-ratio: 5 / 3;
    top: 36px;
}

.s7__shot--4 {
    grid-column: 6 / span 6;
    grid-row: 2;
    aspect-ratio: 16 / 8;
}

/* Responsive */
@media (max-width: 1024px) {
    .s7__grid {
        grid-template-columns: 1fr;
    }

    .s7__gallery {
        grid-template-columns: repeat(6, 1fr);
        overflow: hidden;
    }

    .s7__shot--1 {
        grid-column: 4 / span 3;
        top: 0;
        right: -33px;
        width: 350px;
        height: 200px;
    }

    .s7__shot--2 {
        grid-column: 2 / span 3;
        top: 60px;
        right: 20px;
        width: 250px;
    }

    .s7__shot--3 {
        grid-column: 4 / span 3;
        top: -2px;
        right: -33px;
        width: 250px;
        height: 150px;
    }

    .s7__shot--4 {
        grid-column: 1 / span 3;
        top: 7px;
        right: -35px;
        width: 300px;
        height: 190px;
    }

    .s7__text {
        max-width: unset;
    }

    .s7__content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Mobile: make s7__gallery a simple wrapping grid with equal-size tiles */
@media (max-width: 640px) {
    /* Switch off the CSS Grid collage and use flex */
    .s7__gallery {
        display: flex !important;
        flex-wrap: wrap;
        gap: 12px;                          /* spacing between tiles */
        grid-template-columns: none !important; /* cancel grid rules */
        overflow: visible;                  /* allow natural flow */
        margin-bottom: 20px !important;
    }

    /* Normalize each shot to equal size, flow in natural order */
    .s7__gallery .s7__shot {
        position: static !important;        /* cancel offsets */
        inset: auto !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        bottom: auto !important;
        transform: none !important;
        order: 0 !important;

        /* Two per row on small screens */
        flex: 0 0 calc(50% - 6px);
        width: calc(50% - 6px);

        /* Equal heights via aspect ratio */
        aspect-ratio: 1 / 1;
        height: auto !important;           /* height driven by aspect-ratio */
    }

    /* Make images cover their tiles neatly */
    .s7__gallery .s7__shot img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;                  /* fill without distortion */
    }
}