/* ==========================================================================
   Votive Portfolio – front-end styles
   Everything is scoped under .vp-wrap so it can sit inside any theme.
   ========================================================================== */

:root {
	--vp-accent: #ff5a36;
	--vp-ink: #fff;
	--vp-dark: #0e1021;
	--vp-text: #4b4f62;
	--vp-muted: #8a8fa3;
	--vp-line: #e7e8ef;
	--vp-soft: #f6f6fa;
	--vp-radius: 18px;
	--vp-gap: 30px;
	--vp-ease: cubic-bezier(.22, .8, .24, 1);
}

/* ---------- Theme-proofing resets ---------- */
.vp-wrap,
.vp-wrap *,
.vp-wrap *::before,
.vp-wrap *::after { box-sizing: border-box; }
.vp-wrap { width: 100%; color: var(--vp-text); line-height: 1.7; font-size: 16px; }
.vp-wrap a,
.vp-wrap a:hover,
.vp-wrap a:focus { text-decoration: none !important; box-shadow: none !important; border-bottom: 0 !important; }
.vp-wrap img { max-width: 100%; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.vp-wrap ul { list-style: none; margin: 0; padding: 0; }
.vp-wrap li { margin: 0; padding: 0; }
.vp-wrap article,
.vp-wrap figure,
.vp-wrap section,
.vp-wrap header,
.vp-wrap aside,
.vp-wrap nav { margin: 0; padding: 0; border: 0; }
.vp-wrap h1,
.vp-wrap h2,
.vp-wrap h3 {
	margin: 0; padding: 0; border: 0; clear: none; text-transform: none;
	color: var(--vp-dark); font-weight: 700; line-height: 1.2; letter-spacing: -.01em;
}
.vp-wrap .vp-filter { margin-top: 35px; margin-bottom: 35px; }
.vp-wrap h1::before, .vp-wrap h1::after,
.vp-wrap h2::before, .vp-wrap h2::after,
.vp-wrap h3::before, .vp-wrap h3::after { content: none; }
.vp-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.vp-section { margin: 0 0 90px; }
.vp-empty { text-align: center; padding: 60px 0; }
.vp-gallery-sec {
    margin-bottom: 50px !important;
}

/* ---------- Reveal on scroll ---------- */
.vp-js .vp-reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s var(--vp-ease); }
.vp-js .vp-reveal.is-in { opacity: 1; transform: none; }
.vp-item[hidden] { display: none !important; }
.vp-js .vp-item.is-out { opacity: 0; transform: scale(.92); }

/* ---------- Eyebrow / headings ---------- */
.vp-wrap .vp-eyebrow {
	display: inline-block; position: relative; padding-left: 36px;
	font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--vp-accent);
}
.vp-wrap .vp-eyebrow::before {
	content: ""; position: absolute; left: 0; top: 50%; width: 26px; height: 2px; background: currentColor;
}
.vp-wrap .vp-eyebrow--light { color: #fff; opacity: .85; }
.vp-wrap .vp-sec-head { margin: 0 0 40px; }
.vp-wrap .vp-sec-head--center { text-align: center; }
.vp-wrap .vp-sec-title { font-size: clamp(26px, 3.4vw, 40px); margin-top: 10px; }

/* ---------- Hero ---------- */
.vp-wrap .vp-hero { display: none;
	position: relative; overflow: hidden; text-align: center; color: #fff;
	background: var(--vp-dark); border-radius: var(--vp-radius);
	padding: 90px 30px; margin: 0 0 60px;
}
.vp-wrap .vp-hero::before,
.vp-wrap .vp-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.vp-wrap .vp-hero::before {
	width: 440px; height: 440px; top: -200px; right: -120px; opacity: .38;
	background: radial-gradient(circle, var(--vp-accent) 0, transparent 68%);
	animation: vp-float 9s ease-in-out infinite;
}
.vp-wrap .vp-hero::after {
	width: 380px; height: 380px; bottom: -220px; left: -120px; opacity: .22;
	background: radial-gradient(circle, #5b6cff 0, transparent 68%);
	animation: vp-float 11s ease-in-out infinite reverse;
}
.vp-wrap .vp-hero > * { position: relative; z-index: 1; }
.vp-wrap .vp-hero__title { color: #fff; font-size: clamp(32px, 5vw, 58px); margin: 16px 0 0; }
.vp-wrap .vp-hero__desc { max-width: 620px; margin: 18px auto 0; color: rgba(255, 255, 255, .78); }
.vp-wrap .vp-hero__desc p { margin: 0; }
.vp-wrap .vp-hero__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin-top: 22px; font-size: 15px; color: rgba(255, 255, 255, .78); }
.vp-wrap .vp-hero__meta span { position: relative; }
.vp-wrap .vp-hero__meta span + span::before {
	content: ""; position: absolute; left: -15px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px;
	border-radius: 50%; background: var(--vp-accent);
}
.vp-wrap .vp-crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, .6); }
.vp-wrap .vp-crumbs a { color: #fff; opacity: .8; transition: opacity .3s, color .3s; }
.vp-wrap .vp-crumbs a:hover { opacity: 1; color: var(--vp-accent); }
@keyframes vp-float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-34px, 26px); } }

