/* ==========================================================================
   Eats History - shared by the front end AND the block editor canvas.
   Loaded via enqueue_block_assets, the only hook that reaches inside the
   iframed editor. Migrated from Customizer Additional CSS 2026-07-28.
   ========================================================================== */

.kb-gallery-type-tiles .kb-gallery-item:hover .kb-gallery-image-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(14, 32, 40, 0.65);
  transition: opacity 0.3s ease;
}

.kb-gallery-type-tiles .kb-gallery-item .kb-gallery-image-inner {
  position: relative;
  overflow: hidden;
}

.kb-gallery-type-tiles .kb-gallery-item .kb-gallery-image-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(14, 32, 40, 0.65);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.kb-gallery-type-tiles .kb-gallery-item:hover .kb-gallery-image-inner::after {
  opacity: 1;
}


/* --- Inline opt-in panels --- */
.eh-optin { margin: 44px 0; padding: 30px 30px 26px; border-radius: 4px; }
.eh-optin .eh-optin__title { margin: 0 0 8px; line-height: 1.15; }
.eh-optin .eh-optin__copy { margin: 0 0 20px; font-size: .95rem; opacity: .82; }
.eh-optin .gform_wrapper { margin: 0; }

/* Newsletter, mid-post */
.eh-optin--inline { background: var(--global-palette7, #f0e8d8); border-left: 3px solid var(--global-palette15, #B89A70); }

/* Save this recipe, above the card */
.eh-optin--save { background: #0e2028; margin-bottom: 10px; }
.eh-optin--save .eh-optin__title, .eh-optin--save .eh-optin__copy { color: var(--global-palette8, #faf6ee); }
.eh-optin--save .gform_wrapper.gform-theme--framework {
	--gf-ctrl-btn-bg-color-primary: var(--global-palette8, #faf6ee);
	--gf-ctrl-btn-color-primary: #0e2028;
	--gf-ctrl-btn-bg-color-hover-primary: var(--global-palette15, #B89A70);
	--gf-ctrl-btn-color-hover-primary: #0e2028;
	--gf-ctrl-btn-border-color-primary: var(--global-palette8, #faf6ee);
}
.eh-optin--save .gform_wrapper input[type=text], .eh-optin--save .gform_wrapper input[type=email] {
	background: rgba(250, 246, 238, .07); border-color: rgba(250, 246, 238, .38); color: var(--global-palette8, #faf6ee);
}
.eh-optin--save .gform_wrapper input::placeholder { color: rgba(250, 246, 238, .62); }
.eh-optin--save .gform_confirmation_message { color: var(--global-palette8, #faf6ee); }

/* eh-optin mobile + polish */
.eh-optin .gform_wrapper input[type=text]:focus, .eh-optin .gform_wrapper input[type=email]:focus {
	outline: 2px solid var(--global-palette15, #B89A70); outline-offset: 2px;
}
.eh-optin .gform_wrapper .gform_button { transition: opacity .18s ease, background-color .18s ease; }
.eh-optin--inline .gform_wrapper .gform_button:hover { opacity: .88; }

@media (max-width: 767px) {
	.eh-optin { margin: 32px 0; padding: 22px 20px 20px; }
	.eh-optin .eh-optin__title { font-size: 1.3rem; }
	.eh-optin .eh-optin__copy { font-size: .9rem; margin-bottom: 16px; }
	/* 16px stops iOS zooming the page on focus */
	.eh-optin .gform_wrapper input[type=text], .eh-optin .gform_wrapper input[type=email] {
		font-size: 16px; min-height: 48px;
	}
	.eh-optin .gform_wrapper .gform_button {
		width: 100%; min-height: 48px; font-size: 16px;
	}
}

/* --- Dispatch opt-in (mid-post) --- */
.eh-dispatch { position: relative; overflow: hidden; background: #0e2028; margin: 44px 0; padding: 34px 32px; border-radius: 4px; }
.eh-dispatch::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(184,154,112,.22), transparent 68%); pointer-events: none; }
.eh-dispatch > * { position: relative; z-index: 1; }
.eh-dispatch .eh-dispatch__stamp { margin: 0 0 14px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: #b89a70; }
.eh-dispatch .eh-dispatch__title { margin: 0 0 10px; color: #faf6ee; line-height: 1.12; max-width: 24ch; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); }
.eh-dispatch .eh-dispatch__copy { margin: 0 0 20px; color: rgba(250,246,238,.78); font-size: .97rem; max-width: 52ch; }
.eh-dispatch .gform_wrapper { margin: 0; }
.eh-dispatch .gform_wrapper.gform-theme--framework {
	--gf-ctrl-btn-bg-color-primary: #b89a70;
	--gf-ctrl-btn-color-primary: #0e2028;
	--gf-ctrl-btn-bg-color-hover-primary: #c9ac83;
	--gf-ctrl-btn-color-hover-primary: #0e2028;
	--gf-ctrl-btn-border-color-primary: #b89a70;
}
.eh-dispatch .gform_wrapper input[type=text], .eh-dispatch .gform_wrapper input[type=email] { background: rgba(250,246,238,.07); border-color: rgba(250,246,238,.34); color: #faf6ee; }
.eh-dispatch .gform_wrapper input::placeholder { color: rgba(250,246,238,.62); }
.eh-dispatch .gform_wrapper input:focus { outline: 2px solid #b89a70; outline-offset: 2px; }
.eh-dispatch .gform_confirmation_message { color: #faf6ee; }
.eh-dispatch .gform_wrapper.gform-theme .gform_footer { margin-top: 20px; }
.eh-dispatch .gform_wrapper.gform-theme.gform-theme--framework button.gform_button.button {
	--gf-local-width: 100%;
	inline-size: 100%;
	width: 100%;
}
.eh-dispatch .eh-dispatch__sig { display: flex; align-items: center; gap: 11px; margin-top: 18px; }
.eh-dispatch .eh-dispatch__sig img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(184,154,112,.6); flex: none; }
.eh-dispatch .eh-dispatch__sig span { font-size: 12.5px; color: rgba(250,246,238,.72); }
body.single-post .single-content > .eh-dispatch { margin-top: 44px; margin-bottom: 44px; }
@media (max-width: 767px) {
	.eh-dispatch { margin: 32px 0; padding: 24px 20px; }
	body.single-post .single-content > .eh-dispatch { margin-top: 32px; margin-bottom: 32px; }
	.eh-dispatch .eh-dispatch__title { font-size: 1.35rem; max-width: none; }
	.eh-dispatch .eh-dispatch__copy { font-size: .92rem; margin-bottom: 16px; }
	.eh-dispatch .gform_wrapper input[type=text], .eh-dispatch .gform_wrapper input[type=email] { font-size: 16px; min-height: 48px; }
	.eh-dispatch .gform_wrapper .gform_button { width: 100%; min-height: 48px; font-size: 16px; }
	.eh-dispatch .eh-dispatch__sig img { width: 38px; height: 38px; }
}

/* --- Save this recipe (in/above card) --- */
.eh-save { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 16px; align-items: center; background: #fff; border: 1px solid #d9d0c0; border-left: 3px solid #0e2028; border-radius: 4px; padding: 20px 22px; margin: 0 0 14px; }
.eh-save .eh-save__face { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 2px solid #f0e8d8; flex: none; margin: 0; display: block; }
.eh-save .eh-save__body { display: block; }
.eh-save .eh-save__title { margin: 0 0 3px; font-size: 1.18rem; line-height: 1.2; color: #0e2028; }
.eh-save .eh-save__copy { margin: 0 0 12px; font-size: .88rem; color: rgba(14,32,40,.72); }
.eh-save .gform_wrapper { margin: 0; }
.eh-save .gform_wrapper .gfield { margin-bottom: 8px; }
.eh-save .gform_wrapper input[type=email] { min-height: 44px; padding: 10px 12px; }
.eh-save .gform_wrapper .gform_button { min-height: 44px; padding: 11px 18px; font-size: 14px; }
@media (max-width: 767px) {
	.eh-save { grid-template-columns: 1fr; gap: 12px; padding: 18px 18px 16px; }
	.eh-save .eh-save__face { width: 46px; height: 46px; }
	.eh-save .gform_wrapper input[type=email] { font-size: 16px; min-height: 48px; }
	.eh-save .gform_wrapper .gform_button { width: 100%; min-height: 48px; font-size: 16px; }
}

/* --- Save form inside the WPRM card --- */
.eh-card-save { margin: 0 0 18px; padding: 18px; background: #faf6ee; border: 1px solid #e4dccb; border-left: 3px solid #b89a70; border-radius: 3px; }
body.single-post .wprm-recipe .eh-card-save { margin: 0 0 18px; }
.eh-card-save .eh-card-save__head { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.eh-card-save .eh-card-save__head > .wp-block-image { margin: 0; flex: none; }
.eh-card-save .gform_wrapper { margin: 0; }
.eh-card-save .gform_wrapper.gform-theme .gfield { margin-bottom: 0; }
.eh-card-save .gform_wrapper.gform-theme .gform_footer { margin-top: 16px; }
.eh-card-save .gform_wrapper.gform-theme input[type=email] {
	height: 48px;
	min-height: 48px;
	block-size: 48px;
	min-block-size: 48px;
	padding: 10px 12px;
	background: #fff;
}
.eh-card-save .gform_wrapper.gform-theme.gform-theme--framework button.gform_button.button {
	--gf-local-width: 100%;
	--gf-local-height: 48px;
	--gf-local-min-height: 48px;
	inline-size: 100%;
	width: 100%;
	height: 48px;
	min-height: 48px;
	block-size: 48px;
	min-block-size: 48px;
	justify-content: center;
}
.eh-card-save .gform_confirmation_message { font-size: .9rem; color: #0e2028; }
@media (max-width: 767px) {
	.eh-card-save { padding: 16px; }
	.eh-card-save .gform_wrapper input[type=email] { font-size: 16px; }
}

.eh-card-save .eh-card-save__face { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #f0e8d8; flex: none; margin: 0; display: block; }
.eh-card-save .eh-card-save__title { margin: 0 0 2px; font-weight: 700; font-size: 1rem; line-height: 1.2; color: #0e2028; }
.eh-card-save .eh-card-save__copy { margin: 0; font-size: .84rem; line-height: 1.4; color: rgba(14,32,40,.72); }

/* --- Sidebar profile + post favorites --- */
.kb-row-layout-idblock-2_48873b-a1 ul.wp-block-social-links {
	gap: 8px;
	margin-bottom: 12px;
}
