/* restatic.board.css
 * Board module additions. Keep light; rely on restatic.main.css for base.
 */

.board-gallery{
	margin-top: 10px;
}

.board-gallery__main{
	margin: 0 0 10px 0;
}

.board-main-link{
	display:block;
	text-decoration:none;
}

.board-main-link img{
	display:block;
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	background: rgba(255,255,255,0.92);
}

.board-gallery__thumbs{
	display:flex;
	flex-wrap:nowrap;
	gap:8px;
	margin-top:10px;
	max-width:100%;
	overflow-x:auto;
	overflow-y:hidden;
	padding:3px 3px 7px;
	scroll-snap-type:x proximity;
	-webkit-overflow-scrolling:touch;
	overscroll-behavior-inline:contain;
	scrollbar-width:thin;
	cursor:grab;
	touch-action:pan-x;
}
.board-gallery__thumbs.is-dragging{
	cursor:grabbing;
	user-select:none;
	scroll-snap-type:none;
}
.board-gallery__thumbs .board-thumb{
	display:block;

	flex:0 0 96px;
	width:96px;
	height:76px;
	box-sizing:border-box;
	border:1px solid rgba(17,24,39,0.10);
	border-radius:8px;
	padding:2px;
	background:rgba(255,255,255,0.8);
	scroll-snap-align:start;
}
.board-gallery__thumbs .board-thumb.is-pending,
.board-gallery__thumbs .board-thumb[href*="board-image-proxy.php"]{
	display:none;
}
.board-gallery__thumbs .board-thumb[href*="board-image-proxy.php"].is-remote-ready{
	display:block;
}
.board-gallery__thumbs .board-thumb.current{
	border-color:rgba(17,24,39,.9);
	box-shadow:0 0 0 2px rgba(88,111,160,0.12);
}
.board-gallery__thumbs img{
	display:block;
	width:100%;
	height:100%;
	object-fit:contain;
	border-radius:6px;
	background:#fff;
}

.board-gallery__main-wrap{
	position:relative;
	display:inline-block;
	max-width:100%;
}
.board-gallery__photo-count,
.board-list-photo-count{
	position:absolute;
	left:0;
	right:0;
	bottom:0;
	padding:5px 7px;
	background:rgba(15,23,42,.70);
	color:#fff;
	font-size:11px;
	line-height:1.2;
	text-align:center;
	box-sizing:border-box;
	pointer-events:none;
}
.board-gallery__photo-count{
	left:auto;
	right:10px;
	bottom:10px;
	width:auto;
	min-width:58px;
	border-radius:8px;
	font-size:12px;
	padding:6px 9px;
}
.board-list-thumb{
	position:relative;
	display:block;
	flex:0 0 112px;
	width:112px;
	height:112px;
	border-radius:10px;
	overflow:hidden;
	background:#fff;
	align-self:center;
	text-decoration:none !important;
}
.item.category-block .board-list-thumb img{
	display:block;
	width:112px;
	height:112px;
	margin:0;
	object-fit:contain;
	border-radius:10px;
	background:#fff;
}
.board-list-photo-count{
	border-radius:0 0 10px 10px;
}
@media (max-width:600px){
	.board-list-thumb{
		flex-basis:96px;
		width:96px;
		height:96px;
	}
	.item.category-block .board-list-thumb img{
		width:96px;
		height:96px;
	}
}

.board-photo-modal .modal-inner{
	position:relative;
	touch-action:pan-y pinch-zoom;
}
.board-photo-modal__nav{
	position:absolute;
	top:50%;
	transform:translateY(-50%);
	z-index:12;
	width:52px;
	height:64px;
	border:0;
	border-radius:12px;
	background:rgba(15,23,42,.58);
	color:#fff;
	font-size:46px;
	line-height:1;
	display:flex;
	align-items:center;
	justify-content:center;
	cursor:pointer;
	box-shadow:0 6px 20px rgba(0,0,0,.18);
}
.board-photo-modal__nav:hover{
	background:rgba(15,23,42,.78);
}
.board-photo-modal__nav--prev{left:12px;}
.board-photo-modal__nav--next{right:12px;}
.board-photo-modal__counter{
	position:absolute;
	left:50%;
	bottom:14px;
	transform:translateX(-50%);
	z-index:12;
	padding:6px 10px;
	border-radius:999px;
	background:rgba(15,23,42,.68);
	color:#fff;
	font-size:13px;
	line-height:1;
	pointer-events:none;
}
@media (max-width:700px){
	.board-photo-modal .modal-inner{
		max-width:100vw;
		max-height:100vh;
	}
	.board-photo-modal .modal-inner>img{
		max-width:100vw;
		max-height:100vh;
		border-radius:0;
	}
	.board-photo-modal__nav{
		width:44px;
		height:56px;
		font-size:40px;
		background:rgba(15,23,42,.48);
	}
	.board-photo-modal__nav--prev{left:6px;}
	.board-photo-modal__nav--next{right:6px;}
	.board-photo-modal__counter{
		bottom:10px;
	}
}

/* SEO preload on allcats list: 8 roots + top subs in HTML for crawlers; not shown to users */
.board-list-categories--seo-preload{
	display: none !important;
}

/* Native numeric board filters */
.board-filter-range{
	display:grid;
	grid-template-columns:minmax(110px,1fr) minmax(86px,110px) auto minmax(86px,110px);
	gap:7px;
	align-items:center;
	margin:6px 0;
}
.board-filter-range__title{font-size:13px;line-height:1.25;color:#334155;}
.board-filter-range input{width:100%;min-width:0;box-sizing:border-box;}
.board-filter-range__dash{color:#94a3b8;text-align:center;}
@media(max-width:700px){
	.board-filter-range{grid-template-columns:1fr 1fr auto 1fr;}
	.board-filter-range__title{grid-column:1/-1;}
}
