/**
 * @file
 * Field component.
 *
 * One value in a view's row. Fields inherit the theme's fonts and colours
 * and only set spacing; images never overflow their row.
 *
 * Contents:
 * 1. Field
 * 2. Link
 * 3. Content and images
 */

/* 1. Field
   ========================================================================== */

.viewspress-field {
	margin: 0;
	overflow-wrap: anywhere;
}

.viewspress-field + .viewspress-field {
	margin-block-start: 0.375em;
}

/* End of 1. Field */

/* 2. Link
   ========================================================================== */

.viewspress-field__link {
	display: inline-block;
	padding-block: 0.25em;
}

/* End of 2. Link */

/* 3. Content and images
   ========================================================================== */

.viewspress-field > :first-child {
	margin-block-start: 0;
}

.viewspress-field > :last-child {
	margin-block-end: 0;
}

.viewspress-field img {
	display: block;
	max-width: 100%;
	height: auto;
}

/* End of 3. Content and images */
