
/* =========================================================
   Hassell Images archive
   ========================================================= */

.hassell-images {
	width: 100%;
}

.hassell-images,
.hassell-images * {
	box-sizing: border-box;
}

.hassell-images__container {
	margin-inline: auto;
}

.hassell-images__header {
	margin-bottom: 26px;
}

.hassell-images__title {
	margin: 0;
	font-size: 34px;
	line-height: 1.2;
}

/* Introduction and filter share one responsive row. */
.hassell-images__top-layout {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 40px;
	margin-bottom: 30px;
}

.hassell-images__intro {
	flex: 1 1 0;
	min-width: 0;
	max-width: 720px;
	font-size: 1.1rem;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.hassell-images__intro > :first-child {
	margin-top: 0;
}

.hassell-images__intro > :last-child {
	margin-bottom: 0;
}

/* Parish filter panel */
.hassell-images__filters {
	flex: 0 1 470px;
	min-width: 0;
	margin: 0;
	padding: 25px 28px 20px;
	background: #f1f1f1;
    font-size: 1.1rem;
}

.hassell-images__filters-heading {
	margin: 0 0 12px;
	color: #006b58;
	font-size: 1.4rem;
	line-height: 1.3;
	font-weight: 700;
}

.hassell-images__filter-field {
	min-width: 0;
}

.hassell-images__filter-field label {
	display: block;
	margin-bottom: 5px;
}

.hassell-images__filter-controls {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
}

.hassell-images__filter-controls select {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	min-height: 34px;
	padding: 5px 8px;
    font-size: 1.1rem;
}

.hassell-images__filter-controls button {
	flex: 0 0 auto;
	min-height: 34px;
	padding: 7px 16px;
	border: 0;
	border-radius: 0;
	background: #005c4b;
	color: #fff;
	font: inherit;
	cursor: pointer;
}

.hassell-images__filter-controls button:hover,
.hassell-images__filter-controls button:focus-visible {
	background: #004638;
	color: #fff;
}

/* Results count */
.hassell-images__results {
	width: 100%;
	min-width: 0;
}

.hassell-images__results-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 0 0 18px;
    font-size: 1.1rem;
}

.hassell-images__results-header p {
	margin: 0;
}

/* Responsive table */
.hassell-images__table-wrapper {
	width: 100%;
	min-width: 0;
	overflow-x: auto;
	overscroll-behavior-x: contain;
}

.hassell-images__table {
	width: 100%;
	min-width: 850px;
	margin: 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 0 3px;
	font-size: 1.1rem;
	line-height: 1.5;
}

.hassell-images__table thead {
	background: #cecece;
}

.hassell-images__table th {
	padding: 12px 15px;
	text-align: left;
	vertical-align: top;
	font-weight: 700;
}

.hassell-images__table tbody tr {
	background: #f1f1f1;
	border-bottom: 10px solid #fff;
}

.hassell-images__table td {
	padding: 12px 15px;
	vertical-align: top;
	overflow-wrap: anywhere;
}

.hassell-images__title-cell {
	width: 29%;
	min-width: 230px;
}

.hassell-images__parish-cell {
	width: 10%;
	min-width: 105px;
	color: #00745f;
}

.hassell-images__image-cell {
	width: 25%;
	min-width: 220px;
}

.hassell-images__details-cell {
	min-width: 260px;
}

.hassell-images__details-cell > strong {
	display: block;
	padding: 5px 8px 16px;
}

.hassell-images__details-cell dl {
	margin: 0;
}

.hassell-images__details-cell dl > div {
	display: grid;
	grid-template-columns: minmax(95px, 30%) minmax(0, 1fr);
	gap: 10px;
	padding: 7px 8px;
	border-top: 1px solid #d4d4d4;
}

.hassell-images__details-cell dt {
	font-weight: 700;
}

.hassell-images__details-cell dd {
	min-width: 0;
	margin: 0;
	overflow-wrap: anywhere;
}

.hassell-images__empty {
	padding-block: 20px;
}

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 900px) {

	.hassell-images__top-layout {
		gap: 24px;
	}

	.hassell-images__filters {
		flex-basis: 360px;
		padding: 22px;
	}

	.hassell-images__filter-controls {
		gap: 8px;
	}
}

/* =========================================================
   Mobile: stack introduction and filter
   ========================================================= */

@media (max-width: 700px) {

	.hassell-images__title {
		font-size: 29px;
	}

	.hassell-images__header {
		margin-bottom: 20px;
	}

    .hassell-images__table{
        font-size: 1rem;
    }

	.hassell-images__top-layout {
		flex-direction: column;
		align-items: stretch;
		gap: 22px;
		margin-bottom: 25px;
	}

    .hassell-images__filter-controls select{
        font-size: 1rem;
    }

	.hassell-images__intro {
		width: 100%;
		max-width: none;
		flex: 1 1 auto;
        font-size: 1rem;
	}

    .hassell-images__filters-heading{
        font-size:1.2rem;
    }

	.hassell-images__filters {
		width: 100%;
		max-width: none;
		flex: 1 1 auto;
		padding: 20px;
        font-size: 1rem;
	}

	.hassell-images__results-header {
		align-items: flex-start;
		flex-direction: column;
		gap: 6px;
        font-size: 1rem;
	}

	.hassell-images__filter-controls {
		gap: 10px;
	}
}

@media (max-width: 380px) {
	.hassell-images__filter-controls {
		align-items: stretch;
		flex-direction: column;
	}

	.hassell-images__filter-controls button {
		width: 100%;
	}
}
