/* Approved Gallery layout. Scoped to this archive; shared header/footer stay native. */
#vd-gallery-site{--vd-bg:#131618;--vd-panel:#1b2328;--vd-text:#f4f6f7;--vd-muted:#a6b3bc;--vd-line:#34424c;--vd-accent:#83c7f3;background:var(--vd-bg);color:#fff;font-family:Montserrat,sans-serif;font-size:16px;font-weight:400;line-height:normal;min-width:0;}
#vd-gallery-site *,#vd-gallery-site *::before,#vd-gallery-site *::after{box-sizing:border-box;}
#vd-gallery-site :is(h1,h2,p){font-family:inherit;margin:0;}
#vd-gallery-site button,#vd-gallery-site a{font-family:inherit;}
#vd-gallery-site button{color:inherit;cursor:pointer;}
#vd-gallery-site button:disabled{opacity:.35;cursor:default;}
#vd-gallery-site a{color:inherit;text-decoration:none;}
#vd-gallery-site .vd-main{max-width:1200px;margin:0 auto;padding:140px 32px 0;}
#vd-gallery-site .vd-eyebrow{font-size:12px;font-weight:700;letter-spacing:.18em;line-height:1.4;color:var(--vd-accent);text-transform:uppercase;}
#vd-gallery-site .vd-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2.1fr);gap:34px;align-items:center;padding:32px 0 36px;}
#vd-gallery-site .vd-copy{min-width:0;display:flex;flex-direction:column;align-items:flex-start;}
#vd-gallery-site .vd-copy h2{font-size:40px;font-weight:900;line-height:1;letter-spacing:-.01em;margin:0 0 24px;overflow-wrap:break-word;}
#vd-gallery-site .vd-description{font-size:clamp(16px,1.6vw,19px);font-weight:400;line-height:1.85;letter-spacing:0;color:var(--vd-muted);max-width:100%;}
#vd-gallery-site .vd-copy .vd-project-link{display:inline-flex;align-items:center;justify-content:space-between;width:100%;min-height:42px;padding:0;margin-top:34px;border:0;border-radius:0;gap:18px;font-size:12px;font-weight:700;line-height:1.4;letter-spacing:.08em;color:#fff;text-transform:uppercase;background:transparent;}
#vd-gallery-site .vd-arrow{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:42px;height:42px;padding:0;border:1px solid rgba(255,255,255,.18);border-radius:50%;background:rgba(255,255,255,.035);font-size:17px;color:#fff;}
#vd-gallery-site .vd-arrow:hover{border-color:#418cca;background:#418cca;}
#vd-gallery-site .vd-pagination{display:flex;align-items:center;gap:16px;margin-top:32px;}
#vd-gallery-site .vd-position{font-size:12px;font-weight:400;letter-spacing:0;color:var(--vd-muted);font-variant-numeric:tabular-nums;white-space:nowrap;}
#vd-gallery-site .vd-photo-block{min-width:0;}
#vd-gallery-site .vd-photo{display:block;overflow:hidden;border-radius:5px;background:var(--vd-panel);aspect-ratio:3/2;width:100%;padding:0;border:0;}
#vd-gallery-site .vd-photo img{width:100%;height:100%;display:block;object-fit:cover;}
#vd-gallery-site .vd-photo-foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 16px;margin-top:15px;font-size:13px;font-weight:400;letter-spacing:0;line-height:1.75;color:var(--vd-muted);}
#vd-gallery-site .vd-more{border-top:1px solid var(--vd-line);padding:25px 0 30px;}
#vd-gallery-site .vd-more-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:19px;}
#vd-gallery-site .vd-more h2{font-size:40px;font-weight:900;line-height:1;letter-spacing:-.01em;}
#vd-gallery-site .vd-project-nav{display:flex;align-items:center;gap:10px;flex-shrink:0;}
#vd-gallery-site .vd-project-nav[hidden]{display:none;}
#vd-gallery-site .vd-project-nav .vd-arrow{width:44px;height:44px;}
#vd-gallery-site .vd-grid{--vd-card-gap:20px;display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 2 * var(--vd-card-gap))/3);gap:var(--vd-card-gap);min-width:0;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:none;scroll-behavior:auto;scrollbar-width:thin;scrollbar-color:var(--vd-line) transparent;padding:2px 0 12px;touch-action:auto;}
#vd-gallery-site .vd-card{display:block;text-align:left;background:transparent;padding:0;border:0;min-width:0;user-select:none;}
#vd-gallery-site .vd-card:focus-visible{outline:2px solid var(--vd-accent);outline-offset:-2px;}
@media(hover:hover) and (pointer:fine){#vd-gallery-site .vd-grid .vd-card{cursor:grab;}#vd-gallery-site .vd-grid.is-dragging,#vd-gallery-site .vd-grid.is-dragging .vd-card{cursor:grabbing;}}
#vd-gallery-site .vd-card img{display:block;width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:3px;}
#vd-gallery-site .vd-card-label{display:flex;justify-content:space-between;gap:12px;font-size:18px;font-weight:800;line-height:1.3;letter-spacing:0;margin-top:12px;}
#vd-gallery-site .vd-card:hover .vd-card-label{color:var(--vd-accent);}
#vd-gallery-site .vd-empty{padding:48px 0;line-height:1.85;}
@media(max-width:768px){
 #vd-gallery-site .vd-copy h2,#vd-gallery-site .vd-more h2{font-size:24px;line-height:1.12;letter-spacing:0;}
 #vd-gallery-site .vd-description{font-size:15px;line-height:1.78;}
}
@media(max-width:760px){#vd-gallery-site .vd-main{padding:125px 20px 0;}}
@media(max-width:740px){
 #vd-gallery-site .vd-split{gap:26px;grid-template-columns:minmax(0,1fr) minmax(0,1.65fr);}
 #vd-gallery-site .vd-grid{--vd-card-gap:14px;grid-auto-columns:calc((100% - var(--vd-card-gap))/2);}
}
@media(max-width:540px){
 #vd-gallery-site .vd-split{display:flex;flex-direction:column;align-items:stretch;gap:24px;padding:24px 0 30px;}
 #vd-gallery-site .vd-photo-block{order:-1;}
 #vd-gallery-site .vd-photo-foot{margin-top:10px;}
 #vd-gallery-site .vd-copy{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 10px;align-items:center;}
 #vd-gallery-site .vd-copy h2{grid-column:1 / -1;margin:13px 0 16px;}
 #vd-gallery-site .vd-description{grid-column:1 / -1;}
 #vd-gallery-site .vd-copy .vd-project-link{margin-top:18px;grid-column:1 / -1;justify-self:start;}
 #vd-gallery-site .vd-pagination{margin-top:23px;grid-column:1 / -1;gap:14px;}
 #vd-gallery-site .vd-arrow{width:44px;height:44px;}
 #vd-gallery-site .vd-more{padding-top:23px;}
 #vd-gallery-site .vd-more-heading{align-items:center;gap:12px;}
 #vd-gallery-site .vd-project-nav{gap:6px;}
 #vd-gallery-site .vd-grid{grid-auto-columns:84%;}
 #vd-gallery-site .vd-card-label{font-size:16px;}
}
#vd-gallery-site .vd-copy h2 {
  margin-top: 0;
}
#vd-gallery-site .vd-photo-foot span:only-child {
  color: var(--vd-muted);
}
#vd-gallery-site .vd-gallery-title,
#vd-gallery-site .vd-gallery-about h2 {
  font-family: inherit;
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.01em;
}
#vd-gallery-site .vd-gallery-intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
}
#vd-gallery-site .vd-gallery-about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: start;
  border-top: 1px solid var(--vd-line);
  padding: 64px 0;
}
#vd-gallery-site .vd-about-heading h2 {
  margin-top: 20px;
}
#vd-gallery-site .vd-about-copy {
  min-width: 0;
  max-width: 510px;
  justify-self: end;
}
#vd-gallery-site .vd-about-copy p {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--vd-muted);
}
#vd-gallery-site .vd-about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 28px;
}
#vd-gallery-site .vd-about-links a {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--vd-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--vd-line);
}
#vd-gallery-site .vd-about-links a:hover {
  color: var(--vd-accent);
  border-color: var(--vd-accent);
}
@media(max-width:768px) {
  #vd-gallery-site .vd-gallery-title,
  #vd-gallery-site .vd-gallery-about h2 {
    font-size: 24px;
    line-height: 1.12;
    letter-spacing: normal;
  }
  #vd-gallery-site .vd-gallery-about {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 0;
  }
  #vd-gallery-site .vd-about-heading h2 {
    margin-top: 14px;
  }
  #vd-gallery-site .vd-about-copy {
    justify-self: stretch;
    max-width: none;
  }
  #vd-gallery-site .vd-about-copy p {
    font-size: 15px;
    line-height: 1.85;
  }
}

