/* Sajdak Koszalin 4.10.2. Kod: Network Solutions — Mateusz Weiland.
   Zakaz kopiowania elementów autorskich bez zgody, z zastrzeżeniem licencji komponentów. */
.gk-premium .sajdak-gallery {
  --sg-navy: var(--gk-navy, #062458);
  --sg-blue: var(--gk-blue, #075db5);
  --sg-ink: var(--gk-muted, #3d5674);
  --sg-line: var(--gk-line, #d8e4ef);
  position: relative;
  isolation: isolate;
  color: var(--sg-ink);
  font-family: var(--gk-font, Manrope, Arial, sans-serif);
  line-height: 1.6;
  width: 100%;
}
.gk-premium .sajdak-gallery::before {
  content: ""; position: absolute; inset: -14px; z-index: -1; pointer-events: none;
  border-radius: 32px;
  background: radial-gradient(ellipse at 95% 3%, #c7e3f357, transparent 35%), radial-gradient(ellipse at 5% 25%, #c7e3f32b, transparent 35%);
}
.gk-premium .sajdak-gallery::after {
  content: ""; position: absolute; top: 0; right: 2%; width: 150px; height: 150px;
  z-index: -1; pointer-events: none; background: url('../brand-mark.svg') center/contain no-repeat; opacity: .035;
}
.gk-premium .sajdak-gallery__toolbar { margin: 0 0 18px; }
.gk-premium .sajdak-gallery__hint { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: .8125rem; color: var(--sg-navy); }
.gk-premium .sajdak-gallery__hint svg { width: 19px; height: 19px; flex: none; }
.gk-premium .sajdak-gallery__filters { display: none; flex-wrap: wrap; gap: 9px; }
.gk-premium .sajdak-gallery[data-enhanced="true"] .sajdak-gallery__filters { display: flex; }
.gk-premium .sajdak-gallery__filter {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 10px 16px; background: #fff; border: 1px solid var(--sg-line); border-radius: 50px;
  font: inherit; font-size: .8125rem; font-weight: 600; color: var(--sg-navy); cursor: pointer;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.gk-premium .sajdak-gallery__filter span { font-size: .75rem; opacity: .8; }
.gk-premium .sajdak-gallery__filter[aria-pressed="true"] { background: var(--sg-navy); color: #fff; border-color: var(--sg-navy); box-shadow: 0 5px 15px #132e531f; }
.gk-premium .sajdak-gallery__status { display: none; margin: 0 0 18px; font-size: .8125rem; }
.gk-premium .sajdak-gallery[data-enhanced="true"] .sajdak-gallery__status { display: block; }
.gk-premium .sajdak-gallery__grid { columns: 3; column-gap: 20px; }
.gk-premium .sajdak-gallery--preview .sajdak-gallery__grid { columns: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.gk-premium .sajdak-gallery__card {
  display: inline-block; width: 100%; break-inside: avoid; margin: 0 0 20px;
  padding: 8px; border: 1px solid #dce7ef; border-radius: 22px; background: #fff;
  box-shadow: 0 6px 24px #19375008; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.gk-premium .sajdak-gallery--preview .sajdak-gallery__card { margin-bottom: 0; }
.gk-premium .sajdak-gallery__card[hidden] { display: none; }
.gk-premium .sajdak-gallery__card > p { margin: 0; padding: 0; line-height: 0; }
.gk-premium .sajdak-gallery__card > p:empty { display: none; }
.gk-premium .sajdak-gallery__open { display: block; position: relative; border-radius: 15px; color: #fff; line-height: 0; text-decoration: none; }
.gk-premium .sajdak-gallery__open img { display: block; width: 100%; height: auto; max-width: 100%; border-radius: 15px; background: #edf2f6; }
.gk-premium .sajdak-gallery__zoom {
  position: absolute; right: 11px; bottom: 11px; display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 1px solid #ffffff90; border-radius: 50%; color: #fff;
  background: #062458ed; box-shadow: 0 3px 14px #132e5338;
}
.gk-premium .sajdak-gallery__zoom svg { width: 18px; height: 18px; }
.gk-premium .sajdak-gallery__caption { padding: 13px 10px 8px; line-height: 1.4; }
.gk-premium .sajdak-gallery__category { display: block; color: var(--sg-blue); font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 5px; font-weight: 600; }
.gk-premium .sajdak-gallery__title { display: block; margin: 0; font-size: .9375rem; color: var(--sg-navy); font-weight: 600; }
.gk-premium .sajdak-gallery__description { margin: 8px 0 0; padding: 0; color: var(--sg-ink); font-size: .8125rem; line-height: 1.6; }
.gk-premium .sajdak-gallery a:focus-visible, .gk-premium .sajdak-gallery button:focus-visible { outline: 3px solid #2b85bf; outline-offset: 4px; }
.gk-premium .sajdak-gallery__lightbox {
  width: min(1100px, calc(100% - 32px)); max-width: none; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  padding: 18px; border: 1px solid #4c6486; border-radius: 22px; color: #fff; background: #102440;
  overscroll-behavior: contain;
}
.gk-premium .sajdak-gallery__lightbox::backdrop { background: #061a31e6; }
.gk-premium .sajdak-gallery__lightbox-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.gk-premium .sajdak-gallery__counter { font-size: .8125rem; color: #dbe8f5; }
.gk-premium .sajdak-gallery__close, .gk-premium .sajdak-gallery__prev, .gk-premium .sajdak-gallery__next {
  font: inherit; color: #fff; background: #ffffff10; border: 1px solid #ffffff45; cursor: pointer;
  border-radius: 50px; min-height: 44px; padding: 9px 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: .8125rem;
}
.gk-premium .sajdak-gallery__close svg, .gk-premium .sajdak-gallery__prev svg, .gk-premium .sajdak-gallery__next svg { width: 18px; height: 18px; }
.gk-premium .sajdak-gallery__lightbox-photo { display: block; width: 100%; height: auto; max-height: calc(100vh - 245px); max-height: calc(100dvh - 245px); object-fit: contain; border-radius: 12px; }
.gk-premium .sajdak-gallery__lightbox-title { margin: 12px 0 3px; padding: 0; color: #fff; font-size: .9375rem; font-weight: 600; }
.gk-premium .sajdak-gallery__lightbox-caption { margin: 0 0 14px; padding: 0; color: #d3dfeb; font-size: .8125rem; line-height: 1.45; }
.gk-premium .sajdak-gallery__lightbox-nav { display: flex; justify-content: space-between; gap: 12px; }
/* New clinic photo in the gallery hero background; preserve the existing frame and motion. */
.gk-premium .gk-page-gallery::before {
  background-image: url('gabinet-konsultacyjny-biurko-wlodzimierz-sajdak-koszalin.webp');
  background-position: right center;
}
.gk-premium .gk-page-gallery .gk-showcase-photo { height: auto; min-height: 0; max-height: none; aspect-ratio: auto; object-fit: contain; }
.gk-premium .sajdak-gallery__prev:disabled, .gk-premium .sajdak-gallery__next:disabled { opacity: .45; cursor: default; }
@media (hover: hover) {
  .gk-premium .sajdak-gallery__card:hover { transform: translateY(-3px); box-shadow: 0 13px 32px #19375014; border-color: #aac7dc; }
  .gk-premium .sajdak-gallery__filter:hover { border-color: var(--sg-blue); box-shadow: 0 4px 16px #132e5312; }
  .gk-premium .sajdak-gallery__close:hover, .gk-premium .sajdak-gallery__prev:hover, .gk-premium .sajdak-gallery__next:hover { background: #ffffff23; }
}
@media (max-width: 900px) {
  .gk-premium .sajdak-gallery__grid { columns: 2; column-gap: 16px; }
  .gk-premium .sajdak-gallery--preview .sajdak-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .gk-premium .sajdak-gallery--preview .sajdak-gallery__card:last-child { grid-column: 1 / -1; width: calc((100% - 16px) / 2); justify-self: center; }
  .gk-premium .sajdak-gallery__card { margin-bottom: 16px; }
}
@media (max-width: 560px) {
  .gk-premium .sajdak-gallery__grid { columns: 1; }
  .gk-premium .sajdak-gallery--preview .sajdak-gallery__grid { grid-template-columns: 1fr; }
  .gk-premium .sajdak-gallery--preview .sajdak-gallery__card:last-child { grid-column: auto; width: 100%; }
  .gk-premium .sajdak-gallery__filter { flex: 1 1 auto; padding: 10px 12px; }
  .gk-premium .sajdak-gallery__card { border-radius: 20px; }
  .gk-premium .sajdak-gallery__lightbox { width: calc(100% - 16px); max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); padding: 12px; border-radius: 18px; }
  .gk-premium .sajdak-gallery__lightbox-photo { max-height: calc(100vh - 260px); max-height: calc(100dvh - 260px); }
}
@media (prefers-reduced-motion: reduce) {
  .gk-premium .sajdak-gallery__card, .gk-premium .sajdak-gallery__filter { transition: none; }
}
