Files
portfolio/style/hobbies.css
2025-08-11 22:17:45 +08:00

49 lines
965 B
CSS
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

.hobbies {
width: 100%;
height: 100vh; /* adjust as you like */
border-radius: 10px !important; /* ← rounded corners */
margin-top: 1rem;
padding: 1rem;
}
/* Horizontalscroll wrapper */
.horizontal-section {
position: relative;
overflow: hidden;
}
/* Inner scroller — flex row, full viewport height */
.horizontal-section__inner {
position: absolute;
top: 0; left: 0;
display: flex;
height: 100vh;
will-change: transform;
}
/* Each card: same width as the container (70vw), stacked vertically inside */
.card {
flex: none;
width: 100%; /* same as .container width (70vw) */
margin-right: 1rem; /* gap between cards */
display: flex;
flex-direction: column;
}
/* Image on top */
.card img {
width: 100%;
height: auto;
border-radius: 10px;
object-fit: cover;
}
/* Caption below */
.card .caption {
margin-top: 0.5rem;
text-align: center;
color: var(--fg-one);
font-size: 0.95rem;
}