/*
Theme Name: Astra Child
Theme URI:  https://tjs-photo.com/
Description: Child theme for Astra
Author:      Chris
Author URI:  https://tjs-photo.com/
Template:    astra
Version:     1.0.0
*/

<?php
add_action( 'wp_enqueue_scripts', 'astra_child_enqueue_styles' );
function astra_child_enqueue_styles() {
    wp_enqueue_style( 'astra-parent-style', get_template_directory_uri() . '/style.css' );
    wp_enqueue_style( 'astra-child-style', get_stylesheet_directory_uri() . '/style.css', array('astra-parent-style') );
}

.tj-banner {
  position: relative;
  width: 100%;
  height: clamp(180px, 25vh, 420px); /* responsive height */
  overflow: hidden;
  display: block;
}

.tj-banner__image {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: saturate(0.95) contrast(1.02);
  transform-origin: center;
  transition: transform 10s linear;
}

/* subtle slow zoom */
.tj-banner__image:hover { transform: scale(1.02); }

.tj-banner__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.40) 100%); /* improves legibility */
}

/* Title */
.tj-banner__title {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-weight: 700;
  color: #fff;
  font-size: clamp(1.6rem, 3.8vw, 3.2rem);
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  letter-spacing: 0.02em;
  padding: 0.25rem 0.6rem;
  background: rgba(0,0,0,0.18); /* subtle pill behind text for small screens */
  border-radius: 6px;
}

/* Accessible focus outline if title ever becomes focusable */
.tj-banner__title:focus {
  outline: 3px solid rgba(255,255,255,0.6);
  outline-offset: 3px;
}

/* Small-screen tweaks */
@media (max-width: 480px) {
  .tj-banner { height: 160px; }
  .tj-banner__title { font-size: 1.4rem; padding: 0.2rem 0.45rem; }
}

