
:root {
	--ink: #090b0e;
	--ink-raised: #13171a;
	--paper: #ebe7de;
	--muted: #b8b6af;
	--line: rgba(235, 231, 222, 0.28);
	--orange: #d86331;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--paper); background: var(--ink); font-family: "Manrope", sans-serif; }
button, input { font: inherit; }
a { color: inherit; }

.gallery-header {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1.5rem;
	min-height: 5.4rem;
	padding: 0.7rem clamp(1rem, 5vw, 4.5rem);
	border-bottom: 1px solid var(--line);
	background: var(--ink-raised);
}
.gallery-brand { display: block; width: min(100%, 9rem); }
.gallery-brand .landscape-brand-image { display: none; }
.gallery-brand .portrait-brand-images { display: flex; align-items: center; gap: 0.35rem; }
.gallery-brand .portrait-brand-images img:first-child { width: 6.2rem; }
.gallery-brand .portrait-brand-images img:last-child { width: 3.1rem; }
.header-details { display: flex; align-items: center; gap: 1.5rem; }
address { display: grid; gap: 0.15rem; color: var(--muted); font-size: 0.65rem; font-style: normal; letter-spacing: 0.04em; }
address a { text-decoration: none; }
.address-link { display: grid; gap: 0.15rem; color: var(--muted); }
.phone-link { margin-top: 0.25rem; color: var(--paper); font-weight: 700; }
.address-link:hover, .address-link:focus-visible, .phone-link:hover, .phone-link:focus-visible { color: var(--paper); }
.book-visit, .home-button { display: inline-flex; align-items: center; justify-content: center; padding: 0.62rem 0.85rem; border: 1px solid var(--line); color: var(--paper); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-decoration: none; text-transform: uppercase; }
.book-visit:hover, .book-visit:focus-visible, .home-button:hover, .home-button:focus-visible { border-color: var(--paper); background: rgba(235, 231, 222, 0.1); }
.home-button { justify-self: end; gap: 0.45rem; }

.gallery-intro { max-width: 1200px; margin: 0 auto; padding: clamp(4rem, 9vw, 8rem) clamp(1rem, 5vw, 4.5rem) 2.5rem; }
.eyebrow, .filter-controls legend { margin: 0; color: var(--muted); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; }
.gallery-intro h1 { margin: 1rem 0 3rem; font-family: "Barlow Condensed", sans-serif; font-size: clamp(4rem, 10vw, 9rem); font-weight: 600; line-height: 0.78; text-transform: uppercase; }
.gallery-intro h1 em { color: var(--orange); font-style: normal; }
.gallery-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 2rem; border-top: 1px solid var(--line); padding-top: 1.1rem; }
.filter-controls { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0; padding: 0; border: 0; }
.filter-controls legend { flex-basis: 100%; margin-bottom: 0.45rem; }
.filter-controls label { cursor: pointer; }
.filter-controls input { position: absolute; opacity: 0; }
.filter-controls label span { display: inline-flex; padding: 0.55rem 0.8rem; border: 1px solid var(--line); color: var(--muted); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.filter-controls input:checked + span, .filter-controls label:focus-within span { border-color: var(--paper); color: var(--ink); background: var(--paper); }
.gallery-status { margin: 0; color: var(--muted); font-size: 0.68rem; }

.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.45rem; padding: 0 clamp(1rem, 5vw, 4.5rem) 5rem; }
.gallery-tile { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border: 0; padding: 0; color: var(--paper); background: var(--ink-raised); cursor: zoom-in; }
.gallery-tile img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); transition: transform 500ms ease, filter 300ms ease; }
.gallery-tile:hover img, .gallery-tile:focus-visible img { transform: scale(1.04); filter: saturate(1); }
.gallery-tile figcaption { position: absolute; right: 0.8rem; bottom: 0.7rem; left: 0.8rem; z-index: 1; color: var(--paper); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.07em; text-align: left; text-transform: uppercase; }
.gallery-tile::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(9, 11, 14, 0.82)); pointer-events: none; }
.gallery-tile[hidden] { display: none; }

.lightbox { position: fixed; inset: 0; z-index: 10; display: grid; grid-template-columns: 4rem minmax(0, 1fr) 4rem; align-items: center; gap: 1rem; padding: 4rem clamp(1rem, 5vw, 5rem); background: rgba(9, 11, 14, 0.96); }
.lightbox[hidden] { display: none; }
.lightbox-figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 1rem; max-width: 1000px; width: 100%; max-height: 100%; margin: 0 auto; }
.lightbox-image { display: block; width: 100%; height: min(76vh, 720px); object-fit: contain; }
.lightbox-figure figcaption { min-height: 1.2rem; color: var(--paper); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-align: center; text-transform: uppercase; }
.lightbox-close { position: absolute; top: 1.2rem; right: 1.5rem; }
.lightbox-arrow, .lightbox-close { width: 2.6rem; height: 2.6rem; border: 1px solid var(--line); border-radius: 50%; color: var(--paper); background: transparent; cursor: pointer; }
.lightbox-arrow:hover, .lightbox-arrow:focus-visible, .lightbox-close:hover, .lightbox-close:focus-visible { border-color: var(--paper); background: rgba(235, 231, 222, 0.12); }
.lightbox-prev { grid-column: 1; }
.lightbox-figure { grid-column: 2; }
.lightbox-next { grid-column: 3; }

.site-footer { padding: 4rem clamp(1.25rem, 8vw, 9rem) 1.25rem; color: var(--paper); background: var(--ink-raised); }
.site-footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; gap: 2rem; max-width: 1100px; margin: 0 auto; padding-bottom: 3rem; border-bottom: 1px solid var(--line); }
.footer-brand img { display: block; width: min(100%, 13rem); height: auto; }
.footer-brand p { max-width: 14rem; margin: 1.2rem 0 0; color: var(--muted); font-size: 0.78rem; line-height: 1.5; }
.site-footer address { align-self: start; padding-top: 0; border-top: 0; }
.footer-links, .footer-actions { display: grid; align-content: start; gap: 0.7rem; }
.footer-links a { color: var(--muted); font-size: 0.76rem; font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: 0.1em; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--paper); }
.footer-actions { justify-items: end; }
.social-links { display: flex; gap: 0.5rem; }
.social-links a { display: grid; width: 2rem; height: 2rem; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--paper); font-size: 0.58rem; font-weight: 700; text-decoration: none; }
.social-links img { display: block; width: 1rem; height: 1rem; object-fit: contain; }
.social-links a:hover, .social-links a:focus-visible { background: rgba(235, 231, 222, 0.1); }
.footer-book-visit { margin-top: 0.8rem; white-space: nowrap; }
.footer-legal { display: flex; justify-content: space-between; max-width: 1100px; margin: 1.25rem auto 0; color: var(--muted); font-size: 0.63rem; letter-spacing: 0.08em; text-transform: uppercase; }

@media (max-width: 720px) {
	.gallery-header { grid-template-columns: 1fr auto; }
	.header-details { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; padding-bottom: 0.65rem; }
	.gallery-brand { width: min(100%, 9rem); }
	.gallery-toolbar { align-items: start; flex-direction: column; }
	.gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lightbox { grid-template-columns: 2.6rem minmax(0, 1fr) 2.6rem; gap: 0.4rem; padding-inline: 0.6rem; }
	.site-footer-inner { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
	.footer-actions { justify-items: start; }
	.footer-legal { display: grid; gap: 0.5rem; }
}
