/**
* Switch V2
*/
/**
* AFG Edition
*/
section[id^="afg-edition"] {
	padding: 90px 0;
	line-height: 28px;
}

section[id^="afg-edition"] .inner-row {
	margin-bottom: 50px;
	width: 100%;
}

section[id^="afg-edition"] .inner-row:nth-child(3) {
    margin-bottom: 20px;
}

body.user-is-authorised #afg-edition-42451 {
	padding-bottom: 0;
}

.edito-wrapper .edition-title {
	padding-right: 90px;
}

.edito-wrapper .share {
	position: absolute;
	top: 0;
	right: 0;
	width: 90px;
	padding-top: 15px;
}

.afg-share, .afg-favorite {
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
	font-size: 0;
	height: 20px;
	width: 20px;
	margin: 0 auto 35px;
	display: block;
}

.afg-share {
	background-image: url('../img/share.svg');
}

.afg-favorite {
	background-image: url('../img/bookmark.svg');
}

.afg-favorite.is-favorite {
	background-image: url('../img/bookmark-full.svg');
}

.share .edition-share {
	width: 40px;
	position: absolute;
	top: 45px;
	left: 50%;
	transform: translateX(-50%);
	background-color: var(--third-color);
	opacity: 0;
	pointer-events:none ;
	transition: all .3s;
}

.share a[target="_blank"][rel="noindex,nofollow"] { /*Download PDF*/
	height: 20px;
	width: 20px;
	margin: 0 20px;
}

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


.afg-share .edition-share li {
	margin-bottom: 35px;
}


.single-header .share .edition-share {
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	transform: unset;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background-color: #F2F2F4;
}

.single-header .share .edition-share .afg-close-modal {
	display: flex!important;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
	background-image: url('../img/close-blk.svg');
	top: 50%;
	right: 20px;
	transform: translateY(-50%);
	cursor: pointer;
}

section[id^="afg-edition"] .edition-title {
	font-weight: 900;
	font-size: 48px;
	line-height: 58px;
	margin-bottom: 10px;
}

section[id^="afg-edition"] .edition-edito {
	font-family: Libre Baskerville;
	font-size: 17px;
	font-style: normal;
	font-weight: 400;
	line-height: 29px;
	letter-spacing: 0.02em;
	padding-right: 50px;
}

body.single-edition section[id^="afg-edition"] .edition-edito {
	padding-right: 60px;
}

section[id^="afg-edition"] .edition-edito .afg-flex-wrap {
	column-count: 2;
	column-gap: 30px;
	display: block;
}

section[id^="afg-edition"] .afg-edition-post {
	cursor: pointer;
}

section[id^="afg-edition"] .edition-post-title {
	font-weight: 700;
	font-size: 24px;
	line-height: 34px;
	text-transform: uppercase;
	margin-bottom: 10px;
}

section[id^="afg-edition"] .uptitle {
	font-weight: 700;
    font-size: 18px;
    line-height: 24px;
    text-transform: uppercase;
    color: var(--main-color);
    color: #ffea54;
    margin-bottom: 5px;
}

section[id^="afg-edition"] .subtitle {
	font-weight: 700;
}

section[id^="afg-edition"] .inner-row .afg-edition-figure {
	position: relative;
	height: 100%;
    width: 100%;
    min-height: 510px;
    max-height: 510px;
}

/**
* Edition Grid
*/
.afg-edition-figure {
	max-height: unset;
	min-height: unset;
}

.afg-edition-figure img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.afg-edition-figure figcaption {
	position: absolute;
	top: 0;
	right: 0;
	padding: 15px;
	font-size: 75px;
    line-height: 75px;
	font-weight: 700;
	text-align: right;
	padding-right: 110px;
	z-index: 2;
	height: 120px;
}

.afg-edition-figure figcaption:before {
	content: '';
	height: 120px;
	width: 110px;
	position: absolute;
	right:0;
	top: 0;
	display: block;
	background-color: var(--main-color);
	opacity: .9;
}

