:root { --portfolio-blue: #1688c9; --portfolio-dark: #172b38; --portfolio-soft: #eef7fc; }
* { box-sizing: border-box; }
.portfolio-page { margin: 0; padding-bottom: 94px; background: #f7fafc; color: var(--portfolio-dark); }
.portfolio-page.lightbox-open { overflow: hidden; }
.portfolio-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid #e6edf1; background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.portfolio-header-inner { min-height: 67px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.portfolio-header h1 { margin: 0; font-size: 20px; }
.portfolio-header a { justify-self: start; min-height: 48px; display: inline-flex; align-items: center; gap: 5px; color: #49606d; font-size: 14px; text-decoration: none; }
.portfolio-header a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.portfolio-heading { padding: 25px 0 17px; }
.portfolio-heading h2 { margin: 0 0 18px; font-size: clamp(18px,4vw,25px); line-height: 1.6; }
.category-filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 9px; scrollbar-width: none; scroll-snap-type: x proximity; }
.category-filters::-webkit-scrollbar { display: none; }
.category-filters button { min-width: max-content; min-height: 48px; padding: 0 19px; border: 1px solid #dce7ed; border-radius: 999px; background: #fff; color: #526873; font: inherit; font-size: 14px; cursor: pointer; scroll-snap-align: start; }
.category-filters button.active { border-color: var(--portfolio-blue); background: var(--portfolio-blue); color: #fff; box-shadow: 0 7px 18px rgba(22,136,201,.22); }
.gallery-grid { columns: 2; column-gap: 9px; }
.gallery-item { width: 100%; display: block; break-inside: avoid; margin: 0 0 9px; padding: 0; overflow: hidden; border: 0; border-radius: 13px; background: #e6edf1; cursor: zoom-in; }
.gallery-item[hidden] { display: none; }
.gallery-item img { width: 100%; height: auto; display: block; transition: transform .25s ease; }
.gallery-item:focus-visible { outline: 3px solid var(--portfolio-blue); outline-offset: 3px; }
.gallery-more-wrap { min-height: 76px; display: grid; place-items: center; padding: 19px 0 2px; }
.gallery-more { min-height: 48px; padding: 0 22px; border: 1px solid #cbdce5; border-radius: 13px; background: #fff; color: #365767; font: inherit; font-weight: 700; cursor: pointer; }
.gallery-more-wrap p { margin: 0; color: #71838c; }
.portfolio-booking-bar { position: fixed; z-index: 35; right: 0; bottom: 0; left: 0; padding: 10px max(16px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)); border-top: 1px solid #dfe8ed; background: rgba(255,255,255,.97); backdrop-filter: blur(14px); }
.portfolio-booking-bar a { width: min(100%,620px); min-height: 56px; display: flex; align-items: center; justify-content: center; margin: auto; border-radius: 14px; background: var(--portfolio-blue); color: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 10px 25px rgba(22,136,201,.27); }
.lightbox { position: fixed; z-index: 100; inset: 0; display: none; background: #080c0f; color: #fff; }
.lightbox.open { display: block; }
.lightbox-backdrop { position: absolute; inset: 0; }
.lightbox-panel { position: relative; width: 100%; height: 100%; display: grid; grid-template-rows: 72px minmax(0,1fr) auto; }
.lightbox-close { z-index: 2; align-self: center; justify-self: start; min-height: 48px; display: flex; align-items: center; gap: 7px; margin-right: 15px; padding: 0 10px; border: 0; background: transparent; color: #fff; font: inherit; cursor: pointer; }
.lightbox-close svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; }
.lightbox-media { min-height: 0; display: flex; align-items: center; justify-content: center; overflow: auto; touch-action: pinch-zoom pan-x pan-y; }
.lightbox-media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lightbox-bottom { z-index: 2; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 7px 14px; padding: 15px 17px calc(18px + env(safe-area-inset-bottom)); background: linear-gradient(transparent,rgba(0,0,0,.84) 35%); }
.lightbox-bottom strong { font-size: 16px; }
.lightbox-counter { color: #aeb9bf; font-size: 13px; }
.lightbox-bottom > div { grid-column: 1 / -1; display: flex; justify-content: space-between; direction: rtl; }
.lightbox-bottom button { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; }
.lightbox-bottom svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (hover:hover) { .gallery-item:hover img { transform: scale(1.025); } }
@media (min-width:700px) {
  .portfolio-page { padding-bottom: 100px; }
  .portfolio-header-inner { min-height: 76px; }
  .portfolio-main { max-width: 1120px; }
  .portfolio-heading { padding-top: 38px; }
  .gallery-grid { columns: 3; column-gap: 14px; }
  .gallery-item { margin-bottom: 14px; border-radius: 16px; }
  .lightbox-panel { width: min(100%,1200px); margin: auto; }
}
@media (min-width:1050px) { .gallery-grid { columns: 4; } }
@media (prefers-reduced-motion:reduce) { .gallery-item img { transition: none; } }
