Spaces:
Running
Running
File size: 1,152 Bytes
dc774e6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
body {
font-family: Arial, sans-serif;
text-align: center;
margin: 20px;
}
h1 {
font-family: "Didot", "Bodoni MT", "Garamond", serif;
font-size: 4.4vh;
font-weight: normal;
margin-bottom: 0.5vh; /* Reduced margin to bring subtitle closer */
letter-spacing: -0.2vh;
}
.subtitle {
margin-top: 0; /* Removes any extra top margin */
font-style: italic; /* Displays the text in italics */
margin-bottom: 3vh;
font-size: 1.5vh;
}
.image-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 15px;
max-width: 1000px;
margin: 0 auto;
}
.image-grid a {
display: block;
transition: transform 0.3s ease;
}
.image-grid a:hover {
transform: scale(1.05);
}
.image-grid img {
width: 100%;
height: auto;
border-radius: 5px;
display: block;
border: 1px solid black;
}
/* Desktop: 4 columns */
@media (min-width: 768px) {
.image-grid {
grid-template-columns: repeat(4, 1fr);
}
}
/* Mobile: 2 columns */
@media (max-width: 767px) {
.image-grid {
grid-template-columns: repeat(2, 1fr);
}
}
|