/* ===== Gallery - Figma Match ===== */
section[section-id="f75ed0ef-34bb-4965-99ff-a59d3fe593d6"].section-gallery {
 
  background: transparent !important;
}
.btn-outlined {
  background-color: #765D35 !important;
  color: white !important;
}
section[section-id="f75ed0ef-34bb-4965-99ff-a59d3fe593d6"].section-gallery
  > .theme-container {
  width: 100% !important;
  max-width: 700px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

section[section-id="f75ed0ef-34bb-4965-99ff-a59d3fe593d6"].section-gallery
  > .theme-container
  > .grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  width: 100% !important;
}

/* كل Item */
section[section-id="f75ed0ef-34bb-4965-99ff-a59d3fe593d6"].section-gallery
  > .theme-container
  > .grid
  > div {
  position: relative !important;
  overflow: visible !important;
  border-radius: 9px !important;
  min-width: 0 !important;
}


section[section-id="f75ed0ef-34bb-4965-99ff-a59d3fe593d6"].section-gallery
  .media-wrap {
  width: 100% !important;
  height: 181px !important;
  aspect-ratio: auto !important;
  overflow: hidden !important;
  border-radius: 9px !important;
}

section[section-id="f75ed0ef-34bb-4965-99ff-a59d3fe593d6"].section-gallery
  .media-wrap img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 9px !important;
}


section[section-id="f75ed0ef-34bb-4965-99ff-a59d3fe593d6"].section-gallery
  > .theme-container
  > .grid
  > div::after {
  display: block !important;
  margin-top: 9px !important;
  text-align: center !important;
  direction: rtl !important;
  color: #111 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 20px !important;
  white-space: nowrap !important;
}

/* أسماء الأقسام */
section[section-id="f75ed0ef-34bb-4965-99ff-a59d3fe593d6"].section-gallery
  > .theme-container
  > .grid
  > div:nth-child(1)::after {
  content: "الجداريات" !important;
}

section[section-id="f75ed0ef-34bb-4965-99ff-a59d3fe593d6"].section-gallery
  > .theme-container
  > .grid
  > div:nth-child(2)::after {
  content: "العلقيات" !important;
}

section[section-id="f75ed0ef-34bb-4965-99ff-a59d3fe593d6"].section-gallery
  > .theme-container
  > .grid
  > div:nth-child(3)::after {
  content: "استندات" !important;
}

section[section-id="f75ed0ef-34bb-4965-99ff-a59d3fe593d6"].section-gallery
  > .theme-container
  > .grid
  > div:nth-child(4)::after {
  content: "ثريات" !important;
}



@media (max-width: 600px) {
  section[section-id="f75ed0ef-34bb-4965-99ff-a59d3fe593d6"].section-gallery
    > .theme-container {
    max-width: calc(100vw - 24px) !important;
  }

  section[section-id="f75ed0ef-34bb-4965-99ff-a59d3fe593d6"].section-gallery
    > .theme-container
    > .grid {
    gap: 8px !important;
  }

  section[section-id="f75ed0ef-34bb-4965-99ff-a59d3fe593d6"].section-gallery
    .media-wrap {
    height: auto !important;
    aspect-ratio: 122 / 181 !important;
  }

  section[section-id="f75ed0ef-34bb-4965-99ff-a59d3fe593d6"].section-gallery
    > .theme-container
    > .grid
    > div::after {
    font-size: 11px !important;
    margin-top: 6px !important;
  }
}
.btn-outlined {
  background-color: #765D35 !important;
  color: white !important;
}