[data-filter-item][hidden], [data-photo-collection][hidden], .photographer-filters[hidden], [data-filter-empty][hidden] { display: none !important; }
.photographer-filters { margin: 24px 0 28px; font-family: var(--sans); }
.photographer-filter-label { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.photographer-filter-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.photographer-filter-buttons button { min-height: 44px; padding: 10px 20px; border: 1px solid #888; background: transparent; color: var(--ink); font: 500 14px/1.4 var(--sans); cursor: pointer; }
.photographer-filter-buttons button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.photographer-filter-buttons button:hover { border-color: var(--ink); }
.photographer-filter-buttons button:focus-visible, .photographer-links a:focus-visible, [data-filter-choice]:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.photographer-filter-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: baseline; margin-top: 14px; }
.photographer-filter-meta p { margin: 0; color: #555; font-size: 13px; }
.photographer-filter-meta a { color: var(--ink); font-size: 14px; text-decoration: underline; text-underline-offset: 5px; }
.photographer-value { margin: 24px 0 0; max-width: 800px; }
.photographer-value h3 { font: 600 clamp(22px, 2.6vw, 32px)/1.3 var(--sans); margin: 0 0 12px; letter-spacing: -.03em; text-transform: none; }
.photographer-value p { font: 400 16px/1.75 var(--sans); margin: 0 0 16px; }
.photographer-links { display: flex; flex-wrap: wrap; gap: 16px 32px; }
.photographer-links a { color: inherit; font: 500 14px/1.6 var(--sans); text-decoration: underline; text-underline-offset: 5px; }
.photographer-discovery { padding: 40px 0 56px; }
.photographer-discovery .photographer-value { margin: 0; }
.photographer-collection { margin: 0 0 56px; }
.photographer-galleries-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
.photographer-galleries-pair > .photographer-collection { min-width: 0; }
html[data-photographer]:not([data-photographer="all"]) .photographer-galleries-pair { grid-template-columns: minmax(0, 1fr); }
body .photographer-galleries-pair .gal { columns: 2; }
html[data-photographer]:not([data-photographer="all"]) body .photographer-galleries-pair .gal { columns: 4; }
body #instagram .photographer-galleries-pair { position: relative; gap: 64px; width: min(1448px, calc(100% - 112px)); margin: 0 auto; }
html[data-photographer="all"] body #instagram .photographer-galleries-pair::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 56px; width: 1px; background: #d8d8d4; pointer-events: none; }
body #instagram .photographer-galleries-pair .insta-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html[data-photographer]:not([data-photographer="all"]) body #instagram .photographer-galleries-pair .insta-wall { grid-template-columns: repeat(5, minmax(0, 1fr)); }
body #instagram .photographer-galleries-pair .wrap { width: 100%; }
body .photographer-galleries-pair .photographer-collection-head { align-items: flex-start; }
body .photographer-galleries-pair .photographer-collection-head h3 { font-size: clamp(24px, 2.5vw, 34px); }
body .photographer-galleries-pair .portfolio-track { --portfolio-height: clamp(240px, 26vw, 360px); }
body .photographer-galleries-pair .portfolio-slide { max-width: calc(100% - 4px); }
html[data-photographer="all"] .photographer-galleries-pair [data-preview-overflow] { display: none !important; }
html[data-photographer="all"] body .photographer-galleries-pair .gal { columns: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
html[data-photographer="all"] body .photographer-galleries-pair .gal figure { margin: 0; }
html[data-photographer="all"] body .photographer-galleries-pair .gal figure > .gallery-open img { aspect-ratio: 2 / 3; object-fit: contain; background: #f7f7f4; }
.photographer-preview-note { display: none; font: 400 13px/1.7 var(--sans); color: #555; margin: 0 0 28px; }
body #portfolio-galleries[data-portfolio-mode="mixed"] { grid-template-columns: minmax(0, 1fr); }
body #portfolio-galleries .portfolio-mixed .portfolio-track { --portfolio-height: auto; gap: 20px; }
body #portfolio-galleries .portfolio-mixed .portfolio-slide { flex: 0 0 calc((100% - 60px) / 4); width: calc((100% - 60px) / 4); padding: 10px 10px 0; }
body #portfolio-galleries .portfolio-mixed .pol-img img { aspect-ratio: 2 / 3; object-fit: contain; }
body #portfolio-galleries .portfolio-mixed figcaption { padding: 12px 3px 16px; }
@font-face { font-family: 'Bodoni Moda'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/bodoni-moda-regular-400.ttf') format('truetype'); }
body #portfolio .polaroid .hand { flex-basis: 100%; font: normal 400 clamp(11px, .9vw, 13px)/1.3 'Bodoni Moda', Didot, serif; font-synthesis: none; color: var(--ink); letter-spacing: .025em; text-transform: uppercase; }
body #portfolio .polaroid .fno { font: 400 10px/1.5 var(--sans); color: #555; }
/* The original polaroid rules stay intact; only the trial outline variant changes. */
.portfolio-frame-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.portfolio-frame-switch[hidden] { display: none; }
.portfolio-frame-switch button { min-height: 44px; padding: 10px 14px; border: 1px solid #888; background: #fff; color: var(--ink); font: 400 12px/1.5 var(--sans); cursor: pointer; }
.portfolio-frame-switch button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.portfolio-frame-switch button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
body #portfolio[data-portfolio-frame="outline"] .portfolio-slide { padding: 10px 10px 0; background: #fff; border: 1px solid #b7b7b0; border-radius: 0; box-shadow: none; transform: none; transition: none; }
body #portfolio[data-portfolio-frame="outline"] .portfolio-slide::after { content: none; }
body #portfolio[data-portfolio-frame="outline"] .pol-img { border: 0; background: #fff; box-shadow: none; }
body #portfolio[data-portfolio-frame="outline"] .portfolio-mixed .pol-img { aspect-ratio: 2 / 3; }
body #portfolio[data-portfolio-frame="outline"] .portfolio-mixed .pol-img img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
body #portfolio[data-portfolio-frame="outline"] #portfolio-galleries[data-portfolio-mode="author"] .pol-img { height: var(--portfolio-height); }
body #portfolio[data-portfolio-frame="outline"] #portfolio-galleries[data-portfolio-mode="author"] .pol-img img { width: 100%; height: 100%; object-fit: cover; }
body #portfolio[data-portfolio-frame="outline"] figcaption { display: grid; grid-template-rows: minmax(2.6em, auto) auto; align-content: start; justify-content: stretch; gap: 4px; padding: 12px 3px 16px; font-size: 13px; }
body #portfolio .portfolio-mixed [data-portfolio-preview] .pol-img img { object-fit: cover; }
body #portfolio[data-portfolio-frame="outline"] .hand { align-self: center; }
body #portfolio[data-portfolio-frame="outline"] .fno { display: none; }
body #portfolio[data-portfolio-frame="outline"] figcaption .photo-credit { margin: 0; }
/* Crop thumbnails only; gallery-open still points at the uncropped original. */
body #photo-gallery .gal figure > .gallery-open img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; object-position: center; background: transparent; }
body #photo-gallery .gal figure > .gallery-open img[data-photo-source="images/plenery-dodatkowe/welon-na-wietrze.jpg"] { object-position: left center; }
body #photo-gallery.photographer-galleries-pair { gap: 64px; }
/* Fill rows in source order instead of balancing unequal vertical columns. */
body #photo-gallery .gal { columns: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; align-items: start; }
body #photo-gallery .gal figure { margin: 0; min-width: 0; }
html[data-photographer]:not([data-photographer="all"]) body #photo-gallery .gal { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body #photo-gallery .gallery-caption-open { grid-template-rows: auto auto; align-content: start; row-gap: 3px; }
body #photo-gallery .gallery-caption-title { font: normal 400 clamp(11px, .9vw, 13px)/1.3 'Bodoni Moda', Didot, serif; font-synthesis: none; letter-spacing: .025em; text-transform: uppercase; }
@media (max-width: 1100px) {
  html[data-photographer]:not([data-photographer="all"]) body #photo-gallery .gal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body #photo-gallery.photographer-galleries-pair { gap: 48px; }
  html[data-photographer]:not([data-photographer="all"]) body #photo-gallery .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body #portfolio-galleries .portfolio-mixed .portfolio-track { gap: 16px; }
  body #portfolio-galleries .portfolio-mixed .portfolio-slide { flex-basis: calc((100% - 16px) / 2); width: calc((100% - 16px) / 2); }
}
html[data-photographer="all"] .photographer-preview-note { display: block; }
@media (max-width: 1100px) {
  html[data-photographer]:not([data-photographer="all"]) body .photographer-galleries-pair .gal { columns: 3; }
}
@media (max-width: 760px) {
  .photographer-galleries-pair { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  html[data-photographer]:not([data-photographer="all"]) body .photographer-galleries-pair .gal { columns: 2; }
  body #instagram .photographer-galleries-pair .insta-wall, html[data-photographer]:not([data-photographer="all"]) body #instagram .photographer-galleries-pair .insta-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body #instagram .photographer-galleries-pair { width: calc(100% - 40px); gap: 48px; }
  html[data-photographer="all"] body #instagram .photographer-galleries-pair::before { display: none; }
  body #instagram .photographer-galleries-pair .wrap { width: 100%; }
}
.photographer-collection-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; align-items: center; margin-bottom: 24px; }
body .photographer-collection-head h3 { font: 500 clamp(24px, 3vw, 36px)/1.3 var(--sans); margin: 0; color: var(--ink); letter-spacing: -.03em; text-transform: none; }
.photographer-collection-actions { display: flex; flex-wrap: wrap; gap: 16px 24px; }
.photographer-collection-actions a { font: 500 13px/1.6 var(--sans); color: inherit; text-decoration: underline; text-underline-offset: 5px; min-height: 44px; display: inline-flex; align-items: center; }
/* Gallery uses the homepage's filled gallery / outlined inquiry action pair. */
body #photo-gallery .photographer-collection-head { display: grid; gap: 16px; }
body #photo-gallery .gallery-author-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
body #photo-gallery .gallery-author-actions a { justify-content: center; min-height: 48px; padding: 12px 14px; border: 1px solid var(--ink); font: 500 12px/1.5 var(--sans); text-align: center; text-decoration: none; transition: background .2s ease, color .2s ease; }
body #photo-gallery .gallery-author-actions a:first-child { background: var(--ink); color: #fff; }
body #photo-gallery .gallery-author-actions a:first-child:hover { background: #303030; }
body #photo-gallery .gallery-author-actions a:last-child:hover { background: var(--ink); color: #fff; }
body #photo-gallery .gallery-author-actions a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  body #photo-gallery .gallery-author-actions a { transition: none; }
}
body #instagram .instagram-profile-head { display: grid; gap: 14px; margin: 0 0 20px; }
body #instagram .instagram-profile-identity { display: flex; align-items: center; gap: 16px; }
body #instagram .instagram-profile-avatar { display: block; flex: 0 0 72px; width: 72px; height: 72px; padding: 3px; border: 1px solid #d8d8d4; border-radius: 50%; }
body #instagram .instagram-profile-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border-radius: 50%; }
body #instagram .instagram-profile-head h3 { font: 500 clamp(18px, 1.8vw, 23px)/1.3 var(--sans); margin: 0 0 4px; letter-spacing: -.02em; }
body #instagram .instagram-profile-head p { margin: 0; font: 400 12px/1.5 var(--sans); color: #666; }
body #instagram .instagram-profile-actions { margin-top: 4px; }
body #instagram .instagram-profile-actions .photographer-collection-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
body #instagram .instagram-profile-actions a { justify-content: center; min-height: 48px; padding: 12px 14px; border: 1px solid var(--ink); font: 500 12px/1.5 var(--sans); text-align: center; text-decoration: none; transition: background .2s ease, color .2s ease; }
body #instagram .instagram-profile-actions a:first-child { background: var(--ink); color: #fff; }
body #instagram .instagram-profile-actions a:first-child:hover { background: #303030; }
body #instagram .instagram-profile-actions a:last-child:hover { background: var(--ink); color: #fff; }
body #instagram .instagram-profile-actions a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (max-width: 480px) {
  body #instagram .instagram-profile-actions .photographer-collection-actions { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  body #instagram .instagram-profile-actions a { transition: none; }
}
body #instagram .instagram-profile-avatar:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
body #instagram .photographer-collection .insta-wall { gap: 3px; }
body .photographer-collection .portfolio-tools { margin-bottom: 18px; }
body .photographer-collection .portfolio-position { margin-bottom: 0; }
body #film .photographer-collection-head h3 { color: #fff; }
body #film .photographer-collection .film-row { margin: 0; }
.footer-photographers { grid-column: 1 / -1; padding-bottom: 24px; }
body .site-footer .footer-photographers h3 { font: 500 clamp(20px, 2.5vw, 28px)/1.3 var(--sans); letter-spacing: -.02em; text-transform: none; color: #fff; margin: 0 0 12px; }
body .site-footer .footer-photographers p { color: #b7b7b0; max-width: 700px; font-size: 15px; line-height: 1.75; margin: 0 0 20px; }
.photo-credit { display: block; font: 400 11px/1.6 var(--sans); letter-spacing: .02em; text-transform: none; }
body .polaroid figcaption .photo-credit { flex-basis: 100%; margin-top: 5px; color: #555; }
body .gal figcaption .photo-credit { margin-top: 5px; color: inherit; }
body #instagram .photographer-collection .insta-wall .cell { aspect-ratio: auto; background: transparent; }
body #instagram .photographer-collection .insta-wall .cell img { display: block; aspect-ratio: 4 / 5; height: auto; }
body .insta-wall .photo-credit { position: static; display: block; padding: 10px 12px 18px; color: var(--ink); background: transparent; }
body .gal figure figcaption { position: static; width: 100%; box-sizing: border-box; padding: 0; mix-blend-mode: normal; text-shadow: none; background: transparent; color: var(--ink); font-size: 10px; line-height: 1.6; pointer-events: auto; }
body .gal .gallery-caption-open { display: grid; grid-template-columns: 24px minmax(0, 1fr) 24px; grid-template-rows: auto auto; align-items: baseline; gap: 5px 8px; min-height: 72px; padding: 15px 0 19px; color: inherit; text-decoration: none; cursor: zoom-in; }
.gallery-caption-index { grid-column: 1; grid-row: 1 / 3; align-self: start; padding-top: 5px; font: 400 10px/1.6 var(--sans); font-variant-numeric: tabular-nums; color: #666; letter-spacing: .04em; }
.gallery-caption-title { grid-column: 2; grid-row: 1; font: italic 400 clamp(17px, 1.65vw, 21px)/1.2 'Playfair Display', Georgia, serif; letter-spacing: -.02em; text-transform: none; overflow-wrap: anywhere; }
body .gal .gallery-caption-open .photo-credit { grid-column: 2; grid-row: 2; margin: 0; font: 400 10px/1.6 var(--sans); letter-spacing: 0; color: #555; text-transform: none; }
.gallery-caption-arrow { grid-column: 3; grid-row: 1 / 3; align-self: start; justify-self: end; font: 400 20px/1.1 var(--sans); padding-top: 1px; transform: translate(0, 0); transition: transform .2s ease; }
@media (hover: hover) {
  .gal figure:hover .gallery-caption-arrow { transform: translate(2px, -2px); }
  .gal .gallery-caption-open:hover .gallery-caption-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
}
body .gal .gallery-caption-open:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width: 700px) {
  body .gal .gallery-caption-open { grid-template-columns: 18px minmax(0, 1fr) 18px; column-gap: 5px; padding-top: 12px; }
  .gallery-caption-title { font-size: 17px; }
  .gallery-caption-arrow { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-caption-arrow { transition: none; }
  .gal figure:hover .gallery-caption-arrow { transform: none; }
}
body .gal figure { background: transparent; }
body .gal-head .gallery-author-intro { font: 400 17px/1.75 var(--sans); max-width: 68ch; margin: 18px 0; }
body .gal figure:hover figcaption { opacity: 1; }
body .value-section .photographer-value { color: #fff; margin-bottom: 32px; }
body #instagram .photographer-filters { margin-bottom: 24px; }
body #instagram .roll-more .btn-more { background: #0000ff; border-color: #0000ff; color: #fff; }
body #instagram .roll-more .btn-more:hover { background: #0000cc; border-color: #0000cc; color: #fff; }
body #instagram .roll-more .btn-more:focus-visible { outline-color: #0000ff; }
body #contact #contact-form > button[type="submit"] { background: #0000ff; border-color: #0000ff; color: #fff; }
body #contact #contact-form > button[type="submit"]:hover { background: #0000cc; border-color: #0000cc; color: #fff; }
body #contact #contact-form > button[type="submit"]:focus-visible { outline-color: #0000ff; }
@media (max-width: 700px) {
  .photographer-filter-buttons button { flex: 1 1 auto; padding: 10px 14px; }
  .photographer-filter-meta { display: grid; }
  html[data-photographer]:not([data-photographer="all"]) body #instagram .insta-wall .cell:nth-child(5n) { grid-column: auto; aspect-ratio: 4 / 5; }
  body .insta-wall .photo-credit { font-size: 10px; padding: 8px; }
  body #instagram .photographer-collection .insta-wall .cell:nth-child(5n) { grid-column: auto; aspect-ratio: auto; }
}
