/* Chrobrego.pl - responsywna galeria wyroznien
   Plik niezalezny od glownego style.css, aby aktualizacja byla bezpieczna. */
.chrobrego-awards {
  background: #eef7f8;
  padding: 64px 0 72px;
  overflow: hidden;
}
.chrobrego-awards * { box-sizing: border-box; }
.chrobrego-awards .awards-intro {
  max-width: 980px;
  margin: 0 auto 44px;
  text-align: center;
}
.chrobrego-awards .awards-intro h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.2;
  font-weight: 300;
  color: #4a4a4a;
}
.chrobrego-awards .awards-intro p {
  margin: 0 auto;
  max-width: 900px;
  line-height: 1.75;
  text-align: center;
}
.chrobrego-awards .award-group { margin-top: 42px; }
.chrobrego-awards .award-group:first-of-type { margin-top: 0; }
.chrobrego-awards .award-group h3 {
  margin: 0 0 22px;
  text-align: center;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.3;
  font-weight: 400;
  color: #4a4a4a;
}
.chrobrego-awards .award-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.chrobrego-awards .award-grid.award-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
.chrobrego-awards .award-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  min-height: 286px;
  padding: 18px 16px 16px;
  margin: 0;
  color: #3e3e3e;
  text-decoration: none !important;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(18, 54, 58, .07);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.chrobrego-awards .award-card:hover,
.chrobrego-awards .award-card:focus-visible {
  color: #3e3e3e;
  text-decoration: none !important;
  transform: translateY(-3px);
  border-color: rgba(8,198,204,.55);
  box-shadow: 0 9px 24px rgba(18,54,58,.13);
  outline: none;
}
.chrobrego-awards .award-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(8,198,204,.23), 0 9px 24px rgba(18,54,58,.13);
}
.chrobrego-awards .award-card__media {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  overflow: hidden;
}
.chrobrego-awards .award-card__media img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 178px;
  object-fit: contain;
}
.chrobrego-awards .award-card--compact .award-card__media img {
  max-height: 132px;
}
.chrobrego-awards .award-card__title {
  display: block;
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
  text-align: center;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}
.chrobrego-awards .award-card__hint {
  display: block;
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 400;
  text-align: center;
  color: #777;
}
.chrobrego-awards .awards-profile {
  margin-top: 30px;
  text-align: center;
}
.chrobrego-awards .awards-profile a {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  color: #fff !important;
  background: #08b7bd;
  text-decoration: none !important;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: 0 4px 14px rgba(8,183,189,.22);
  transition: transform .18s ease, background .18s ease;
}
.chrobrego-awards .awards-profile a:hover,
.chrobrego-awards .awards-profile a:focus-visible {
  background: #079da2;
  transform: translateY(-1px);
  outline: none;
}

/* Lightbox */
body.award-lightbox-open { overflow: hidden !important; }
.award-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 34px 76px;
  background: rgba(0,0,0,.86);
}
.award-lightbox.is-open { display: flex; }
.award-lightbox__dialog {
  position: relative;
  width: min(920px, 100%);
  max-height: calc(100vh - 68px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 26px 26px 18px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 70px rgba(0,0,0,.45);
}
.award-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 170px);
  width: auto;
  height: auto;
  object-fit: contain;
}
.award-lightbox__caption {
  margin: 12px 48px 0;
  color: #333;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}
.award-lightbox__close,
.award-lightbox__prev,
.award-lightbox__next {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  font-family: Arial, sans-serif;
  line-height: 1;
  color: #fff;
  background: rgba(0,0,0,.64);
  box-shadow: none;
}
.award-lightbox__close {
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 28px;
}
.award-lightbox__prev,
.award-lightbox__next {
  top: 50%;
  width: 48px;
  height: 64px;
  transform: translateY(-50%);
  border-radius: 10px;
  font-size: 36px;
}
.award-lightbox__prev { left: -62px; }
.award-lightbox__next { right: -62px; }
.award-lightbox__close:hover,
.award-lightbox__prev:hover,
.award-lightbox__next:hover,
.award-lightbox__close:focus-visible,
.award-lightbox__prev:focus-visible,
.award-lightbox__next:focus-visible {
  background: #08b7bd;
  outline: none;
}

@media (max-width: 980px) {
  .chrobrego-awards { padding: 52px 0 60px; }
  .chrobrego-awards .award-grid,
  .chrobrego-awards .award-grid.award-grid-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
  }
  .award-lightbox { padding: 24px 58px; }
  .award-lightbox__prev { left: -50px; }
  .award-lightbox__next { right: -50px; }
}
@media (max-width: 640px) {
  .chrobrego-awards { padding: 42px 0 48px; }
  .chrobrego-awards .awards-intro { margin-bottom: 34px; }
  .chrobrego-awards .award-group { margin-top: 34px; }
  .chrobrego-awards .award-grid,
  .chrobrego-awards .award-grid.award-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .chrobrego-awards .award-card {
    min-height: 238px;
    padding: 12px 10px 12px;
    border-radius: 11px;
  }
  .chrobrego-awards .award-card__media { height: 150px; }
  .chrobrego-awards .award-card__media img { max-height: 140px; }
  .chrobrego-awards .award-card--compact .award-card__media img { max-height: 105px; }
  .chrobrego-awards .award-card__title { font-size: 12.5px; }
  .chrobrego-awards .award-card__hint { font-size: 10px; }
  .award-lightbox { padding: 14px; }
  .award-lightbox__dialog { max-height: calc(100vh - 28px); padding: 20px 14px 14px; }
  .award-lightbox__image { max-height: calc(100vh - 132px); }
  .award-lightbox__caption { margin: 10px 46px 0; font-size: 12px; }
  .award-lightbox__prev,
  .award-lightbox__next {
    top: auto;
    bottom: 9px;
    width: 38px;
    height: 38px;
    transform: none;
    border-radius: 50%;
    font-size: 26px;
  }
  .award-lightbox__prev { left: 10px; }
  .award-lightbox__next { right: 10px; }
  .award-lightbox__close { width: 38px; height: 38px; font-size: 25px; }
}
@media (max-width: 339px) {
  .chrobrego-awards .award-grid,
  .chrobrego-awards .award-grid.award-grid-4 { grid-template-columns: 1fr; }
  .chrobrego-awards .award-card { min-height: 230px; }
}
@media (prefers-reduced-motion: reduce) {
  .chrobrego-awards .award-card,
  .chrobrego-awards .awards-profile a { transition: none; }
}
