/*
Theme Name: iamcontent
Theme URI: https://wordpress.org/themes/iamproperty/
Author: iam property
Author URI: https://iamproperty.com
Description: ---
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iamproperty
*/

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */

.wp-site-blocks,
.wp-site-blocks > header,
.posts-page-banner,
.posts-page-content {
  display: contents;
}

iam-header {
	grid-column: full-width !important;
}

/* #region fix wordpress nav bar */
main.wp-block-group {

  margin: 0!important;
}
html:has(#wpadminbar) iam-nav{

  top: 32px;
}
html:has(#wpadminbar) footer{

  margin-bottom: -32px;
}
html:has(#wpadminbar) nav:has(:is(iam-nav,.iam-nav)) {
  min-height: 8rem;
}
/* #endregion */

.wp-block-group:not(main){

  display: contents!important;
}

.entry-content {
  display: contents!important;
}
.entry-content>*div:first-child {
    padding-top: 2rem;
}

/* #region buttons */
.wp-block-buttons>.wp-block-button {
  text-decoration: none
}
/* #endregion */

/* #region heading icons */
.wp-block-heading.has-heading-icon {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
}

.wp-block-heading.has-heading-icon .iamcontent-heading-icon {
  flex: 0 0 auto;
  font-size: 0.8em;
  line-height: 1;
}
/* #endregion */


/* posts list */
.wp-block-query {
  display: contents;
}


.wp-block-post-template.is-layout-flow.wp-block-post-template-is-layout-flow {
display: grid;
    grid-column: content!important;
    grid-template-columns: subgrid;
}
.wp-block-post {
  grid-column: auto / span 3;

}

html  {

  margin-top: 0!important;
}



.wp-site-blocks > footer {
  position: sticky;
  top: 100vh;
}




/* #region Overrides */

a:where(:not(.wp-element-button)) {
    color: var(--colour-btn);
    text-decoration: none;
}

/* #endregion */