.button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  justify-items: center;
  padding: 0px 0;
}
.button-card {
  position: relative;
  display: block;
  width: 200px;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.button-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    opacity 0.4s ease,
    transform 0.3s ease;
}

.button-card .img-hover {
  opacity: 0;
}

.button-card:hover .img-hover {
  opacity: 1;
}

.button-card:hover .img-default {
  opacity: 0;
}

.button-card span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  text-align: center;
  font-size: 1.1em;
  font-weight: 600;
  padding: 8px;
  transition: opacity 0.3s ease;
  opacity: 1;
}

.button-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.button-card:hover img {
  transform: scale(1.08);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  cursor: zoom-out;
}

.lightbox-trigger {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.lightbox-trigger:hover {
  transform: scale(1.05);
}

.static-icon {
  width: 20px; /* default size */
  height: 20px;
  vertical-align: middle; /* aligns with text */
  margin-right: 4px; /* spacing between icons */
  display: inline-block;
}

.icon {
  width: 20px; /* default size */
  height: 20px;
  vertical-align: middle; /* aligns with text */
  margin-right: 4px; /* spacing between icons */
  display: inline-block;
  cursor: default; /* pointer only if clickable */
  transition: transform 0.2s ease;
}

.icon:hover {
  transform: scale(1.1); /* subtle hover effect */
}

.icon-link {
  display: inline-block; /* wrap clickable icons */
  cursor: pointer;
  text-decoration: none; /* remove underline if <a> */
}

.icon-link img.icon {
  cursor: pointer; /* show pointer on hover */
}

/* Description box */

.description-box {
  background: #ffffff;
  padding: 24px 28px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  width: 100%;
  margin-bottom: 20px;
}

.description-title {
  font-weight: 700;
  font-size: 2rem;
  color: #0f172a;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
  position: relative;
  padding-bottom: 6px;
}

.description-text {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.6;
  background: #f9fafb;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  white-space: pre-wrap;
}
