.photo-link { position: relative; display: block; overflow: hidden; border-radius: 15px; text-decoration: none; } .photo-link img { display: block; width: 100%; height: auto; } .photo-link span { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; text-align: right; background: rgba(0,0,0,0.45); color: white; font-size: 48px; font-weight: bold; transition: opacity 0.3s ease; } .photo-link:hover span { opacity: 0; }