Previous
Previous
Nevada
Next
Next
/* Center the caption over the image */ figure.gallery-grid-item { position: relative !important; } figcaption.gallery-caption.gallery-caption-grid-simple { position: absolute !important; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; pointer-events: none; opacity: 0; transition: opacity 0.3s ease-in-out; } figure.gallery-grid-item:hover figcaption.gallery-caption.gallery-caption-grid-simple { opacity: 1; } /* Set color & size of caption font */ p.gallery-caption-content { color: white; font-size: 2rem !important; }