/* ==========================================================================
   meyepic v6.25.0 — minimalistyczna strona główna
   ========================================================================== */

.meyepic-gallery-route {
  color-scheme: light;
  background: #fff;
}

.meyepic-gallery-route body {
  position: static !important;
  inset: auto !important;
  width: auto !important;
  height: auto !important;
  min-height: 100% !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: auto !important;
  touch-action: auto !important;
  color: #111 !important;
  background: #fff !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 400 !important;
}

.meyepic-gallery-route .site-intro,
.meyepic-gallery-route .viewer-shell,
.meyepic-viewer-route .home-gallery-shell {
  display: none !important;
}

.home-gallery-shell {
  --home-edge: clamp(20px, 4vw, 76px);
  --home-width: 1420px;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  color: #111;
  background: #fff;
}

.home-gallery-header {
  width: min(
    calc(100% - (2 * var(--home-edge))),
    var(--home-width)
  );
  min-height: 168px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-top: 26px;
}

.home-gallery-logo {
  display: block;
  width: 78px;
  height: 78px;
  flex: 0 0 auto;
}

.home-gallery-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-gallery-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2.2vw, 38px);
  padding-top: 30px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
}

.home-gallery-nav a,
.home-gallery-nav button {
  appearance: none;
  min-height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  color: #1b1b1b;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 400;
  text-decoration: none;
}

.home-gallery-nav a:hover,
.home-gallery-nav button:hover,
.home-gallery-nav a:focus-visible,
.home-gallery-nav button:focus-visible {
  border-bottom-color: #1b1b1b;
  outline: 0;
}

.home-gallery-nav .home-gallery-priv {
  margin-left: 4px;
}

.home-gallery-main {
  width: min(
    calc(100% - (2 * var(--home-edge))),
    var(--home-width)
  );
  margin: 0 auto;
  padding: 18px 0 92px;
}

.home-gallery-intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
  border-bottom: 1px solid #ececec;
  padding-bottom: 12px;
}

.home-gallery-intro h1,
.home-gallery-intro p {
  margin: 0;
  font-weight: 400;
}

.home-gallery-intro h1 {
  font-size: 16px;
  text-transform: uppercase;
}

.home-gallery-intro p {
  color: #777;
  font-size: 12px;
}

.home-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(46px, 5.5vw, 88px) clamp(24px, 3vw, 46px);
}

.home-gallery-card {
  min-width: 0;
  display: grid;
  gap: 12px;
  color: #111;
  text-decoration: none;
  opacity: 0;
  transform: translateY(8px);
  animation: home-card-enter .42s ease forwards;
  animation-delay: calc(var(--home-card-order, 0) * 35ms);
}

.home-gallery-card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background:
    linear-gradient(135deg, #f2f2f2, #e8e8e8);
}

.home-gallery-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0,0,0,.08);
  pointer-events: none;
}

.home-gallery-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition:
    transform .48s ease,
    filter .48s ease;
}

.home-gallery-card:hover .home-gallery-card-media img,
.home-gallery-card:focus-visible .home-gallery-card-media img {
  transform: scale(1.025);
  filter: saturate(1.04);
}

.home-gallery-card:focus-visible {
  outline: 1px solid #111;
  outline-offset: 7px;
}

.home-gallery-card-media.image-error::before {
  content: "meyepic";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #999;
  font-size: 12px;
}

.home-gallery-views {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  min-width: 62px;
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px 0 12px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
  color: #fff;
  background: rgba(0,0,0,.90);
  font-size: 11px;
  font-weight: 400;
}

.home-gallery-eye {
  position: relative;
  width: 14px;
  height: 9px;
  display: inline-block;
  border: 1px solid #7ee8ff;
  border-radius: 50% / 60%;
  transform: rotate(-4deg);
}

.home-gallery-eye::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #7ee8ff;
  transform: translate(-50%, -50%);
}

.home-gallery-type {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  min-width: 70px;
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 12px 0 20px;
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%);
  color: #111;
  background: #ffe600;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .04em;
}

.home-gallery-type.is-wide {
  background: #cfee31;
}

.home-gallery-type.is-planet {
  background: #ffc35c;
}

.home-gallery-type.is-image {
  background: #e4e4e4;
}