.afg-edition-figure figcaption:after {
	content: '';
	height: 70px;
	width: 80px;
	position: absolute;
	right:10px;
	top: 50%;
	transform: translateY(-50%);
	display: block;
	background-image : url('../img/logo.svg');
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
}

.afg-edition-figure figcaption svg {
	width: 250px;
	height: 120px;
	max-width: 225px;
	max-height: 120px;
    width: 225px;
    position: absolute;
    top: 0;
    right: 110px;
}

.afg-edition-figure figcaption svg text {
  alignment-baseline: middle;
  font-size: 75px;
  line-height: 75px;
  font-weight: 700;
  font-family: 'Rubik', sans-serif;
}

/**
* Edition Grid
*/
body.single-post #edition-grid {
	background-color: #f7f7f7;
}

section[id^="edition-grid"].afg-small .afg-edition-grid-item {
	padding-left: 45px;
	padding-right: 45px;
	margin-bottom: 45px;
}

section[id^="edition-grid"].afg-small .afg-edition-figure figcaption {
	width: 225px;
	height: 70px;
	padding: 5px;
	padding-right: 33%;
	font-size: 45px;
    line-height: 45px;
}

section[id^="edition-grid"].afg-small .afg-edition-figure figcaption:before {
	width: 33%;
	max-width: 33%;
	flex-basis: 33%;
	height: 100%;
	max-height: 100%;
	position: absolute;
	right:0;
	top: 0;
}

section[id^="edition-grid"].afg-small .afg-edition-figure figcaption:after {
	padding-top: 33%;
	width: 33%;
	max-width: 33%;
	flex-basis: 33%;
	height: 100%;
	max-height: 100%;
	position: absolute;
	right:5px;
	top: 50%;
	transform: translateY(-50%);
    background-size: 70%;
}

section[id^="edition-grid"].afg-small .afg-edition-figure figcaption svg {
	height: 100%;
	max-height: 100%;
	max-width: 70%;
	width: 70%
    top: 0;
    right: 33%;
}

section[id^="edition-grid"].afg-small .afg-edition-figure figcaption svg text {
  font-size: 45px;
  line-height: 45px;
}

/**
* Post grid
*/
section[id^="edition-grid"] .post .afg-meta-wrapper {
	line-height: 24px;
	font-size: 18px;
    margin: 10px 0;
}

section[id^="edition-grid"] .post .grid-item-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 30px;
    display: block;
}

section[id^="edition-grid"] .post.grid-item h2 {
	padding: 0;
	margin: 0;
	border-bottom: unset;
}

/**
* Edition Grid
*/
.afg-edition-figure svg [id^="overlay"] {
  fill: #ffee77;
}

.afg-edition-figure svg [id^="r"] {
  fill: #ffee77;
}

section[id^="afg-edition"] .edition-meta {
	font-size: 20px;
	line-height: 28px;
	margin-bottom: 10px;
	font-weight: 700;
}

section[id^="afg-edition"] .edition-meta a,
section[id^="afg-edition"] .edition-meta a:hover {
	font-weight: 700;
	border-bottom: 1px solid;
}

section[id^="afg-edition"] .edition-excerpt {
	margin-bottom: 10px;
}

section[id^="afg-edition"] .edition-excerpt p:last-of-type {
	margin-bottom: 10px;
}

section[id^="afg-edition"] .inner-row.hide-excerpt .edition-excerpt p {
	display: none;
}

section[id^="afg-edition"] .inner-row.hide-excerpt .edition-excerpt a.read-more {
	border: 1px solid var(--second-color);
	background-color: transparent;
	color: var(--second-color);
	margin-top: 10px;
}

.afg-featured-post, .afg-free-post  {
	display: inline-block;
	background-color: var(--second-color);
	color: #fff;
	font-size: 15px;
	line-height: 20px;
	padding: 7px;
	font-weight: 700;
	margin-bottom: 15px;
}

