/* NextPhotography fixes (Codeable 219200). Loaded after the parent style.css. */

/* 1. Gallery: replacement for .full-width on the gallery wrapper (parent sets only
      width:100% !important). The swap stops the parent's >=1200px 594px hack matching. */
.gallery.np-full {
	width: 100% !important;
}

/* 2. Services cards: same excerpt length (line clamp) and same card height on every
      card. Heights are the natural height of a card with a clamped excerpt. */
.elementor-widget-pages-services .item .con p {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	overflow: hidden;
}
@media (min-width: 768px) and (max-width: 991px) {
	.elementor-widget-pages-services .item .con p { -webkit-line-clamp: 6; }
	/* two column cards are narrow, some titles wrap to two lines */
	.elementor-widget-pages-services .item { min-height: 454px; }
}
@media (min-width: 992px), (max-width: 767px) {
	.elementor-widget-pages-services .item { min-height: 362px; }
}

/* 3. Team: member with "Show social icons" off gets no hover overlay (it would be empty). */
.team .item.np-hide-social .info {
	display: none;
}

/* 4. Blog sidebar Recent Posts (Codeable 219435). The thumbnail floats left at 90px with the
      title beside it. On a tablet in portrait the sidebar is about 186px wide, so the title is
      left with ~20px and wraps into a squeezed column. Between 768px and 991px stack them:
      image on top, title below at full width. Other sizes are untouched. */
@media (min-width: 768px) and (max-width: 991px) {
	.nextarch-sidebar-part .recent-posts .recent li,
	.blog-sidebar .widget .recent li {
		overflow: hidden;
	}
	.nextarch-sidebar-part .recent-posts .recent .thum,
	.blog-sidebar .widget .recent .thum {
		float: none;
		margin-bottom: 10px;
	}
	.nextarch-sidebar-part .recent-posts .recent a,
	.blog-sidebar .widget .recent a {
		margin-left: 0;
	}
}
