/* Gallery Tabs */
.gallery-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--secondary-secondary-l-2, #cdced9);
}
.gallery-tab {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  text-decoration: none;
  color: var(--secondary-secondary, #6b6c7e);
  font-family: "SF-Pro-Semi-Bold-Text";
  font-size: 16px;
  font-style: normal;
  line-height: 125%;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.gallery-tab:hover {
  color: var(--dark-dark, #272833);
}
.gallery-tab.active {
  color: var(--primary-primary, #fb5650);
  border-bottom-color: var(--primary-primary, #fb5650);
}
@media (max-width: 650px) {
  .gallery-tab {
    padding: 10px 16px;
    font-size: 14px;
  }
}

/* Product Gallery Grid */
#products-gallery-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
@media (max-width: 650px) {
  #products-gallery-grid {
    justify-content: center;
  }
}

/* Product Gallery Card */
.gallery-card {
  position: relative;
  width: 384px;
  height: 384px;
  overflow: hidden;
  border-radius: 16px;
}
@media (max-width: 1250px) {
  .gallery-card {
    width: 284px;
    height: 284px;
  }
}
.gallery-card .card-image-container {
  margin: 0;
  position: relative;
  width: 100%;
  height: 100%;
}
.gallery-card .card-image-container img {
  display: flex;
  width: 384px;
  min-width: 384px;
  max-width: 384px;
  height: 384px;
  min-height: 384px;
  max-height: 384px;
  justify-content: center;
  align-items: center;
  border-radius: 16px;
  object-fit: cover;
}
@media (max-width: 1250px) {
  .gallery-card .card-image-container img {
    width: 284px;
    min-width: 284px;
    max-width: 284px;
    height: 284px;
    min-height: 284px;
    max-height: 284px;
  }
}

/* Card Overlay */
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}
.gallery-card:hover .card-overlay {
  opacity: 1;
}
.overlay-tech,
.overlay-material {
  display: inline-block;
  border-radius: 8px;
  padding: 4px 10px;
  font-family: "SF-Pro-Semi-Bold-Text";
  font-size: 13px;
  font-style: normal;
  line-height: 125%;
  color: #fff;
}
.overlay-tech {
  background: var(--primary-primary, #fb5650);
}
.overlay-material {
  background: var(--secondary-secondary, #6b6c7e);
}
.overlay-desc {
  color: var(--light-white, #fff);
  font-family: "SF-Pro-Regular-Text";
  font-size: 14px;
  font-style: normal;
  line-height: 140%;
  text-align: center;
  margin: 4px 0 0 0;
}

/* Gallery Card Content (bottom info) */
.gallery-card .gallery-card-content {
  transition: opacity 1s ease-in-out;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  width: calc(100% - 32px);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  padding: 12px 8px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.gallery-card:hover .gallery-card-content {
  transition: opacity 1s ease-in-out;
  opacity: 1;
}
.gallery-card .gallery-card-content h2 {
  color: var(--light-white, #fff);
  font-family: "SF-Pro-Bold-Text";
  font-size: 20px;
  font-style: normal;
  line-height: 125%;
  margin-top: 0;
  margin-bottom: 8px;
}
.gallery-card .gallery-card-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.gallery-card .gallery-card-content ul li {
  border-radius: 8px;
  background: var(--secondary-secondary, #6b6c7e);
  padding: 2px 4px;
  color: var(--light-white, #fff);
  font-family: "SF-Pro-Semi-Bold-Text";
  font-size: 12px;
  font-style: normal;
  line-height: 125%;
}
.gallery-card .gallery-card-content ul li a {
  color: var(--light-white, #fff);
  text-decoration: none;
}
.gallery-card .gallery-card-content ul li a:hover {
  text-decoration: underline;
}
.gallery-card .gallery-card-content ul li.tech-tag {
  background: var(--primary-primary, #fb5650);
}
