/*
Theme Name: Maxwell Child
Theme URI: https://emadion.it/
Description: Child theme for the Maxwell theme
Author: Emadion
Author URI: https://emadion.it/
Template: maxwell
Version: 1.0.25
*/

/* Import parent theme's styles */
@import url("../maxwell/style.css");
/* Kill old float behavior */
.post-flex .wp-post-image {
  float: none !important;
  margin: 0 !important;
}

/* Flex layout: image + content side-by-side */
.post-flex {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

/* Force image dimensions and crop */
.post-flex .wp-post-image,
.post-flex .wp-post-image img {
  width: 365px !important;
  height: 235px !important;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  max-width: 100% !important
}

/* Content area takes the remaining space */
.post-flex .post-content {
  flex: 1;
}



/* Responsive fallback: stack content below image */
@media (max-width: 700px) {	
  .post-flex {
    flex-direction: column;
  }

  .post-flex .wp-post-image {
    
    height: 235px !important;
    overflow: hidden;
    display: block;
    flex-shrink: 0;
  }

  .post-flex .wp-post-image img {
    width: 100% !important; 
    height: 100% !important;
    object-fit: cover;
    object-position: center center;
    display: block;
  }
  

}



/* home logo */
@media only screen and (min-width: 60em) { 
.menu-item-home a {
  display: inline-block;
  width: 48px;
  height: 48px;
  background-image: url('https://emadion.it/wp-content/themes/emadion-maxwell/img/home-black.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center 6px;
  text-indent: -9999px;
  overflow: hidden;
  white-space: nowrap;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* Keep image on hover/click for Home only */
.menu-item-home a:hover,
.menu-item-home a:active {
  background-image: url('https://emadion.it/wp-content/themes/emadion-maxwell/img/home-black.png') !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center 6px !important;
}
}
