/* Styles for the Projects page only; the icon links and tool tags are
   shared, in mainstyle.css. Sizes are in rem so they follow the desktop
   window-height scaling. */

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Each project is a card with its name in the hanging tab, and its links
   along the bottom */
.project {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project .panel-tab {
    margin-bottom: 0.25rem;
}

.project-description {
    margin: 0;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid;
    border-image: var(--fade-x) 1;
}

.project-live {
    gap: 0.5rem;
}

.project-live svg {
    width: 1.125rem;
    height: 1.125rem;
}

.projects-empty {
    margin: 0;
    text-align: center;
}

/* The carousel stays hidden until its repos load; this beats its desktop
   display: flex */
.hero[hidden] {
    display: none;
}

/* Taller on desktop, with the slide content centred in the extra space
   (see the carousel styles in mainstyle.css) */
@media (min-width: 960px) {
    #recent {
        min-height: 26rem;
    }
}
