/*
Theme Name: Hello Elementor Child
Theme URI: https://seta-67.org/
Description: A child theme of Hello Elementor
Author: Cheryl M
Author URI: https://seta-67.org/
Template: hello-elementor
Version: 1.0
License: GNU General Public License v2 or later  
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hello-elementor-child
*/

/* ---- CETA Flyer Thumbnail Styling ---- */

/* Wrap container for the image (optional but helps layout) */
.event-flyer-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 240px !important;           /* set your thumbnail width */
  height: 160px !important;          /* set your thumbnail height */
  overflow: hidden;
  border-radius: 8px;
  background-color: #f5f5f5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* The actual <img> output by [tec_flyer_img] */
.event-flyer, 
.seta-flyer {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;      /* ensures crop instead of squish */
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Subtle hover effect */
.event-flyer:hover, 
.seta-flyer:hover {
  transform: scale(1.03);
  opacity: 0.95;
}


<?php
// Function to add parent theme styles and child theme styles
function hello_elementor_child_enqueue_styles() {
    // Enqueue the parent stylesheet
    wp_enqueue_style('hello-elementor-parent-style', get_template_directory_uri() . '/style.css');

    // Enqueue the child stylesheet
    wp_enqueue_style('hello-elementor-child-style', get_stylesheet_uri(), array('hello-elementor-parent-style'));
}

// Add the function to the wp_enqueue_scripts action hook
add_action('wp_enqueue_scripts', 'hello_elementor_child_enqueue_styles');