/*
 * ProPhoto Blocks: styles theme.json cannot express.
 * Colours: #232323 page, #131313 header, #000 top bar, #424242 dropdown,
 * #e0ded9 footer, #2ea1fa quote blue, #2cb8d6 teal, #262626 text,
 * #bdbdbd top bar links. Values come from the old agen/agenchild theme and
 * the live site (see CHANGELOG 2.0.0).
 */

/* ---------------------------------------------------------------------
 * Page frame
 * ------------------------------------------------------------------- */
.wp-site-blocks > * {
	margin-block-start: 0;
}

.prophoto-main {
	padding-top: 2rem;
	padding-bottom: 2rem;
}

/* ---------------------------------------------------------------------
 * Default page content panel (white box on the charcoal page)
 * ------------------------------------------------------------------- */
.prophoto-panel {
	background: #fff;
	color: #262626;
}

.prophoto-page-title {
	margin-top: 0;
	font-size: 32px;
	line-height: 32px;
	color: #000;
}

/* Text links inside page content: blue with a thin rule, black on hover. */
.prophoto-panel .wp-block-post-content a:not(.wp-element-button) {
	color: #2ea1fa;
	padding-bottom: 2px;
	border-bottom: 1px solid #2ea1fa;
	text-decoration: none;
}

.prophoto-panel .wp-block-post-content a:not(.wp-element-button):hover {
	color: #000;
	border-bottom-color: #000;
}

/* Bulleted lists in page content. */
.prophoto-panel .wp-block-post-content ul {
	list-style: disc outside;
	margin-left: 18px;
	padding-left: 0;
}

.prophoto-panel .wp-block-post-content ul li {
	margin-bottom: 10px;
}

/* Post list (index template). */
.prophoto-posts > li {
	margin-bottom: 2rem;
}

.prophoto-panel .wp-block-post-title a {
	color: #000;
}

.prophoto-post-meta {
	color: #595959;
	font-size: 14px;
}

/* ---------------------------------------------------------------------
 * Top bar (thin black strip above the header)
 * ------------------------------------------------------------------- */
.prophoto-topbar {
	background: #000;
	min-height: 30px;
	padding-top: 0;
	padding-bottom: 0;
}

/* The old bar floated its items right, so the first link sits furthest right. */
.prophoto-topbar__list {
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-start;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
}

.prophoto-topbar__list li {
	margin: 0 10px;
	padding-top: 2px;
	line-height: 28px;
}

.prophoto-topbar__list a {
	color: #bdbdbd;
	font-size: 15px;
	text-decoration: none;
	transition: all 0.5s ease;
}

.prophoto-topbar__list a:hover,
.prophoto-topbar__list a:focus {
	color: #fff;
}

/* Small screens: only Request Callback stays in the bar. */
@media (max-width: 480px) {
	.prophoto-topbar__list li.viewport-large {
		display: none;
	}

	.prophoto-topbar__list li {
		margin-right: 0;
		padding-top: 8px;
	}
}

/* ---------------------------------------------------------------------
 * Header
 * ------------------------------------------------------------------- */
.prophoto-header {
	background: #131313;
	padding-top: 1rem;
	padding-bottom: 1rem;
}

.prophoto-header__inner {
	gap: 1rem 2rem;
}

.prophoto-logo {
	margin: 0;
}

.prophoto-logo img {
	display: block;
	max-width: 100%;
}

@media (max-width: 991px) {
	.prophoto-logo img {
		width: 150px !important; /* overrides the image block's inline 270px */
		height: auto !important;
	}
}

.prophoto-header .wp-block-navigation {
	font-family: "Montserrat", Arial, sans-serif;
	font-size: 15px;
	letter-spacing: 1px;
	color: #fff;
}

.prophoto-header .wp-block-navigation a {
	font-family: "Montserrat", Arial, sans-serif;
	font-size: 15px;
	letter-spacing: 1px;
	color: #fff;
	text-decoration: none;
}

.prophoto-header .wp-block-navigation .wp-block-navigation__container {
	gap: 0;
}

.prophoto-header .wp-block-navigation__container > .wp-block-navigation-item {
	margin-left: 20px;
}

.prophoto-header .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	position: relative;
	padding: 10px 0;
}

/* Hover and current underline: a 2px teal bar under half the label. */
.prophoto-header .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 2px;
	background: #2cb8d6;
	transition: width 0.2s ease-in-out;
}

