.custom-gallery-filters {
  text-align: center;
  place-content: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  gap: clamp(2rem, calc(1.6774rem + 1.6129vi), 3rem) !important;
  margin-bottom: clamp(2rem, calc(1.6774rem + 1.6129vi), 3rem);
  justify-self: center;
}

.custom-gallery-filters:not(.cgf-ready) .custom-gallery-btn.active::after {
  -webkit-transition: none;
  transition: none;
  -webkit-transform: scaleX(1);
          transform: scaleX(1);
}

.custom-gallery-btn {
  position: relative;
  display: inline-block;
  background: none;
  border: none;
  color: #1f2023;
  font-size: var(--wp--preset--font-size--text-sm);
  cursor: pointer;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.custom-gallery-btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: #21888A;
  -webkit-transform: scaleX(0);
          transform: scaleX(0);
  -webkit-transform-origin: left center;
          transform-origin: left center;
  -webkit-transition: -webkit-transform 0.25s ease;
  transition: -webkit-transform 0.25s ease;
  transition: transform 0.25s ease;
  transition: transform 0.25s ease, -webkit-transform 0.25s ease;
  will-change: transform;
}

.custom-gallery-btn:hover {
  color: black;
}

.custom-gallery-btn.active::after {
  -webkit-transform: scaleX(1);
          transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .custom-gallery-btn::after {
    -webkit-transition: none;
    transition: none;
  }
}

.custom-gallery-grid {
  display: -ms-grid;
  display: grid;
  gap: 18px;
  -ms-grid-columns: (1fr)[3];
      grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 8px;
  grid-auto-flow: dense;
  /* backfill small gaps */
}

@media (max-width: 992px) {
  .custom-gallery-grid {
    -ms-grid-columns: (1fr)[2];
        grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .custom-gallery-grid {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
}

/* Each item becomes a block inside the column flow */
.custom-gallery-item {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  overflow: hidden;
  width: 100%;
}

.custom-gallery-item a {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.custom-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

/* Load more (unchanged, included here for continuity) */
.custom-gallery-loadmore-wrap {
  margin-top: clamp(2rem, calc(1.6774rem + 1.6129vi), 3rem);
  justify-self: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.custom-gallery-loadmore-wrap button.custom-gallery-loadmore {
  font-size: var(--wp--preset--font-size--text-base);
  font-weight: normal;
  color: #1f2023;
  background-color: unset;
  border: unset;
  text-transform: capitalize;
  border-bottom: solid 1px #81828A;
  line-height: 200%;
  padding: 0;
  cursor: pointer;
}

.gcustom-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 8px;
  z-index: 9999;
  pointer-events: auto;
  left: 25%;
  right: 25%;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.gcustom-zoom button {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  cursor: pointer;
  font-size: 1rem;
  color: #21888a;
  font-weight: 500;
}

.gcustom-zoom button:active {
  -webkit-transform: translateY(1px);
          transform: translateY(1px);
}

.custom-gallery-filters {
  position: relative;
  overflow-x: auto;
  white-space: nowrap;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-line-pack: center;
      align-content: center;
  -ms-flex-wrap: nowrap;
      flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  -ms-scroll-snap-type: x mandatory;
      scroll-snap-type: x mandatory;
  scrollbar-width: none;
  height: 36px;
}

@media (max-width: 900px) {
  .custom-gallery-filters {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
  }
}

@media (max-width: 768px) {
  .custom-gallery-filters {
    width: 100%;
  }
}

.custom-gallery-filters::-webkit-scrollbar {
  display: none;
}

.cgf-prev,
.cgf-next {
  position: absolute;
  z-index: 99;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: url("https://maoniseascapevillas.com/wp-content/uploads/2025/09/arrow-left.svg") no-repeat center;
  background-size: contain;
  cursor: pointer;
  border: none;
}

@media (min-width: 768px) {
  .cgf-prev,
  .cgf-next {
    display: none;
  }
}

.cgf-prev {
  left: 0;
}

.cgf-next {
  right: 0;
  -webkit-transform: translateY(-50%) rotate(180deg);
          transform: translateY(-50%) rotate(180deg);
}

.custom-gallery-filters-group {
  position: relative;
  padding: 0 40px;
}

/* Left fade */
.custom-gallery-filters-group::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  background: -webkit-gradient(linear, left top, right top, from(white), to(transparent));
  background: linear-gradient(to right, white, transparent);
  pointer-events: none;
  z-index: 1;
}

/* Right fade */
.custom-gallery-filters-group::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  background: -webkit-gradient(linear, right top, left top, from(white), to(transparent));
  background: linear-gradient(to left, white, transparent);
  pointer-events: none;
  z-index: 1;
}
/*# sourceMappingURL=gallery-page.css.map */