/*
Theme Name: BlohmPhoto (Twenty Twenty-Five Child)
Theme URI: https://blohmphoto.com/
Description: Child theme of Twenty Twenty-Five, styled to match the live blohmphoto.com color scheme and fonts ahead of migration.
Author: Carnevale Design
Template: twentytwentyfive
Version: 1.0.0
Text Domain: twentytwentyfive-child
*/

/*
 * The carousel-block plugin only sets white nav/pagination colors when the
 * block also carries the .alignfull class (see .alignfull.cb-hero-slider in
 * the plugin's style-index.css). On this dark theme, a non-full-width
 * carousel falls back to the plugin's default #000 icons/bullets, which are
 * invisible against our black background — so apply the same colors here
 * regardless of alignment.
 */
.wp-block-cb-carousel-v2.cb-hero-slider {
	--wp--custom--carousel-block--navigation-color: #fff;
	--wp--custom--carousel-block--navigation-alignfull-color: #fff;
	--wp--custom--carousel-block--pagination-bullet-active-color: #fff;
	--wp--custom--carousel-block--pagination-bullet-inactive-color: #fff;
	--wp--custom--carousel-block--pagination-bullet-inactive-hover-color: #fff;
}

/*
 * FooGallery's album "pile" template (extensions/albums/css/album-default.css)
 * ships an empty `.foogallery-pile img {}` rule and lays tiles out with
 * float + a fixed pixel width, so they never form a true fluid grid — they
 * just wrap however many 220px boxes fit, leaving uneven trailing space.
 * Replace it with a real 3-column fluid grid so tiles fill their column
 * width edge-to-edge, matching the leaf gallery treatment.
 */
.foogallery-album-gallery-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.foogallery-album-gallery-list li {
	display: block;
}

.foogallery-album-gallery-list .foogallery-pile {
	float: none;
	width: auto;
	margin: 0 !important;
}

.foogallery-album-gallery-list .foogallery-pile img {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
}

/*
 * The page.html template's post-content block carries WordPress core's
 * `.has-global-padding` class, which adds left/right gutter padding to the
 * content area itself (independent of `.alignfull`). Zero it out on pages
 * whose content is a FooGallery gallery/album, so the grid fills the full
 * 960px layout container edge-to-edge instead of sitting inset within it.
 */
.wp-block-post-content:has(.foogallery-container),
.wp-block-post-content:has(.foogallery-album-gallery-list) {
	padding-left: 0;
	padding-right: 0;
}

/*
 * The album pile's stacked-photo effect (the two rotated "sheets" peeking
 * out behind each tile, plus the tile itself) hardcodes an 8px white
 * border in album-default.css. Swap it for a dark edge to match the site.
 */
.foogallery-album-gallery-list .foogallery-pile:before,
.foogallery-album-gallery-list .foogallery-pile:after,
.foogallery-album-gallery-list .foogallery-pile .foogallery-pile-inner {
	border-color: #222;
}

/*
 * Style the Forminator contact form to match the live site's Bootstrap 3
 * dark form styling (sites/all/themes/blohmphoto/less/style.less on the
 * live site: .form-control / .btn-primary / .form-group rules).
 */
.forminator-label,
.forminator-radiogroup-label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
	color: #d9d9d9;
}

/*
 * Forminator's own grid CSS already adds margin-bottom:20px between
 * `.forminator-row`s (assets/forminator-ui/css/src/grid/forminator-grid.open.*).
 * An earlier pass also added margin-bottom on .forminator-field, doubling
 * the gap to 35px. Match Bootstrap's single .form-group{margin-bottom:15px}
 * by overriding the row spacing directly instead of stacking a second margin.
 */
.forminator-ui.forminator-custom-form .forminator-row:not(:last-child) {
	margin-bottom: 15px !important;
}

.forminator-input,
.forminator-textarea,
.forminator-select {
	display: block;
	width: 100%;
	height: 36px;
	padding: 6px 12px;
	font-size: 16px;
	font-family: inherit;
	line-height: 1.428571429;
	color: #eeeeee;
	background-color: #222222;
	border: 1px solid #222222;
	border-radius: 0;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
	transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}

.forminator-textarea {
	height: auto;
}

.forminator-input:focus,
.forminator-textarea:focus,
.forminator-select:focus {
	border-color: #555555;
	outline: 0;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(85, 85, 85, 0.6);
}

.forminator-radio-label {
	color: #d9d9d9;
}

.forminator-button-submit {
	display: inline-block;
	padding: 6px 12px;
	margin-bottom: 0;
	font-size: 16px;
	font-weight: normal;
	line-height: 1.428571429;
	text-align: center;
	vertical-align: middle;
	cursor: pointer;
	color: #fff;
	background-color: #666666;
	border: 1px solid #595959;
	border-radius: 0;
}

.forminator-button-submit:hover,
.forminator-button-submit:focus,
.forminator-button-submit:active {
	color: #fff;
	background-color: #525252;
	border-color: #3b3b3b;
}
