/* Explain: Page layout and typography styles, including responsive grids and headings. */
.section-pad {
    padding-bottom: clamp(5rem, 10vw, 9rem);
    padding-top: clamp(5rem, 10vw, 9rem);
}

.sticky-copy {
    align-self: start;
}

.gallery-grid {
    display: grid;
    gap: 1.25rem;
    grid-auto-flow: dense;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .sticky-copy {
        position: sticky;
        top: 8.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .serene-heading {
        font-size: 2.7rem;
    }
}

/* Taille et style de titre de page identiques sur toutes les pages */
main h1,
main h1.serene-heading,
main h1.contact-heading {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.02;
}

@media (min-width: 640px) {
    main h1,
    main h1.serene-heading,
    main h1.contact-heading {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    main h1,
    main h1.serene-heading,
    main h1.contact-heading {
        font-size: 4.5rem;
    }
}

/* Taille de paragraphe homogène sur toutes les pages */
main p {
    font-size: 1.0625rem;
    line-height: 1.8;
}

/* Taille de texte homogène pour les tableaux, alignée sur les paragraphes */
main table {
    font-size: 1.0625rem;
    line-height: 1.8;
}

main table th,
main table td,
main table caption {
    font-size: inherit;
    line-height: inherit;
}

@media (max-width: 420px) {
    main p {
        font-size: 1rem;
    }

    main table {
        font-size: 1rem;
    }
}

@media (max-width: 420px) {
    main h1,
    main h1.serene-heading,
    main h1.contact-heading {
        font-size: 2.7rem;
    }
}
