/*
 Theme Name:   Brixton
 Theme URI:    https://bricksbuilder.io/
 Description:  Custom child theme extended from Bricks Builder
 Author:       Man
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.2.4
 Text Domain:  bricks
*/

/* Changelog 

v1.2.4 12/03/2025 by Man
Added show post thumbnail utility. Fix thumbnail image size being disabled, but should be kept.

v1.2.3 08/03/2025 by Man
Added wp_deregister_style to make sure it also deregisters.

v1.2.2 08/03/2025 by Man
Rearranged functions for better layout.
Rewrote disable comments to further remove/disable comments and include Discussions page in Settings.

v1.2.1 07/03/2025 by Man
Added support for Splide Autoscroll Extension.

v1.2 04/03/2025 by Man
Changed the way we load in inc/php files, no longer automated to provide individual control to each php. Removed Disabled folder.
Added filter to remove img code from core https://wordpress.org/support/topic/weird-style-code-in-my-website/.

v1.1.6 15/02/2025 by Man

Disable images sizes apart from thumbnail because we will use CDN image resize on the fly service like Cloudinary or Cloudflare Images. Keeping thumbnail for Media Library preview, so we are not loading the whole thing cos CDN won't be there in admin.
Disabled register-images.php and unset all image sizes in WordPress.
Disabled WordPress from automatically scaling large images.
Added Auto alt text and title.

*/


.image-duotone {
  background-color:    var(--neutral);
  overflow:            hidden;
  position:            relative;
}

.image-duotone img {
  filter:              grayscale(100%) contrast(1) blur(0);
  flex:                1 0 100%;
  height:              100%;
  max-width:           100%;
  mix-blend-mode:      screen;
  object-fit:          cover;
  opacity:             0.7;
  position:            relative;
  width:               100%;
}

.image-duotone::before {
  background-color:    var(--primary);
  bottom:              0;
  content:             '';
  height:              100%;
  left:                0;
  mix-blend-mode:      screen;
  position:            absolute;
  right:               0;
  top:                 0;
  width:               100%;
  z-index:             1;
}


/** Header and Menu **/

body header:not(.scrolling) [data-header-style="Overlay"] .menu-item a, header:not(.scrolling) [data-header-style="Overlay"] svg {
  color: var(--white);
}

header:not(.scrolling) [data-header-style="Overlay"] svg {
	color: var(--white);
}

header:not(.scrolling) [data-header-style="Overlay"]  svg.header-logo path {
  fill: white;
}

svg.header-logo path {
  fill: var(--primary);
}

header:not(.scrolling) [data-header-style="Overlay"] .bc-burguer-style7__line, header:not(.scrolling) [data-header-style="Overlay"] .bc-burguer-style7__line::before {
  background: white;
}

header:not(.scrolling) [data-header-style="Overlay"] a#brxe-cxslwq {
  color: white;
}

header:not(.scrolling) [data-header-style="Overlay"] a#brxe-cxslwq:hover {
  color: var(--primary);
}
