
/* LIST VIEW */

#content :is(.case-studies, .products) {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

#content :is(.case-studies, .products) li {
    margin: 0;
    padding: 0;
    width: calc(33% - 10px);
}

#content :is(.case-studies, .products) li:before {
    display: none;
}

#content :is(.case-studies, .products) a {
    background: var(--blue);
    border: 0;
    border-radius: 0.25em;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.35);
    display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
}

#content :is(.case-studies, .products) a:is(:hover, :focus-visible) {
	background: var(--red);
    box-shadow: none;
}

#content :is(.case-studies, .products) a > img {
	aspect-ratio: 1/1;
    display: block;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

#content :is(.case-studies, .products) a:is(:hover, :focus-visible) > img {
    opacity: 0.5;
}

#content :is(.case-studies, .products) a > span {
	align-items: center;
	color:#fff;
    display: flex;
	flex: 1 1 auto;
	justify-content: center;
	line-height: 1.25em;
	text-align: center;
    padding: 0.75em 1em;
    width: 100%;
}


/* SINGLE CASE STUDY PAGE */

#content .case-study > .phototreatment {
	aspect-ratio: 16/9;
	max-width: 100%;
	width: 100%;
	object-fit: cover;
	object-position: center;
}

.case-study > section {
	margin:  2.5em 0;
}

.case-study > blockquote {
	border-bottom: 3px solid var(--red);
	border-right: 0;
	border-top: 3px solid var(--red);
	color: var(--blue);
	float: none;
	font-size: 1.125em;
	margin: 2.5em 0;
	max-width: 100%;
	padding: 1em;
	text-align: center;
	width: 100%;
}


@media screen and (max-width: 749px) {
    #content :is(.case-studies, .products) li {
        width: calc(50% - 0.5em);
    }
}

@media screen and (max-width: 480px) {
    #content :is(.case-studies, .products) li {
        width: 100%;
    }
}