Website/_sass/_gallery.scss

42 lines
862 B
SCSS
Raw Permalink 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.

.gallery-list {
list-style: none;
margin: 0;
padding: 0;
}
.gallery-item {
display: flex;
align-items: center;
gap: 1rem; /* space between image and text */
margin-bottom: 1.5rem;
}
.gallery-item img:hover {
transform: scale(1.03);
}
.gallery-item .info {
flex: 1; /* text takes remaining width */
}
.gallery-item .info h3 {
margin: 0;
font-size: 1.2rem;
}
.gallery-item .info p {
margin: 0.3rem 0 0;
color: #666;
}
.gallery-item img {
max-width: 220px; /* never wider than 150px */
width: 100%; /* scale down proportionally */
height: auto; /* keep aspect ratio */
border-radius: 8px;
cursor: pointer;
flex-shrink: 0; /* dont let flexbox shrink it */
transition: transform 0.2s ease;
display: block; /* remove any inline gap issues */
margin-right: 35px;
}