/* Homepage roles: .vd-home-highlight p and descriptive-text reset. */
#vd-gallery-site .vd-photo-foot {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0;
}
#vd-gallery-site .vd-description,
#vd-gallery-site .vd-about-copy p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  letter-spacing: 0;
}

#vd-gallery-site button[data-project-link] {
  padding:0;
  border:0;
  background:transparent;
  text-align:left;
}
#vd-gallery-site button.vd-photo { width:100%; }
/* The native dialog owns the visible viewport. Its panel uses measured pixel
   bounds: no intrinsic grid tracks or aspect-ratio feedback after rotation. */
#vd-gallery-site .vd-project-modal {
  --vd-safe-top:env(safe-area-inset-top,0px);
  --vd-safe-right:env(safe-area-inset-right,0px);
  --vd-safe-bottom:env(safe-area-inset-bottom,0px);
  --vd-safe-left:env(safe-area-inset-left,0px);
  position:fixed;
  inset:auto;
  top:0;
  left:0;
  width:100vw;
  height:100dvh;
  max-width:none;
  max-height:none;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  box-sizing:border-box;
  overflow:hidden;
  isolation:isolate;
  background:transparent;
  color:#fff;
  font-family:Montserrat,sans-serif;
  font-size:16px;
  font-weight:400;
  line-height:normal;
  box-shadow:none;
}
#vd-gallery-site .vd-project-modal:not([open]) { display:none; }
#vd-gallery-site .vd-project-modal[open] { display:block; }
#vd-gallery-site .vd-project-modal::backdrop {
  background:rgba(7,10,12,.28);
  backdrop-filter:blur(5px);
  -webkit-backdrop-filter:blur(5px);
}
#vd-gallery-site .vd-project-modal * { box-sizing:border-box; }
#vd-gallery-site .vd-modal-panel,
#vd-gallery-site .vd-modal-header,
#vd-gallery-site .vd-modal-stage,
#vd-gallery-site .vd-modal-controls,
#vd-gallery-site .vd-modal-thumbs { position:absolute; margin:0; }
#vd-gallery-site .vd-modal-panel { isolation:isolate; }
#vd-gallery-site .vd-modal-header {
  z-index:3;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 8px;
}
#vd-gallery-site .vd-modal-header h2 {
  margin:0;
  min-width:0;
  max-height:48px;
  overflow:hidden;
  overflow-wrap:anywhere;
  scrollbar-width:thin;
  scrollbar-color:#596e7b transparent;
  font-family:inherit;
  font-size:18px;
  font-weight:800;
  line-height:24px;
  letter-spacing:0;
  text-shadow:0 2px 12px #000b;
}
#vd-gallery-site .vd-modal-close,
#vd-gallery-site .vd-modal-arrow {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 44px;
  width:44px;
  height:44px;
  padding:0;
  border:1px solid #34424c;
  border-radius:50%;
  background:rgba(19,22,24,.86);
  color:#fff;
  font-family:inherit;
  font-size:22px;
  line-height:1;
}
#vd-gallery-site .vd-modal-close { position:relative; z-index:1; font-size:28px; }
#vd-gallery-site .vd-modal-arrow:hover,
#vd-gallery-site .vd-modal-close:hover { background:#418cca; border-color:#418cca; }
#vd-gallery-site .vd-modal-stage {
  z-index:0;
  min-height:0;
  min-width:0;
  background:#131618;
  border-radius:6px;
  overflow:hidden;
  box-shadow:0 12px 40px #0005;
  touch-action:pan-y pinch-zoom;
}
#vd-gallery-site .vd-modal-image {
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  max-width:none;
  max-height:none;
  object-fit:contain;
  user-select:none;
}
#vd-gallery-site .vd-modal-error {
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0;
  padding:24px;
  text-align:center;
  background:#131618;
  font-size:15px;
  font-weight:400;
  line-height:1.85;
}
#vd-gallery-site .vd-modal-error[hidden],
#vd-gallery-site .vd-modal-thumbs[hidden] { display:none; }
#vd-gallery-site .vd-modal-controls {
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:24px;
  padding:10px 0;
}
#vd-gallery-site .vd-modal-counter {
  margin:0;
  min-width:64px;
  text-align:center;
  font-size:12px;
  font-weight:400;
  line-height:normal;
  font-variant-numeric:tabular-nums;
  color:#b9bec2;
  padding:8px 12px;
  border-radius:20px;
  background:rgba(19,22,24,.86);
}
#vd-gallery-site .vd-modal-thumbs {
  z-index:2;
  display:flex;
  align-items:flex-start;
  min-width:0;
  gap:10px;
  padding:3px;
  overflow-x:auto;
  overflow-y:hidden;
  overscroll-behavior-x:contain;
  scrollbar-width:thin;
  scrollbar-color:#596e7b transparent;
}
#vd-gallery-site .vd-modal-thumb {
  display:block;
  width:64px;
  height:52px;
  flex:0 0 64px;
  padding:2px;
  border:2px solid transparent;
  border-radius:5px;
  background:#1b2328;
}
#vd-gallery-site .vd-modal-thumb.is-current { border-color:#78b9ed; }
#vd-gallery-site .vd-modal-thumb img { display:block; width:100%; height:100%; object-fit:cover; border-radius:2px; }
#vd-gallery-site .vd-project-modal.is-small-view .vd-modal-thumbs { gap:6px; }
#vd-gallery-site .vd-project-modal.is-small-view .vd-modal-thumb { width:52px; height:44px; flex-basis:52px; }
#vd-gallery-site .vd-project-modal.is-compact-landscape .vd-modal-header { padding:10px 0; gap:8px; }
#vd-gallery-site .vd-project-modal.is-compact-landscape .vd-modal-header h2 { font-size:16px; }
#vd-gallery-site .vd-project-modal.is-compact-landscape .vd-modal-controls { gap:8px; }
#vd-gallery-site.vd-modal-open .vd-back-to-top { visibility:hidden; }

