/**
 * Parlak Epoksi - Galeri sayfası
 */

.pe-gallery-page {
	background: #0a1118;
}

.pe-gallery-page .pe-gallery-section {
	padding: 56px 0 72px;
}

/* Filtre bar */
.pe-gallery-page .pe-gallery-filters {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 6px;
	flex-wrap: wrap;
	background: #121a24;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	padding: 10px 12px;
	margin-bottom: 32px;
}

.pe-gallery-page .pe-gallery-filter {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	background: transparent;
	border: none;
	border-radius: 8px;
	color: rgba(255, 255, 255, 0.78);
	font-family: var(--pe-font);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease;
}

.pe-gallery-page .pe-gallery-filter .pe-icon {
	display: inline-flex;
	color: rgba(255, 255, 255, 0.72);
}

.pe-gallery-page .pe-gallery-filter .pe-icon svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
}

.pe-gallery-page .pe-gallery-filter.is-active,
.pe-gallery-page .pe-gallery-filter:hover {
	background: #ff6600;
	color: #ffffff;
}

.pe-gallery-page .pe-gallery-filter.is-active .pe-icon,
.pe-gallery-page .pe-gallery-filter:hover .pe-icon {
	color: #ffffff;
}

/* Galeri grid */
.pe-gallery-page .pe-gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.pe-gallery-page .pe-gallery-card {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	text-align: left;
	color: inherit;
	aspect-ratio: 4 / 3;
	background: #121a24;
	border: 1px solid rgba(255, 255, 255, 0.08);
	cursor: pointer;
	font-family: inherit;
	transition: border-color 0.25s ease, transform 0.25s ease;
}

.pe-gallery-page .pe-gallery-card:hover {
	border-color: rgba(255, 102, 0, 0.35);
	transform: translateY(-2px);
}

.pe-gallery-page .pe-gallery-card.is-hidden {
	display: none;
}

.pe-gallery-page .pe-gallery-card__img {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-color: #1a2330;
	transition: transform 0.4s ease;
}

.pe-gallery-page .pe-gallery-card:hover .pe-gallery-card__img {
	transform: scale(1.04);
}

.pe-gallery-page .pe-gallery-card__overlay {
	position: absolute;
	inset: auto 0 0;
	display: flex;
	flex-direction: row;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	padding: 52px 18px 18px;
	background: linear-gradient(180deg, rgba(6, 10, 16, 0) 0%, rgba(6, 10, 16, 0.55) 38%, rgba(6, 10, 16, 0.92) 100%);
}

.pe-gallery-page .pe-gallery-card__text {
	min-width: 0;
	flex: 1;
	text-align: left;
}

.pe-gallery-page .pe-gallery-card h3 {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	color: #ffffff;
}

.pe-gallery-page .pe-gallery-card__cat {
	display: block;
	font-size: 12px;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.58);
}

.pe-gallery-page .pe-gallery-card__arrow {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	color: #ff6600;
	position: static;
}

.pe-gallery-page .pe-gallery-card__arrow svg {
	width: 16px;
	height: 16px;
	stroke: #ff6600;
}

/* CTA */
.pe-gallery-page .pe-cta-bar {
	background: #0a1118;
	border-top: none;
	padding: 0 0 72px;
}

.pe-gallery-page .pe-cta-bar__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) auto;
	gap: 36px;
	align-items: center;
	background: #121a24;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 14px;
	padding: 36px 40px;
}

.pe-gallery-page .pe-cta-bar__text h2 {
	margin: 0 0 10px;
	font-size: clamp(18px, 2vw, 22px);
	font-weight: 700;
	line-height: 1.35;
	color: #ffffff;
}

.pe-gallery-page .pe-cta-bar__text p {
	margin: 0;
	font-size: 13px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.58);
}

.pe-gallery-page .pe-cta-bar__features {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.pe-gallery-page .pe-cta-bar__feature {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-width: 0;
	text-align: left;
}

.pe-gallery-page .pe-cta-bar__feature .pe-icon {
	flex-shrink: 0;
	display: inline-flex;
	color: #ff6600;
	position: static;
}

.pe-gallery-page .pe-cta-bar__feature .pe-icon svg {
	width: 22px;
	height: 22px;
	stroke: #ff6600;
}

.pe-gallery-page .pe-cta-bar__feature strong {
	display: block;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
	color: #ffffff;
	margin-bottom: 2px;
}

.pe-gallery-page .pe-cta-bar__feature span {
	display: block;
	font-size: 11px;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.55);
}

