/* SHARED — Fancybox toolbar styling (global, used by both galleries)*/
.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;
}
.fancybox__viewport,
.f-carousel__viewport {
  overflow: hidden !important;
}
.fancybox__slide,
.f-carousel__slide {
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}
.f-caption {
  text-align: center;
}
@media (hover: hover) {
  .f-carousel__toolbar__column.is-right .f-button:hover:not([disabled]) {
    background-color: var(--f-button-hover-background-color) !important;
  }
}
/* GALLERY 1 — .gallery_menu_eweb (grid / featured)*/
.gallery_menu_eweb {
  display: grid;
  gap: 8px;
}
.gallery_menu_eweb > a {
  display: block;
  overflow: hidden;
  border-radius: 0px;
  position: relative;
  background: #c7c5c5;
}
.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);
}
.gallery_btn {
  position: absolute;
  bottom: 12px;
  color: rgb(193 150 118);
  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 */
.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;
}
.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;
}
.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 */
.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 1 — columns mode */
.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;
}
@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;
  }
}
/* GALLERY 2 — .gallery_menu_eweb_masonry*/
.gallery_menu_eweb_masonry {
  display: grid;
  grid-template-columns: repeat(var(--eweb-masonry-cols, 4), 1fr);
  grid-auto-rows: 1px;
  gap: var(--eweb-masonry-gap, 5px);
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0px;
}
.gallery_menu_eweb_masonry > a.eweb-masonry-item {
  grid-row-end: span 300;
  display: block;
  overflow: hidden;
  border-radius: var(--eweb-radius, 0px);
  margin-bottom: 0px;
  position: relative;
  background: rgb(179, 179, 179);
  opacity: 0;
  transform: translateY(20px);
}
.gallery_menu_eweb_masonry > a.eweb-masonry-item.is-ready {
  animation: masonryFadeIn 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.gallery_menu_eweb_masonry img {
  width: 100%;
  height: 100% !important;
  display: block;
}
@keyframes masonryFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 1024px) {
  .gallery_menu_eweb_masonry {
    grid-template-columns: repeat(var(--eweb-masonry-cols-tablet, 3), 1fr);
  }
}
@media (max-width: 480px) {
  .gallery_menu_eweb_masonry {
    grid-template-columns: repeat(var(--eweb-masonry-cols-mobile, 2), 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  .gallery_menu_eweb_masonry > a.eweb-masonry-item {
    animation: none;
    opacity: 1;
  }
}
/* GALLERY 3 — Tab Filter Gallery */
.eweb-gallery-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}
.eweb-gallery-tabs-grid {
  display: grid;
  grid-auto-flow: dense;
}
.eweb-tab-btn {
  background: transparent;
  border: 1px solid #d4c6bb;
  color: #333;
  padding: 8px 20px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 0px;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}
.eweb-tab-btn:hover {
  border-color: var(--es-active-color, #9c7c50);
}
.eweb-tab-btn.is-active {
  background: var(--es-active-color, #9c7c50);
  border-color: var(--es-active-color, #9c7c50);
  color: #fff;
}
.eweb-tab-item[style*="display: none"] {
  pointer-events: none;
}
/* Page Carousel V2 */
.pcv2-wrap .f-carousel {
  --f-carousel-slide-width: 100%;
}
.pcv2-wrap .f-carousel__viewport {
  overflow: hidden;
}
.pcv2-wrap .f-carousel__slide {
  margin-right: 0px;
  height: auto;
  display: flex;
}
.pcv2-wrap .f-carousel__slide > div {
  width: 100%;
}
.pcv2-card {
  background: #fff;
  height: 100%;
  min-height: 350px;
  border: 1px solid #d4c6bb;
  overflow: hidden;
}
.pcv2-thumb {
  width: 100%;
  height: 100%;
  min-height: 300px;
  overflow: hidden;
  margin: 0;
  flex-shrink: 0;
}
.pcv2-thumb img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  display: block;
}
a.pcv2-image-link {
  width: 40%;
  height: 400px;
}
.bg-custome {
  width: 60%;
  color: #fff;
  padding: 25px;
  position: relative;
  overflow: hidden;
  border-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}
.pcv2-title {
  margin: 0 0 12px;
  line-height: 1.2;
}
.pcv2-title a {
  color: black !important;
  font-size: 1.25rem;
  font-weight: 500;
  text-decoration: none;
}
.pcv2-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 20px;
  line-height: 1.6;
}
a.a-link-btn {
  display: inline-block;
  width: 110px;
  color: #070707;
  text-transform: uppercase;
  border-bottom: 1px solid var(--e-global-color-primary, #000);
  text-decoration: none;
  font-size: 0.8rem;
  line-height: 30px !important;
  margin-bottom: 0.75rem;
}
a.a-link-btn:hover {
  color: var(--es-active-color);
  border-bottom-color: var(--es-active-color) !important;
}
.pcv2-wrap .f-button.is-prev,
.pcv2-wrap .f-button.is-next {
  transform: translateY(-50%);
  z-index: 1;
  width: 46px;
  padding: 0;
  height: 46px;
  background: rgba(255, 255, 255, 0.463);
  border: 1.5px solid rgba(146, 118, 73, 0.771);
  border-radius: 50%;
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: background 0.3s;
}
.pcv2-wrap .f-button.is-prev:hover,
.pcv2-wrap .f-button.is-next:hover {
  background: var(--es-active-color) !important;
}
.pcv2-wrap .f-button svg {
  width: 20px;
  height: 20px;
  stroke: #796c5c;
}

@media (max-width: 800px) {
  .pcv2-card {
    flex-direction: column !important;
  }
  .pcv2-thumb,
  .bg-custome {
    width: 100%;
  }
  a.pcv2-image-link {
    width: 100%;
    height: auto;
  }
  .pcv2-thumb {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .bg-custome {
    padding: 20px;
  }
}
