.image-section{
    background-color: var(--color-bg-1);
    margin-bottom: 6rem;
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-top: 9rem;
}


h2{
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: var(--semibold);
    font-size: var(--text-heading);
    line-height: 1.1;
    letter-spacing: var(--title-letter-spacing);
}

.section-header p{
    font-family: var(--font-body);
    font-size: var(--text-subheading);
    font-weight: var(--regular);
    line-height: var(--subheading-height);
    letter-spacing: var(--regular-spacing);
    color: var(--secondary-color);
    max-width: 52ch;
    text-align: center;
}

.section-header h1{
    font-family: var(--font-heading);
    font-weight: var(--semibold);
    font-size: var(--text-heading);
    letter-spacing: var(--title-letter-spacing);
    line-height: 1.1;
    margin: 0;
}

.thirdHeader{
    max-width: 24ch;
    text-align: center;
}

/* Image */

/* Image: categories */

.gallery-categories {
    width: min(1320px, 92%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.category-title {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: var(--semibold);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.1;
    letter-spacing: var(--title-letter-spacing);
    margin: 0 0 0.5rem;
}

.category-sub {
    font-family: var(--font-body);
    color: var(--secondary-color);
    line-height: 1.6;
    margin: 0 0 1.75rem;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
    gap: 16px;
}

.gallery-item {
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
    background-color: var(--color-bg-2);
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.cat-grid .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.cat-grid .gallery-item:nth-child(4) {
    grid-column: span 2;
}

.cat-grid--flip .gallery-item:nth-child(1) {
    grid-column: 3 / span 2;
}

@media (max-width: 768px) {
    .section-header h1 {
        font-size: var(--text-mobile-heading);
    }

    .gallery-categories {
        width: 90%;
        gap: 4rem;
    }

    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
        gap: 12px;
    }

    .cat-grid--flip .gallery-item:nth-child(1) {
        grid-column: span 2;
    }

    .image-section .section-header {
        margin-top: 4rem;
        margin-bottom: 3rem;
    }
}