.maincontent {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    border: none;
}  

/* Hero background */
.ti-hero {
    background-image:
        linear-gradient(180deg, rgba(10, 43, 52, .80) 25%, rgba(10, 43, 52, .97) 100%),
        url(/imageserver/UserMedia/totalroofingsolutions/thermal-imaging-01.jpg);
}

/* Gallery grid */
.ti-gallery-section {
    background-color: #f3f3f3;
}

.ti-gallery {
    list-style: none;
    margin: 30px auto 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 1400px;
}

.ti-gallery-item a {
    display: block;
    overflow: hidden;
    border: 2px solid var(--brown);
    border-radius: 3px;
    transition: border-color .3s, transform .3s;
}

.ti-gallery-item a:hover {
    border-color: var(--lighter-teal);
    transform: translateY(-4px);
}

.ti-gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}

.ti-gallery-item a:hover img {
    transform: scale(1.04);
}

.intro-global {
	background: linear-gradient(180deg, #0e3a46 400px, var(--lighter-teal) 400px);
}

/* CTA buttons side by side */
.ti-cta-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
}

.ti-cta-links .site-button {
	margin: 0;
	max-width: fit-content;
}

/* Responsive */
@media (max-width: 900px) {
    .ti-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .ti-gallery {
        grid-template-columns: 1fr;
    }
}