/**
 * Used max-width 600 instead of min-width to prevent changing layout on desktop after page-load (since element queries are set with JS)
 */

.atFeaturedBlocks {
	display: table;
	width: 100%;
}

.atFeaturedBlocks {
    container: featured-blocks / inline-size;
}

@container featured-blocks (max-width: 600px) {
    .atFeaturedBlocks {
        display: block;
        font-size: 1em;
    }
}

@container featured-blocks (min-width: 700px) {
    .atFeaturedBlocks {
        font-size: .9em;
    }
}

@container featured-blocks (min-width: 800px) {
    .atFeaturedBlocks {
        font-size: 1em;
    }
}

.atFeaturedBlock {
	display: block;
	max-width: 400px;
}

.atFeaturedBlock__bgImage {
	position: relative;
	width: 100%;
	height: 400px;
	background-size: cover;
}

.atFeaturedBlock__content {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 3em 1em 6em;
	overflow: hidden;
}

.atFeaturedBlock__content--overlay {
	background-color: rgba(0, 0, 0, .2);
}

.atFeaturedBlock__imageTitle,
.atFeaturedBlock__imageSubTitle {
	margin: 0;
	color: #fff;
	font-weight: bold;
	text-shadow: 2px 2px rgba(0, 0, 0, .6);
}

.atFeaturedBlock__imageTitle {
	font-size: 2.5em;
}

.atFeaturedBlock__imageSubTitle {
	font-size: 1.3em;
}

.atFeaturedBlock__bottomContent {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	padding: .5em;
    font-size: .8em;
	text-align: center;
	background-color: rgba(255, 255, 255, .9);
}

.atFeaturedBlocks .atFeaturedBlock__bottomContent {
	min-height: 7em;
}

@container featured-blocks (max-width: 600px) {
    .atFeaturedBlocks .atFeaturedBlock__bottomContent {
        min-height: inherit;
    }
}

.atFeaturedBlock__introduction {
	margin-bottom: 3em;
}

.atFeaturedBlock__readMoreText {
	position: absolute;
	right: 0;
	bottom: .8em;
	left: 0;
	margin: auto;
	width: 100px;
}

.atFeaturedBlock__readMoreLink {
	position: absolute;
    top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

@media (min-width: 600px) {
    .atFeaturedBlocks {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 1em;
    }

    .atFeaturedBlock {
        flex: 0 0 calc(33.33% - 1em);
        max-width: calc(33.33% - 1em);
    }
}
