/*
Theme Name: Hynish Trust (Twenty Twenty-Five child)
Description: Child theme of Twenty Twenty-Five for the Hynish Trust website. Colours, fonts, spacing and button styles live in theme.json; header, footer and page templates are in /parts, /patterns and /templates; custom CSS is below.
Author: Isle Develop CIC
Template: twentytwentyfive
Version: 1.1.0
Requires at least: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hynish-trust-child
*/

/* ==========================================================================
   Desktop / mobile switching
   Replaces the Conditional Blocks plugin. Add the class "hynish-desktop-only"
   or "hynish-mobile-only" to any block (Advanced > Additional CSS class).
   The switch-over point is 1024px. To change it, edit BOTH numbers below
   (the second one is always the first minus 0.02).
   ========================================================================== */
@media (min-width: 1024px) {
	.hynish-mobile-only {
		display: none !important;
	}
}
@media (max-width: 1023.98px) {
	.hynish-desktop-only {
		display: none !important;
	}
}

/* ==========================================================================
   Existing site CSS (carried over unchanged from the Twenty Twenty-Four child)
   ========================================================================== */

/* Sketch banner position on the mobile footer call-to-action */
.footermob {
	background-position: -400px 78px;
}

/* Curator social feed: no extra space underneath */
div#curator-feed-hynish-layout {
	padding-bottom: 0px !important;
}

/* Galleries: fixed-height thumbnails */
figure.wp-block-gallery.has-nested-images img {
	height: 250px !important;
	object-fit: contain;
}

figure.wp-block-gallery.has-nested-images {
	display: flex;
}

/* ==========================================================================
   Shop (WooCommerce)
   Product cards, buttons and prices get their look from theme.json and the
   templates. The rules below only cover the few things those can't reach.
   ========================================================================== */

/* Sale badge: navy label like the buttons, top-left of the photo */
.wc-block-components-product-sale-badge,
.wp-block-woocommerce-product-sale-badge .wc-block-components-product-sale-badge {
	background: #05253a;
	color: #ffffff;
	border: 0;
	border-radius: 3px;
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: none;
	padding: 0.25em 0.75em;
}

/* Product photos in the grid: 4:3 crop, same as the "Find out more" cards */
.wp-block-woocommerce-product-template .wc-block-components-product-image img {
	aspect-ratio: 4 / 3;
	width: 100%;
	object-fit: cover;
}

/* Prices: keep sale prices in the same navy as everything else */
.wc-block-components-product-price,
.wc-block-components-product-price ins {
	color: inherit;
}
.wc-block-components-product-price del {
	color: #3f5160;
	font-weight: 400;
}
