.wp-block-gallery .blocks-gallery-image{position:relative;overflow:hidden;border-radius:12px;transition:transform .35s ease,box-shadow .35s ease}.wp-block-gallery .blocks-gallery-image img{width:100%;height:auto;display:block;object-fit:cover;border-radius:12px;transition:transform .35s ease}.wp-block-gallery .blocks-gallery-image:hover{transform:scale(1.07);box-shadow:0 0 0 4px #00bfff,0 16px 25px rgba(0,0,0,.4);z-index:2}.wp-block-gallery .blocks-gallery-image::after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.15);opacity:0;transition:opacity .35s ease;border-radius:12px}.wp-block-gallery .blocks-gallery-image:hover::after{opacity:1}@media (max-width:768px){.wp-block-gallery .blocks-gallery-image:hover{transform:scale(1.03);box-shadow:0 0 0 3px #00bfff,0 8px 15px rgba(0,0,0,.25)}}.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption):before{max-height:0!important}