/* ---------- Filter tabs ---------- */
.vp-wrap .vp-filter { 40px 0 20px 0px; }
.vp-wrap .vp-filter__btn {
	position: relative; isolation: isolate; overflow: hidden; cursor: pointer;
	display: inline-block; margin: 0; padding: 11px 26px; border-radius: 50px;
	font: inherit; font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: 0; text-transform: none; text-shadow: none;
	background: #fff; color: var(--vp-dark); border: 1px solid var(--vp-line) !important; box-shadow: none;
	transition: color .35s ease, border-color .35s ease, transform .35s var(--vp-ease);
}
.vp-wrap .vp-filter__btn::before {
	content: ""; position: absolute; inset: 0; z-index: -1; background: var(--vp-accent);
	transform: translateY(101%); transition: transform .4s var(--vp-ease);
}
.vp-wrap .vp-filter__btn:hover,
.vp-wrap .vp-filter__btn:focus,
.vp-wrap .vp-filter__btn.is-active { background: #fff; color: var(--vp-ink); border-color: var(--vp-accent) !important; }
.vp-wrap .vp-filter__btn:hover { transform: translateY(-2px); }
.vp-wrap .vp-filter__btn:hover::before,
.vp-wrap .vp-filter__btn:focus::before,
.vp-wrap .vp-filter__btn.is-active::before { transform: translateY(0); }

/* ---------- Grid ---------- */
.vp-wrap .vp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--vp-gap); }
.vp-wrap .vp-grid.vp-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vp-wrap .vp-grid.vp-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vp-wrap .vp-item { transition: opacity .45s ease, transform .45s var(--vp-ease); }