.afg-free-post  {
	background-color: var(--main-color);
	color: var(--second-color);
}

/**
* Single Edition
*/
body.single-edition section[id^="afg-edition"] {
	padding-bottom: 0;
}

/**
* Free post
*/
section[id^="free-post"] {
	position: relative;
	cursor: pointer;
	background-color: #F2F2F4;
} 

section[id^="free-post"] .post-type,
section[id^="free-post"] .post-cat {
	font-size: 11px;
	font-weight: 400;
	line-height: 16px;
	letter-spacing: 2px;
	text-transform: uppercase;
	background-color: #fff;
	padding: 7px 8px;
	margin-bottom: 50px;
	text-align: center;
	display: inline-flex;
	justify-content: center;
	align-items: center;
}

section[id^="free-post"] .post-cat {
	background-color: var(--main-color);
	position: absolute;
	right: 33px;
	bottom: 33px;
	margin-bottom: 0;
}

section[id^="free-post"] .edition-post-title {
	font-size: 39px;
	font-weight: 700;
	line-height: 46px;
	margin-bottom: 15px;
}

section[id^="free-post"] .subtitle {
	font-weight: 400;
	font-size: 18px;
	line-height: 25px;
	color: #4D4D4F;
	margin-bottom: 15px;
}


section[id^="free-post"] .edition-meta {
	font-weight: 400;
	font-size: 21px;
    line-height: 28px;
	color: #4D4D4F;
	margin-bottom: 50px;
} 

section[id^="free-post"] .edition-meta a,
section[id^="free-post"] .edition-meta a:hover { 
	font-weight: 700;
	font-size: 18px;
	line-height: 25px;
	color: #4D4D4F;
	border-bottom: 1px solid;
}

section[id^="free-post"] .edition-excerpt p:last-of-type {
	margin-bottom: 0;
}

section[id^="free-post"] .afg-free-post {
	display: none;
}

section[id^="free-post"] .edition-excerpt .read-more-wrapper {
	display: none;
}
section[id^="free-post"] .read-more-wrapper {
	width: 100%;
}

section[id^="free-post"] .read-more-wrapper a {
	height: 70px;
	width: 330px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 11px;
	font-weight: 700;
	line-height: 16px;
	letter-spacing: 2px;
	text-align: center;
	text-transform: uppercase;
	bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    transition: all .3s;
    background-color: var(--main-color);
    color: var(--second-color);
}

section[id^="free-post"] .read-more-wrapper a:hover {
    transform: translateX(calc(-50% + 10px));
}

section[id^="free-post"] .afg-free-post:hover {
    transform: translateX(calc(-50% + 10px));
}

section[id^="free-post"] .afg-image-wrapper {
	position: absolute;
	top: 0;
	right: 0;
	width: calc(50% - 30px);
	max-width: calc(50% - 30px);
	flex-basis: calc(50% - 30px);
	height: 100%;
}

section[id^="free-post"] .afg-image-wrapper img {
	height: 100%;
	width: 100%;
	object-fit: cover;
}  

section[id^="free-post"] .free-post-banner {
	position: absolute;
	max-width: 590px;
	width: 100%;
	height: 90px;
	top: -45px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--main-color);
	font-size: 25px;
	font-weight: 700;
	line-height: 34px;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 2;
}

body.single-edition #free-post {
	margin-top: 90px;
}

/**
* Edition in Slider Grid
*/
section[id^="edition-grid"] .section-title { 
	font-size: 48px;
	font-weight: 900;
	line-height: 56px;
	text-align: center;
	margin-bottom: 45px;
	flex-basis: 100%;
	max-width: 100%;
	width: 100%;
}

section[id^="edition-grid"] {
	padding: 95px 0 55px;
}

body.logged-in section[id^="edition-grid"] {
    padding: 0 0 55px;
} 

section[id^="edition-grid"] > div {
	width: 100%;
}

