/*
Theme Name: LBFD Child
Theme URI: https://lbfd.org/
Description: Update-safe customizations for the Long Beach Volunteer Fire Department website.
Author: Long Beach Volunteer Fire Department
Template: hello-elementor
Version: 1.0.0
Text Domain: lbfd-child
*/

/* Keep mobile calls-to-action compact instead of full-width. */
@media (max-width: 767px) {
  .lbfd .btn,
  .lbfd-legal .paypal-button,
  .elementor-widget-button .elementor-button,
  .elementor-field-type-submit .elementor-button,
  .wp-block-button__link,
  .wp-element-button {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100%;
    flex-basis: auto !important;
  }

  .lbfd .btn,
  .lbfd-legal .paypal-button {
    display: inline-flex !important;
    justify-self: start !important;
  }

  .lbfd .actions {
    justify-items: start !important;
  }

  .elementor-field-type-submit {
    justify-content: flex-start !important;
  }
}


/* Center page content on phones while keeping form entries readable. */
@media (max-width: 767px) {
  body.page .lbfd main,
  body.page .lbfd main *,
  body.page .lbfd-legal main,
  body.page .lbfd-legal main * {
    text-align: center !important;
  }

  body.page .lbfd main .btn,
  body.page .lbfd-legal main .btn,
  body.page .lbfd-legal main .paypal-button {
    justify-self: center !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  body.page .lbfd main .actions {
    justify-items: center !important;
  }

  body.page .lbfd main .elementor-field-type-submit {
    justify-content: center !important;
  }

  body.page input,
  body.page textarea,
  body.page select,
  body.page option {
    text-align: left !important;
  }
}


/* Targeted mobile alignment and contact-form spacing. */
@media (max-width: 767px) {
  body.home .lbfd .town-logo {
    justify-self: center !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  body.home .lbfd .town-logo img {
    display: block;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  body.page-id-50 .lbfd .contact-card > div,
  body.page-id-50 .lbfd .contact-card > div * {
    text-align: left !important;
  }
}


/* Let Contact page backgrounds span the viewport and collapse the invisible CAPTCHA row. */
body.page-id-50 .elementor-50 > .e-con-boxed {
  --container-max-width: 100%;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

body.page-id-50 .elementor-50 > .e-con-boxed > .e-con-inner {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
}

body.page-id-50 .elementor-field-type-recaptcha_v3 {
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

body.page-id-50 .elementor-field-type-recaptcha_v3 > .elementor-field {
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: visible !important;
}


/* Keep the Contact form heading and explanatory copy in normal document flow. */
body.page-id-50 .elementor-widget-form::before {
  margin-bottom: 18px !important;
}

body.page-id-50 .elementor-widget-form::after {
  position: static !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  margin: 0 0 26px !important;
  line-height: 1.55;
}

body.page-id-50 .elementor-widget-form .elementor-form {
  padding-top: 0 !important;
}

/* LBFD gallery page */
body.page-id-41 .page-header {
	display: none !important;
}

body.page-id-41 .site-main {
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.page-id-41 .page-content {
	margin: 0 !important;
}

body.page-id-41 .lbfd {
	--lbfd-navy: #071b33;
	--lbfd-red: #d72638;
	--lbfd-red-dark: #a51625;
	--lbfd-gold: #f5b942;
	--lbfd-text: #172033;
	--lbfd-muted: #607086;
	color: var(--lbfd-text);
	background: #fff;
	font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.6;
}

body.page-id-41 .lbfd *,
body.page-id-41 .lbfd *::before,
body.page-id-41 .lbfd *::after {
	box-sizing: border-box;
}

body.page-id-41 .lbfd img {
	display: block;
	max-width: 100%;
}

body.page-id-41 .lbfd a {
	text-decoration: none;
}

body.page-id-41 .lbfd .wrap {
	width: min(1160px, calc(100% - 40px));
	margin-inline: auto;
}

body.page-id-41 .lbfd h1,
body.page-id-41 .lbfd h2,
body.page-id-41 .lbfd p {
	margin-top: 0;
}

body.page-id-41 .lbfd h1 {
	max-width: 840px;
	margin: 20px 0 18px;
	color: #fff;
	font-size: clamp(3rem, 7vw, 6.4rem);
	line-height: .94;
	letter-spacing: -.055em;
}

body.page-id-41 .lbfd .eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--lbfd-gold);
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
}

body.page-id-41 .lbfd .eyebrow::before {
	width: 34px;
	height: 2px;
	background: currentColor;
	content: "";
}

body.page-id-41 .lbfd .actions {
	display: flex;
	flex-wrap: wrap;
	gap: 13px;
	margin-top: 34px;
}

body.page-id-41 .lbfd .btn {
	display: inline-flex;
	width: auto;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 21px;
	border: 2px solid transparent;
	border-radius: 999px;
	font-weight: 800;
	transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

body.page-id-41 .lbfd .btn-red {
	color: #fff;
	background: var(--lbfd-red);
}

body.page-id-41 .lbfd .btn-red:hover,
body.page-id-41 .lbfd .btn-red:focus {
	color: #fff;
	background: var(--lbfd-red-dark);
}

body.page-id-41 .lbfd .btn-ghost {
	color: #fff;
	border-color: rgba(255, 255, 255, .6);
}

body.page-id-41 .lbfd .btn-ghost:hover,
body.page-id-41 .lbfd .btn-ghost:focus {
	color: var(--lbfd-navy);
	background: #fff;
}

body.page-id-41 .lbfd .btn-facebook {
	color: #fff;
	background: #1877f2;
	box-shadow: 0 10px 24px rgba(24, 119, 242, .28);
}

body.page-id-41 .lbfd .btn-facebook:hover,
body.page-id-41 .lbfd .btn-facebook:focus {
	color: #fff;
	background: #166fe5;
}

body.page-id-41 .lbfd .gallery-hero {
	position: relative;
	display: grid;
	min-height: 500px;
	align-items: end;
	color: #fff;
	background:
		linear-gradient(90deg, rgba(4, 17, 32, .95), rgba(4, 17, 32, .52)),
		url("https://lbfd.org/wp-content/uploads/2026/08/c11cdd00a5f1f9d5.webp") center / cover no-repeat;
}

body.page-id-41 .lbfd .gallery-hero .wrap {
	padding: 110px 0 85px;
}

body.page-id-41 .lbfd .gallery-hero p {
	max-width: 650px;
	margin-bottom: 0;
	color: #dbe6f0;
	font-size: 1.12rem;
}

body.page-id-41 .lbfd .gallery-shell {
	padding: 88px 0 105px;
	background: #f6f9fc;
}

body.page-id-41 .lbfd .gallery-intro {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 38px;
}

body.page-id-41 .lbfd .gallery-intro h2 {
	margin: 12px 0;
	color: var(--lbfd-navy);
	font-size: clamp(2.1rem, 4vw, 3.7rem);
	line-height: 1;
	letter-spacing: -.035em;
}

body.page-id-41 .lbfd .gallery-intro p {
	max-width: 650px;
	margin-bottom: 0;
	color: var(--lbfd-muted);
}

body.page-id-41 .lbfd .photo-grid {
	columns: 3 290px;
	column-gap: 18px;
}

body.page-id-41 .lbfd .photo-card {
	position: relative;
	display: block;
	break-inside: avoid;
	margin: 0 0 18px;
	overflow: hidden;
	border: 1px solid rgba(7, 27, 51, .08);
	border-radius: 16px;
	background: #dfe8f1;
	box-shadow: 0 10px 30px rgba(7, 27, 51, .1);
	cursor: default;
}

body.page-id-41 .lbfd .photo-card img {
	width: 100%;
	height: auto;
	filter: none;
	transform: none;
}

body.page-id-41 .lbfd .photo-card:hover,
body.page-id-41 .lbfd .photo-card:hover img {
	filter: none;
	transform: none;
}

body.page-id-41 .lbfd .gallery-credit {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 34px;
	padding: 24px 28px;
	border-left: 5px solid var(--lbfd-gold);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(7, 27, 51, .08);
}

body.page-id-41 .lbfd .gallery-credit p {
	margin: 0;
	color: var(--lbfd-muted);
}

body.page-id-41 .lbfd .gallery-credit strong {
	color: var(--lbfd-navy);
}

@media (max-width: 760px) {
	body.page-id-41 .lbfd .wrap {
		width: min(100% - 28px, 1160px);
	}

	body.page-id-41 .lbfd .gallery-hero {
		min-height: 440px;
	}

	body.page-id-41 .lbfd .gallery-hero .wrap {
		padding: 85px 0 65px;
	}

	body.page-id-41 .lbfd h1 {
		font-size: clamp(2.8rem, 14vw, 4.1rem);
	}

	body.page-id-41 .lbfd .gallery-intro,
	body.page-id-41 .lbfd .gallery-credit {
		align-items: flex-start;
		flex-direction: column;
	}

	body.page-id-41 .lbfd .gallery-shell {
		padding: 65px 0 80px;
	}

	body.page-id-41 .lbfd .photo-grid {
		columns: 2 150px;
		column-gap: 12px;
	}

	body.page-id-41 .lbfd .photo-card {
		margin-bottom: 12px;
		border-radius: 12px;
	}

	body.page-id-41 .lbfd .actions {
		align-items: flex-start;
		flex-direction: column;
	}

	body.page-id-41 .lbfd .btn {
		width: auto !important;
	}
}

