/*
Theme Name: TBK Motors Child
Theme URI: https://ttbbkk.co/
Description: Child theme of Motors for TBK鐵駒誌. Overrides the single-listing gallery so yearbook photos display at full 4:3 (mirror to tyre) instead of the parent's 798x466 hard crop. No parent files are modified.
Author: TBK鐵駒誌
Author URI: https://ttbbkk.co/
Template: motors
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tbk-motors-child
*/

/* Yearbook gallery: show the full 4:3 bike (mirror to tyre).
   Parent skin-custom.css forces:
   .stm-big-car-gallery .stm-single-image a img { height: 100vw; max-height: 466px; object-fit: cover; }
   which crops the 4:3 photo top and bottom. This selector adds one more
   class (.stm-car-carousels), so it wins over the parent rule at every
   width, including the parent's max-width:460px max-height:220px rule. */
.stm-car-carousels .stm-big-car-gallery .stm-single-image a img {
	height: auto;
	max-height: none;
	object-fit: contain;
}

/* Mobile slide-out menu: TBK dark instead of bright green.
   Parent skin-custom.css (regenerated by Theme Options) paints the panel
   #18ca3d. These selectors match the parent rules and load later, so they
   win. Both header layouts are covered (magazine is live; listing is the
   parallel rule). Colour #293742 matches the header bar. */
.stm-layout-header-car_magazine .magazine-menu-mobile-wrapper .stm-opened-menu-magazine,
.stm-template-listing .listing-menu-mobile-wrapper .stm-opened-menu-listing {
	background-color: #293742;
}
.stm-layout-header-car_magazine .magazine-menu-mobile-wrapper .stm-opened-menu-magazine:before,
.stm-template-listing .listing-menu-mobile-wrapper .stm-opened-menu-listing:before {
	border-bottom-color: #293742;
}
