/*
====================================================
	Multiple flex items (Figures as Carts) that wrap within a sole column
	- used in footer, header or anywhere for 
	- Adds, Navigations, Spots, mutly-image sliders, etc
	- Obs! flex_cards can exist without flex_cards_wrapper
====================================================
*/

/*
	Use .flex_cards_wrapper only for flex items that lack a 
		defining container (are placed on the botton of .page)
		Used mainly in footer ads, outside the .content
	You hae 2 alternative options: 
		1. give it a max-width equal to the max-width of the .content
		   and set left-right margins to auto
		2. define left-right mrgins in %
*/

.flex_cards_wrapper {
	margin: 4rem auto;
	max-width: 1600px;
}

/*
	Remove left-right margins of .flex_cards_wrapper (if any, case 2 above)
	when it is (automatically, by a comon function) used in .content
*/
.content .flex_cards_wrapper {
	margin: 4rem 0;
}

/*
	H1 for advertises cards on the footer of the ,page,
	H2 for Text cards under the open text
*/

.flex_cards_wrapper h1 {
	text-align: center;
	line-height: 100%;
}

.flex_cards_wrapper h2 {
	line-height: 150%;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--grey-tint-50);
}

.flex_cards_wrapper .head_notes {
	text-align: center;
	padding: 0.25rem 5%;
	margin-bottom: 2rem;
	background-color: #ffffff90;
}

/*
	flex_cards can exist without flex_cards_wrapper
*/

.flex_cards {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: stretch;
	gap: 1rem 0.25rem;
}

.flex_cards figure {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	margin: 0;
	overflow: hidden;
	background: #fff;
	border: 0 solid var(--grey-tint-100);
	width: 100%;
	flex: 1 1 1;
}

.flex_cards figure:hover {
	border: 0 solid var(--grey-tint-90);
}
/*
	The image of texts is usually a portrate
	Do no include the class .img_wrapper is those cases
.flex_cards .img_wrapper {
	position: relative;
	width: 100%;
	height: 0;
	padding-top: 50%;
	overflow: hidden;
    background-color: #000;
}

.flex_cards .img_wrapper img {
	position: absolute;
	top: 0;
	left: 0;
    right: 0;
	padding: 0;
	margin: 0;
}

.flex_cards img {
	width: 100%;
	height: auto;
}
*/

.flex_cards img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: 50% 50%;
}

.flex_cards .img_contain img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    object-position: 50% 0;
}


.flex_cards figure h4 {
	line-height: 120%;
}

.flex_cards figcaption {
	text-align: left;
	padding: 0 0.5rem;
	line-height: 140%;
	font-size: 1em;
	font-style: normal;
}

/*
	Used in sx_Spots.php
*/
.flex_cards figcaption footer {
	text-align: right;
	margin-top: 1rem;
}

/*
	Is placed within the some element as the class .flex_cards
	and changes some of its attributes
*/
.flex_cards_portrait {
	margin-top: 1rem !important;
	justify-content: center;
	gap: 1rem;
}

.flex_cards_portrait figcaption {
	margin-top: auto;
	padding: 0.5rem 0.25rem;
	text-align: center;
	font-size: 0.8rem;
}

/*	A button with a link to read more
	Set margin-top to auto ,
	in case the card includes multiple buttons
*/
.flex_cards a.read_more {
	background-color: var(--basic-color);
	color: rgba(255, 255, 255, 0.90);
	padding: 10px 1rem;
	margin: auto 0 2px 0;
	text-align: center;
	text-decoration: none;
}

.flex_cards a.read_more:hover {
	background-color: var(--complement);
}

@media (min-width: 576px) {
	.flex_cards figure {
		width: 49%;
	}
}

@media (min-width: 992px) {
/*	.flex_cards figure {
		width: 32.5%;
	}
*/
	.flex_cards_video figure {
		flex: 1;
	}
}

@media (min-width: 1200px) {
/*	.flex_cards figure {
		width: 24.5%;
	}
*/
	.spots .flex_cards figure {
		width: 33%;
	}
}

/*
	==============================================
	SPOTLIGHTS - highlight texts in spot groups
	- Uses flex_cards
	================================================
*/

.spots {
	clear: both;
	margin-bottom: 2rem;
}


.spots h2 {
	position: relative;
	background: var(--complement);
	background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
	padding: 0 0 0.4rem 1.5rem;
	margin: 0 0 5px 0;
	border-radius: 6px 0 0 0;
	font-size: 1.25rem;
	font-weight: normal;
	color: rgba(255, 255, 255, 0.95);
}

.spots h2:before {
	content: '\2023';
	font-size: 2.5rem;
	position: absolute;
	top: 25%;
	left: 4px;
}

.spots h2 span {
	display: block;
	padding: 1rem 0.4rem;
	background: var(--complement);
	background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.25));
	border-left: 1px solid #fff;
	border-bottom: 1px solid #fff;
	border-radius: 0;
}

.spots .spot_column {
	margin-bottom: 2rem;
}

.spots article {
	background-color: #f6f6f6;
	border: 1px solid #e6e6e6;
	border-radius: 4px;
	padding: 0.6rem;
	margin-bottom: 0.5rem;
	clear: both;
	overflow: hidden;
}

.spots h3 {
	margin-top: 0.2rem;
}

.spots footer {
	text-align: right;
	border: 0;
}

.spots .text {
	font-size: 0.96rem;
	line-height: 140%;
}

/*
	If spots are positioned on the aside column
	the width of cards (figure) will always be 100%
*/
aside .spots .flex_cards figure {
	width: 100%;
	background: #f3f3f3;
	border: 1px solid #e3e3e3;
	margin-bottom: 0.25rem;
}

aside .spots .flex_cards figcaption {
	padding: 0 2% 0.5rem 2%;
}