/* Wrapper */
.sgs-wrap { display: grid; gap: 1rem; }

/* Filters */
.sgs-filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem;
  background: #fafafa; border: 1px solid #eee; border-radius: 12px; padding: .75rem 1rem;
}
.sgs-filter-group { display: grid; gap: .5rem; }
.sgs-filter-label { font-weight: 600; }
.sgs-filter-options { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.sgs-checkbox { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; }
.sgs-apply, .sgs-reset {
  padding: .5rem 1.5rem; border-radius: 30px; border: 1px solid #2f1b34; background: #2f1b34; cursor: pointer; color: #fff;
}
.sgs-reset { background: #fff; color: #2f1b34; }

/* Grid */
.sgs-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(var(--sgs-columns, 4), minmax(0, 1fr));
}
.sgs-grid[data-columns] { --sgs-columns: attr(data-columns number); }
@media (max-width: 1024px) { .sgs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px)  { .sgs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px)  { .sgs-grid { grid-template-columns: 1fr; } }

/* Cards */
.sgs-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: transform .2s ease, box-shadow .2s ease;
}
.sgs-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.sgs-link { display: block; text-decoration: none; color: inherit; }

/* 21:9 aspect ratio */
.sgs-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: #f2f2f2;
}
.sgs-thumb {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

.sgs-title { font-size: 1rem; line-height: 1.3; margin: 0; padding: .75rem 1rem 0.5rem; font-weight: 600; }
.sgs-cta { display: inline-block; margin: 0 1rem 1rem; }
.sgs-link:hover .sgs-cta { text-decoration: underline; }

/* Sentinel / status */
.sgs-sentinel { width: 100%; height: 1px; }
.sgs-status { font-size: .9rem; opacity: .7; min-height: 1.2em; }



.sgs-checkbox span{
    display: inline-block;
    background-color: rgba(255, 255, 255, .9);
    border: 2px solid rgba(139, 139, 139, .3);
    color: #adadad;
    border-radius: 25px;
    white-space: nowrap;
    margin: 3px 0px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: all .2s;
}
.sgs-checkbox span {
    padding: 8px 12px;
    cursor: pointer;
}

.sgs-checkbox span::before {
    display: inline-block;
    font-family: bootstrap-icons !important;
    font-style: normal;
    font-weight: 400 !important;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    vertical-align: -.125em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 900;
    font-size: 12px;
    padding: 2px 6px 2px 2px;
    content: "\F64D";
    transition: transform .3s ease-in-out;
}

.sgs-checkbox input[type="checkbox"]:checked + span::before {
    content: "\F633";
    transform: rotate(-360deg);
    transition: transform .3s ease-in-out;
}

.sgs-checkbox input[type="checkbox"]:checked + span {
    border: 2px solid #9E77B2;
    background-color: #9E77B2;
    color: #fff;
    transition: all .2s;
}

.sgs-checkbox input[type="checkbox"] {
  display: absolute;
}
.sgs-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
}
.sgs-checkbox input[type="checkbox"]:focus + span {
  border: 2px solid #e9a1ff;
}
