/* Pyvot Gallery – front end */
.pvg { --pvg-cols: 3; --pvg-gap: 15px; --pvg-accent: #1a1a1a; display: block; width: 100%; min-width: 0; max-width: 100%; flex: 1 1 100%; align-self: stretch; box-sizing: border-box; clear: both; }
.pvg *, .pvg *::before, .pvg *::after { box-sizing: border-box; }

/* Filter tabs */
.pvg-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 2.25rem; margin: 0 0 2.5rem; padding: 0; }
.pvg .pvg-filters .pvg-filter {
	appearance: none; -webkit-appearance: none;
	background: none !important; border: 0 !important; border-radius: 0; box-shadow: none !important; outline-offset: 4px;
	margin: 0; padding: .25em 0; width: auto; height: auto; min-height: 0;
	font-family: inherit !important; font-weight: 500 !important; font-size: 24px !important; line-height: 1.3 !important; letter-spacing: normal !important; text-transform: none !important;
	color: #000000 !important; cursor: pointer;
	text-decoration: none !important;
}
.pvg .pvg-filters .pvg-filter:hover, .pvg .pvg-filters .pvg-filter:focus, .pvg .pvg-filters .pvg-filter:focus-visible, .pvg .pvg-filters .pvg-filter.is-active { text-decoration: none !important; background: none !important; color: #000000 !important; }
.pvg .pvg-filters .pvg-filter:focus-visible { outline: 2px solid #000; outline-offset: 4px; }
.pvg .pvg-filters .pvg-filter:hover, .pvg .pvg-filters .pvg-filter.is-active, .pvg .pvg-filters .pvg-filter.is-active:hover { color: #f58022 !important; }

/* Grid (JS builds .pvg-col columns; before JS runs, fall back to a plain CSS grid) */
.pvg-grid { display: flex; align-items: flex-start; gap: var(--pvg-gap); width: 100%; }
.pvg:not(.pvg-ready) .pvg-grid { display: grid; grid-template-columns: repeat(var(--pvg-cols), 1fr); align-items: start; }
/* No-JS / failed-JS fallback must not rely on CSS variables (some builders strip them) */
.pvg[data-pvg-columns="2"]:not(.pvg-ready) .pvg-grid { grid-template-columns: repeat(2, 1fr); }
.pvg[data-pvg-columns="3"]:not(.pvg-ready) .pvg-grid { grid-template-columns: repeat(3, 1fr); }
.pvg[data-pvg-columns="4"]:not(.pvg-ready) .pvg-grid { grid-template-columns: repeat(4, 1fr); }
.pvg[data-pvg-columns="5"]:not(.pvg-ready) .pvg-grid { grid-template-columns: repeat(5, 1fr); }
.pvg:not(.pvg-ready) .pvg-grid { gap: 15px; }
.pvg-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--pvg-gap); }
.pvg-pool { display: none !important; }

.pvg-item { display: block; position: relative; overflow: hidden; background: #e9e9e9; aspect-ratio: var(--pvg-ratio, 1.5); text-decoration: none; cursor: zoom-in; outline-offset: 3px; }
.pvg-item--video { cursor: pointer; }
.pvg-item .pvg-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; margin: 0; border: 0; border-radius: 0; transition: transform .45s ease; }
.pvg-item:hover .pvg-img, .pvg-item:focus-visible .pvg-img { transform: scale(1.04); }

.pvg-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(0, 0, 0, .65); transition: background .2s, transform .2s; }
.pvg-play::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -11px 0 0 -7px; border-style: solid; border-width: 11px 0 11px 19px; border-color: transparent transparent transparent #fff; }
.pvg-item--video:hover .pvg-play, .pvg-item--video:focus-visible .pvg-play { background: var(--pvg-accent); transform: scale(1.08); }

@keyframes pvg-fade-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.pvg-item.pvg-in { animation: pvg-fade-in .5s ease both; }

/* See More */
.pvg-more-wrap { text-align: center; margin-top: 2.5rem; }
.pvg-more-wrap[hidden] { display: none; }
.pvg .pvg-more {
	appearance: none; -webkit-appearance: none; cursor: pointer;
	background: transparent; color: var(--pvg-accent);
	border: 2px solid var(--pvg-accent); border-radius: 0; box-shadow: none;
	padding: .85em 2.6em; font: inherit; font-weight: 600; font-size: 1em; line-height: 1.2; letter-spacing: .04em; text-transform: uppercase;
	transition: background .2s, color .2s;
}
.pvg .pvg-more:hover, .pvg .pvg-more:focus-visible { background: var(--pvg-accent); color: #fff; }

.pvg-notice { padding: 12px 16px; background: #fff8e5; border-left: 4px solid #dba617; }

/* Lightbox */
html.pvg-lb-open { overflow: hidden; }
.pvg-lb { position: fixed; inset: 0; z-index: 999999; background: rgba(0, 0, 0, .92); display: flex; align-items: center; justify-content: center; }
.pvg-lb[hidden] { display: none; }
.pvg-lb-stage { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 56px 72px 64px; }
.pvg-lb-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.pvg-lb-video { width: min(100%, calc((100vh - 130px) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; }
.pvg-lb-mp4 { max-width: 100%; max-height: 100%; width: auto; height: auto; background: #000; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.pvg-item--nothumb { background: #1a1a1a; }
.pvg-lb-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.pvg-lb .pvg-lb-btn { position: absolute; appearance: none; -webkit-appearance: none; background: rgba(255, 255, 255, .12); color: #fff; border: 0; border-radius: 50%; width: 46px; height: 46px; padding: 0; font-size: 30px; line-height: 46px; text-align: center; cursor: pointer; box-shadow: none; transition: background .2s; }
.pvg-lb .pvg-lb-btn:hover, .pvg-lb .pvg-lb-btn:focus-visible { background: rgba(255, 255, 255, .3); color: #fff; }
.pvg-lb-btn[hidden] { display: none; }
.pvg-lb-close { top: 12px; right: 14px; }
.pvg-lb-prev { left: 14px; top: 50%; margin-top: -23px; }
.pvg-lb-next { right: 14px; top: 50%; margin-top: -23px; }
.pvg-lb-meta { position: absolute; left: 0; right: 0; bottom: 14px; padding: 0 72px; display: flex; justify-content: space-between; gap: 16px; color: #fff; font-size: 14px; pointer-events: none; }
.pvg-lb-caption { flex: 1; }
.pvg-lb-count { opacity: .75; white-space: nowrap; }

@media (max-width: 600px) {
	.pvg-filters { gap: .4rem 1.25rem; margin-bottom: 1.75rem; }
	.pvg .pvg-filters .pvg-filter { font-size: 18px !important; }
	.pvg-lb-stage { padding: 56px 12px 64px; }
	.pvg-lb-meta { padding: 0 16px; }
	.pvg-lb-prev { left: 6px; top: auto; bottom: 8px; margin-top: 0; }
	.pvg-lb-next { right: 6px; top: auto; bottom: 8px; margin-top: 0; }
	.pvg-lb-meta { bottom: 20px; justify-content: center; text-align: center; padding: 0 64px; }
	.pvg-lb-count { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.pvg-item .pvg-img, .pvg-play { transition: none; }
	.pvg-item.pvg-in { animation: none; }
}
