/**
 * Single care home — hand-written CSS (no build step).
 *
 * The theme's SCSS source is not in the repo and we do not run a build, so the
 * custom CSS for the single care home redesign lives here, in its own file,
 * instead of inline <style> blocks in the template.
 *
 * Enqueued by functions.php (wp_enqueue_style 'prestige-single-care-home')
 * only on is_singular('care-home'), after the theme's compiled CSS
 * (dist/css/style.css). Selectors are scoped to .care-home-hero.
 *
 * Theme colours: primary #a78735 (gold) · secondary #1f4283 (dark blue).
 */

/* ============================================================
 * Page-level overrides
 * ------------------------------------------------------------
 * The compiled theme CSS paints a decorative grey "roundal" SVG
 * as the background of #content on every page. On this template
 * the breadcrumb section carries that id and the watermark clashes
 * with the new hero/welcome layout — drop it here only.
 * ============================================================ */

.single-care-home #content { background-image: none; }

/* ============================================================
 * Breadcrumb — review / social links (right-hand side)
 * ------------------------------------------------------------
 * Replaces the old "Share Page" block. Editable per care home
 * via ACF (intro text + Facebook URL + Reviews URL). Each link
 * has a fixed Font Awesome icon, which renders as
 * <svg.svg-inline--fa> once FA's JS swaps the <i>, so the icon is
 * sized via font-size on the link itself.
 * ============================================================ */

.care-home-breadcrumb-section .breadcrumb-reviews {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	color: #1f4283;
	font-size: 0.9rem;
	font-weight: 700;
}

.care-home-breadcrumb-section .breadcrumb-reviews-text {
	color: #1f4283;
}

/* Thin vertical divider between the text and the icons. */
.care-home-breadcrumb-section .breadcrumb-reviews-sep {
	width: 1px;
	height: 1.25rem;
	background-color: rgba(31, 66, 131, 0.25);
}

.care-home-breadcrumb-section .breadcrumb-reviews-icons {
	display: inline-flex;
	align-items: center;
	gap: 1.5rem;
}

.care-home-breadcrumb-section .breadcrumb-reviews-link {
	display: inline-flex;
	align-items: center;
	color: #1f4283;
	font-size: 1.85rem;
	line-height: 1;
	transition: color 0.2s ease;
}

.care-home-breadcrumb-section .breadcrumb-reviews-link:hover,
.care-home-breadcrumb-section .breadcrumb-reviews-link:focus {
	color: #a78735;
}

@media (max-width: 767.98px) {
	/* The compiled theme sets .breadcrumb to column-reverse on mobile, which
	   pushes the reviews block (last child) above the trail. Flip it back so
	   the breadcrumb trail sits on top and reviews below. */
	.care-home-breadcrumb-section .breadcrumb {
		flex-direction: column;
	}

	.care-home-breadcrumb-section .breadcrumb-reviews {
		flex-direction: column;
		align-items: stretch;
		margin-top: 0.75rem;
		width: 100%;
		gap: 0.75rem;
	}

	/* Drop the vertical divider on mobile (icons sit on their own row). */
	.care-home-breadcrumb-section .breadcrumb-reviews-sep {
		display: none;
	}

	/* Centred, slightly larger icons. */
	.care-home-breadcrumb-section .breadcrumb-reviews-icons {
		display: flex;
		justify-content: center;
		gap: 1.75rem;
	}

	.care-home-breadcrumb-section .breadcrumb-reviews-link {
		font-size: 2rem;
	}
}

/* ============================================================
 * Hero (banner + info bar)
 * ============================================================ */

.care-home-hero { overflow: hidden; }

.care-home-hero-image {
	position: relative;
	min-height: 70vh;
	display: flex;
	flex-direction: column;
	padding-top: 13rem;
	padding-bottom: 3rem;
	background-color: #1f4283;
	background-size: cover;
	background-position: center;
}

@media (min-width: 768px) {
	.care-home-hero-image { padding-top: 11rem; }
}

