/*
Theme Name: Advance Women Theme
Theme URI:
Author: the Enterwell team
Author URI: https://enterwell.net/
Description: Custom WordPress theme for advance-women.ch website.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

This theme, like WordPress, is licensed under the GPL.
*/

.page .ad-people__person__content {
	padding-left: 2rem;
	padding-right: 2rem;
}

.page .wp-block-gallery {
	padding: unset;
}

.footer__copy .c-container {
	padding: 0;
}

footer .footer__copy__copy {
	float: unset;
}

.page__content > p {
	/** font-size: 1.6rem; */
}

.ad-page-section__title-col__subtitle {
	margin: 0;
}

.post .page__content .post__title {
	padding: 0 2rem;
}

.post .page__content .wp-block-column .post__title {
	padding: 0 !important;
}

.is-admin-bar main {
	margin-top: 110px;
}

/*.post .page__content .post__title {
	padding: 0;
}*/

.post .page__content {
	padding-top: 0;
}

.page .a-bg-container {
	/** margin-bottom: 0; **/
}

.page .a-bg-container__content .wp-block-columns {
	margin: 0;
}

.page__content ul li {
	margin-bottom: 2rem;
}

.page__content ul li:last-child {
	margin-bottom: 0;
}

body main p {
	font-size: 2rem;
}

.a-bg-container h2.a-heading {
	margin-top: 0;
}

.a-calendar-event--past {
	order: 20;
}

.c-navbar__items-container ul {
	display: block;
}

.contact-icon {
	background-image: url(https://weadvance.ch/wp-content/themes/advance-women-theme/assets/images/icons/mail.svg);
	background-repeat: no-repeat;
	width: 20px;
	height: 20px;
	background-size: 100%;
}

.c-navbar__items-container ul li a {
	border-right: none;
}

.c-navbar-overlay ul li {
	margin-top: 0;
}

.c-navbar-overlay ul li a {
	color: #414241;
	text-decoration: none;
	font-size: 1.6rem;
	font-family: "SofiaProLight";
	font-weight: 300;
	line-height: 1.6;
}

.c-navbar-overlay ul li a:hover {
	opacity: 0.6;
}

footer h3 a {
	text-transform: uppercase;
}

.c-navbar-overlay .c-container {
	max-width: 96rem;
}

@media (max-width: 433px) {
	.page .ad-hero-slider-item__content__image {
		padding: 0 25px;
	}

	.page .ad-people__person {
		max-width: 100%;
	}

	.page .c-person-modal-container .c-preview {
		max-width: 100%;
	}

	.page .ad-people__container {
		margin: unset;
	}

	.page .a-columns__content .a-column {
		margin: auto;
		max-width: 100%;
	}

	.page .a-columns__content {
		margin: 0;
	}

	.page .a-testimonial__container {
		max-width: 100%;
	}

	.page .a-statements__content .a-statement {
		max-width: 100%;
	}

	.archive .c-article {
		max-width: 100%;
	}

	.page .post__content .ad-page-section {
		padding: 0;
	}

	.page .a-recurring-events__content .a-recurring-event__content__events {
		margin: 0;
	}

	.page .a-recurring-events__content .a-recurring-event__content__events .a-sub-event {
		max-width: 100%;
	}

	.page .a-person {
		max-width: 100%;
	}

	.page .wp-block-spacer:not(.mobile-spacer) {
		max-height: inherit;
	}

	.c-navbar__items-container ul li.hide-mobile {
		display: none;
	}
}

@media (max-width: 560px) {
	.page .a-calendar__events .a-calendar-event {
		max-width: 100%;
	}
}

/* Gallery last item fix */
.blocks-gallery-item:last-child {padding-bottom: 16px;}

.c-navbar-overlay__menu__item--newsletter{
	color: #414241;
	flex: 1 0 63.5%;
}

.c-navbar-overlay__menu__item--newsletter p{
	color: #414241;
    text-decoration: none;
    font-size: 1.6rem;
    font-family: "SofiaProLight";
    font-weight: 300;
    line-height: 1.6;
}

.c-navbar-overlay__menu__item--contact p{
	color: #414241;
    text-decoration: none;
    font-size: 1.6rem;
    font-family: "SofiaProLight";
    font-weight: 300;
    line-height: 1.6;
}

@media only screen and (max-width: 680px){
	.c-navbar-overlay__menu__item--newsletter{
		flex: 1 0 50%;
	}
}

/* Page content and testimonial */
.page__content {
	overflow: hidden;
}
.page__content .wp-block-advance-testimonial {
	margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Colorful grid */
.ew-show-colors .wp-block-image, .ew-show-colors img {
	filter: none !important;
}

/* Homepage video align right */
.ad-hero-slider .wp-block-video {
	text-align: right;
}
@media only screen and (max-width: 560px) { .ad-hero-slider .wp-block-video { text-align: center; }}
.ad-hero-slider .wp-block-video video {
	max-height: 100%;
}

.page .ew-gallery-normal.columns-3 .blocks-gallery-grid {
	width: 100% !important;
}
/* .page .ew-gallery-normal.columns-3 ul.blocks-gallery-grid li.blocks-gallery-item:nth-child() {
	width: calc(33.33333% - .66667em) !important;
} */

/* Best practices */
article.c-best-practice .c-best-practice__content__title {
	text-transform: none;
}
article.c-best-practice .c-best-practice__content__description {
	font-family: "SofiaProLight", sans-serif;
}
.best-practice__title__sub.c-title.c-title--grey {
	box-shadow: 20px 0 0 #414241, -20px 0 0 #414241;
    background-color: #414241;
}
.c-kac__items .c-kac-item__thumbnail {
	max-height: 300px;
}

/* Homepage slider */
@media only screen and (max-width: 560px) {
  .page .ew-homepage-slider .wp-block-advance-hero-slider-item {
    position: relative;
  }
  .page .ew-homepage-slider .ad-hero-slider-item__content,
  .page .ew-homepage-slider .ad-hero-slider-item__content .ad-hero-slider-item__content__text {
    transform: none;
    position: static;
  }
  .page .ew-homepage-slider .ad-hero-slider-item__content .ad-hero-slider-item__content__text .ad-hero-slider-item__content__text__title {
    position: absolute;
    top: 0;
    left: 21px;
    right: 0;
    transform: none;
    width: 95vw;
    margin: 0;
  }
}
@media only screen and (max-width: 940px) {
  .page .ew-homepage-slider .ad-hero-slider-item__content .ad-hero-slider-item__content__text .ad-hero-slider-item__content__text__title {
    position: relative;
  }
  .page .ew-homepage-slider .ad-hero-slider-item__content .ad-hero-slider-item__content__image {
    max-width: 100vw;
  }
  .page .ew-homepage-slider .ad-hero-slider-item__content .ad-hero-slider-item__content__text {
    padding-bottom: 15rem;
  }
}