/* ---------- Portfolio card + hover effects ---------- */
.vp-wrap .vp-card {
	position: relative; display: block; overflow: hidden; isolation: isolate;
	border-radius: var(--vp-radius); background: var(--vp-dark); color: #fff;
	transform: translateZ(0); transition: box-shadow .5s ease, transform .5s var(--vp-ease);
}
.vp-wrap .vp-card:hover,
.vp-wrap .vp-card:focus-visible { color: #fff; box-shadow: 0 30px 60px -20px rgba(14, 16, 33, .55); transform: translateY(-6px); }
.vp-wrap .vp-card__media { display: block; position: relative; overflow: hidden; aspect-ratio: 7 / 4.7; }
.vp-wrap .vp-card__media img {
	position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover;
	transform: scale(1.001); transition: transform 1.1s var(--vp-ease), filter .6s ease;
}
.vp-wrap .vp-card__ph { position: absolute; inset: 0; background: linear-gradient(135deg, #2a2e57, #0e1021); }
.vp-wrap .vp-card:is(:hover, :focus-visible) .vp-card__media img { transform: scale(1.05) rotate(0deg); }

.vp-wrap .vp-card__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.9) 100%);; }
.vp-wrap .vp-card__shade::after {
	content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .55s ease;
	background: linear-gradient(180deg, transparent 20%, #000000 190%);
}
.vp-wrap .vp-card:is(:hover, :focus-visible) .vp-card__shade::after { opacity: .6; }

.vp-wrap .vp-card__content { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 30px 30px 28px; }
.vp-wrap .vp-card__cat {
	display: inline-block; margin: 0 0 12px; padding: 6px 14px; border-radius: 40px;
	font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff;
	background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	transition: background .4s ease, color .4s ease;
}
.vp-wrap .vp-card:is(:hover, :focus-visible) .vp-card__cat { background: var(--vp-accent); color: var(--vp-ink); }
.vp-wrap .vp-card__title { color: #fff; font-size: 21px; line-height: 1.25; margin: 0; }
.vp-wrap .vp-card__excerpt {
	display: none; max-height: 0; opacity: 0; overflow: hidden; margin-top: 0;
	font-size: 14px; line-height: 1.6; color: #fff;
	transition: max-height .6s var(--vp-ease), opacity .45s ease .05s, margin .45s ease;
}
.vp-wrap .vp-card:is(:hover, :focus-visible) .vp-card__excerpt { max-height: 72px; opacity: 1; margin-top: 10px; line-height: 20px; }
.vp-wrap .vp-card__line { display: block; height: 2px; width: 44px; margin-top: 16px; border-radius: 3px; background: var(--vp-accent); transition: width .6s var(--vp-ease), background .4s; }
.vp-wrap .vp-card:is(:hover, :focus-visible) .vp-card__line { width: 100%; background: #fff; }

.vp-wrap .vp-card__arrow {
	position: absolute; top: 22px; right: 22px; z-index: 3; width: 42px; height: 42px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; background: var(--vp-accent); color: var(--vp-ink);
	opacity: 0; transform: scale(.3) rotate(-90deg); transition: opacity .4s ease, transform .6s var(--vp-ease);
}
.vp-wrap .vp-card__arrow svg { transform: rotate(-45deg); transition: transform .5s var(--vp-ease); }
.vp-wrap .vp-card:is(:hover, :focus-visible) .vp-card__arrow { opacity: 1; transform: scale(1) rotate(0); }
.vp-wrap .vp-card:is(:hover, :focus-visible) .vp-card__arrow svg { transform: rotate(0); }

@media (hover: none) {
	.vp-wrap .vp-card__arrow { opacity: 1; transform: none; width: 44px; height: 44px; top: 16px; right: 16px; }
	.vp-wrap .vp-card__arrow svg { transform: rotate(-45deg); }
	.vp-wrap .vp-card__excerpt { display: none; }
}

/* ---------- Pagination ---------- */
.vp-wrap .vp-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 60px; }
.vp-wrap .vp-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 46px; padding: 0 14px;
	border-radius: 50px; border: 1px solid var(--vp-line) !important; color: var(--vp-dark); font-weight: 600; background: #fff;
	transition: background .3s, color .3s, transform .3s var(--vp-ease);
}
.vp-wrap .vp-pagination a.page-numbers:hover { background: var(--vp-accent); color: var(--vp-ink); border-color: var(--vp-accent) !important; transform: translateY(-3px); }
.vp-wrap .vp-pagination .page-numbers.current { background: var(--vp-dark); color: #fff; border-color: var(--vp-dark) !important; }

/* ---------- Single: featured image ---------- */
.vp-wrap .vp-featured { position: relative; overflow: hidden; margin: 50px 0 50px 0px; border-radius: var(--vp-radius); background: var(--vp-soft); }
.vp-wrap .vp-featured img { display: block; width: 100%; max-height: 720px; object-fit: cover; transition: transform 1.4s var(--vp-ease); }
.vp-wrap .vp-featured:hover img { transform: scale(1.04); }

/* ---------- Single: gallery grid ---------- */
.vp-wrap .vp-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.vp-wrap .vp-gallery__item { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 3; border-radius: 14px; background: var(--vp-soft); cursor: zoom-in; }
.vp-wrap .vp-gallery__item img { width: 100% !important; height: 100% !important; object-fit: cover; transition: transform .9s var(--vp-ease), filter .5s ease; }
.vp-wrap .vp-gallery__item::after {
	content: ""; position: absolute; inset: 14px; border: 2px solid rgba(255, 255, 255, .9); border-radius: 8px;
	opacity: 0; transform: scale(1.14); transition: opacity .5s ease, transform .6s var(--vp-ease); pointer-events: none;
}
.vp-wrap .vp-gallery__zoom {
	position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -25px 0 0 -25px; z-index: 2;
	display: flex; align-items: center; justify-content: center; border-radius: 50%;
	background: var(--vp-accent); color: var(--vp-ink); transform: scale(0) rotate(-90deg); transition: transform .55s var(--vp-ease);
}
.vp-wrap .vp-gallery__item:hover img { transform: scale(1.1); filter: brightness(.7); }
.vp-wrap .vp-gallery__item:hover::after { opacity: 1; transform: scale(1); }
.vp-wrap .vp-gallery__item:hover .vp-gallery__zoom { transform: scale(1) rotate(0); }

/* ---------- Single: details ---------- */
.vp-wrap .vp-details__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 60px; align-items: start; }
.vp-wrap .vp-prose { margin-top: 26px; font-size: 17px; }
.vp-wrap .vp-prose > *:first-child { margin-top: 0; }
.vp-wrap .vp-prose p { margin: 0 0 1.3em; }
.vp-wrap .vp-prose h2,
.vp-wrap .vp-prose h3,
.vp-wrap .vp-prose h4 { margin: 1.6em 0 .6em; color: var(--vp-dark); }
.vp-wrap .vp-prose ul { list-style: disc; margin: 0 0 1.3em; padding-left: 1.4em; }
.vp-wrap .vp-prose ol { list-style: decimal; margin: 0 0 1.3em; padding-left: 1.4em; }
.vp-wrap .vp-prose li { margin: 0 0 .4em; }
.vp-wrap .vp-prose img { border-radius: 12px; }
.vp-wrap .vp-prose a { color: var(--vp-accent); border-bottom: 1px solid currentColor !important; }

.vp-wrap .vp-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 34px; padding-top: 30px; padding-bottom: 30px; border-top: 1px solid var(--vp-line); }
.vp-wrap .vp-tags__label { font-weight: 700; color: var(--vp-dark); margin-right: 6px; }
.vp-wrap .vp-tag {
	display: inline-block; padding: 7px 18px; border-radius: 40px; font-size: 14px; color: var(--vp-text);
	border: 1px solid var(--vp-line) !important; background: #fff; transition: background .3s, color .3s, transform .3s var(--vp-ease), border-color .3s;
}
.vp-wrap .vp-tag:hover { background: var(--vp-accent); color: var(--vp-ink); border-color: var(--vp-accent) !important; transform: translateY(-3px); }

