.gallery-main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 198px 28px 40px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.gallery-main * {
  letter-spacing: normal;
}

.gallery-container {
  width: 100%;
}

.gallery-header {
  margin-bottom: 34px;
  text-align: center;
}

.gallery-header h1 {
  font-size: clamp(5.2rem, 8.1vw, 8.6rem);
  font-weight: normal;
  color: #e6eef6;
  margin-bottom: 4px;
  letter-spacing: -0.082em;
  line-height: 0.88;
  text-transform: lowercase;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(5.2rem, 8.1vw, 8.6rem) !important;
  letter-spacing: -0.082em !important;
  line-height: 0.88 !important;
}

.gallery-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.32);
  line-height: 1.45;
  letter-spacing: -0.05em;
  text-transform: lowercase;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 38px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.filter-pill {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 8px 21px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.filter-pill:hover {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.32);
}

.filter-pill.active {
  color: #e6eef6;
  border-color: rgba(208, 228, 255, 0.5);
  background: rgba(208, 228, 255, 0.12);
}

.gallery-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: 180px;
}

.project-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(208, 228, 255, 0.24);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -14px rgba(0,0,0,0.42);
}

.project-card:hover .project-title {
  color: #f8fbff;
}

.project-thumb {
  width: 112px;
  height: 112px;
  min-width: 112px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (hover: none) {
  .project-card:hover {
    transform: none;
    box-shadow: none;
  }
}

.project-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  opacity: 0.3;
}

.project-info {
  flex: 1;
  min-width: 0;
}

.project-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.project-date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.project-category-tag {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  color: rgba(208, 228, 255, 0.9);
  background: rgba(208, 228, 255, 0.12);
  padding: 3px 10px;
  border-radius: 4px;
  white-space: nowrap;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.project-title {
  font-size: 17px;
  font-weight: 400;
  color: #e6eef6;
  margin-bottom: 5px;
  transition: color 0.18s ease;
  line-height: 1.25;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-transform: lowercase;
  letter-spacing: -0.07em;
}

.project-desc {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-read-more {
  font-size: 13.5px;
  color: rgba(208, 228, 255, 0.72);
  margin-top: 8px;
  display: inline-block;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
}

.project-card:hover .project-read-more {
  color: rgba(226, 232, 240, 0.95);
}

@media (max-width: 1100px) {
  .gallery-main {
    max-width: 980px;
    padding: 184px 22px 36px;
  }

  .gallery-header h1 {
    font-size: clamp(3.8rem, 8vw, 6.2rem) !important;
    line-height: 0.9 !important;
  }

  .gallery-subtitle {
    font-size: 13.5px;
  }

  .project-card {
    gap: 14px;
    padding: 16px 18px;
    border-radius: 12px;
  }

  .project-thumb {
    width: 88px;
    height: 88px;
    min-width: 88px;
  }

  .project-date {
    font-size: 11px;
  }

  .project-category-tag {
    font-size: 9px;
    padding: 2px 8px;
  }

  .project-title {
    font-size: 14px;
    line-height: 1.18;
    letter-spacing: -0.04em;
    margin-bottom: 4px;
  }

  .project-desc {
    font-size: 12.6px;
    line-height: 1.34;
  }

  .project-read-more {
    font-size: 11.5px;
    margin-top: 6px;
  }
}

.gallery-empty {
  text-align: center;
  padding: 60px 0;
  color: rgba(255, 255, 255, 0.3);
  font-size: 14px;
  font-style: italic;
}

@media (max-width: 600px) {
  .gallery-main {
    padding-top: calc(var(--clocks-top-mobile, 160px) + 118px) !important;
    padding-left: 16px;
    padding-right: 16px;
  }

  .gallery-header h1 {
    font-size: 44px;
    line-height: 0.9;
    font-size: 44px !important;
    line-height: 0.9 !important;
  }

  .gallery-subtitle {
    font-size: 16px;
    letter-spacing: -0.03em;
  }

  .gallery-filters {
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 18px;
  }

  .filter-pill {
    font-size: 12px;
    padding: 6px 14px;
  }

  .project-card {
    gap: 12px;
    padding: 14px;
  }

  .project-thumb {
    width: 74px;
    height: 74px;
    min-width: 74px;
  }

  .project-title {
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: -0.035em;
  }

  .project-desc {
    font-size: 12.2px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
  }

  .project-date {
    font-size: 10px;
  }

  .project-category-tag {
    font-size: 9px;
    padding: 2px 6px;
  }

  .project-read-more {
    font-size: 11px;
  }
}

@media (max-width: 768px) {
  .gallery-main {
    padding-top: calc(var(--clocks-top-mobile, 160px) + 108px) !important;
  }
}
