/* /css/portfolio.css */
:root {
	--cream: #f5ebdd;
	--berry: #a03b52;
	--bread: #5a3e2b;
	--kraft: #c8a97e;
}

body {
	background: #c8a97e;
}

.portfolio-hero {
	background: linear-gradient(180deg, #c8a97e 0%, #d6ba90 100%),
		url('../img/crissxcross.png');
	background-size: cover, 200px;
	background-blend-mode: multiply;
	padding-bottom: 2rem;
}

.portfolio-hero__subtitle {
	margin-top: 0.4rem;
	font-size: 1.9rem;
	color: #3e2a1f;
	opacity: 0.9;
}

.gallery {
	background:
    linear-gradient(rgba(255,255,255,.8), rgba(255,255,255,.8)),
    url('../img/bg_section1.png');
	padding: 4rem 0 6rem;
}

.gallery .wrapper {
	padding: 0 1rem;
}

.gallery__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.gallery__item {
	position: relative;
	background: var(--cream);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

.gallery__item img {
	display: block;
	width: 100%;
	height: 280px;
	object-fit: cover;
	transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery__item::after {
	content: '';
	position: absolute;
	inset: 0;
	box-shadow: inset 0 0 0 0 rgba(160, 59, 82, 0);
	border-radius: 12px;
	transition: box-shadow 0.25s ease;
}

.gallery__item:hover img {
	transform: scale(1.04);
	filter: brightness(1.03);
}
.gallery__item:hover::after {
	box-shadow: inset 0 0 0 4px var(--berry);
}

/* 2 kolumny */
@media (min-width: 600px) {
	.gallery__grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.gallery__item img {
		height: 300px;
	}
}
/* 3 kolumny */
@media (min-width: 992px) {
	.gallery__grid {
		grid-template-columns: repeat(3, 1fr);
	}
	.gallery__item img {
		height: 320px;
	}
}

/* LIGHTBOX */
.lb {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.85);
	z-index: 1000;
}
.lb.is-open {
	display: flex;
}

.lb__stage {
	position: relative;
	max-width: min(92vw, 1400px);
	max-height: 86vh;
}

.lb__img {
	display: block;
	max-width: 100%;
	max-height: 86vh;
	width: auto;
	height: auto;
	border-radius: 10px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.lb__close,
.lb__prev,
.lb__next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border: none;
	border-radius: 50%;
	background: var(--kraft);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(200, 169, 126, 0.35);
	transition: background 0.2s, transform 0.15s;
}
.lb__close {
	top: 16px;
	right: 16px;
	transform: none;
}
.lb__prev {
	left: -64px;
}
.lb__next {
	right: -64px;
}

.lb__prev::before,
.lb__next::before {
	content: '';
	position: absolute;
	inset: 0;
	margin: auto;
	width: 14px;
	height: 14px;
	border-top: 2px solid #fff;
	border-right: 2px solid #fff;
}
.lb__prev::before {
	transform: rotate(225deg);
}
.lb__next::before {
	transform: rotate(45deg);
}

.lb__close:hover,
.lb__prev:hover,
.lb__next:hover {
	background: var(--berry);
}
.lb__close:active,
.lb__prev:active,
.lb__next:active {
	transform: translateY(-50%) scale(0.96);
}
.lb__close:active {
	transform: scale(0.96);
}

/* Przy mniejszych ekranach przyciski bliżej */
@media (max-width: 768px) {
	.lb__prev {
		left: 8px;
	}
	.lb__next {
		right: 8px;
	}
}