.home-gallery-card-content {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.home-gallery-card-title,
.home-gallery-card-detail {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 400;
}

.home-gallery-card-title {
  font-size: 14px;
  line-height: 1.3;
}

.home-gallery-card-detail {
  color: #858585;
  font-size: 11px;
  line-height: 1.35;
}

.home-gallery-empty {
  min-height: 260px;
  place-items: center;
  color: #777;
  border-top: 1px solid #ececec;
  font-size: 13px;
}

.home-gallery-empty:not([hidden]) {
  display: grid;
}

.home-gallery-footer {
  width: min(
    calc(100% - (2 * var(--home-edge))),
    var(--home-width)
  );
  min-height: 58px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #ececec;
  color: #9a9a9a;
  font-size: 10px;
  font-weight: 400;
}

.home-gallery-footer a {
  color: inherit;
  text-decoration: none;
}

.home-gallery-footer a:hover {
  color: #111;
}

.home-gallery-notice {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition:
    visibility 0s linear .2s,
    opacity .2s ease;
}

.home-gallery-notice.is-open {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.home-gallery-notice-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(7px);
  cursor: default;
}

.home-gallery-notice-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 42px 44px;
  border: 1px solid #ddd;
  color: #111;
  background: #fff;
  box-shadow: 0 24px 90px rgba(0,0,0,.12);
}

.home-gallery-notice-close {
  position: absolute;
  top: 10px;
  right: 13px;
  width: 30px;
  height: 30px;
  border: 0;
  color: #555;
  background: transparent;
  cursor: pointer;
  font-size: 23px;
  font-weight: 400;
}

.home-gallery-notice-label,
.home-gallery-notice-card h2,
.home-gallery-notice-card p {
  margin: 0;
  font-weight: 400;
}

.home-gallery-notice-label {
  display: block;
  margin-bottom: 24px;
  color: #999;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.home-gallery-notice-card h2 {
  margin-bottom: 12px;
  font-size: 20px;
}

.home-gallery-notice-card p {
  color: #686868;
  font-size: 13px;
  line-height: 1.55;
}

body.home-notice-open {
  overflow: hidden !important;
}

@keyframes home-card-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-gallery-card {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .home-gallery-card-media img {
    transition: none;
  }
}

@media (max-width: 980px) {
  .home-gallery-shell {
    --home-edge: clamp(20px, 5vw, 46px);
  }

  .home-gallery-header {
    min-height: 138px;
  }

  .home-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px 28px;
  }

  .home-gallery-nav {
    gap: clamp(14px, 2.5vw, 25px);
    font-size: 12px;
  }
}

@media (max-width: 640px) {
  .home-gallery-shell {
    --home-edge: 16px;
  }

  .home-gallery-header {
    min-height: 96px;
    align-items: flex-start;
    gap: 14px;
    padding-top: 13px;
  }

  .home-gallery-logo {
    width: 48px;
    height: 48px;
  }

  .home-gallery-nav {
    max-width: calc(100vw - 85px);
    gap: 13px;
    padding-top: 13px;
    overflow-x: auto;
    justify-content: flex-start;
    font-size: 10px;
    scrollbar-width: none;
  }

  .home-gallery-nav::-webkit-scrollbar {
    display: none;
  }

  .home-gallery-main {
    padding-top: 6px;
    padding-bottom: 58px;
  }

  .home-gallery-intro {
    margin-bottom: 22px;
  }

  .home-gallery-intro h1 {
    font-size: 13px;
  }

  .home-gallery-intro p {
    font-size: 10px;
  }

  .home-gallery-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
  }

  .home-gallery-card-title {
    font-size: 13px;
  }

  .home-gallery-card-detail {
    font-size: 10px;
  }

  .home-gallery-footer {
    min-height: 52px;
  }

  .home-gallery-notice-card {
    padding: 38px 28px 30px;
  }
}


/* v6.24.1d — wspólna belka galerii i viewera */
.meyepic-viewer-route .viewer-gallery-header {
  position: fixed;
  z-index: 900;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 76px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: max(12px, env(safe-area-inset-top)) clamp(18px, 2.8vw, 46px) 10px;
  border-bottom: 1px solid rgba(0,0,0,.10);
  color: #111;
  background: rgba(255,255,255,.92);
  box-shadow: none;
  backdrop-filter: blur(12px);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
}
.meyepic-viewer-route .viewer-gallery-header .brand-logo {
  position: static;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}
