/* Default item styles */

.content-item__image {
    aspect-ratio: 4 / 5;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
    margin-bottom: var(--wp--preset--spacing--small);
    max-width: 300px;
    overflow: clip;
    transition: box-shadow 0.15s ease-in-out;
}

.content-item__image:hover {
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
}

.content-item__image img {
    display: block;
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.content-item__eyebrow {
    font-size: var(--wp--preset--font-size--x-small);
    margin: 0 0 var(--wp--preset--spacing--xx-small);
    text-transform: uppercase;
}

.content-item__eyebrow a {
    color: var(--wp--preset--color--main);
}

.content-item__title {
    font-family: var(--wp--preset--font-family--source-serif-4);
    font-size: var(--wp--preset--font-size--large);
    margin: 0;
    line-height: 1.33;
}

.content-item__title a {
    color: var(--wp--preset--color--main);
    font-weight: 400;
}

.content-item__title a:hover {
    color: var(--wp--preset--color--primary-accent);
    text-decoration: none;
}

.content-item__byline {
    font-size: var(--wp--preset--font-size--small);
    margin: var(--wp--preset--font-size--x-small) 0 0;
}

.content-item__byline-date {
    font-style: italic;
}

.content-item__byline-research-areas a {
    color: var(--wp--preset--color--primary-accent);
    font-weight: 400;
}

.content-item__byline-research-areas a:hover {
    filter: brightness(110%);
    text-decoration: none;
}

/* Content items-in-columnn layout adjustments (make them vertical) */

.wp-block-column .content-item {
    align-items: center;
    column-gap: var(--wp--preset--spacing--medium);
    display: flex;
}

.wp-block-column .content-item__image {
    flex-basis: 110px;
    flex-shrink: 0;
    margin: 0;
}

.wp-block-column .content-item__details {
    flex-grow: 1;
}

/* Style variations based on background color */

.is-style-green-noise-bg-w-corner-crop .content-item__title a,
.is-style-green-noise-bg-w-corner-crop .content-item__byline,
.is-style-green-noise-bg-w-corner-crop .content-item__byline a,
.is-style-green-noise-bg .content-item__title a,
.is-style-green-noise-bg .content-item__byline,
.is-style-green-noise-bg .content-item__byline a,
.is-style-green-noise-bg-w-globe .content-item__title a,
.is-style-green-noise-bg-w-globe .content-item__byline,
.is-style-green-noise-bg-w-globe .content-item__byline a,
.has-primary-background-color .content-item__title a,
.has-primary-background-color .content-item__byline,
.has-primary-background-color .content-item__byline a,
.has-secondary-background-color .content-item__title a,
.has-secondary-background-color .content-item__byline,
.has-secondary-background-color .content-item__byline a {
    color: var(--wp--preset--color--base);
}

.is-style-green-noise-bg-w-corner-crop .content-item__title a:hover,
.is-style-green-noise-bg-w-corner-crop .content-item__byline a:hover,
.is-style-green-noise-bg .content-item__title a:hover,
.is-style-green-noise-bg .content-item__byline a:hover,
.is-style-green-noise-bg-w-globe .content-item__title a:hover,
.is-style-green-noise-bg-w-globe .content-item__byline a:hover,
.has-primary-background-color .content-item__title a:hover,
.has-primary-background-color .content-item__byline a:hover,
.has-secondary-background-color .content-item__title a:hover,
.has-secondary-background-color .content-item__byline a:hover {
    color: var(--wp--preset--color--main-accent);
}

.has-tertiary-background-color .content-item__byline a {
    color: #588157;
}
