/* =========================================================
   YES I CAN ROOFING & EXTERIORS
   BLOCK 06 — PROJECT GALLERY
   ========================================================= */

.project-gallery {
  width: 100%;
  padding: 38px 0 44px;
  background: #ffffff;
}

.project-gallery__inner {
  width: min(calc(100% - 110px), 1320px);
  margin: 0 auto;
}

.project-gallery__header {
  margin-bottom: 17px;
  text-align: center;
}

.project-gallery__eyebrow {
  display: block;
  margin-bottom: 7px;
  color: #e3131b;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.project-gallery__title {
  margin: 0;
  color: #08182b;
  font-size: clamp(38px, 3.5vw, 54px);
  font-weight: 950;
  line-height: .95;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.project-gallery__filters {
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
}

.project-gallery__filter {
  min-width: 102px;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid #d5dde5;
  border-radius: 6px;
  background: #fff;
  color: #172538;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.project-gallery__filter:hover,
.project-gallery__filter:focus-visible {
  transform: translateY(-1px);
  border-color: #aab6c2;
}

.project-gallery__filter.is-active {
  min-width: 92px;
  color: #fff;
  border-color: #e3131b;
  background: #e3131b;
  box-shadow: 0 6px 14px rgba(227,19,27,.15);
}

.project-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-gallery__item {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #dce3e9;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(3,23,43,.045);
}

.project-gallery__item[hidden] { display: none; }

.project-gallery__photo {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #edf1f4;
}

.project-gallery__photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 220ms ease;
}

.project-gallery__item:hover .project-gallery__photo img { transform: scale(1.025); }

.project-gallery__meta {
  position: relative;
  min-height: 78px;
  padding: 15px 16px 13px 74px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: #fff;
}

.project-gallery__icon {
  position: absolute;
  top: -24px;
  left: 14px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #06192e;
  box-shadow: 0 6px 14px rgba(3,23,43,.18);
}

.project-gallery__icon svg {
  width: 25px;
  height: 25px;
  fill: #fff;
}

.project-gallery__meta strong {
  color: #0a1b2f;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.15;
}

.project-gallery__meta span:not(.project-gallery__icon) {
  color: #687687;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
}

.project-gallery__actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.project-gallery__view-all {
  min-height: 42px;
  padding: 0 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1.5px solid #0a1b2f;
  border-radius: 6px;
  background: #fff;
  color: #0a1b2f;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.project-gallery__view-arrow { font-size: 18px; line-height: 1; }

@media (max-width: 980px) {
  .project-gallery__inner { width: min(calc(100% - 40px), 1320px); }
  .project-gallery__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 620px) {
  .project-gallery { padding: 28px 0 32px; }
  .project-gallery__inner { width: min(calc(100% - 24px),1320px); }
  .project-gallery__title { font-size: clamp(34px,10vw,46px); }
  .project-gallery__filters { justify-content:flex-start; flex-wrap:nowrap; overflow-x:auto; padding-bottom:4px; scrollbar-width:none; }
  .project-gallery__filters::-webkit-scrollbar { display:none; }
  .project-gallery__filter { flex:0 0 auto; }
  .project-gallery__grid { grid-template-columns:1fr; gap:13px; }
}
