Spaces:
Running
Running
| 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); | |
| } | |
| } | |