Gallery page content

This commit is contained in:
2025-09-11 18:10:39 +03:00
parent 4cf39f48f3
commit 33cd3fd94b
5 changed files with 105 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ body {
background-color: var(--background);
color: var(--primary);
margin: 0;
font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}
/* Common */
@@ -26,7 +26,7 @@ a {
}
a:hover {
text-decoration:underline;
text-decoration: underline;
}
/* Navbar */
@@ -136,3 +136,41 @@ button:hover {
button:active {
transform: scale(0.98);
}
/* Gallery */
.gallery {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 1rem;
margin: 1rem auto;
max-width: 50rem;
}
.gallery-item {
display: flex;
flex-direction: column;
text-align: center;
background-color: var(--highlight);
border-radius: 0.75rem;
overflow: hidden;
transition: transform 0.2s;
}
.gallery-item img {
width: 100%;
aspect-ratio: 1 / 1;
object-fit: cover;
display: block;
}
.gallery-item:hover {
transform: scale(1.05);
text-decoration: none;
}
.gallery-title {
padding: 0.5rem;
color: var(--primary);
font-weight: 600;
}