/**
Theme Name: Astra Child
Author: Montse EL @ Dandelium Studio (Astra Child) & Brainstorm Force (Astra)
Author URI: https://dandelium.studio
Description: Child theme for Dandelium Studio, based on the Astra theme.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

/*To get access to SVG icons for decoration purposes*/

@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.8.1/font/bootstrap-icons.css");

.no-padding-top{
  padding-top: 0 !important; /*To remove the padding in certain cases*/
}

.heading-font{
  font-family: "Source Serif Pro";
}

.big-icon-centered{
  font-size: 4rem;
  text-align: center;
  display: block;
}

.mid-icon-centered{
  font-size: 2rem;
  text-align: center;
  display: block;
}

.wp-block-columns {
  flex-wrap: wrap;
  justify-content: center;
}

.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column{
  flex-grow: 0; /*To avoid the content growing to occupy all available space*/
}

.wp-block-column{
  min-width:250px; /*To ensure that the text is legible*/
  margin-left: var(--wp--style--block-gap,2em); /*Only applies to first column, otherwise it wouldn't have a margin*/
  margin-top: 1rem; /*To ensure that there is always a separation between columns*/
}

.wp-block-group .has-background {
  padding: 20px; /*To ensure that there is always a padding*/
}

/*Jetpack portfolio*/
/*.ast-separate-container .ast-article-single .jetpack-portfolio, .ast-separate-container .ast-article-single .jetpack-testimonial{
  padding-left: 0;
  padding-right: 0;
}*/

/*Astra portfolio*/
/*S'aplicara a totes les pagines amb el portafoli*/
/*#astra-portfolio {
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}*/


blockquote{
  /*border-color: var(--ast-global-color-0);*/ /*We refer to the theme colour.*/
  border-color: rgba(242,205,27,0.5); /*Theme colour with a transparency*/
}

/*Post title, when it contains a link*/
.entry-title a {
  color: var(--ast-global-color-8);
}

/*Post title, when it contains a link*/
.entry-title a:hover {
  color: var(--ast-global-color-1);
}

/*To ensure that metadata is shown in the proper colour if it's not a link*/
.entry-meta {
  color: var(--ast-global-color-2);
}

/*Published date, it's not a link*/
.published {
  color: var(--ast-global-color-2); /*Black*/
}

/*This is necessary when pages have a "content box" layout. The margins are too large. */
.ast-separate-container .ast-article-single {
  padding-top: 0;
  padding-bottom: 0;
}

/*To add some padding between the featured image and H1 on blog posts*/
.type-post .entry-header h1.entry-title {
  padding-top: 1.2em;
}

/*To ensure that the search symbol is shown when the form opens*/
.ast-header-search .ast-dropdown-active .ast-icon  {
  color: var(--ast-global-color-2);
}

.sidebar-main{
  font-size: 0.9em;
}

/*Changing weird title sizes*/

/*Applies to pages that show 'original' header*/
.ast-single-post h1.entry-title {
  font-size: 2.22em;
}

/*Padding when there is no featured image*/
/*After update January 2023 it adds too much padding*/
/*header.ast-no-thumbnail {
  padding-top: 2em;
}*/

/*Padding comments form*/
.comments-area .form-submit {
  margin-bottom: 2em;
}


/*Figures*/

/*We add padding to avoid the text being too crammed*/

/*figure, .wp-block-gallery {
  padding-bottom: 20px;
}*/ /*Removed because it caused issues with the main page and images that fill a whole area*/

.wp-block-gallery figure {
  padding-bottom: 0;
}

figcaption {
  font-size: 0.9em;
  text-align: center;
}

/*Necessary to override default style*/
figure.alignright figcaption{
  text-align: center;
}

/*Image border*/
.img-border img{
  border: 1px rgb(75, 79, 88) solid;
}

/*Featured image*/
.ast-article-single .entry-header .post-thumb {
  text-align: center;
}

/*No margin on top block*/
.wp-container-1.no-top-margin > * + * {
  margin-block-start: 0;
}

.wp-container-2.no-top-margin  > * + * {
  margin-block-start: 0;
}
.wp-container-3.no-top-margin  > * + * {
  margin-block-start: 0;
}
.wp-container-4.no-top-margin  > * + * {
  margin-block-start: 0;
}
.wp-container-5.no-top-margin  > * + * {
  margin-block-start: 0;
}
.wp-container-6.no-top-margin  > * + * {
  margin-block-start: 0;
}
.wp-container-7.no-top-margin  > * + * {
  margin-block-start: 0;
}

/*Necessary to override default Gutenberg styles, added .wrap style to ensure columns will wrap*/
@media (min-width: 782px){
  .wp-block-columns.wrap {
  flex-wrap: wrap !important;
  }
}

/*Used in certain cases where padding is too tight*/
.padding-bottom{
  padding-bottom: 20px;
}

/*After update to WordPress 6.1, links appear underlined whatever Astra's config*/
/*a:where(:not(.wp-element-button)) {
  text-decoration: inherit;
}*/

/*Disable auto capitalization of titles*/
header.entry-header:not(.related-entry-header) .entry-title{
  text-transform: inherit;
}


/*Testimonial Plugin, decrease text size for testimonial*/
.strong-view.wpmtst-modern .wpmtst-testimonial-content{
  font-size: 1em !important;
}

.wpmtst-testimonial-field.testimonial-field{
  font-size: 0.85em;
  line-height: 1.4em;
}

/*Media and text block margin bottom*/
.wp-block-media-text{
    margin-bottom: 25px;
}

/*Blockquote size*/
blockquote {
    /*Otherwise the font is too large*/
    font-size: 1em;
}

/*Do not italizice*/
.do-not-italizice{
    font-style: normal;
}

/*Remove Recaptcha Logo from the website*/

/*.grecaptcha-badge {
  visibility: hidden;
}*/


/*BRDS plugin*/
/*Book review*/

/*.brds-book-info{
  padding-top: 20px;
}

.brds-book-info .post-thumb-img-content {
  float: left;
  padding-right: 30px;
  padding-bottom: 10px;
}

.entry-content {
  clear: both;
}

.bi.bi-star, .bi.bi-star-fill, .bi.bi-star-half{
  color: #fcb900;
}

.brds-book-info ul {
  list-style-type: none;
}

.brds-book-info hr{
  width: 50%;
  margin-left: auto;
  margin-right: auto;
}

.brds-book-review .entry-header {
  padding-top: 2em;
}*/
