/* ── Gallery layouts (matches main site Demo section) ── */
#layouts.gallery-layouts-section {
  background: #0a0a11;
  color: #fff;
  padding: 60px 25px;
}
#layouts .section-text__title-centered {
  text-align: center;
  margin: 0 auto 40px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}
#layouts .demo_columns_content {
  min-width: 0;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-direction: column;
}
#layouts .demo_buttons_rows {
  display: flex;
  width: 100%;
  justify-content: space-around;
  box-sizing: border-box;
  padding: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
#layouts .demo_live_container {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}
#layouts .demo_button {
  max-width: 70px;
  cursor: pointer;
  align-items: center;
  background: none;
  border: none;
  color: #000000aa;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
}
#layouts .demo_button svg path {
  transition: all 0.3s ease;
  fill: #ffffff91;
}
#layouts .demo_button:hover path,
#layouts .demo_selectedButton path {
  fill: #ffffffff;
}
#layouts .demo_button span {
  color: #ffffff91;
  font-size: 1.4rem;
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.3s ease;
}
#layouts .demo_button:hover span,
#layouts .demo_selectedButton span {
  opacity: 1;
  transform: translateY(0);
  color: #ffffffff;
}
#layouts .reacg-gallery {
  border-radius: var(--radius);
  overflow: hidden;
}
#layouts .reacg-gallery.hidden {
  visibility: hidden;
  position: absolute;
  right: -2000px;
  width: 100%;
}
#layouts .demo_description {
  color: #fff;
  text-align: center;
  max-width: 900px;
  font-size: 1.3rem;
  line-height: 2.3rem;
  margin: 40px 15px;
}
#layouts .demo_description p {
  margin: 0;
}
#layouts .demo_description a {
  display: inline-block;
  vertical-align: middle;
  margin-left: 10px;
}
@media screen and (max-width: 1160px) {
  #layouts .demo_button svg {
    height: 50px;
    width: 50px;
  }
  #layouts .demo_button {
    max-width: 50px;
  }
  #layouts .demo_button span {
    font-size: 18px;
  }
  #layouts .demo_buttons_rows {
    gap: 50px;
  }
}
@media screen and (max-width: 865px) {
  #layouts .section-text__title-centered {
    font-size: 37px;
    margin-bottom: 20px;
  }
}
@media screen and (max-width: 680px) {
  #layouts .demo_description {
    font-size: 0.9rem;
    line-height: 1.8rem;
    margin-top: 10px;
  }
  #layouts .demo_button span {
    font-size: 16px;
  }
}
