/* PMRate photoblog on Ruby: galleries closer to Format.com */
.kg-gallery-image { position: relative; overflow: hidden; }
.kg-gallery-image img { transition: transform .35s ease; }
.kg-gallery-image:hover img { transform: scale(1.015); }
/* per-image caption (from alt), shown on hover / focus, always on touch screens below the image */
.pm-cap {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: .55em .8em; font-size: 1.3rem; line-height: 1.35; color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0));
    opacity: 0; transition: opacity .25s ease; pointer-events: none;
}
.kg-gallery-image:hover .pm-cap, .kg-gallery-image:focus-within .pm-cap { opacity: 1; }
@media (hover: none) { .pm-cap { opacity: 1; } }
/* gallery caption like Format: small, centred */
.kg-gallery-card figcaption { text-align: center; font-size: 1.4rem; color: var(--color-secondary-text, #999); }
/* lightbox caption */
.pswp__caption__center { text-align: center; font-size: 1.4rem; max-width: 640px; }
