@import url("floating-nav.css");
:root {
    --paper: #f4f2ed;
    --ink: #111315;
    --ink-soft: #54595d;
    --line: #d2cec5;
    --concrete: #e5e1d8;
    --gold: #b88712;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: 'Albert Sans', sans-serif; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.gallery-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    padding: 12px clamp(20px, 5vw, 72px);
    border-bottom: 1px solid rgba(184,135,18,.22);
    background: rgba(244,242,237,.92);
    box-shadow: 0 10px 30px rgba(17,19,21,.08);
    color: var(--ink);
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
}
.gallery-brand { display: flex; align-items: center; gap: 12px; font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; }
.gallery-brand img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.gallery-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: clamp(14px, 2.4vw, 32px); }
.gallery-nav a { padding: 7px 0; border-bottom: 1px solid transparent; color: var(--ink-soft); font-size: .72rem; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.gallery-nav a:hover, .gallery-nav a.active { border-color: var(--gold); color: var(--ink); }
.gallery-menu { display: none; border: 1px solid var(--ink); background: transparent; color: var(--ink); }

.gallery-hero { position: relative; height: min(720px, 82vh); min-height: 520px; overflow: hidden; background: #111; color: #fff; }
.gallery-hero video { width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,10,12,.78), rgba(8,10,12,.22) 62%, rgba(8,10,12,.45)); }
.hero-copy { position: absolute; z-index: 2; left: clamp(24px, 8vw, 130px); bottom: clamp(54px, 12vh, 120px); width: min(620px, calc(100% - 48px)); }
.hero-copy > span, .catalog-heading span { color: var(--gold); font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.hero-copy h1 { margin: .7rem 0 1rem; font: 300 clamp(3rem, 8vw, 6.8rem)/.92 'Newsreader', serif; letter-spacing: -.045em; }
.hero-copy p { max-width: 54ch; color: rgba(255,255,255,.82); line-height: 1.7; }
.hero-copy a { display: inline-block; margin-top: 1.5rem; padding: 12px 18px; border: 1px solid rgba(255,255,255,.45); text-decoration: none; }
.hero-copy a:hover { background: #fff; color: var(--ink); }
.hero-control { position: absolute; z-index: 3; right: 24px; bottom: 24px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.45); background: rgba(0,0,0,.42); color: #fff; cursor: pointer; }

.catalog-shell { width: min(1420px, calc(100% - 40px)); margin: 0 auto; padding: clamp(64px, 9vw, 120px) 0; }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.catalog-heading h2 { margin-top: .35rem; font: 300 clamp(2.4rem, 5vw, 4.6rem)/1 'Newsreader', serif; }
.catalog-search input { width: min(330px, 72vw); padding: 13px 16px; border: 0; border-bottom: 1px solid var(--ink); outline: 0; background: transparent; color: var(--ink); font: inherit; }
.category-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 42px 0 18px; }
.category-bar button { padding: 9px 14px; border: 1px solid var(--line); background: transparent; color: var(--ink-soft); cursor: pointer; }
.category-bar button:hover, .category-bar button.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.result-count { margin-bottom: 28px; color: var(--ink-soft); font-size: .82rem; }

.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 22px; }
.catalog-card { display: flex; min-width: 0; flex-direction: column; background: #e9e7e1; }
.card-image { position: relative; aspect-ratio: 16 / 10; overflow: hidden; cursor: pointer; }
.card-image img { width: 100%; height: 100%; object-fit: cover; cursor:pointer; transition: transform .55s cubic-bezier(.22,1,.36,1); }
.card-image::after { content: '+'; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(17,19,21,.42); color: #fff; font: 300 2.4rem 'Newsreader'; opacity: 0; pointer-events:none; transition: opacity .3s; }
.catalog-card:hover .card-image img { transform: scale(1.08); }
.catalog-card:hover .card-image::after { opacity: 1; }
.card-slide,.modal-slide{position:absolute;z-index:4;top:50%;display:grid;place-items:center;width:38px;height:46px;transform:translateY(-50%);border:1px solid rgba(255,255,255,.48);background:rgba(17,19,21,.72);color:#fff;font-size:1.5rem;cursor:pointer}.card-previous,.modal-previous{left:10px}.card-next,.modal-next{right:10px}.card-counter,.modal-counter{position:absolute;z-index:4;right:10px;bottom:10px;padding:5px 9px;border-radius:20px;background:rgba(17,19,21,.76);color:#fff;font-size:.62rem;letter-spacing:.08em}.card-slide:hover,.modal-slide:hover{background:var(--gold)}
.card-copy { flex: 1; padding: 24px; }
.card-copy span { color: var(--gold); font-size: .65rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; }
.card-copy h3 { margin: .55rem 0 .65rem; font: 400 1.28rem/1.2 'Newsreader', serif; }
.card-copy p { display:-webkit-box; min-height:6.4em; overflow:hidden; color:var(--ink-soft); font-size:.84rem; line-height:1.6; -webkit-box-orient:vertical; -webkit-line-clamp:5; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination button { width: 42px; height: 42px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.pagination button:hover, .pagination button.active { background: var(--ink); color: #fff; }
.gallery-admin-area{padding:0 clamp(20px,5vw,72px) 28px}.gallery-footer { display: flex; justify-content: space-between; gap: 24px; padding: 32px clamp(20px,5vw,72px); border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .78rem; }.gallery-footer-links{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.gallery-footer a{color:inherit}.gallery-admin-button{display:inline-flex;align-items:center;justify-content:center;padding:9px 16px;border:1px solid var(--ink);border-radius:999px;text-decoration:none!important;text-transform:uppercase;letter-spacing:.12em;font-size:.68rem;transition:background .2s,color .2s}.gallery-admin-button:hover,.gallery-admin-button:focus-visible{background:var(--ink);color:#fff}

.gallery-modal { position:fixed; inset:0; width:min(1080px,calc(100vw - 32px)); height:min(900px,calc(100dvh - 32px)); max-height:none; margin:auto; padding:0; overflow:hidden; border:0; background:#111315; color:#fff; }
.gallery-modal[open] { display:grid; grid-template-rows:minmax(0,1fr) auto; }
.gallery-modal::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(8px); }
.gallery-modal img { display:block; width:100%; height:100%; min-height:0; object-fit:contain; background:#070809; }
.gallery-modal > div { max-height:30dvh; overflow-y:auto; padding:18px 28px 22px; }
.gallery-modal span { color: var(--gold); font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; }
.gallery-modal h2 { margin: .4rem 0; font: 300 2rem 'Newsreader'; }
.gallery-modal p { color: rgba(255,255,255,.7); line-height: 1.6; }
.modal-close { position: absolute; z-index: 2; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(0,0,0,.66); color: #fff; font-size: 1.5rem; cursor: pointer; }
.modal-slide{z-index:5}.modal-counter{z-index:5;top:14px;right:50%;bottom:auto;transform:translateX(50%)}

@media (max-width: 900px) {
    .gallery-header { min-height: 64px; backdrop-filter: none; -webkit-backdrop-filter: none; }
    .gallery-modal::backdrop { backdrop-filter:none; }
    .gallery-modal { width:calc(100vw - 20px); height:calc(100dvh - 20px); }
    .gallery-modal > div { max-height:34dvh; padding:14px 18px 18px; }
    .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery-menu { display: block; padding: 9px 12px; }
    .gallery-nav { position: absolute; top: 64px; left: 0; right: 0; display: none; width: auto; padding: 12px 20px 20px; flex-direction: column; gap: 0; background: rgba(244,242,237,.98); border-bottom: 1px solid rgba(17,19,21,.14); box-shadow: 0 14px 35px rgba(17,19,21,.12); }
    .gallery-nav.open { display: flex; }
    .gallery-nav a { width: 100%; padding: 12px 0; }
}
@media (max-width: 620px) {
    .gallery-header { padding: 10px 14px; }
    .gallery-brand { font-size: .7rem; }
    .gallery-brand img { width: 34px; height: 34px; }
    .gallery-hero { min-height: 580px; }
    .catalog-heading { align-items: flex-start; flex-direction: column; }
    .catalog-grid { grid-template-columns: 1fr; }
    .gallery-footer { flex-direction: column; }
}
