/**
* Single Page Header - Breadcrumb + H1 + subtitle
*/
.single-title-wrapper {
	padding: 90px 0 0;
}

.single-title-wrapper .breadcrumb-wrapper {
	margin-bottom: 10px;
	text-align: right;
}

.single-title-wrapper .breadcrumb-wrapper,
.single-title-wrapper .figcaption {
	padding-left: 50px;
	padding-right: 130px;
}

.single-title-wrapper .figcaption {
	background-color: var(--color-5);
	padding-top: 50px;
	padding-bottom: 20px;
} 

.single-title-wrapper .figcaption > div {
	padding-left: 15px;
	flex-basis: calc(100% - 115px);
}

.single-title-wrapper .figcaption h1 {
	font-size: 40px;
 	line-height: 50px;
  	letter-spacing: 1px;
  	margin-bottom: 0;
}

.single-title-wrapper .subtitle {
	flex-basis: auto;
	max-width: 100%;
	margin-bottom: 0;
	font-size: 25px;
  	line-height: 30px;
}

.single-title-wrapper .figcaption .lh-s h1 {
    line-height: 42px;
}

.single-title-wrapper .lh-s .subtitle {
  	line-height: 27px;
}

.breadcrumb-wrapper p {
	margin-bottom: 0;
}

.single-title-wrapper .afg-meta-wrapper {
	margin-top: 14px;
	font-size: 16px;
  	line-height: 22px;
  	font-weight: 300;
  	flex-basis: auto;
  	max-width: 100%;
}

.single-title-wrapper div div p:nth-child(4) {
	margin-top: 0px;
	line-height: 20px;
}

.share-wrapper {
	padding:0 50px;
	position: relative;
	min-height: 84px;
}

/**
* Artists list
*/
.artists-list {
	display: flex;
	flex-wrap: wrap;
	list-style-type: none;
	padding:30px 0;
	padding-right: 50px;
	flex-basis: calc(100% - 100px);
}

.artists-list li {
	margin:0 8px;
	position: relative;
}

.artists-list li:after {
	content: '';
	position: absolute;
	right: -11px;
	top: 50%;
	transform: translateY(-50%);
	height: 6px;
	width: 6px;
	background-color: var(--color-1);
	border-radius: 100%;
}

.artists-list li:last-child {
	margin-right: 0;
}

.artists-list li:last-child:after {
	display: none;
}

.artists-list li h3 {
	margin-bottom: 0;
}

/**
* Sassy Social Share
*/
.afg-share {
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    font-size: 0;
    height: 25px;
    width: 25px;
    margin: 0 auto;
    display: block;
    background-image: url('../img/share.svg');
    margin-right: 20px;
    border-bottom: unset;
}

.afg-share:hover {
	border-bottom: unset;
} 

.share .post-share {
    width: auto;
    position: absolute;
    right: 0;
    left: auto;
   	right: 110px;
    background-color: var(--color-2);
    opacity: 0;
    pointer-events: none;
    transition: all .3s;
}

.share {
	display: flex;
	align-items: center;
}

.share .post-share.afg-active {
	opacity: 1;
	pointer-events: all;
}

/**
* Single Main Content
*/
body.eav .main-content > div:first-child {
	padding:50px;
	font-size: 16px;
	line-height: 29px;
}

body.eav .main-content > div {
	background-color: #f7f7f7f5;
}

body.eav .main-content > div *:last-child {
	margin-bottom: 0;
}

/**
* Single Woocommerce Product Price and cart
*/
body.eav .main-content > div.single-price-cart-wrapper {
	padding: 0;
}

body.eav .main-content > div.single-price-cart-wrapper .stock {
	padding: 5px;
	background-color: var(--color-2);
}

body.eav .main-content > div.single-price-cart-wrapper .price {
	font-size: 16px;
    line-height: 22px;
    font-weight: 500;
}

body.eav .main-content > div.single-price-cart-wrapper .quantity input[type="number"].qty {
	border: 1px solid var(--color-2);
}

