main .template {
    padding-block: 100px;
}
main .template-word {
    max-width: 768px;
    margin-bottom: 32px;
}
main .template-word h1 {
    margin-bottom: 32px;
}
main .template-filter {
    gap: 8px;
    width: 100%;
    display: flex;
    overflow-x: auto;
    padding-block: 16px;
    margin-bottom: 100px;
}
main .template-filter input {
    display: none;
}
main .template-filter label {
    padding: 8px 24px;
    min-width: max-content;
    font: var(--font-body-2);
    background: var(--color-neutral-200);
    border-radius: var(--border-radius-full);
    border: 1px solid var(--color-neutral-600);
    transition: all var(--animation-speed-fast);
}
main .template-filter label:hover {
    cursor: pointer;
}
main .template-filter input:checked + label {
    color: var(--color-neutral-100);
    background: var(--color-system-blue);
    border-color: var(--color-system-blue);
}
main .template-list {
    gap: 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
main .template-item {
    overflow: hidden;
    position: relative;
    border: 1px solid var(--color-neutral-600);
    border-radius: var(--border-radius-slight);
    box-shadow: 0 4px 12px var(--color-neutral-800-shadow);
}
main .template-item img {
    width: 100%;
    object-fit: cover;
    object-position: top center;
    aspect-ratio: var(--aspect-ratio-portrait-short);
}
main .template-item .template-detail {
    top: 0;
    left: 0;
    gap: 4px;
    opacity: 0;
    width: 100%;
    height: 100%;
    display: flex;
    padding: 20px;
    position: absolute;
    text-align: center;
    visibility: hidden;
    align-items: center;
    background: #ffffffef;
    flex-direction: column;
    justify-content: center;
    transition: all var(--animation-speed-default);
}
main .template-item:hover .template-detail {
    opacity: 1;
    visibility: visible;
}
main .template-detail h2 {
    font: var(--font-display-4);
}
main .template-detail span {
    margin-bottom: 16px;
}
main .template-show-more {
    display: block;
    margin-top: 50px;
    text-align: center;
    margin-inline: auto;
    max-width: max-content;
}
main .template-show-more:hover {
    cursor: pointer;
}
@media (max-width: 1024px) {
    main .template-list {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    main .template {
        padding-top: 32px;
    }
    main .template-word h1 {
        font: var(--font-display-3);
    }
    main .template-filter label {
        font: var(--font-body-3);
    }
    main .template-list {
        grid-template-columns: 1fr;
    }
}