#vd-gallery-site .vd-back-to-top {
	position: fixed;
	right: 52px;
	bottom: 28px;
	z-index: 120;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 14px;
	color: #fff;
	background:
		linear-gradient(
			145deg,
			rgba(17, 25, 35, 0.96),
			rgba(7, 11, 17, 0.96)
		) padding-box,
		linear-gradient(
			135deg,
			rgba(105, 189, 255, 0.88),
			rgba(24, 141, 247, 0.30)
		) border-box;
	box-shadow:
		0 14px 34px rgba(0, 0, 0, 0.30),
		0 0 24px rgba(24, 141, 247, 0.10),
		inset 0 1px 0 rgba(255, 255, 255, 0.07);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	pointer-events: none;
	transition:
		opacity 0.25s ease,
		visibility 0.25s ease,
		transform 0.25s ease,
		box-shadow 0.25s ease,
		background 0.25s ease;
}

#vd-gallery-site .vd-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

#vd-gallery-site .vd-back-to-top:hover {
	transform: translateY(-3px);
	background:
		linear-gradient(
			145deg,
			rgba(20, 34, 48, 0.98),
			rgba(8, 15, 23, 0.98)
		) padding-box,
		linear-gradient(
			135deg,
			rgba(125, 211, 255, 1),
			rgba(24, 141, 247, 0.62)
		) border-box;
	box-shadow:
		0 18px 40px rgba(0, 0, 0, 0.34),
		0 0 28px rgba(24, 141, 247, 0.18),
		inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

#vd-gallery-site .vd-back-to-top:active {
	transform: translateY(-1px);
}

#vd-gallery-site .vd-back-to-top:focus-visible {
	outline: 2px solid rgba(105, 189, 255, 0.95);
	outline-offset: 4px;
}

#vd-gallery-site .vd-back-to-top svg {
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@media(max-width:768px){#vd-gallery-site .vd-back-to-top{right:14px;bottom:16px;width:42px;height:42px;border-radius:12px;}}
@media(prefers-reduced-motion:reduce){#vd-gallery-site *,#vd-gallery-site *::before,#vd-gallery-site *::after{scroll-behavior:auto!important;transition:none!important;}}
@media(pointer:coarse){#vd-gallery-site .vd-back-to-top::after{content:"";position:absolute;inset:-1px;}}



/* Horizontal hero gestures must not block page scrolling or browser zoom. */
#vd-gallery-site .vd-photo { touch-action: pan-y pinch-zoom; }