body.eav .main-content > div.single-price-cart-wrapper button[name="add-to-cart"]:before {
    height: 60%;
    width: 60%;
    top: 20%;
    left: 20%;
}

body.eav .main-content > div.single-price-cart-wrapper .added_to_cart.wc-forward {
	display: none!important;
}

/**
* Single Downloads
*/
.downloads-wrapper {
	position: relative;
	min-height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding:0 50px;
	list-style-type: none;
	background-color: var(--color-2);
}

.downloads-wrapper li {
	font-size: 16px;
    line-height: 24px;
    letter-spacing: .02em;
    margin: 0 25px;
    font-weight: 500;
    padding:5px 20px 5px 50px;
    border: 1px solid var(--color-3);
    position: relative;
}

.downloads-wrapper li a:hover,
.downloads-wrapper li a {
	color: #717171;
	border-bottom: unset;
}

.downloads-wrapper li:before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	height: 34px;
	width: 34px;
	background-color: var(--color-3);
	background-image: url('../img/download-3.svg');
	background-repeat: no-repeat;
	background-position: center;
	background-size: 80%;
}

/**
* Gutenberg Posts Grid
*/
section[id^="posts-grid"] {
	background: var(--color-3);
    padding: 0 120px 0;
    position: relative;
}

.downloads-wrapper + section[id^="posts-grid"] {
	padding-top: 30px;
}

section[id^="posts-grid"] ~ .cta-wrapper {
	padding-top: 50px;
	padding-bottom: 110px;
	background-color: var(--color-3);
}

section[id^="posts-grid"] .summary-wrapper {
	margin: 0 -120px;
	margin-bottom: 100px;
	padding-left: 50px;
}

section[id^="posts-grid"] .summary-wrapper .summary {
	justify-content: flex-start;
}

.grid .afg-grid-item, .grid-sizer {
    width: 47%;
}

.gutter-sizer {
    width: 6%;
}

section[id^="posts-grid"] .afg-grid-item {
	border-bottom: 1px solid #d8dfe4;
	margin-bottom: 50px;
	cursor: pointer;
}

section[id^="posts-grid"] .afg-grid-item.year {
	display: flex;
	min-height: 200px;
	justify-content: center;
	align-items: center;
	font-size: 50px;
	color: var(--color-3);
	border-bottom: unset;
	margin-bottom: 0;
	cursor: default;
}

section[id^="posts-grid"] .afg-grid-item.year span {
	display: flex;
	justify-content: flex-end;
	padding: 15px 25px;
	background-color: var(--color-5);
	width: 100%;
	text-align: right;
	transform: translateX(-135px);
}

section[id^="posts-grid"] .afg-grid-item.year.afg-right span {
	justify-content: flex-start;
	text-align: left;
	transform: translateX(135px);
}

section[id^="posts-grid"] .figcaption p,
section[id^="posts-grid"] .figcaption a,
section[id^="posts-grid"] .figcaption span,
section[id^="posts-grid"] .figcaption h2 {
	color: var(--color-1);
}

section[id^="posts-grid"] .figcaption p .date {
	display: none;
}

section[id^="posts-grid"] .figcaption p {
    flex-basis: auto;
    max-width: auto;
    margin-bottom: 0;
}

section[id^="posts-grid"] h2 {
	flex-basis: 100%;
	max-width: 100%;
	line-height: .8em;
}

section[id^="posts-grid"] h2 a {
	line-height: 1.2em;
}

section[id^="posts-grid"] figure {
	position: relative;
	margin-bottom: 10px;
}

section[id^="posts-grid"] figure img {
	width:100%;
	height: auto;
}

section[id^="posts-grid"] .subtitle {
	font-size: 16px;
    line-height: 19px;
    font-weight: 500;
    line-height: 1em;
}

section[id^="posts-grid"] .afg-meta {
	font-size: 14px;
    line-height: 19px;
    font-weight: 300;
    line-height: 1em;
}

@media screen and (max-width: 991px) {
	section[id^="posts-grid"] {
	    padding: 0 35px 30px;
	}

	.grid .afg-grid-item {
		padding-left: 0;
		padding-right: 0;
	}

	.grid .afg-grid-item, .grid-sizer {
	    width: 100%;
	}

	.gutter-sizer {
	    width: 0%;
	}
}

