/* ---------- Grid ---------- */
.gc-grid {
  display: grid;
  grid-template-columns: repeat(var(--gc-cols-desktop, 4), 1fr);
  column-gap: var(--gc-gap, 20px);
  row-gap: var(--gc-row-gap, 20px);
}

@media (max-width: 1279px) {
  .gc-grid {
    grid-template-columns: repeat(var(--gc-cols-tablet, 2), 1fr);
  }
}

@media (max-width: 679px) {
  .gc-grid {
    grid-template-columns: repeat(var(--gc-cols-mobile, 1), 1fr);
  }
}

/* ---------- Featured row ---------- */
.gc-featured-row {
  display: grid;
  grid-template-columns: repeat(var(--gc-featured-cols, 2), 1fr);
  column-gap: var(--gc-gap, 20px);
  row-gap: var(--gc-row-gap, 20px);
  margin-bottom: 24px;
}

@media (max-width: 679px) {
  .gc-featured-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Card (shared by grid + carousel) ---------- */
.gc-card,
.gc-carousel-wrap .swiper-slide {
  background: #fff;
  overflow: hidden;
  transition: all ease 0.4s;
}

.gc-card-link {
  display: block;
  color: inherit;
  text-decoration: none !important;
}

.gc-card-thumb {
  width: 100%;
  height: 400px;
  overflow: hidden;
  position: relative;
}

.gc-card-thumb img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  display: block;
}

.gc-card-body {
  padding: 10px 0 0 0;
}

.gc-card-title {
  font-size: 16px;
  font-weight: 300;
  max-width: 300px;
  color: #605f60;
  margin: 0;
  transition: all ease 0.4s;
}

.gc-card-meta {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: #605f60;
  display: flex;
  gap: 10px;
}

.gc-card-excerpt {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.85;
}

.gc-card-customfields {
  margin-top: 10px;
  font-size: 0.85rem;
}

.gc-card-field {
  margin-bottom: 4px;
}

.gc-empty {
  opacity: 0.6;
  font-style: italic;
}

/* ---------- Carousel ---------- */
.gc-carousel-wrap {
  position: relative;
}

.gc-swiper {
  padding-bottom: 40px; /* room for pagination dots */
}

.gc-swiper .swiper-slide {
  height: auto;
}

.gc-swiper .swiper-button-prev,
.gc-swiper .swiper-button-next {
  color: inherit;
  opacity: 0.7;
}

.gc-swiper .swiper-button-prev:hover,
.gc-swiper .swiper-button-next:hover {
  opacity: 1;
}

.gc-swiper .swiper-pagination-bullet-active {
  background: currentColor;
}

/* ---------- Filters bar ---------- */
.gc-filters-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 48px;
  margin-bottom: 40px;
  position: relative;
}

.gc-filters-label {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 0;
  margin-right: 22px;
  color: #605f60;
}

.gc-filter-group {
  position: relative;
}

.gc-filter-toggle {
  display: flex !important;
  align-items: center;
  gap: 6px;
  background: none;
  border: none !important;
  padding: 0 !important;
  font-size: 16px !important;
  font-weight: 300 !important;
  color: #605f60 !important;
  cursor: pointer !important;
}

.gc-filter-toggle:hover,
.gc-filter-toggle:focus,
.gc-filter-toggle:active,
.gc-filter-toggle:visited {
  color: #605f60 !important;
  background-color: transparent !important;
}

.gc-filter-chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.gc-filter-group.is-open .gc-filter-chevron {
  transform: rotate(180deg);
}

.gc-filter-panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 306px;
  max-height: 336px;
  overflow-y: auto;
  background: #f7f7f7;
  border-radius: 0;
  padding: 10px 0;
  z-index: 20;
  align-items: flex-start;
  flex-direction: column;
}

.gc-filter-group.is-open .gc-filter-panel {
  display: flex;
}