/* Left-to-right light overlay (matches the homepage hero): keeps the dark
   text legible while the photo stays visible towards the right. */
.care-home-hero-image::before {
	content: "";
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	background: linear-gradient(to right, rgba(245,246,250,0.78) 0%, rgba(245,246,250,0.74) 40%, rgba(245,246,250,0.42) 60%, rgba(245,246,250,0) 80%);
}

/* Mobile: the text spans the full width, so the overlay fades top-to-bottom. */
@media (max-width: 767.98px) {
	.care-home-hero-image::before {
		background: linear-gradient(to bottom, rgba(245,246,250,0.78) 0%, rgba(245,246,250,0.74) 55%, rgba(245,246,250,0.42) 80%, rgba(245,246,250,0) 100%);
	}
}

.care-home-hero-image .container {
	position: relative;
	z-index: 1;
	margin-top: auto;
	margin-bottom: auto;
}

.care-home-hero-content { max-width: 38rem; }

/* These three are prefixed with the parent .care-home-hero class on purpose:
   the theme resets ".urt-page h1/p/ul { margin-bottom: 0 }" (specificity
   0,1,1), so a bare ".care-home-hero-*" class (0,1,0) loses. The descendant
   form (0,2,0) out-ranks it without needing !important. */
.care-home-hero .care-home-hero-title {
	color: #1f4283;
	font-weight: 600;
	margin-bottom: 1rem;
}

.care-home-hero .care-home-hero-location {
	color: #1f4283;
	font-size: 1.15rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
}

