/* Partneri — cards, partner page, homepage carousel; project cards share the card look.
   BettrWeb 2026-10-09. Loaded by inc/birne-partners.php. */

/* ---------- Card ---------- */
.birne-card{ min-width:0; }
.birne-card__link{
	display:flex;
	flex-direction:column;
	height:100%;
	color:inherit;
	text-decoration:none;
}
.birne-card__media{
	position:relative;
	display:block;
	aspect-ratio:3 / 4;
	overflow:hidden;
	background:#f7f7f7;
}
.birne-card__img{
	position:absolute;
	inset:0;
	width:100%;
	height:100%;
	object-fit:cover;
	transition:transform .6s ease;
}
.birne-card__overlay{
	position:absolute;
	inset:0;
	background:#fff;
	opacity:.55;
	transition:opacity .45s ease;
}
.birne-card__media.no-photo{ background:#f1f0ee; }
.birne-card__media.no-photo .birne-card__overlay{ display:none; }
.birne-card__logo{
	position:absolute;
	inset:0;
	display:flex;
	align-items:center;
	justify-content:center;
	padding:0 12%;
}
.birne-card__logo img{
	display:block;
	width:100%;
	max-height:45%;
	object-fit:contain;
}
.birne-card__name{ font-size:24px; font-weight:600; text-align:center; color:#1a1a1a; }
.birne-card__link:hover .birne-card__overlay,
.birne-card__link:focus-visible .birne-card__overlay{ opacity:.12; }
.birne-card__link:hover .birne-card__img,
.birne-card__link:focus-visible .birne-card__img{ transform:scale(1.03); }
.birne-card__body{
	display:flex;
	align-items:flex-start;
	justify-content:space-between;
	gap:16px;
	padding:16px 0 0;
	font-size:16px;
	font-weight:600;
	line-height:1.45;
	color:#1a1a1a;
}
.birne-card__text{ min-width:0; }
.birne-card__meta{ flex:0 0 auto; text-align:right; color:#1a1a1a; }
.birne-card__link:hover .birne-card__text{ text-decoration:underline; text-underline-offset:3px; }

/* ---------- Grid (partner archive page) ---------- */
.birne-partners--grid{
	display:grid;
	grid-template-columns:repeat(3, minmax(0, 1fr));
	gap:50px 30px;
	margin:10px 0 80px;
}
@media (max-width:768.98px){
	.birne-partners--grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); gap:30px 16px; margin-bottom:50px; }
	.birne-card__body{ flex-direction:column; gap:2px; padding-top:10px; font-size:14px; }
	.birne-card__meta{ text-align:left; color:#767676; }
}

/* ---------- Carousel (homepage) ---------- */
.birne-partners--carousel,
.entry-content > .birne-partners--carousel{ margin:0 0 90px; } /* beats the theme's .entry-content > * margin */
.birne-partners--carousel.is-static .birne-partners__arrow{ display:none; } /* all cards fit: nothing to scroll */
.birne-partners__head{
	display:flex;
	align-items:flex-end;
	justify-content:space-between;
	gap:20px;
	margin-bottom:26px;
}
.birne-partners__heading{
	margin:0;
	font-size:26px;
}
.birne-partners__nav{
	display:flex;
	align-items:center;
	gap:10px;
}
.birne-partners__all{
	margin-right:12px;
	font-size:13px;
	font-weight:600;
	letter-spacing:.04em;
	text-transform:uppercase;
	border-bottom:1px solid currentColor;
}
.birne-partners__arrow{
	position:relative;
	width:44px;
	height:44px;
	min-height:0;
	padding:0;
	border:1px solid #e8e8e8;
	border-radius:50%;
	background:#fff;
	cursor:pointer;
	transition:border-color .2s, opacity .2s;
}
.birne-partners__arrow::before{ /* same chevron as the gallery/slider arrows */
	content:"";
	position:absolute;
	top:50%;
	left:50%;
	width:10px;
	height:10px;
	border-top:2px solid #1a1a1a;
	border-left:2px solid #1a1a1a;
	transform:translate(-30%, -50%) rotate(-45deg);
}
.birne-partners__arrow[data-dir="1"]::before{ transform:translate(-70%, -50%) rotate(135deg); }
.birne-partners__arrow:hover{ border-color:#1a1a1a; }
.birne-partners__arrow[disabled]{ opacity:.35; cursor:default; border-color:#e8e8e8; }
.birne-partners__track{
	display:grid;
	grid-auto-flow:column;
	grid-auto-columns:calc((100% - 2 * 30px) / 3);
	gap:30px;
	overflow-x:auto;
	scroll-snap-type:x mandatory;
	scroll-behavior:smooth;
	scrollbar-width:none;
	overscroll-behavior-x:contain;
}
.birne-partners__track::-webkit-scrollbar{ display:none; }
.birne-partners__track > .birne-card{ scroll-snap-align:start; }
@media (max-width:1024px){
	.birne-partners__track{ grid-auto-columns:calc((100% - 2 * 24px) / 2.6); gap:24px; }
}
@media (max-width:768.98px){
	.birne-partners--carousel,
	.entry-content > .birne-partners--carousel{ margin:0 0 50px; }
	.birne-partners__head{ align-items:center; }
	.birne-partners__heading{ font-size:20px; }
	.birne-partners__arrow{ display:none; }
	.birne-partners__all{ margin-right:0; font-size:12px; }
	.birne-partners__track{ grid-auto-columns:72%; gap:16px; }
}

/* ---------- Brand page (single-zimols.php) ---------- */
.birne-zimols-title .birne-zimols-title__logo{ margin:0 auto 14px; }
.birne-zimols-title .birne-zimols-title__logo img{
	display:block;
	width:auto;
	max-width:min(360px, 70vw);
	max-height:120px;
	margin:0 auto;
	object-fit:contain;
	mix-blend-mode:multiply; /* logo PNGs sit on white; blend them into the grey bar */
}
.birne-partner{ padding-top:20px; }
.birne-partner__intro{
	display:grid;
	grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);
	gap:60px;
	align-items:center;
	margin:0 0 80px;
}
.birne-partner__intro.no-image{ grid-template-columns:minmax(0, 760px); justify-content:center; }
.birne-partner__media{ aspect-ratio:4 / 5; max-height:760px; overflow:hidden; background:#f7f7f7; }
.birne-partner__media img{ display:block; width:100%; height:100%; object-fit:cover; }
.birne-partner__text{ font-size:17px; line-height:1.65; color:#1a1a1a; }
.birne-partner__text p{ margin-bottom:1em; }
.birne-partner__btn{ margin-top:10px; }
.birne-partner__btn,
.birne-partner__btn:visited{
	color:#fff !important;
	background-color:var(--wd-primary-color) !important;
	border:1px solid var(--wd-primary-color) !important;
}
.birne-partner__btn:hover{
	color:var(--wd-primary-color) !important;
	background-color:transparent !important;
}

/* Image carousel: content width, centred slide with both neighbours peeking in (JS loop). */
.birne-gallery{ position:relative; margin:0 0 90px; outline:none; }
.birne-gallery__viewport{
	position:relative;
	overflow:hidden;
	touch-action:pan-y;
	user-select:none;
}
.birne-gallery__track{
	display:flex;
	gap:16px;
	will-change:transform;
}
.birne-gallery__slide{
	flex:0 0 min(52%, 640px);
	aspect-ratio:1;
	margin:0;
	overflow:hidden;
	background:#f0f0f0;
	cursor:pointer;
	opacity:.5;
	transition:opacity .45s ease;
}
.birne-gallery__slide.is-active{ opacity:1; cursor:zoom-in; }
.birne-gallery__slide img{
	display:block;
	width:100%;
	height:100%;
	object-fit:cover;
	pointer-events:none;
	-webkit-user-drag:none;
}
.birne-gallery.is-single .birne-gallery__slide{ opacity:1; margin:0 auto; cursor:zoom-in; }
.birne-gallery.is-single .birne-gallery__track{ justify-content:center; }
.birne-gallery__arrow{
	position:absolute;
	top:50%;
	z-index:2;
	width:44px;
	height:44px;
	min-height:0;
	padding:0;
	transform:translateY(-50%);
	border:0;
	border-radius:50%;
	background:rgba(255,255,255,.9);
	box-shadow:0 2px 10px rgba(0,0,0,.12);
	cursor:pointer;
	transition:background .2s, transform .2s;
}
.birne-gallery__arrow:hover{ background:#fff; transform:translateY(-50%) scale(1.06); }
.birne-gallery__arrow::before{
	content:"";
	position:absolute;
	top:50%;
	left:50%;
	width:10px;
	height:10px;
	border-top:2px solid #1a1a1a;
	border-left:2px solid #1a1a1a;
	transform:translate(-30%, -50%) rotate(-45deg);
}
.birne-gallery__arrow--prev{ left:16px; }
.birne-gallery__arrow--next{ right:16px; }
.birne-gallery__arrow--next::before{ transform:translate(-70%, -50%) rotate(135deg); }
.birne-gallery.is-single .birne-gallery__arrow,
.birne-gallery.is-single .birne-gallery__count{ display:none; }
.birne-gallery__count{
	margin-top:14px;
	text-align:center;
	font-size:13px;
	letter-spacing:.06em;
	color:#767676;
}

/* Lightbox */
html.birne-lb-lock{ overflow:hidden; }
.birne-lb{
	position:fixed;
	inset:0;
	z-index:100000;
	display:none;
	align-items:center;
	justify-content:center;
	background:rgba(12,12,12,.94);
}
.birne-lb.is-open{ display:flex; }
.birne-lb__figure{
	display:flex;
	align-items:center;
	justify-content:center;
	width:100%;
	height:100%;
	margin:0;
	padding:60px 80px;
	box-sizing:border-box;
}
.birne-lb__img{
	max-width:100%;
	max-height:100%;
	object-fit:contain;
	box-shadow:0 10px 40px rgba(0,0,0,.4);
}
.birne-lb__close,
.birne-lb__arrow{
	position:absolute;
	z-index:2;
	width:48px;
	height:48px;
	min-height:0;
	padding:0;
	border:0;
	background:transparent;
	cursor:pointer;
	opacity:.8;
	transition:opacity .2s;
}
.birne-lb__close:hover,
.birne-lb__arrow:hover{ opacity:1; }
.birne-lb__close{ top:14px; right:14px; }
.birne-lb__close::before,
.birne-lb__close::after{
	content:"";
	position:absolute;
	top:50%;
	left:50%;
	width:24px;
	height:2px;
	background:#fff;
	transform:translate(-50%, -50%) rotate(45deg);
}
.birne-lb__close::after{ transform:translate(-50%, -50%) rotate(-45deg); }
.birne-lb__arrow{ top:50%; transform:translateY(-50%); }
.birne-lb__arrow--prev{ left:14px; }
.birne-lb__arrow--next{ right:14px; }
.birne-lb__arrow::before{
	content:"";
	position:absolute;
	top:50%;
	left:50%;
	width:16px;
	height:16px;
	border-top:2px solid #fff;
	border-left:2px solid #fff;
	transform:translate(-30%, -50%) rotate(-45deg);
}
.birne-lb__arrow--next::before{ transform:translate(-70%, -50%) rotate(135deg); }
.birne-lb.is-single .birne-lb__arrow,
.birne-lb.is-single .birne-lb__count{ display:none; }
.birne-lb__count{
	position:absolute;
	bottom:18px;
	left:0;
	right:0;
	text-align:center;
	font-size:13px;
	letter-spacing:.06em;
	color:rgba(255,255,255,.75);
}

@media (max-width:768.98px){
	.birne-zimols-title .birne-zimols-title__logo img{ max-height:80px; }
	.birne-partner{ padding-top:0; }
	.birne-partner__intro,
	.birne-partner__intro.no-image{ grid-template-columns:1fr; gap:24px; margin-bottom:50px; }
	.birne-partner__media{ aspect-ratio:4 / 3; }
	.birne-partner__text{ font-size:16px; }
	.birne-gallery{ margin-bottom:50px; }
	.birne-gallery__track{ gap:10px; }
	.birne-gallery__slide{ flex-basis:78%; }
	.birne-gallery__arrow{ display:none; }
	.birne-lb__figure{ padding:56px 10px; }
	.birne-lb__arrow{ display:none; }
}

/* ---------- Project cards (blog = "Mūsu projekti" archive): square image, text under it ---------- */
.birne-proj__link{ display:flex; flex-direction:column; color:inherit; text-decoration:none; }
.birne-proj__media{ display:block; aspect-ratio:1; overflow:hidden; background:#f7f7f7; }
.birne-proj__media img{
	display:block;
	width:100%;
	height:100%;
	object-fit:cover;
	transition:transform .6s ease;
}
.birne-proj__link:hover .birne-proj__media img{ transform:scale(1.03); }
.birne-proj__body{
	display:flex;
	align-items:flex-start;
	justify-content:space-between;
	gap:16px;
	padding:16px 0 0;
	font-size:16px;
	font-weight:600;
	line-height:1.45;
	color:#1a1a1a;
}
.birne-proj__name{ min-width:0; }
.birne-proj__place{ flex:0 0 auto; max-width:50%; text-align:right; }
.birne-proj__link:hover .birne-proj__name{ text-decoration:underline; text-underline-offset:3px; }
.woodmart-archive-blog .wd-posts:has(.birne-proj){ row-gap:44px; }
@media (max-width:768.98px){
	.birne-proj__body{ flex-direction:column; gap:2px; font-size:14px; }
	.birne-proj__place{ max-width:none; text-align:left; color:#767676; }
}

/* ---------- Partner pages: light title bar like the projects archive ---------- */
.birne-partners-page .wd-page-title .wd-page-title-bg{ display:none !important; }
.birne-partners-page .wd-page-title{
	background:#f7f7f7 !important;
	padding-top:54px !important;
	padding-bottom:54px !important;
}
.birne-partners-page .wd-page-title .entry-title,
.birne-partners-page .wd-page-title .wd-breadcrumbs,
.birne-partners-page .wd-page-title .wd-breadcrumbs a,
.birne-partners-page .wd-page-title .wd-breadcrumbs .wd-last{ color:#1a1a1a !important; }
.birne-partners-page .wd-page-title .entry-title{
	font-size:clamp(22px, 2.6vw, 32px) !important;
	line-height:1.25 !important;
}

/* ---------- Image slider: a core Gallery block with the class "birne-slider" (About page) ---------- */
.wp-block-gallery.birne-slider{
	position:relative;
	display:block !important;
	margin:0 0 20px;
}
.birne-slider__track{
	display:flex;
	flex-wrap:nowrap;
	gap:0;
	overflow-x:auto;
	scroll-snap-type:x mandatory;
	scroll-behavior:smooth;
	scrollbar-width:none;
}
.birne-slider__track::-webkit-scrollbar{ display:none; }
.wp-block-gallery.birne-slider figure.wp-block-image{
	flex:0 0 100% !important;
	width:100% !important;
	margin:0 !important;
	scroll-snap-align:start;
	aspect-ratio:1192 / 674;
	overflow:hidden;
	background:#f0f0f0;
}
.wp-block-gallery.birne-slider figure.wp-block-image img{
	width:100% !important;
	height:100% !important;
	object-fit:cover !important;
}
.birne-slider__arrow{
	position:absolute;
	top:50%;
	z-index:2;
	width:44px;
	height:44px;
	min-height:0;
	padding:0;
	transform:translateY(-50%);
	border:0;
	border-radius:50%;
	background:rgba(255,255,255,.9);
	box-shadow:0 2px 10px rgba(0,0,0,.12);
	cursor:pointer;
	transition:background .2s, transform .2s;
}
.birne-slider__arrow:hover{ background:#fff; transform:translateY(-50%) scale(1.06); }
.birne-slider__arrow::before{
	content:"";
	position:absolute;
	top:50%;
	left:50%;
	width:10px;
	height:10px;
	border-top:2px solid #1a1a1a;
	border-left:2px solid #1a1a1a;
	transform:translate(-30%, -50%) rotate(-45deg);
}
.birne-slider__arrow--prev{ left:12px; }
.birne-slider__arrow--next{ right:12px; }
.birne-slider__arrow--next::before{ transform:translate(-70%, -50%) rotate(135deg); }
.birne-slider__dots{
	position:absolute;
	left:0;
	right:0;
	bottom:12px;
	z-index:2;
	display:flex;
	justify-content:center;
	gap:8px;
}
.birne-slider__dot{
	width:8px;
	height:8px;
	min-height:0;
	padding:0;
	border:0;
	border-radius:50%;
	background:rgba(255,255,255,.55);
	cursor:pointer;
}
.birne-slider__dot.is-active{ background:#fff; }