.prophoto-header .wp-block-navigation__container > .wp-block-navigation-item:hover > .wp-block-navigation-item__content::after,
.prophoto-header .wp-block-navigation__container > .wp-block-navigation-item:focus-within > .wp-block-navigation-item__content::after,
.prophoto-header .wp-block-navigation__container > .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content::after {
	width: 50%;
}

/* Plain dropdowns. */
.prophoto-header .wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
	background: #424242;
	color: #fff;
	border: 0;
	min-width: 240px;
	padding: 0;
}

.prophoto-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 10px 20px;
	color: #fff;
}

.prophoto-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.prophoto-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus {
	color: #2cb8d6;
}

/* Sign In shows in the menu on small screens only (the top bar carries it elsewhere). */
.prophoto-header .wp-block-navigation-item.viewport-small {
	display: none;
}

@media (max-width: 480px) {
	.prophoto-header .wp-block-navigation-item.viewport-small {
		display: flex;
	}
}

/* Quote Online button (a menu item styled as a button). */
.prophoto-header .wp-block-navigation__container > .btn-menu-quote > .wp-block-navigation-item__content {
	padding: 12px 20px;
	line-height: 1;
	background: #2ea1fa;
	color: #fff;
	border-radius: 3px;
}

.prophoto-header .wp-block-navigation__container > .btn-menu-quote > .wp-block-navigation-item__content::after {
	display: none;
}

.prophoto-header .wp-block-navigation__container > .btn-menu-quote > .wp-block-navigation-item__content:hover,
.prophoto-header .wp-block-navigation__container > .btn-menu-quote > .wp-block-navigation-item__content:focus {
	background: #2cb8d6;
	color: #fff;
}

/* ---------------------------------------------------------------------
 * Mobile menu (core overlay)
 * ------------------------------------------------------------------- */
.prophoto-header .wp-block-navigation__responsive-container-open,
.prophoto-header .wp-block-navigation__responsive-container-close {
	color: #fff;
}

.prophoto-header .wp-block-navigation__responsive-container.is-menu-open {
	background: #131313;
	color: #fff;
}

.prophoto-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
	margin-left: 0;
}

.prophoto-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	color: #fff;
}

.prophoto-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	display: none;
}

.prophoto-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	background: transparent;
	min-width: 0;
	padding-left: 1rem;
}

.prophoto-header .wp-block-navigation__responsive-container.is-menu-open .btn-menu-quote {
	margin-top: 1rem;
}

/* ---------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------- */
.prophoto-footer {
	background: #e0ded9;
	color: #000;
	font-size: 14px;
	padding-top: 10px;
	padding-bottom: 10px;
}

.prophoto-footer a {
	color: #141414;
}

.prophoto-footer p {
	margin: 0;
}

.prophoto-footer__contact {
	padding: 10px 0;
}

.prophoto-footer__address {
	gap: 15px;
}

.prophoto-footer__logo {
	margin: 0;
}

.prophoto-footer__logo img {
	display: block;
	width: 112px;
	height: auto;
}

/* Social icons: 30px teal squares, dark icons, as on the old site. */
.prophoto-footer .prophoto-social .wp-social-link.wp-social-link {
	background-color: #2cb8d6;
	color: #000;
	border-radius: 0;
}

.prophoto-footer .prophoto-social .wp-social-link a {
	color: #000;
}

.prophoto-footer__legal {
	padding: 10px 0;
}

/* Home page only: the removal for other pages is done in functions.php, not here. */
.prophoto-footer .prophoto-home-credit {
	margin: 0;
	font-size: 9px;
}

.prophoto-footer .prophoto-home-credit a {
	font-size: 9px;
	color: #828282;
}

/* ---------------------------------------------------------------------
 * Keyboard focus
 * ------------------------------------------------------------------- */
:focus-visible {
	outline: 2px solid #2ea1fa;
	outline-offset: 2px;
}

.prophoto-header :focus-visible,
.prophoto-topbar :focus-visible {
	outline-color: #fff;
}

/* ---------------------------------------------------------------------
 * Small screens
 * ------------------------------------------------------------------- */
@media (max-width: 781px) {
	.prophoto-panel {
		padding: 1rem !important; /* overrides the block's inline 2rem padding */
	}

	.prophoto-page-title {
		font-size: 26px;
		line-height: 1.2;
	}
}
