/*
 Theme Name:   SweetMementos Child
 Theme URI:    https://generatepress.com
 Description:  A custom theme for GeneratePress
 Author:       Arvz
 Author URI:   https://canadavisanews.ca/
 Template:     generatepress
 Version:      1.0
*/



/*** Theme Tweaks ***/

/* Body background color (outside wrapper) */
body {
    background-color: var(--sm-color-cream);
}

/* Site wrapper */
.site-wrapper {
    width: 100%;
    max-width: 1920px;
    margin-inline: auto;
    background-color: var(--sm-color-cream-25);
	box-shadow: 0px 0px 150px 0px #64748b20;
    overflow-x: clip;
}

/* Set the main content area height */
#main {
    min-height: 65vh;
}

/* Container padding overrides */
.inside-header {
    padding-inline: 0px !important;
}

.site-header {
    padding-inline: clamp(1rem, 0.848rem +0.758vw, 1.5rem) !important;
}

.site-content, #content {
    padding: 0px;
}

/* Post Editor Width (Backend) */
.post-type-post .block-editor-block-list__layout {
    max-width: 728px !important;
    margin-inline: auto !important;
    padding-inline: 200px !important;
}

.post-type-post .edit-post-visual-editor__post-title-wrapper .editor-post-title {
    max-width: 728px !important;
    margin-inline: auto !important;
    padding-inline: 200px !important;
}

/*Search Tweaks*/

/* Clears the x for Chrome*/
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    filter: grayscale(100) opacity(.3);
    cursor: pointer;
}

/* Search Block */


/* |2| UTILITIES */

  /* hide an element visually but not for screen readers, this is great for hiding H1 for design purposes */
  .visually-hidden:not(:focus):not(:active) {
      clip: rect(0 0 0 0);
      clip-path: inset(50%);
      height: 1px;
      overflow: hidden;
      position: absolute;
      white-space: nowrap;
      width: 1px;
  }

  /* line limits */
  .line-limit-3, .line-limit-2, .line-limit-1 {
      display: -webkit-box;
      -webkit-box-orient: vertical;
      overflow: hidden;
  }

  .line-limit-3 {
      -webkit-line-clamp: 3;
  }

  .line-limit-2 {
      -webkit-line-clamp: 2;
  }

  .line-limit-1 {
      -webkit-line-clamp: 1;
  }

  /* remove text decoration from links */
  .no-ul, .no-ul a {
      text-decoration: none;
  }

  /* Text Balance/Pretty */
  .balance {
      text-wrap: balance;
  }

  p, div, blockquote, li {
      text-wrap: pretty;
  }
   
/* -end utilities- */ 


/* [3] TYPOGRAPHY */ 



/* Add top margin to blog post H2-H6 */
.single-post:is (H2, H3, H4, H5, H6) {
	margin-top: 1.5em;
}

/* Remove bottom margin on last paragraph */
.gb-container p:last-child:last-of-type, .cvn-xs-section p:last-child:last-of-type, .cvn-s-section p:last-child:last-of-type, .cvn-m-section p:last-child:last-of-type, .cvn-l-section p:last-child:last-of-type, .cvn-xl-section p:last-child:last-of-type, .cvn-xxl-section p:last-child:last-of-type {
	margin-bottom: 0px;
}

.block-editor-block-list__layout .gb-container p:nth-last-child(2) {
	margin-bottom: 0px;
} 

/* -end typograpy- */