/* Care-type pills — gold outline + dark-blue text on the light overlay. */
.care-home-hero .care-home-hero-pills {
	list-style: none;
	padding: 0;
	margin: 0 0 2rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.care-home-hero-pill {
	border: 1px solid #a78735;
	border-radius: 4px;
	padding: 0.35rem 0.9rem;
	color: #1f4283;
	font-size: 0.9rem;
	line-height: 1.2;
}

.care-home-hero-ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.care-home-hero-ctas .btn {
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

/* --- Info bar ------------------------------------------------ */

.care-home-hero-bar { background-color: #f5f6fa; }

.care-home-hero-bar .hero-bar-item {
	display: flex;
	align-items: center;
	padding: 1.5rem 0.5rem;
}

.care-home-hero-bar .hero-bar-icon {
	flex: 0 0 auto;
	width: 2.75rem;
	height: 2.75rem;
	margin-right: 0.85rem;
	border: 1px solid #c8cdda;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #1f4283;
	font-size: 1.1rem;
}

.care-home-hero-bar .hero-bar-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.care-home-hero-bar .hero-bar-label {
	color: #6b7280;
	font-size: 0.85rem;
	margin-bottom: 0.15rem;
}

.care-home-hero-bar .hero-bar-value {
	color: #1f4283;
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.5;
	overflow-wrap: break-word; /* safety net for long values */
}

a.hero-bar-value:hover { color: #a78735; }

/* ============================================================
 * Welcome section ("A warm welcome to {care home}")
 * ------------------------------------------------------------
 * Sits right below the hero: text on the left, image on the right
 * on desktop; stacks text-first on mobile (natural reading order).
 * ============================================================ */

.care-home-welcome {
	padding: 3.5rem 0;
}

@media (min-width: 992px) {
	.care-home-welcome { padding: 5rem 0; }
}

.care-home-welcome-text {
	margin-bottom: 2rem;
}

@media (min-width: 992px) {
	.care-home-welcome-text {
		margin-bottom: 0;
		padding-right: 2rem;
	}
}

/* Override the theme's ".urt-page h2 { margin-bottom: 0 }" reset by
   using a descendant selector (specificity 0,2,0 beats 0,1,1). */
.care-home-welcome .care-home-welcome-heading {
	color: #1f4283;
	font-weight: 600;
	margin-bottom: 1.25rem;
	line-height: 1.2;
}

/* Short gold accent bar above the title — same pattern used by the
   homepage content-rows section, so the styling carries across. */
.care-home-welcome .care-home-welcome-heading::before {
	content: "";
	display: block;
	width: 48px;
	height: 4px;
	background-color: #a78735;
	border-radius: 2px;
	margin-bottom: 1.25rem;
}

.care-home-welcome .care-home-welcome-body {
	color: #4a4f5c;
	margin-bottom: 2rem;
}

.care-home-welcome .care-home-welcome-body p {
	margin-bottom: 1rem;
}

.care-home-welcome .care-home-welcome-body p:last-child {
	margin-bottom: 0;
}

.care-home-welcome-cta {
	padding-left: 1.75rem;
	padding-right: 1.75rem;
}

/* Image column — aspect-ratio frame with rounded corners and soft shadow.
   "height: auto" is required because wp_get_attachment_image emits the
   HTML "height" attribute, which would otherwise override aspect-ratio
   and stretch the image. */
.care-home-welcome-media {
	display: flex;
	justify-content: center;
}

.care-home-welcome-image {
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(15, 28, 58, 0.12);
}

/* ============================================================
 * About / "Life at {care home}" — same 2-column shape as welcome
 * and types, but image-LEFT / text-RIGHT for visual alternation.
 * On mobile the image stays on top (order classes in the markup
 * take care of the desktop reversal).
 * ============================================================ */

.care-home-about {
	padding: 3.5rem 0;
}

@media (min-width: 992px) {
	.care-home-about { padding: 5rem 0; }
}

.care-home-about-text {
	margin-bottom: 0;
}

@media (min-width: 992px) {
	.care-home-about-text { padding-left: 2rem; }
}

.care-home-about-media {
	margin-bottom: 2rem;
	display: flex;
	justify-content: center;
}

@media (min-width: 992px) {
	.care-home-about-media { margin-bottom: 0; }
}

.care-home-about-image {
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(15, 28, 58, 0.12);
}

/* Gold bar above the heading + blue title — same pattern as welcome. */
.care-home-about .care-home-about-heading {
	color: #1f4283;
	font-weight: 600;
	margin-bottom: 1.25rem;
	line-height: 1.2;
}

.care-home-about .care-home-about-heading::before {
	content: "";
	display: block;
	width: 48px;
	height: 4px;
	background-color: #a78735;
	border-radius: 2px;
	margin-bottom: 1.25rem;
}

.care-home-about .care-home-about-body {
	color: #4a4f5c;
	margin-bottom: 1.5rem;
}

.care-home-about .care-home-about-body p { margin-bottom: 1rem; }
.care-home-about .care-home-about-body p:last-child { margin-bottom: 0; }

.care-home-about-manager {
	color: #1f4283;
	margin-bottom: 2rem;
	line-height: 1.6;
}

.care-home-about-manager strong { color: #1f4283; }

.care-home-about-cta {
	padding-left: 1.75rem;
	padding-right: 1.75rem;
}

/* ============================================================
 * Types of Care Offered — same 2-column shape as the welcome
 * section: text + list of taxonomy terms + CTA on the left,
 * image on the right.
 * ============================================================ */

.care-home-types {
	padding: 3.5rem 0;
}

@media (min-width: 992px) {
	.care-home-types { padding: 5rem 0; }
}

.care-home-types-text {
	margin-bottom: 2rem;
}

@media (min-width: 992px) {
	.care-home-types-text {
		margin-bottom: 0;
		padding-right: 2rem;
	}
}

/* Gold bar above the heading + blue title — same pattern as welcome. */
.care-home-types .care-home-types-heading {
	color: #1f4283;
	font-weight: 600;
	margin-bottom: 1.25rem;
	line-height: 1.2;
}

.care-home-types .care-home-types-heading::before {
	content: "";
	display: block;
	width: 48px;
	height: 4px;
	background-color: #a78735;
	border-radius: 2px;
	margin-bottom: 1.25rem;
}

.care-home-types .care-home-types-list {
	list-style: none;
	padding: 0;
	margin: 0 0 2rem;
}

.care-home-types-item {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 0.5rem 0;
	color: #1f4283;
	font-size: 1.1rem;
	font-weight: 500;
}

.care-home-types-item + .care-home-types-item {
	border-top: 1px solid rgba(31, 66, 131, 0.08);
}

.care-home-types-icon {
	flex: 0 0 auto;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background-color: #f5f6fa;
	color: #a78735;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.35rem;
}

/* Force the heavier Font Awesome "solid" variant so the icon looks
   chunkier inside the circle — overrides any light/regular class the
   editor may have picked when choosing the term icon. */
.care-home-types-icon .fa,
.care-home-types-icon .fa-solid,
.care-home-types-icon .fas,
.care-home-types-icon .fal,
.care-home-types-icon .far,
.care-home-types-icon [class^="fa-"],
.care-home-types-icon [class*=" fa-"] {
	font-weight: 900;
}

.care-home-types-cta {
	padding-left: 1.75rem;
	padding-right: 1.75rem;
}

.care-home-types-media {
	display: flex;
	justify-content: center;
}

.care-home-types-image {
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(15, 28, 58, 0.12);
}

/* ============================================================
 * Contact — same 2-column shape as welcome/types/about, but with
 * the Google Maps embed where the image normally sits. Address /
 * phone / email use the same icon-circle pattern as the types list.
 * ============================================================ */

.care-home-contact {
	padding: 3.5rem 0;
	/* Light grey breaks up the wall of white between the CTA banner and
	   the (white) footer — same accent used by Why Choose on the home. */
	background-color: #f5f6fa;
}

@media (min-width: 992px) {
	.care-home-contact { padding: 5rem 0; }
}

.care-home-contact-info {
	margin-bottom: 2rem;
}

@media (min-width: 992px) {
	.care-home-contact-info {
		margin-bottom: 0;
		padding-right: 2rem;
	}
}

.care-home-contact .care-home-contact-heading {
	color: #1f4283;
	font-weight: 600;
	margin-bottom: 1.5rem;
	line-height: 1.2;
}

.care-home-contact .care-home-contact-heading::before {
	content: "";
	display: block;
	width: 48px;
	height: 4px;
	background-color: #a78735;
	border-radius: 2px;
	margin-bottom: 1.25rem;
}

.care-home-contact-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.care-home-contact-item {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: 0.85rem 0;
}

.care-home-contact-item + .care-home-contact-item {
	border-top: 1px solid rgba(31, 66, 131, 0.08);
}

.care-home-contact-icon {
	flex: 0 0 auto;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	/* White circle (instead of the #f5f6fa used by the Types list) so
	   it pops against the section's light-grey background. */
	background-color: #fff;
	color: #a78735;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.15rem;
}

.care-home-contact-icon .fa,
.care-home-contact-icon [class^="fa-"],
.care-home-contact-icon [class*=" fa-"] {
	font-weight: 900;
}

.care-home-contact-detail {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.care-home-contact-label {
	color: #6b7280;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 600;
}

.care-home-contact-value {
	color: #1f4283;
	font-weight: 600;
	margin: 0;
	line-height: 1.5;
	font-style: normal; /* address tag defaults to italic */
	overflow-wrap: break-word;
}

.care-home-contact-link {
	text-decoration: none;
	transition: color 0.2s ease;
}

.care-home-contact-link:hover,
.care-home-contact-link:focus {
	color: #a78735;
	text-decoration: none;
}

/* Map column — same shape as the image columns elsewhere. */
.care-home-contact-media {
	display: flex;
	justify-content: center;
}

.care-home-contact-map {
	width: 100%;
	aspect-ratio: 3 / 2;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(15, 28, 58, 0.12);
}

/* The Google Maps embed comes as an <iframe> with fixed width/height
   attributes — force it to fill the rounded frame above. */
.care-home-contact-map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ============================================================
 * FAQ — clean accordion. Heading uses the gold-bar + blue title
 * pattern; each entry is a wide button row with a chevron that
 * rotates when expanded. Hairline divider between items.
 * ============================================================ */

.care-home-faq {
	padding: 3.5rem 0;
}

@media (min-width: 992px) {
	.care-home-faq { padding: 5rem 0; }
}

.care-home-faq .care-home-faq-heading {
	color: #1f4283;
	font-weight: 600;
	margin-bottom: 2rem;
	line-height: 1.2;
}

.care-home-faq .care-home-faq-heading::before {
	content: "";
	display: block;
	width: 48px;
	height: 4px;
	background-color: #a78735;
	border-radius: 2px;
	margin-bottom: 1.25rem;
}

.care-home-faq-list {
	margin: 0;
}

/* Spacing between items now that each header has its own background.
   Hairline removed in favour of a gap — the colored header is the
   separator. */
.care-home-faq-item + .care-home-faq-item {
	margin-top: 0.5rem;
}

.care-home-faq-question-wrap {
	margin: 0;
}

.care-home-faq-question {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.1rem 1.25rem;
	background-color: #f5f6fa;
	border: 0;
	border-radius: 8px;
	color: #1f4283;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.4;
	text-align: left;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.care-home-faq-question:hover,
.care-home-faq-question:focus {
	background-color: #eceff5;
	color: #a78735;
	outline: none;
}

.care-home-faq-question:focus-visible {
	box-shadow: 0 0 0 3px rgba(167, 135, 53, 0.25);
	border-radius: 4px;
}

.care-home-faq-question-text {
	flex: 1 1 auto;
}

.care-home-faq-question-icon {
	flex: 0 0 auto;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background-color: #fff;
	border: 1px solid #a78735;
	color: #a78735;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.85rem;
	transition: transform 0.25s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Rotate the chevron when the panel is open. Aria-expanded is toggled
   by Bootstrap collapse, so it is a reliable hook. */
.care-home-faq-question[aria-expanded="true"] .care-home-faq-question-icon {
	transform: rotate(180deg);
	background-color: #a78735;
	border-color: #a78735;
	color: #fff;
}

.care-home-faq-question[aria-expanded="true"] {
	color: #1f4283;
}

.care-home-faq-answer {
	padding: 0.25rem 0.5rem 1.5rem;
	color: #4a4f5c;
	line-height: 1.65;
}

.care-home-faq-answer p { margin-bottom: 1rem; }
.care-home-faq-answer p:last-child { margin-bottom: 0; }

/* ============================================================
 * Long-description scroll on desktop
 * ------------------------------------------------------------
 * When the editor writes a long body in welcome/about, the text
 * column shoots past the (3:2) image and the section looks lopsided
 * (small image vs huge wall of text). On desktop, where the columns
 * sit side by side, cap the body's height so it scrolls instead of
 * dictating the section height. On mobile/tablet the row stacks
 * vertically, so the cap is unnecessary and would just hide content.
 * ============================================================ */

@media (min-width: 992px) {
	.care-home-welcome-body,
	.care-home-about-body {
		max-height: 18rem;
		overflow-y: auto;
		padding-right: 1rem;
	}

	/* Subtle gold scrollbar — WebKit only (Firefox uses the default;
	   acceptable since the section still works there). */
	.care-home-welcome-body::-webkit-scrollbar,
	.care-home-about-body::-webkit-scrollbar {
		width: 6px;
	}

	.care-home-welcome-body::-webkit-scrollbar-track,
	.care-home-about-body::-webkit-scrollbar-track {
		background: #f5f6fa;
		border-radius: 3px;
	}

	.care-home-welcome-body::-webkit-scrollbar-thumb,
	.care-home-about-body::-webkit-scrollbar-thumb {
		background: #a78735;
		border-radius: 3px;
	}
}

/* ============================================================
 * Share bar
 * ------------------------------------------------------------
 * Moved here from the breadcrumb. A centred row: "Share Page"
 * label + the three social buttons (styles come from the
 * compiled theme CSS: .share-page, .btn-share*).
 * ============================================================ */

.care-home-share {
	padding: 2.5rem 0;
	border-top: 1px solid rgba(31, 66, 131, 0.08);
}

.care-home-share-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
}

/* The label keeps the theme's grey but drops its big right margin so the
   icons sit close in the centred row. */
.care-home-share .share-page {
	margin-right: 0.75rem;
}

/* ============================================================
 * Gallery (Slick carousel + mini lightbox)
 * ------------------------------------------------------------
 * Reuses the care home's existing slider_images repeater. Slick
 * shows 3/2/1 slides; each thumb is a <button> that triggers the
 * lightbox in single-care-home.js.
 * ============================================================ */

.care-home-gallery {
	padding: 2rem 0 4rem;
}

@media (min-width: 992px) {
	.care-home-gallery { padding: 3rem 0 5rem; }
}

/* Container-fluid by default has 15px side padding — bump it on larger
   screens so 4 photos edge-to-edge don't crowd the viewport edge. */
.care-home-gallery > .container-fluid {
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

@media (min-width: 992px) {
	.care-home-gallery > .container-fluid {
		padding-left: 2.5rem;
		padding-right: 2.5rem;
	}
}

.care-home-gallery .care-home-gallery-heading {
	color: #1f4283;
	font-weight: 700;
	margin-bottom: 2rem;
	text-align: center;
}

.care-home-gallery-slider {
	position: relative;
}

/* Hide the row before Slick wraps it — children would stack full-width
   otherwise (flash of unstyled carousel). Only applies to slider mode;
   the static layout below is always visible. */
.care-home-gallery-slider[data-slider="1"]:not(.slick-initialized) {
	visibility: hidden;
}

.care-home-gallery-slide {
	padding: 0 0.5rem;
}

.care-home-gallery-item {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 6px 20px rgba(15, 28, 58, 0.10);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.care-home-gallery-item:hover,
.care-home-gallery-item:focus {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(15, 28, 58, 0.18);
	outline: none;
}

.care-home-gallery-item:focus-visible {
	outline: 2px solid #a78735;
	outline-offset: 3px;
}

.care-home-gallery-image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

/* Controls (arrows) — sit above the slider, side by side, centred. */
.care-home-gallery-controls {
	display: flex;
	justify-content: center;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.care-home-gallery-arrow {
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	border: 2px solid #a78735;
	background: #fff;
	color: #a78735;
	font-size: 1.1rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.care-home-gallery-arrow:hover,
.care-home-gallery-arrow:focus {
	background: #a78735;
	color: #fff;
	outline: none;
}

.care-home-gallery-arrow:focus-visible {
	box-shadow: 0 0 0 3px rgba(167, 135, 53, 0.35);
}

/* Slick's "disabled" arrow state — keep it visible but dimmed. */
.care-home-gallery-arrow.slick-disabled {
	opacity: 0.4;
	cursor: default;
}

/* Static (non-slider) layout — used when there are 4 or fewer photos.
   Items are centred; widths shrink as the count grows so a single photo
   doesn't look lost on a wide row. */
.care-home-gallery-static {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin: 0 -0.5rem;
}

.care-home-gallery-static .care-home-gallery-slide {
	padding: 0 0.5rem;
	margin-bottom: 1rem;
	width: 25%; /* default — 4 items fill the row */
}

.care-home-gallery-static[data-count="1"] .care-home-gallery-slide {
	width: 50%;
	max-width: 36rem;
}

.care-home-gallery-static[data-count="2"] .care-home-gallery-slide,
.care-home-gallery-static[data-count="3"] .care-home-gallery-slide {
	width: 33.333%;
}

@media (max-width: 1199.98px) {
	.care-home-gallery-static .care-home-gallery-slide { width: 33.333%; }
	.care-home-gallery-static[data-count="1"] .care-home-gallery-slide { width: 60%; }
	.care-home-gallery-static[data-count="2"] .care-home-gallery-slide { width: 50%; }
}

@media (max-width: 767.98px) {
	.care-home-gallery-static .care-home-gallery-slide { width: 50%; }
	.care-home-gallery-static[data-count="1"] .care-home-gallery-slide { width: 80%; max-width: none; }
}

@media (max-width: 575.98px) {
	.care-home-gallery-static .care-home-gallery-slide,
	.care-home-gallery-static[data-count="1"] .care-home-gallery-slide,
	.care-home-gallery-static[data-count="2"] .care-home-gallery-slide,
	.care-home-gallery-static[data-count="3"] .care-home-gallery-slide {
		width: 100%;
		max-width: 25rem;
	}
}

/* --- Mini-lightbox ------------------------------------------ */

.care-home-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(15, 28, 58, 0.92);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	padding: 2rem;
}

.care-home-lightbox[hidden] { display: none; }

body.care-home-lightbox-open { overflow: hidden; }

.care-home-lightbox-stage {
	max-width: min(92vw, 1200px);
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.care-home-lightbox-image {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 6px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Thumbnail strip — horizontal, scrolls when it overflows; the active
   thumb is outlined in gold and kept in view as the gallery is navigated. */
.care-home-lightbox-thumbs {
	flex: 0 0 auto;
	display: flex;
	gap: 0.5rem;
	max-width: min(92vw, 1200px);
	overflow-x: auto;
	padding: 0.25rem;
	scrollbar-width: thin;
}

.care-home-lightbox-thumb {
	flex: 0 0 auto;
	width: 5rem;
	height: 3.5rem;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 4px;
	background: none;
	cursor: pointer;
	opacity: 0.6;
	transition: opacity 0.2s ease, border-color 0.2s ease;
}

.care-home-lightbox-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 2px;
	display: block;
}

.care-home-lightbox-thumb:hover { opacity: 0.85; }

.care-home-lightbox-thumb.is-active {
	opacity: 1;
	border-color: #a78735;
}

@media (max-width: 575.98px) {
	.care-home-lightbox-thumb { width: 4rem; height: 3rem; }
}

.care-home-lightbox-close,
.care-home-lightbox-prev,
.care-home-lightbox-next {
	position: absolute;
	background: rgba(255, 255, 255, 0.12);
	border: 0;
	color: #fff;
	cursor: pointer;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

.care-home-lightbox-close:hover,
.care-home-lightbox-prev:hover,
.care-home-lightbox-next:hover {
	background: rgba(255, 255, 255, 0.25);
}

.care-home-lightbox-close {
	top: 1.25rem;
	right: 1.25rem;
	width: 2.5rem;
	height: 2.5rem;
	font-size: 1.6rem;
	line-height: 1;
}

.care-home-lightbox-prev,
.care-home-lightbox-next {
	top: 50%;
	transform: translateY(-50%);
	width: 3rem;
	height: 3rem;
	font-size: 1.4rem;
}

.care-home-lightbox-prev { left: 1.25rem; }
.care-home-lightbox-next { right: 1.25rem; }

/* The nav wrapper is transparent on desktop — the arrows stay absolutely
   positioned on the image's sides, exactly as before. */
.care-home-lightbox-nav { display: contents; }

@media (max-width: 575.98px) {
	/* On phones the arrows drop into a centred row below the image, above
	   the thumbnail strip, instead of overlapping the photo's sides. */
	.care-home-lightbox-nav {
		display: flex;
		order: 1;
		flex: 0 0 auto;
		gap: 2rem;
		justify-content: center;
	}

	.care-home-lightbox-stage  { order: 0; }
	.care-home-lightbox-thumbs { order: 2; }

	.care-home-lightbox-prev,
	.care-home-lightbox-next {
		position: static;
		top: auto;
		left: auto;
		right: auto;
		transform: none;
		width: 2.5rem;
		height: 2.5rem;
	}
}
