/* Gallery page – load after style.css. Nav and footer copied from film.html. */
:root {
	--header-h: 5.5rem;
	--footer-h: 5.5rem;
	--gap: 4px;
}

html, body { margin: 0; padding: 0; background-color: #000; }
body { height: 100vh; height: 100dvh; overflow: hidden; }

/* ---- Gallery ---- */
main {
	height: 100%;
	padding: var(--header-h) 24px var(--footer-h);
}
.grid {
	display: grid;
	gap: var(--gap);
	justify-content: center;
	align-content: center;
	width: 100%;
	height: 100%;
}
.grid button {
	all: unset;
	display: block;
	overflow: hidden;
	cursor: zoom-in;
	background: #111;
}
.grid img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	filter: brightness(.8);
	transition: filter .25s, transform .4s;
}
.grid button:hover img, .grid button:focus-visible img { filter: none; transform: scale(1.05); }

/* Full-screen enlarged view */
#view {
	position: fixed;
	inset: 0;
	z-index: 1100;
	background: rgba(0,0,0,.95);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity .18s;
}
#view.open { opacity: 1; }
#view img { width: 100%; height: 100%; object-fit: contain; }
#view.open.touch { pointer-events: auto; cursor: zoom-out; }

/* ---- Menu button + panel (same as film.html) ---- */
#nav-toggle {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 1001;
}
#nav-toggle:hover { background: rgba(255, 255, 255, 0.15); transform: scale(1.08); }
#nav-toggle svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.0; stroke-linecap: round; }
#nav-panel {
  position: fixed;
  top: 0;
  right: -240px;
  width: 200px;
  height: 100%;
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 90px 24px;
  transition: right 0.3s ease;
  z-index: 1000;
}
#nav-panel.open { right: 0; }
#nav-panel a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-family: 'Helvetica Neue', serif;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.05em;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

/* ---- Footer (same as film.html) ---- */
.site-footer {
  position: fixed;
  bottom: 8px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'Helvetica Neue', serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  z-index: 999;
  pointer-events: none;
}

@media (max-height: 600px) { :root { --header-h: 4.5rem; --footer-h: 5rem; } }

/* ---- Contact button (same as index.html) ---- */
.icon-btn {
  position: fixed;
  bottom: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  background: transparent;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 1000;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.15); transform: scale(1.08); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.0; stroke-linecap: round; stroke-linejoin: round; }
#contact-btn { right: 24px; }
