﻿body.ic-all-projects {
  background: #fff;
}

@media (max-width: 800px), (min-width: 801px) {
  body.ic-all-projects .ic-header,
  body.ic-all-projects .ic-footer,
  body.ic-all-projects .ic-tabbar {
    display: none !important;
  }
}

.ic-ap {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
  padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px));
}

.ic-ap-head {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: #fff;
  flex-shrink: 0;
}

.ic-ap-close {
  grid-column: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  text-decoration: none;
  color: inherit;
}

.ic-ap-head-text {
  grid-column: 2;
  text-align: center;
}

.ic-ap-head-space {
  grid-column: 3;
  width: 42px;
}

.ic-ap-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #2d3a4a;
}

.ic-ap-subtitle {
  margin: 4px 0 0;
  font-size: 11px;
  color: #919aaf;
}

.ic-ap-body {
  flex: 1;
}

.ic-ap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 10px 5px 16px;
}

.ic-ap-card {
  min-width: 0;
  margin: 3px;
  border-radius: 12px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  text-align: center;
  padding-bottom: 10px;
  background: #fff;
}

.ic-ap-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #ececec;
}

.ic-ap-media img,
.ic-ap-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ic-ap-media video {
  pointer-events: none;
}

.ic-ap-media video.is-sakht-thumb-loading {
  opacity: 0;
}

.ic-ap-media img.ic-sakht-video-poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ic-ap-media.is-sakht-thumb-failed {
  background: #e8edf3;
}

.ic-ap-media video.is-sakht-thumb-failed,
.ic-ap-media video[hidden] {
  display: none !important;
}

.ic-ap-media .ic-play {
  border-radius: 12px;
}

.ic-ap-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  pointer-events: none;
}

.ic-ap-missing {
  display: block;
  width: 100%;
  height: 100%;
  background: #ececec;
}

.ic-ap-name {
  margin: 8px 0 0;
  padding: 0 2px;
  font-size: 10px;
  color: #2d3a4a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ic-ap-empty {
  margin: 40px 16px;
  text-align: center;
  font-size: 14px;
  color: #2d3a4a;
}

.ic-ap-sentinel {
  width: 100%;
  height: 1px;
}

.ic-ap-foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 15px 0 calc(15px + env(safe-area-inset-bottom, 0px));
  background: #fff;
}

.ic-ap-built-btn {
  display: block;
  width: 95%;
  max-width: 520px;
  margin: 0 auto;
  height: 60px;
  border: 0;
  border-radius: 15px;
  background: #4e91e6;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}