.gc-filter-option {
  display: block !important;
  width: 100% !important;
  text-align: left !important;
  background: none;
  border: none !important;
  padding: 6px 16px !important;
  font-size: 14px !important;
  font-weight: 300 !important;
  color: #212529 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

.gc-filter-option:hover,
.gc-filter-option:focus,
.gc-filter-option:active,
.gc-filter-option:visited {
  background: transparent !important;
}

.gc-filter-selected {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 23px;
  margin-left: auto;
}

.gc-filter-pill {
  display: flex;
  align-items: center;
  font-size: 16px;
  color: #605f60;
  font-weight: 300;
  cursor: pointer;
  gap: 6px;
}

.gc-pill-remove {
  background: none;
  border: none !important;
  padding: 0 !important;
  font-size: 13px !important;
  line-height: 1;
  font-weight: 300 !important;
  color: #605f60 !important;
  cursor: pointer !important;
}

.gc-pill-remove:hover {
  background: transparent !important;
}

.gc-filter-clear-all {
  font-size: 16px;
  font-weight: 400;
  color: #605f60;
  text-decoration: underline;
}

.gc-ajax-container.is-loading {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* ---------- Pagination ---------- */
.gc-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 40px;
}

.gc-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* min-width: 20px; */
  height: 28px;
  padding: 2px 8px;
  font-size: 16px;
  font-weight: 300 !important;
  color: #605f60;
  text-decoration: none !important;
  cursor: pointer;
}

.gc-page-link:hover {
  background: #f7f7f7;
  color: #303030;
}

.gc-page-link.is-active {
  font-weight: 500 !important;
  cursor: default;
}

.gc-page-link.is-active:hover {
  background: #303030;
}

.gc-page-caret {
  font-size: 16px;
}

.gc-page-link.is-disabled {
  border: 0;
  font-size: 16px;
  font-weight: 300;
  color: #605f60;
  pointer-events: none;
  cursor: default;
  background-color: #e9ecef;
}

.gc-page-link:first-child {
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}

/* ---------- Pagination: mobile (prev/next) vs desktop (numbered) ---------- */
.gc-pagination.gc-pagination-numbered {
  display: none;
}

.gc-pagination.gc-pagination-prev-next {
  display: flex;
  justify-content: flex-start;
}

.gc-page-prev-text,
.gc-page-next-text {
  width: auto;
  padding: 0 12px;
}

@media (min-width: 680px) {
  .gc-pagination.gc-pagination-prev-next {
    display: none;
  }

  .gc-pagination.gc-pagination-numbered {
    display: flex;
  }
}

.gc-page-ellipsis {
  color: #605f60;
  padding: 0 4px;
}

/* ---------- Image Gallery carousel ---------- */
.gc-gallery-slide {
  display: block;
  overflow: hidden;
  border-radius: 8px;
}

.gc-gallery-slide a {
  display: block;
  width: 100%;
  height: 100%;
}

.gc-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ---------- Fluid-height mode: fills whatever height its parent
   container provides (e.g. the space left between a title above and
   a footer logo below), instead of a fixed px height. The parent of
   .gc-gallery-wrap must itself have a real height (flex/grid layout,
   or an explicit height/calc()) for this to have something to fill. */
.gc-gallery-wrap.gc-gallery-fluid,
.gc-gallery-wrap.gc-gallery-fluid .gc-swiper,
.gc-gallery-wrap.gc-gallery-fluid .swiper-wrapper,
.gc-gallery-wrap.gc-gallery-fluid .swiper-slide {
  height: 100%;
}

.gc-gallery-wrap.gc-gallery-fluid .gc-gallery-slide {
  overflow: visible; /* let contain-scaled images show fully, no cropping */
}

.gc-gallery-wrap.gc-gallery-fluid .gc-gallery-slide-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

.gc-gallery-wrap.gc-gallery-fluid .gc-gallery-link-fluid {
  display: block;
  width: 100%;
  height: 100%;
}

.gc-gallery-wrap.gc-gallery-fluid .gc-gallery-img-fluid {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