/**
* Single Related Posts
*/
section[id^="posts-grid"].related-post {
	padding-top: 30px;
	padding-bottom: 110px;
	padding-left: 0;
	padding-right: 0;
}

section.related.products {
	margin-left: -15px;
	margin-right: -15px;
	background-color: var(--color-2);
	padding: 0 50px;
}

section[id^="posts-grid"].related-posts img {
	width: auto;
	height: 250px;
	margin: 0 auto;
}

section[id^="posts-grid"].related-posts .h1 {
font-size: 40px;
  line-height: 50px;
  letter-spacing: 1px;
}

section[id^="posts-grid"].related-posts .afg-related-slider,
section[id^="posts-grid"].related-posts .afg-grid-item {
	height:250px;
}

section[id^="posts-grid"].related-posts .afg-grid-item {
	max-width: 400px;
	max-height: 250px;
	position: relative;
	margin-right: 15px;
	border-bottom: unset;
}

section[id^="posts-grid"].related-posts .afg-grid-item .figcaption {
	position: absolute;
	bottom: 0;
	left: 0;
    width: 100%;
	padding: 10px;
	background-color: #091219cf;
	color: var(--color-3);
	opacity: 0;
	pointer-events: none;
	transition: all .3s;
	min-height: 85px;
}

section[id^="posts-grid"].related-posts .afg-grid-item .figcaption * {
	color: var(--color-3);
}

section[id^="posts-grid"].related-posts .afg-grid-item:hover .figcaption {
	pointer-events: all;
	opacity: 1;
}

section[id^="posts-grid"].related-posts .figcaption h2 {
	font-size: 20px;
	line-height: 23px;
	margin-bottom: 0;
}

section[id^="posts-grid"].related-posts .figcaption > p {
	flex-basis: 80px;
	max-width: 80px;
	max-height: 0;
	display: flex;
	align-items: flex-start;
	transform: scale(.6);
	transform-origin: top left;
}

section[id^="posts-grid"].related-posts .figcaption > p .date {
	display: block;
}

section[id^="posts-grid"].related-posts .figcaption p .date > span:nth-child(1) {
	margin-bottom: 0;
}

section[id^="posts-grid"].related-posts .afg-meta {
	font-size: 13px;
}

/**
* Single Product - Related and Upsells products
*/
section[id^="posts-grid"].related-posts .afg-grid-item.product {
	max-width: 100%;
	max-height: 100%;
	height: auto;
	position: relative;
	margin-right: 15px;
	border-bottom: unset;
	padding-left: 15px;
	padding-right: 15px;
}

section[id^="posts-grid"].related-posts .afg-grid-item.product figure.afg-product-thumb {
    padding-top: 250px;
}

section[id^="posts-grid"].related-posts .afg-grid-item.product figure a {
	display:block;
	width: 100%;
	padding-top: 250px;
	position: absolute;
	top: 0;
	left: 0;
}

section[id^="posts-grid"].related-posts .afg-grid-item.product img {
    width: 100%;
    height: 250px;
    object-fit: contain;
}