.vp-wrap .vp-info { position: sticky; top: 40px; padding: 34px; border-radius: var(--vp-radius); background: var(--vp-soft); border-top: 4px solid var(--vp-accent); margin-bottom: 35px; }
.vp-wrap .vp-info__title { font-size: 22px; margin: 0 0 12px; }
.vp-wrap .vp-info__list li { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px dashed #d6d8e4; }
.vp-wrap .vp-info__k { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--vp-muted); }
.vp-wrap .vp-info__v { text-align: right; font-weight: 600; color: var(--vp-dark); }
.vp-wrap .vp-info__v a { color: var(--vp-dark); transition: color .3s; }
.vp-wrap .vp-info__v a:hover { color: var(--vp-accent); }

.vp-wrap .vp-btn {
	display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 26px; padding: 16px 28px; border-radius: 50px;
	font-weight: 700; background: var(--vp-accent); color: var(--vp-ink) !important; transition: background .35s, transform .35s var(--vp-ease);
}
.vp-wrap .vp-btn svg { width: 20px; height: 20px; transition: transform .35s var(--vp-ease); }
.vp-wrap .vp-btn:hover { background: var(--vp-dark); color: #fff !important; transform: translateY(-3px); }
.vp-wrap .vp-btn:hover svg { transform: translateX(6px); }

.vp-wrap .vp-share { display: flex; align-items: center; gap: 10px; margin-top: 26px; }
.vp-wrap .vp-share span { font-weight: 700; color: var(--vp-dark); margin-right: 4px; }
.vp-wrap .vp-share a {
	display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%;
	font-size: 14px; font-weight: 700; color: var(--vp-dark); background: #fff; border: 1px solid var(--vp-line) !important;
	transition: background .3s, color .3s, transform .3s var(--vp-ease);
}
.vp-wrap .vp-share a:hover { background: var(--vp-accent); color: var(--vp-ink); transform: translateY(-3px) rotate(8deg); }

/* ---------- Single: prev / next ---------- */
.vp-wrap .vp-nav { display: flex; justify-content: space-between; gap: 20px; margin: 0 0 90px; padding: 28px 0; border-top: 1px solid var(--vp-line); border-bottom: 1px solid var(--vp-line); }
.vp-wrap .vp-nav__item { display: block; max-width: 48%; color: var(--vp-dark); transition: color .3s, transform .4s var(--vp-ease); }
.vp-wrap .vp-nav__item small { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--vp-muted); }
.vp-wrap .vp-nav__item strong { display: block; font-size: 19px; margin-top: 4px; }
.vp-wrap .vp-nav__item--next { margin-left: auto; text-align: right; }
.vp-wrap .vp-nav__item:hover { color: var(--vp-accent); }
.vp-wrap .vp-nav__item--prev:hover { transform: translateX(-6px); }
.vp-wrap .vp-nav__item--next:hover { transform: translateX(6px); }
.vp-section.vp-related {
    margin-bottom: 60px;
}
/* ---------- Lightbox (appended to <body>) ---------- */
body.vp-lb-open { overflow: hidden; }
.vp-lb {
	position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center;
	background: rgba(8, 9, 20, .94); opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s ease;
}
.vp-lb.is-open { opacity: 1; visibility: visible; }
.vp-lb .vp-lb__fig { margin: 0; max-width: 86vw; text-align: center; }
.vp-lb .vp-lb__fig img { display: block; margin: 0 auto; max-width: 86vw; max-height: 80vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); transform: scale(.94); transition: transform .5s ease; }
.vp-lb.is-open .vp-lb__fig img { transform: none; }
.vp-lb .vp-lb__fig figcaption { margin-top: 14px; font-size: 15px; color: #cfd2e3; }
.vp-lb .vp-lb__x,
.vp-lb .vp-lb__nav {
	position: absolute; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; padding: 0; margin: 0;
	border: 0 !important; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; box-shadow: none;
	background: rgba(255, 255, 255, .12) !important; color: #fff !important; transition: background .3s ease, transform .3s ease;
}
.vp-lb .vp-lb__x:hover,
.vp-lb .vp-lb__nav:hover { background: var(--vp-accent) !important; color: var(--vp-ink) !important; transform: scale(1.08); }
.vp-lb .vp-lb__x { top: 24px; right: 24px; }
.vp-lb .vp-lb__prev { left: 24px; top: 50%; margin-top: -26px; }
.vp-lb .vp-lb__next { right: 24px; top: 50%; margin-top: -26px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.vp-wrap .vp-grid.vp-cols-3,
	.vp-wrap .vp-grid.vp-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.vp-wrap .vp-details__grid { grid-template-columns: 1fr; gap: 40px; }
	.vp-wrap .vp-info { position: static; }
}
@media (max-width: 767px) {
	.vp-section { margin-bottom: 60px; }
	.vp-wrap .vp-hero { padding: 60px 20px; margin-bottom: 40px; }
	.vp-wrap .vp-featured { margin-bottom: 60px; }
	.vp-wrap .vp-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.vp-wrap .vp-nav { flex-direction: column; }
	.vp-wrap .vp-nav__item { max-width: 100%; }
	.vp-wrap .vp-nav__item--next { margin-left: 0; text-align: left; }
}
@media (max-width: 600px) {
	.vp-wrap .vp-grid,
	.vp-wrap .vp-grid.vp-cols-2,
	.vp-wrap .vp-grid.vp-cols-3,
	.vp-wrap .vp-grid.vp-cols-4 { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
	.vp-wrap .vp-gallery { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.vp-wrap *, .vp-wrap *::before, .vp-wrap *::after { transition: none !important; animation: none !important; }
	.vp-js .vp-reveal { opacity: 1; transform: none; }
}