.afg-edition-grid-item-inner {
	position: relative;
	height: 510px;
	width: 100%;
	overflow: hidden;
	cursor: pointer;
	margin-bottom: 30px;
}

.afg-slider .afg-edition-grid-item {
	position: relative;
	max-width: 100%;
    flex-basis: 100%;
    height: auto;
}

@media screen and (max-width: 1350px) {
	.afg-edition-grid-item-inner {
	    position: relative;
	    height: 450px;
	}
}
@media screen and (max-width: 992px) {
	.afg-edition-grid-item-inner {
		height: 280px;
	}
}

.afg-edition-grid-item-inner figure.afg-edition-figure {
	position: absolute;
	height: 100%;
	width: 100%;
	top: 0;
	left: 0;
}

.afg-edition-grid-item-inner figure.afg-edition-figure:before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	background: linear-gradient(0deg, rgba(0,0,0,1) 0%, transparent 70%);
	opacity: .5;
	z-index: 2;
	transition: all .5s;
}

.afg-edition-grid-item .post-title {
	position: absolute;
	bottom: 0;
	left: 0;
	padding: 15px 15px 20px;
	width: 100%;
	z-index: 3;
}

.afg-edition-grid-item-inner h3 {
	font-size: 36px;
	font-weight: 700;
	line-height: 42px;
	text-align: center;
	width: 100%;
	text-transform: uppercase;
	color: #fff;
}

.afg-edition-grid-item-inner h3 span {
	display: block;
}

.afg-edition-grid-item-inner h3 span:last-of-type {
	color: var(--main-color);
}

.afg-edition-grid-item-inner .afg-edition-figure figcaption {
    position: absolute;
    top: 0;
    right: 0;
    padding: 15px;
    z-index: 3;
    padding-right: 70px;
    height: 80px;
}

.afg-edition-grid-item-inner .afg-edition-figure figcaption svg {
    width: 200px;
    height: 80px;
    max-width: 200px;
    max-height: 80px;
    width: 175px;
    right: 70px;
}

.afg-edition-grid-item-inner .afg-edition-figure figcaption svg text {
    font-size: 55px;
    line-height: 55px;
    font-weight: 700;
    font-family: 'Rubik', sans-serif;
}

.afg-edition-grid-item-inner .afg-edition-figure figcaption:before {
    height: 80px;
    width: 70px;
}

.afg-edition-grid-item-inner .afg-edition-figure figcaption:after {
    height: 50px;
    width: 60px;
}

.afg-edition-grid-item-inner .post-meta {
	line-height: 15px;
	text-align: center;
	margin-bottom: 12px;
	color: #fff;
}

.afg-edition-grid-item-inner .post-meta a {
	font-size: 13px;
	font-weight: 500;
	color: #fff;
	text-transform: uppercase;
}

.afg-edition-grid-item .afg-read-more {
	position: absolute;
	width: auto;
	max-width: calc(100% - 30px);
    display: inline-flex;
    padding: 18px 20px;
	background-color: var(--main-color);
	top: 150%;
	left: 50%;
	transform: translateX(-50%) translateY(-50%);
	font-family: Rubik,sans-serif;
	font-size: 13px;
	font-weight: 700;
	line-height: 19px;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-align: center;
	transition: all .5s;
	justify-content: center;
	align-items: center;
	z-index: 4;
	white-space: nowrap;
}

@media screen and (max-width: 992px) {
	.afg-edition-grid-item .afg-read-more {
		white-space:initial;
	}
}

.afg-edition-grid-item:hover .afg-read-more {
	top: 50%;
}

.afg-edition-grid-item:hover .afg-edition-grid-item-inner figure.afg-edition-figure:before {
	opacity:.8;
}

.read-more {
	display: inline-block;
	font-weight: 700;
	font-family: Rubik,sans-serif;
	margin-left: .5ex;
}

.read-more-wrapper {
	//padding-right: 10px;
} 

