/* Loaded directly on the homepage after the theme's bundled styles. */
.home-template .page-head {
    padding: clamp(48px, 6vw, 88px) 0;
}

.home-template .page-head:has(+ .gallery-tags:not([hidden])),
.home-template .page-head:has(+ .featured-collections) {
    padding-bottom: 32px;
}

.featured-collections {
    margin: 0 0 40px;
}

.featured-collections-title {
    margin: 0 5px 16px;
    color: var(--color-secondary-text);
    font: 500 1.2rem/1.5 var(--font-sans);
    letter-spacing: 0.04em;
}

.featured-collections-grid {
    display: grid;
    grid-template-columns: repeat(var(--featured-count, 3), minmax(0, 1fr));
}

.featured-collections-grid .post-card-link img {
    height: auto;
    aspect-ratio: 3 / 2;
}

.featured-collections-grid .post-card.no-image .post-card-content {
    min-height: 0;
    aspect-ratio: 3 / 2;
}

@media (max-width: 700px) {
    .featured-collections-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-tags {
    max-width: 960px;
    margin: 0 auto 32px;
    text-align: center;
    font-family: var(--font-sans);
}

.gallery-tags-label {
    margin: 0 0 8px;
    color: var(--color-secondary-text);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.gallery-tags-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gallery-tags-list li {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.gallery-tags-list a {
    display: inline-block;
    padding: 8px 0;
    color: var(--color-base);
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.5;
    overflow-wrap: anywhere;
    text-decoration: underline;
    text-decoration-color: var(--color-border);
    text-underline-offset: 4px;
}

.gallery-tags-list a:hover {
    text-decoration-color: currentColor;
}

.gallery-tags-list a:focus-visible {
    outline: 2px solid var(--gallery-focus);
    outline-offset: 4px;
}

@media (max-width: 500px) {
    .home-template .page-head {
        padding: 40px 0;
    }
}
