.is-horizontal.is-ltr .f-button.is-arrow.is-next {
  right: var(--f-arrow-pos, 0);
  width: 48px;
  height: 48px;
  padding: 0px;
  color: #fbfbfb;
  background-color: rgba(255, 255, 255, 0.15) !important;
}
.is-horizontal.is-ltr .f-button.is-arrow.is-prev {
  left: var(--f-arrow-pos, 0);
  width: 48px;
  height: 48px;
  padding: 0px;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.15) !important;
}
.f-carousel__toolbar__column.is-right {
  background-color: rgba(255, 255, 255, 0.15);
}  
.f-carousel__toolbar__column.is-right .f-button{
    color: #ffffff;
    padding: 0px;
}
@media (hover: hover) {
  .f-carousel__toolbar__column.is-right .f-button:hover:not([disabled]) {
    background-color: var(--f-button-hover-background-color) !important;
  }
}
/* ── Base (shared) ─────────────────────────────── */
.gallery_menu_eweb {
  display: grid;
  gap: 8px;
}

.gallery_menu_eweb > a {
  display: block;
  overflow: hidden;
  border-radius: 0px;
  position: relative;
  background: #e9ecef;
}

.gallery_menu_eweb a img {
  border-radius: var(--eweb-radius, 0px);
}
.gallery_menu_eweb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0px;
  cursor: pointer;
  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}

.gallery_menu_eweb > a:hover img {
  transform: scale(1.04);
  filter: brightness(0.88);
}

/* ── Badge Button ────────────────────────────────── */
.gallery_btn {
  position: absolute;
  bottom: 12px;
  color: rgb(170 143 127);
  right: 12px;
  z-index: 1;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  white-space: nowrap;
  line-height: 1;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.gallery_btn--desktop {
  display: flex;
}
.gallery_btn--mobile {
  display: none;
}

/* ══════════════════════════════════════════════════
   LAYOUT grid — 1 big + 2 small stacked
   [eweb_gallery layout="grid"]
   [eweb_gallery layout="grid" rows="2"] → 6 images
   ══════════════════════════════════════════════════ */
.gallery_layout_grid {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(2, clamp(150px, 20vw, 235px));
  align-items: stretch;
}

.gallery_layout_grid > a:first-child {
  grid-row: 1 / 3;
}

.gallery_layout_grid > a:nth-child(n + 4) {
  display: none;
}

/* rows="2" → show 6 images */
.gallery_layout_grid[data-rows="2"] {
  grid-template-rows: repeat(4, clamp(150px, 20vw, 235px));
}
.gallery_layout_grid[data-rows="2"] > a:nth-child(n + 4) {
  display: block;
}
.gallery_layout_grid[data-rows="2"] > a:nth-child(n + 7) {
  display: none;
}

/* rows="3" → show 9 images */
.gallery_layout_grid[data-rows="3"] {
  grid-template-rows: repeat(6, clamp(150px, 20vw, 235px));
}
.gallery_layout_grid[data-rows="3"] > a:nth-child(n + 4) {
  display: block;
}
.gallery_layout_grid[data-rows="3"] > a:nth-child(n + 10) {
  display: none;
}

/* ════════════════════════════════
   LAYOUT featured — 1 big + 4 small
   [eweb_gallery layout="featured"]
   ════════════════════════════════ */
.gallery_layout_featured {
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, clamp(150px, 20vw, 235px));
  align-items: stretch;
}

.gallery_layout_featured > a:nth-child(1) {
  grid-column: 1;
  grid-row: 1 / 3;
  height: 100%;
  align-self: stretch;
}
.gallery_layout_featured > a:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}
.gallery_layout_featured > a:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
}
.gallery_layout_featured > a:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
}
.gallery_layout_featured > a:nth-child(5) {
  grid-column: 3;
  grid-row: 2;
}

.gallery_layout_featured > a:nth-child(n + 6) {
  display: none;
}

.gallery_layout_featured > a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ═══════════════════════════════════════════
   GALLERY — columns mode
   [eweb_gallery columns="8" cols="4"]
═══════════════════════════════════════════ */
.gallery_menu_eweb[style*="--eweb-cols"] {
  grid-template-columns: repeat(var(--eweb-cols-row), 1fr) !important;
  grid-auto-rows: clamp(150px, 20vw, 235px) !important;
  align-items: stretch;
}

.gallery_menu_eweb[style*="--eweb-cols"] > a {
  display: block !important;
  overflow: hidden;
}

.gallery_menu_eweb[style*="--eweb-cols"] > a[aria-hidden="true"] {
  display: none !important;
}

.gallery_menu_eweb[style*="--eweb-cols"] > a img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.gallery_menu_eweb[style*="--eweb-cols"] > a:first-child {
  grid-row: auto !important;
  grid-column: auto !important;
  height: auto !important;
}

/* ── Mobile ─────────────────────────────────────── */
@media (max-width: 768px) {
  .gallery_menu_eweb {
    display: grid;
    grid-template-columns: 1fr !important;
    grid-template-rows: clamp(220px, 60vw, 360px) !important;
    grid-auto-rows: 0 !important;
    gap: 0 !important;
    overflow: hidden;
  }

  .gallery_menu_eweb > a:first-child {
    display: block !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    height: 100% !important;
  }

  .gallery_menu_eweb > a:not(:first-child) {
    display: none !important;
    visibility: hidden !important;
  }

  .gallery_menu_eweb > a img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    border-radius: 0px !important;
  }

  .gallery_btn--desktop {
    display: none !important;
  }
  .gallery_btn--mobile {
    display: flex !important;
  }

  .gallery_menu_eweb[style*="--eweb-cols"] {
    grid-template-columns: 1fr !important;
    grid-auto-rows: clamp(220px, 60vw, 360px) !important;
  }

  .gallery_menu_eweb[style*="--eweb-cols"] > a:not(:first-child) {
    display: none !important;
  }

  .gallery_layout_grid,
  .gallery_layout_featured {
    grid-template-columns: 1fr;
    grid-template-rows: clamp(220px, 55vw, 360px);
  }

  .gallery_layout_grid > a:first-child,
  .gallery_layout_featured > a:nth-child(1) {
    grid-column: auto;
    grid-row: auto;
    height: auto;
  }

  .gallery_layout_grid > a:nth-child(n + 2),
  .gallery_layout_featured > a:nth-child(n + 2) {
    display: none !important;
  }
}
