.portfolio-archive-content {
max-width: 1000px;
width: 100%;
margin: 0 auto;
padding: 0rem 1rem 4rem;
}
.portfolio-archive-header {
text-align: center;
margin-bottom: 2rem;
& h1 {
display: block;
text-align: center;
padding: 1rem 0;
margin: 0 auto;
color: #fff;
}
& .entry-divider {
margin: 0 auto 2rem auto;
}
}
.portfolio-archive .portfolio-category-group {
display: flex;
flex-direction: column;
align-items: center;
padding: 2rem 0;
& h2 {
position: relative;
text-align: center;
margin-bottom: 2rem;
font-size: 2rem;
font-family: "cyberella";
font-weight: 700;
letter-spacing: 3px;
line-height: 100%;
&::after {
content: "";
position: absolute;
bottom: -0.5rem;
left: 50%;
transform: translateX(-50%);
width: 150px;
height: 1px;
background-color: currentColor;
}
}
&:first-child {
margin-top: 0;
padding-top: 0;
}
}
.portfolio-archive .portfolio-category-links {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 1.5em;
}
.portfolio-archive .portfolio-category-link {
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
overflow: hidden;
border-radius: 8px;
width: fit-content;
height: fit-content;
max-width: min(300px, 100%);
img {
width: 100%;
height: auto;
min-width: min(300px, 100vw);
aspect-ratio: 1/1;
object-fit: cover;
transition: transform 0.3s ease-in-out;
}
.category-name {
transition: background-color 0.3s ease-in-out;
}
&:hover {
& img {
transform: scale(1.05);
}
& .category-name {
background-color: rgba(255, 255, 255, 0.9);
}
}
}
.portfolio-archive .category-name {
position: absolute;
top: 60%;
left: 0;
right: 0;
padding: 1rem;
text-align: center;
font-weight: 500;
font-size: 1.2rem;
background-color: rgba(255, 255, 255, 0.8);
}
@media only screen and (max-width: 48em) { }