<?php 

function moral_magazine_have_missed_style(){

    $have_missed = '#magazine_pro_you_may_have_missed_section .featured-image {
            background-size: cover;
            background-position: 50%;
            background-repeat: no-repeat;
            position: relative;
        }
        #magazine_pro_you_may_have_missed_section .you-may-have-missed-wrapper {
            position: relative;
        }
        #magazine_pro_you_may_have_missed_section .entry-container {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            padding: 24px 20px;
        }
        #magazine_pro_you_may_have_missed_section  .you-may-have-missed-wrapper .featured-image {
            position: relative;
            -webkit-transition: all 0.3s ease-in-out;
            -moz-transition: all 0.3s ease-in-out;
            -ms-transition: all 0.3s ease-in-out;
            -o-transition: all 0.3s ease-in-out;
            transition: all 0.3s ease-in-out;
        }
        #magazine_pro_you_may_have_missed_section  .you-may-have-missed-wrapper {
            position: relative;
            overflow: hidden;
        }
        #magazine_pro_you_may_have_missed_section  .you-may-have-missed-wrapper:hover .featured-image {
            -webkit-transform: scale(1.2);
            -moz-transform: scale(1.2);
            -ms-transform: scale(1.2);
            -o-transform: scale(1.2);
            transform: scale(1.2);
        }';

    wp_add_inline_style( 'moral-magazine-style', $have_missed );
}

add_action( 'wp_enqueue_scripts', 'moral_magazine_have_missed_style' );