/**
* Mobile
*/
@media screen and (max-width: 991px) {
	/**
	* Single Title
	*/
	.single-title-wrapper .breadcrumb-wrapper {
	    padding-left: 20px;
	    padding-right: 20px;
	}

	.single-title-wrapper .figcaption {
	    padding: 20px;
	}

	.single-title-wrapper .figcaption p,
	.single-title-wrapper .figcaption > div {
	    flex-basis: 100%;
	    max-width: 100%;
	    padding-left: 0;
	}

	.single-title-wrapper .figcaption > div.single-price-wrapper p {
		flex-basis: 150px;
		max-width: 150px;
		margin: 15px 0;
		padding-left: 0;
		font-size: 14px;
	}

	.single-title-wrapper .figcaption > p {
		display: flex;
		flex-wrap: wrap;
	} 

	.single-title-wrapper .figcaption > p .date {
		flex-basis: 100px;
		max-width: 100px;
	}

	.single-title-wrapper .figcaption h1 {
	    font-size: 30px;
    	line-height: 36px;
    	margin-bottom: 0;
	}

	.single-title-wrapper .subtitle {
		margin-bottom: 0;
	}

	.single-title-wrapper .figcaption .lh-s h1 {
	    line-height: 37px;
	}

	.single-title-wrapper .lh-s .subtitle {
	  	line-height: 34px;
	}

	.single-title-wrapper .figcaption .afg-meta-wrapper {
		margin-bottom: 0;
		margin-top: 14px;
    	font-size: 14px;
    	line-height: 18px;
	}

	/**
	* Artist and share bar
	*/
	.share-wrapper {
		padding: 0 20px;
		min-height: 50px;
	}

	.share .post-share {
	    width: calc(100% - 65px);
	    right: auto;
	    left: 15px;
	}

	.artists-list {
		flex-basis: 100%;
		padding: 15px 15px 15px 0;
	}

	.afg-share {
		margin-right: 0;
	}

	.downloads-wrapper {
	    padding: 20px;
	    justify-content: flex-start;
	} 

	.downloads-wrapper li {
	    font-size: 14px;
	    line-height: 22px;
	    margin: 0;
	    margin-bottom: 20px;
	    font-weight: 500;
	}

	.downloads-wrapper li:last-child {
	    margin-bottom: 0;
	}

	/**
	* Main content
	*/
	.main-content > div {
		padding: 20px;
		font-size: 14px;
	    line-height: 24px;
	}

	body.eav .main-content > div:first-child {
	    padding: 20px;
	    font-size: 14px;
	    line-height: 24px;
	}

	/**
	* Single Woocommerce Product Price and cart
	*/
	body.eav .main-content > div.single-price-cart-wrapper {
	    padding: 0 20px 20px;
	    display: flex;
	    flex-wrap: wrap;
	}

	body.eav .main-content > div.single-price-cart-wrapper > .price {
	    flex-basis: 50%;
	    max-width: 50%;
	}

	body.eav .main-content > div.single-price-cart-wrapper .stock {
	    flex-basis: 20%;
	    text-align: center;
	    max-width: 20%;
	}

	form.cart {
		flex-basis: 30%;
	}

	/**
	*  Related posts
	*/
	section[id^="posts-grid"].related-posts {
	    padding-bottom: 50px;
	}

	section[id^="posts-grid"].related-posts .h1 {
		font-size: 20px;
    	line-height: 25px;
   		padding-top: 0;
	}

	section[id^="posts-grid"].related-posts .afg-grid-item {
		margin: 0 7.5px;
		max-width: calc(100vw - 80px);
	}

	section[id^="posts-grid"].related-posts img {
		width: 100%;
	    object-fit: cover;
	    margin: 0;
	}

	section[id^="posts-grid"] ~ .cta-wrapper {
		padding-top: 0;
		padding-bottom: 50px;
	}

	section[id^="posts-grid"] .afg-grid-item.year.afg-right span {
		transform: unset;
	}

	/**
	* Single Product - Related and Upsells products
	*/
	section.related.products {
	    margin-left: -15px;
	    margin-right: -15px;
	    background-color: var(--color-2);
	    padding: 0px;
	}

	section[id^="posts-grid"].related-posts .afg-grid-item.product {
		margin-right: 0;
		padding-bottom: 20px;
		margin-bottom: 30px;
		margin-left: 0;
	}

	section[id^="posts-grid"].related-posts .h1 {
		padding-top: 20px;
	}

	/*section[id^="posts-grid"].related-posts .afg-grid-item.product figure.afg-product-thumb {
	    padding-top: 250px;
	}

	section[id^="posts-grid"].related-posts .afg-grid-item.product figure a {
		display:block;
		width: 100%;
		padding-top: 100%;
		position: absolute;
		top: 0;
		left: 0;
	}*/

	section[id^="posts-grid"].related-posts .afg-grid-item.product img {
	    width: 100%;
	    height: 250px;
	    object-fit: contain;
	}

	
}