.read-more-wrapper .read-more {
	font-family: 'Rubik', sans-serif;
	background-color: var(--second-color);
	color: var(--third-color);
	display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    line-height: 19px;
    text-align: center;
    text-transform: uppercase;
    padding: 10px 30px;
    border: unset;
    transition: transform .3s;
    margin-left: 0;
}

.read-more-wrapper .read-more:hover {
	transform: translateX(10px);
}

@media screen and (max-width: 992px) {

	section[id^="afg-edition"] {
		padding: 30px 0;
		line-height: 28px;
	}

	section[id^="afg-edition"] .inner-row {
		margin-bottom: 30px;
	}

	.edito-wrapper {
		padding-right: 20px;
		padding-left: 20px;
	}

	.edito-wrapper .share {
		position: relative;
		width: 100%;
		padding-top: 30px;
		padding-bottom: 30px;
		display: flex;
		justify-content: center;
	}

	.afg-share, .afg-favorite {
	    height: 20px;
	    width: 20px;
	    margin: 0 20px 0;
	}

	.share .edition-share {
		width: 100%;
		position: absolute;
		transform: unset;
		top: 0;
		left: 0;
		height: 80px;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.edition-share .afg-close-modal {
		display: block;
		position: absolute;
		left: 0;
		top: 29px;
		height: 25px;
		width: 25px;
		background-image: url('../img/close-blk.svg');
		background-repeat: no-repeat;
		background-size: contain;
		background-position: center;
		cursor: pointer;
	} 

	.afg-share .edition-share ul {
		display: flex;
		justify-content: center;
		align-items: center;
		padding: 15px;
	}
	.afg-share .edition-share li {
		margin-bottom: 0;
		margin: 0 15px;
	}

	section[id^="afg-edition"] figure {
		position: relative;
		height: 500px;
	    width: 100%;
	}

	section[id^="afg-edition"] .edition-title {
		padding: 0 20px 30px;
		font-size: 30px;
		font-weight: 900;
		line-height: 36px;
		margin-bottom: 0;
	}


	section[id^="afg-edition"] .afg-edition-figure figcaption {
	    position: absolute;
	    top: 0;
	    right: 0;
	    padding: 15px;
	    z-index: 3;
	    padding-right: 70px;
	    height: 90px;
	}

	section[id^="afg-edition"] .afg-edition-figure figcaption svg {
	    width: 200px;
	    height: 90px;
	    max-width: 200px;
	    max-height: 90px;
	    width: 175px;
	    right: 70px;
	}

	section[id^="afg-edition"] .afg-edition-figure figcaption svg text {
	    font-size: 55px;
	    line-height: 55px;
	    font-weight: 700;
	    font-family: 'Rubik', sans-serif;
	}

	section[id^="afg-edition"] .afg-edition-figure figcaption:before {
	    height: 90px;
	    width: 70px;
	}

	section[id^="afg-edition"] .afg-edition-figure figcaption:after {
	    height: 50px;
	    width: 60px;
	}

	section[id^="afg-edition"] .edition-edito {
		padding-right: 0;
	}

	body.single-edition section[id^="afg-edition"] .edition-edito {
		padding-right: 0;
	}

	section[id^="afg-edition"] .edition-edito {
		font-size: 14px;
		line-height: 28px;
	}

	section[id^="afg-edition"] .edition-edito p:last-child {
		margin-bottom: 0;
	}

	section[id^="afg-edition"] .edition-edito .afg-flex-wrap {
		column-count: unset!important;
		column-gap: unset!important;
		padding: 30px 15px;
	}

	section[id^="afg-edition"] .col-lg-5,
	section[id^="afg-edition"] .col-lg-7 {
		padding-left: 20px;
		padding-right: 20px;
	}

	section[id^="afg-edition"] .col-lg-7.row {
		margin-left: 0;
		margin-right: 0;
	}

	section[id^="afg-edition"] .col-lg-7 .col-lg-6 {
		padding-left: 0;
		padding-right: 0;
	}

	section[id^="afg-edition"] .afg-edition-post {
		margin-bottom: 30px;
	}

	section[id^="afg-edition"] .edition-post-title {
		font-size: 14px;
		line-height: 20px;
	}

	section[id^="afg-edition"] .edition-meta {
		font-size: 15px;
		font-weight: 400;
		line-height: 22px;
		margin-bottom: 20px;
	}

	.afg-featured-post {
		font-size: 12px;
		line-height: 16px;
	}

	section[id^="afg-edition"] .edition-excerpt {
		font-size: 15px;
		line-height: 22px;
		margin-bottom: 0;
	}

	section[id^="afg-edition"] .afg-free-post {
		margin-top: 20px;
		font-size: 15px;
		line-height: 22px;
	}

	/**
	* Edition Grid
	*/

	.afg-edition-grid-item-inner .afg-edition-figure figcaption {
		padding: 15px;
		font-size: 26px;
	    line-height: 26px;
		font-weight: 700;
		padding-right: 40px;
		height: 40px;
	}

	.afg-edition-grid-item-inner .afg-edition-figure figcaption:before {
		height: 40px;
		width: 40px;
	}

	.afg-edition-grid-item-inner .afg-edition-figure figcaption:after {
		height: 25px;
		width: 30px;
		right: 5px;
	}

	.afg-edition-grid-item-inner .afg-edition-figure figcaption svg {
		width: 80px;
		height: 40px;
		max-width: 80px;
		max-height: 40px;
	    width: 100px;
	    position: absolute;
	    top: 0;
	    right: 40px;
	}

	.afg-edition-grid-item-inner .afg-edition-figure figcaption svg text {
		font-size: 26px;
		line-height: 26px;
	}

	.afg-edition-grid-item-inner h3 {
	    font-size: 20px;
	    line-height: 26px;
	    margin-bottom: 0;
	}

	.afg-edition-grid-item-inner .post-meta {
		line-height: 11px;
		margin-bottom: 5px;
	}

	.afg-edition-grid-item-inner .post-meta a {
		font-size: 11px;
	}

	.post-title {
	    padding: 15px 15px 10px;
    	font-size: 10px;
    	line-height: 10px;
	}

	.afg-read-more {
	    width: 150px;
	    height: 50px;
	    font-size: 8px;
	    line-height: 12px;
	}

	/**
	* Free post
	*/
	section[id^="free-post"] .afg-image-wrapper {
		position: relative;
		width: 100%;
		flex-basis: 100%;
		max-width: 100%;
		height: 280px;
	}

	section[id^="free-post"] .free-post-banner {
		width: calc(100% - 40px);
		height: 50px;
		top: -25px;
		left: 20px;
		font-size: 20px;
		line-height: 28px;
		transform: unset;
	}
	section[id^="free-post"] .edition-post-title {
		font-size: 14px;
		line-height: 20px;
	}

	section[id^="free-post"] .post-type, section[id^="free-post"] .post-cat {
	    margin-bottom: 30px;
	}

	section[id^="free-post"] .col-lg-6 {
		padding-left: 20px;
		padding-right: 20px;
		padding-bottom: 0;
	} 

	section[id^="free-post"] .subtitle,
	section[id^="free-post"] .edition-meta {
		font-size: 15px;
		line-height: 22px;
	}

	section[id^="free-post"] .edition-meta {
		margin-bottom: 30px;
	}

	section[id^="free-post"] .edition-excerpt {
		font-size: 13px;
		line-height: 20px;
	}

	section[id^="free-post"] .edition-excerpt p:last-child {
	    margin-bottom: 30px;
	}

	section[id^="free-post"] .afg-free-post {
		position: absolute;
    	height: 50px;
	    width: 250px;
	    bottom: -25px;
	    left: 50%;
	    transform: translateX(-50%);
	}

	section[id^="free-post"] .read-more-wrapper a {
		position: relative;
	}

	section[id^="free-post"] .edition-excerpt p:last-of-type {
	    margin-bottom: 20px;
	}

}