.meyepic-viewer-route .viewer-gallery-header .brand-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.viewer-main-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 2vw, 30px);
  padding-top: 13px;
  white-space: nowrap;
  font-size: 12px;
}
.viewer-nav-link {
  appearance: none;
  min-height: 26px;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  color: #181818;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 400;
  text-decoration: none;
}
.viewer-nav-link:hover,
.viewer-nav-link:focus-visible,
.viewer-nav-link.active {
  border-bottom-color: currentColor;
  outline: 0;
}
.viewer-nav-link.hidden { display: none !important; }
.viewer-priv-link { color: #4b2b83; }
.meyepic-viewer-route .viewer-area { padding-top: 76px; }
.meyepic-viewer-route .top-more { position: relative; }
.meyepic-viewer-route .viewer-more-menu {
  top: calc(100% + 18px);
  right: 0;
  min-width: 230px;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  padding: 13px;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 0;
  color: #111;
  background: rgba(255,255,255,.97);
  box-shadow: 0 18px 48px rgba(0,0,0,.16);
}
.meyepic-viewer-route .viewer-more-menu .icon-button,
.meyepic-viewer-route .viewer-more-menu .top-layers-toggle {
  width: 100%;
  min-height: 35px;
  justify-content: flex-start;
  padding: 0 8px;
  border: 0;
  border-bottom: 1px solid #ececec;
  border-radius: 0;
  color: #222;
  background: transparent;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 400;
  text-align: left;
}
.meyepic-viewer-route .viewer-more-menu .icon-button:hover,
.meyepic-viewer-route .viewer-more-menu .top-layers-toggle:hover {
  background: #f5f5f5;
}
.viewer-menu-search {
  display: grid;
  gap: 7px;
  margin-bottom: 9px;
  color: #777;
  font-size: 9px;
  font-weight: 400;
}
.viewer-menu-search input {
  width: 100%;
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  border-bottom: 1px solid #bbb;
  border-radius: 0;
  outline: 0;
  color: #111;
  background: transparent;
  font: 400 12px Arial, Helvetica, sans-serif;
}
.meyepic-viewer-route .top-layers-menu {
  position: static;
  width: 100%;
  margin: 0;
  padding: 0 0 0 10px;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.meyepic-viewer-route #toggle-flat.is-switching {
  opacity: .55;
  cursor: wait;
}
@media (max-width: 700px) {
  .meyepic-viewer-route .viewer-gallery-header {
    min-height: 62px;
    gap: 10px;
    padding: max(8px, env(safe-area-inset-top)) 12px 7px;
  }
  .meyepic-viewer-route .viewer-gallery-header .brand-logo {
    width: 42px;
    height: 42px;
  }
  .viewer-main-nav {
    max-width: calc(100vw - 66px);
    justify-content: flex-start;
    gap: 13px;
    padding-top: 10px;
    overflow-x: auto;
    font-size: 9px;
    scrollbar-width: none;
  }
  .viewer-main-nav::-webkit-scrollbar { display: none; }
  .meyepic-viewer-route .viewer-area { padding-top: 62px; }
  .meyepic-viewer-route .viewer-more-menu {
    position: fixed;
    top: 61px;
    right: 10px;
    left: 10px;
    width: auto;
    max-height: calc(100vh - 82px);
  }
}


/* ==========================================================================
   v6.25.0 — animowane logo + ikonowe menu strony głównej
   ========================================================================== */

.home-gallery-header {
  min-height: 178px;
}

.home-gallery-logo {
  width: 104px;
  height: 104px;
}

.home-gallery-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-gallery-nav {
  gap: clamp(24px, 3vw, 46px);
  padding-top: 20px;
}

.home-gallery-nav .home-gallery-nav-icon {
  min-width: 64px;
  min-height: 82px;
  display: grid;
  grid-template-rows: 52px auto;
  place-items: center;
  gap: 5px;
  padding: 0;
  border: 0 !important;
  color: #111;
  text-align: center;
}

.home-gallery-nav-icon img {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: contain;
  filter: grayscale(1) saturate(0);
  opacity: .58;
  transition:
    filter .18s ease,
    opacity .18s ease,
    transform .18s ease;
}

.home-gallery-nav-icon span {
  font: 400 12px/1 Arial, Helvetica, sans-serif;
}

.home-gallery-nav-icon:hover img,
.home-gallery-nav-icon:focus-visible img {
  filter: none;
  opacity: 1;
  transform: translateY(-1px) scale(1.04);
}

.home-gallery-nav-icon:hover,
.home-gallery-nav-icon:focus-visible {
  border: 0 !important;
  outline: 0;
}

.home-gallery-footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-gallery-footer-links span {
  color: #ccc;
}

@media (max-width: 640px) {
  .home-gallery-header {
    min-height: 124px;
  }

  .home-gallery-logo {
    width: 72px;
    height: 72px;
  }

  .home-gallery-nav {
    gap: 12px;
    padding-top: 10px;
  }

  .home-gallery-nav .home-gallery-nav-icon {
    min-width: 52px;
    min-height: 68px;
    grid-template-rows: 42px auto;
  }

  .home-gallery-nav-icon img {
    width: 40px;
    height: 40px;
  }

  .home-gallery-nav-icon span {
    font-size: 10px;
  }
}