.pe-gallery-page .pe-cta-bar .pe-btn--primary {
	white-space: nowrap;
	background: #ff6600 !important;
	border: none;
	border-radius: 8px;
	padding: 14px 28px;
	font-size: 14px;
	font-weight: 600;
}

/* Responsive */
@media (max-width: 1200px) {
	.pe-gallery-page .pe-cta-bar__inner {
		grid-template-columns: 1fr 1fr;
	}

	.pe-gallery-page .pe-cta-bar .pe-btn--primary {
		grid-column: 1 / -1;
		justify-self: start;
	}
}

@media (max-width: 992px) {
	.pe-gallery-page .pe-gallery-section {
		padding: 48px 0 64px;
	}

	.pe-gallery-page .pe-gallery-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}

	.pe-gallery-page .pe-cta-bar__inner {
		grid-template-columns: 1fr;
		gap: 24px;
		padding: 28px 24px;
	}

	.pe-gallery-page .pe-cta-bar__features {
		grid-template-columns: 1fr;
		gap: 14px;
	}
}

@media (max-width: 576px) {
	.pe-gallery-page .pe-gallery-section {
		padding: 40px 0 56px;
	}

	.pe-gallery-page .pe-gallery-filters {
		flex-wrap: nowrap;
		overflow-x: auto;
		margin-bottom: 24px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.pe-gallery-page .pe-gallery-filters::-webkit-scrollbar {
		display: none;
	}

	.pe-gallery-page .pe-gallery-filter {
		flex-shrink: 0;
	}

	.pe-gallery-page .pe-gallery-grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.pe-gallery-page .pe-cta-bar {
		padding-bottom: 56px;
	}

	.pe-gallery-page .pe-cta-bar__inner {
		padding: 24px 20px;
	}

	.pe-gallery-page .pe-cta-bar .pe-btn--primary {
		width: 100%;
		justify-content: center;
	}
}

/* Lightbox */
.pe-gallery-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.pe-gallery-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.pe-gallery-lightbox[hidden] {
	display: flex;
}

.pe-gallery-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(6, 10, 16, 0.92);
}

.pe-gallery-lightbox__dialog {
	position: relative;
	z-index: 1;
	width: min(960px, 100%);
	max-height: calc(100vh - 48px);
	display: flex;
	flex-direction: column;
	align-items: center;
}

.pe-gallery-lightbox__media {
	position: relative;
	width: 100%;
	line-height: 0;
}

.pe-gallery-lightbox__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(6, 10, 16, 0.72);
	color: #ff6600;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
	font: inherit;
	line-height: 1;
	transition: background 0.25s ease, transform 0.25s ease;
}

.pe-gallery-lightbox__close:hover,
.pe-gallery-lightbox__close:focus {
	background: rgba(6, 10, 16, 0.9);
	outline: none;
	transform: scale(1.05);
}

.pe-gallery-lightbox__close:focus-visible {
	outline: 2px solid #ff6600;
	outline-offset: 2px;
}

.pe-gallery-lightbox__close-icon {
	display: block;
	font-size: 30px;
	font-weight: 400;
	line-height: 1;
	color: #ff6600;
	transform: translateY(-1px);
}

.pe-gallery-lightbox__img {
	display: block;
	width: 100%;
	max-height: calc(100vh - 140px);
	object-fit: contain;
	border-radius: 12px;
	background: #121a24;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.pe-gallery-lightbox__caption {
	width: 100%;
	margin-top: 16px;
	text-align: center;
}

.pe-gallery-lightbox__title {
	display: block;
	font-size: 16px;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 4px;
}

.pe-gallery-lightbox__cat {
	display: block;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.58);
}

body.pe-gallery-lb-open {
	overflow: hidden;
}

@media (max-width: 576px) {
	.pe-gallery-lightbox {
		padding: 16px;
	}

	.pe-gallery-lightbox__close {
		top: 10px;
		right: 10px;
		width: 36px;
		height: 36px;
	}

	.pe-gallery-lightbox__close-icon {
		font-size: 26px;
	}
}
