/* =====================================================
   PT MEDIA LOGOS – CAROUSEL PRO (NO PDF)
===================================================== */

.pt-media-logos-wrap {
  position: relative;
  --pt-per-page: 4;
  --pt-gap: 34px;
  --pt-card-ratio: 3 / 4;           /* 🔑 cert = równe (pion/poziom) */
  --pt-card-max-h: clamp(300px, 22vw, 340px); /* 🔑 nie będą gigantyczne */
}
.pt-media-logos__media {
  cursor: default;
  
}

.pt-media-logos__media[data-lightbox="1"] {
  cursor: zoom-in;
  border: 2px solid #203b57;
}

.pt-media-logos {
  position: relative;
}
.pt-media-logos--crop .pt-media-logos__media img {
  object-fit: cover;
}
.pt-media-logos--nocrop .pt-media-logos__media img {
  object-fit: contain;
  background: transparent;
}

/* =====================================================
   SCHEMES
===================================================== */

.pt-media-logos--scheme-dark { color: #203b57; }
.pt-media-logos--scheme-light { color: #ffffff; }

.pt-media-logos--scheme-light .pt-media-logos__title,
.pt-media-logos--scheme-light .pt-media-logos__text {
  color: #ffffff;
}

/* =====================================================
   HEADER
===================================================== */

.pt-media-logos__title {
font-family: "Oddlini", serif;
  font-size: 38px;
  line-height: 1.2;
  margin: 24px 0;
}

.pt-media-logos__text {
  font-family: "Garamond", serif;
  font-size: 20px;
  max-width: 820px;
  margin: 0 0 48px;
  opacity: .85;
}

/* =====================================================
   VIEWPORT / TRACK
===================================================== */

.pt-media-logos__viewport {
  overflow: hidden;
  width: 100%;
  touch-action: pan-y; /* swipe bez blokowania scrolla */
}

.pt-media-logos__track {
  display: flex;
  transition: transform .6s cubic-bezier(.22,1,.36,1);
  will-change: transform;
}


.pt-media-logos__track.is-no-anim {
  transition: none !important;
}

/* =====================================================
   ITEMS (SAME WIDTH)
===================================================== */

.pt-media-logos__item {
  flex: 0 0 calc(100% / var(--pt-per-page));
  padding: 0 calc(var(--pt-gap) / 2);
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}


/* =====================================================
   CERT CARD – NO SHADOWS, COVER, SAME HEIGHT
===================================================== */

.pt-media-logos__media {
  display: block;
  width: 100%;
  max-height: var(--pt-card-max-h);
  aspect-ratio: var(--pt-card-ratio);
  overflow: hidden;
  background: transparent;
}

.pt-media-logos__media img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 🔑 pion/poziom wygląda równo */
  display: block;
}

/* =====================================================
   DOTS
===================================================== */

.pt-media-logos-dots {
display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.pt-media-logos-dot {
position: relative;
  width: 48px;
  height: 48px;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.pt-media-logos-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(31,42,54,.35);
  transform: translate(-50%,-50%);
  transition: background .2s ease, transform .2s ease;
}


.pt-media-logos-dot.is-active::before {
  background: #1f2a36;
  transform: translate(-50%,-50%) scale(1.2);
}
@media (pointer: coarse) {
  .pt-media-logos-dot {
    width: 52px;
    height: 52px;
  }
}
.pt-media-logos--scheme-light .pt-media-logos-dot {
  background: rgba(255,255,255,.4);
}

.pt-media-logos--scheme-light .pt-media-logos-dot.is-active {
  background: #ffffff;
}

/* =====================================================
   ARROWS (DESKTOP ONLY)
===================================================== */

.pt-media-logos-arrow {
position: absolute;
  top: 52%;
  transform: translateY(-52);
  z-index: 30;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: #2f445d;
  color: #fff;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pt-media-logos-arrow.prev { left: -40px; }
.pt-media-logos-arrow.next { right: -40px; }

.pt-media-logos-arrow::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: 16px;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 900px) {
  .pt-media-logos-arrow { display: none !important; } /* mobile: tylko dots */
}

/* =====================================================
   LIGHTBOX
===================================================== */

.pt-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.pt-lightbox.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pt-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.85);
}

.pt-lightbox__content {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pt-lightbox__content img {
  max-width: 100%;
  max-height: 92vh;
  display: block;
}

.pt-lightbox__close {
  position: absolute;
  top: -44px;
  right: 0;
  font-size: 34px;
  line-height: 1;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* opcjonalnie: blokada scrolla strony podczas LB */
html.pt-lightbox-open { overflow: hidden; }

/* =====================================================
   MOBILE TYPO / SPACING
===================================================== */

@media (max-width: 768px) {
  .pt-media-logos-wrap {
    padding-bottom: 30px;
    --pt-gap: 16px;
  }
  .pt-media-logos__track {
    margin: 0;
  }

  .pt-media-logos__item {
    padding-left: 0;
    padding-right: 0;
  }
  .pt-media-logos__title { font-size: 27px; text-align: left; }
  .pt-media-logos__text  { font-size: 21px; text-align: left; }
}
