.marquee-home {
  background: #f22a2b !important;
}

.defaulter-gallery-active main .page-heading {
  display: none !important;
}

.gallery-detail-back,
.who-uploaded-detail-back {
  font-size: 0 !important;
}

.gallery-detail-back::after {
  content: "Back to Defaulter Gallery";
  font-size: 14px;
}

.who-uploaded-detail-back::after {
  content: "Back to Who Uploaded My Defaulter Data";
  font-size: 14px;
}

.defaulter-gallery-page {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 54px;
}

.defaulter-gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.defaulter-gallery-heading h1 {
  margin: 0 0 6px;
}

.defaulter-gallery-heading p {
  margin: 0;
  color: #667085;
}

.defaulter-gallery-count {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--red);
  background: #fff2f2;
  font-weight: 700;
  white-space: nowrap;
}

.defaulter-gallery-guest-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -8px 0 22px;
  padding: 14px 16px;
  border: 1px solid #f4c7c7;
  border-left: 4px solid var(--red);
  border-radius: 10px;
  color: #7a1f1f;
  background: #fff7f7;
  font-weight: 600;
}

.defaulter-gallery-login-link {
  flex: 0 0 auto;
  padding: 8px 18px;
  border-radius: 8px;
  color: #fff;
  background: var(--red);
  font-weight: 800;
  text-decoration: none;
}

.defaulter-gallery-login-link:hover {
  color: #fff;
  filter: brightness(0.92);
}

.defaulter-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.defaulter-gallery-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #dfe5f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(16 24 40 / 8%);
}

.defaulter-gallery-ribbon {
  position: absolute;
  z-index: 2;
  top: 24px;
  right: -48px;
  width: 170px;
  padding: 6px 28px;
  overflow: hidden;
  color: #fff;
  background: var(--red);
  box-shadow: 0 3px 8px rgb(16 24 40 / 20%);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.2px;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(45deg);
}

.defaulter-gallery-card-media {
  position: relative;
  display: grid;
  width: 100%;
  height: 205px;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #5559b8);
}

.defaulter-gallery-card-media img {
  width: 100%;
  height: 205px;
  object-fit: contain;
  object-position: center;
  background: #f4f6fb;
  padding: 4px;
  cursor: pointer;
}

.defaulter-gallery-photo-count {
  position: absolute;
  z-index: 1;
  right: 9px;
  bottom: 9px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgb(15 23 42 / 82%);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.defaulter-gallery-preview-backdrop {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgb(15 23 42 / 82%);
}

.defaulter-gallery-preview-dialog {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: min(900px, 96vw);
  height: min(720px, 88vh);
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 80px rgb(0 0 0 / 38%);
}

.defaulter-gallery-preview-stage {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  min-height: 0;
  align-items: center;
  padding: 18px;
  background: #0f172a;
}

.defaulter-gallery-preview-stage img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.defaulter-gallery-preview-arrow {
  display: grid;
  width: 38px;
  height: 48px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: rgb(255 255 255 / 16%);
  font-size: 36px;
  line-height: 1;
}

.defaulter-gallery-preview-arrow.next {
  justify-self: end;
}

.defaulter-gallery-preview-arrow:disabled {
  visibility: hidden;
}

.defaulter-gallery-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 12px 18px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.defaulter-gallery-preview-identity strong,
.defaulter-gallery-preview-identity span {
  display: block;
}

.defaulter-gallery-preview-identity strong {
  color: var(--blue);
  text-transform: uppercase;
  text-transform: uppercase;
}

.defaulter-gallery-preview-identity span {
  margin-top: 3px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}

.defaulter-gallery-preview-counter {
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.defaulter-gallery-preview-close {
  position: absolute;
  z-index: 1;
  top: 10px;
  right: 10px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--red);
  box-shadow: 0 3px 12px rgb(0 0 0 / 24%);
  font-size: 27px;
  line-height: 1;
}

.defaulter-gallery-initial {
  font-size: 64px;
  font-weight: 800;
  text-transform: uppercase;
}

.defaulter-gallery-card-body {
  padding: 14px;
}

.defaulter-gallery-card-body h2 {
  min-height: 42px;
  margin: 0 0 5px;
  font-size: 17px;
  line-height: 1.3;
  color: var(--blue);
  text-transform: uppercase;
  text-transform: uppercase;
}

.defaulter-gallery-name {
  display: block;
  margin-bottom: 12px;
  color: #667085;
  text-transform: uppercase;
  text-transform: uppercase;
}

.defaulter-gallery-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  margin: 0 0 14px;
  font-size: 13px;
}

.defaulter-gallery-meta dt {
  color: #667085;
}

.defaulter-gallery-meta dd {
  min-width: 0;
  margin: 0;
  text-align: right;
  font-weight: 700;
}

.defaulter-gallery-business-category {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.defaulter-gallery-meta dd:last-child {
  color: var(--red);
  font-weight: 800;
}

.defaulter-gallery-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
}

.defaulter-gallery-view,
.defaulter-gallery-whatsapp {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  padding: 11px 15px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: var(--blue);
  font-weight: 700;
  cursor: pointer;
}

.defaulter-gallery-view:hover {
  background: var(--red);
}

.defaulter-gallery-whatsapp {
  padding: 7px;
  border: 1px solid #d9e0ec;
  background: #fff;
}

.defaulter-gallery-whatsapp:hover {
  border-color: var(--red);
  background: #fff2f2;
}

.defaulter-gallery-whatsapp img {
  display: block;
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.defaulter-gallery-loading,
.defaulter-gallery-empty {
  padding: 50px 20px;
  border-radius: 14px;
  text-align: center;
  color: #667085;
  background: #f8fafc;
}

.defaulter-gallery-pagination {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
}

.defaulter-gallery-page-buttons {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
}

.defaulter-gallery-page-button {
  align-items: center;
  background: #fff;
  border: 1px solid #d5ddea;
  border-radius: 8px;
  color: var(--blue);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  min-height: 38px;
  min-width: 38px;
  padding: 8px 12px;
}

.defaulter-gallery-page-button:hover,
.defaulter-gallery-page-button.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.defaulter-gallery-page-button:disabled {
  background: #f4f6f9;
  border-color: #e2e8f0;
  color: #a0a8b6;
  cursor: not-allowed;
}

.defaulter-gallery-page-ellipsis {
  align-items: center;
  color: #667085;
  display: inline-flex;
  font-size: 16px;
  font-weight: 800;
  justify-content: center;
  min-height: 38px;
  min-width: 24px;
}

.defaulter-gallery-page-status {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .defaulter-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .defaulter-gallery-page {
    width: min(100% - 22px, 1180px);
    margin-top: 22px;
  }

  .defaulter-gallery-heading {
    align-items: start;
    flex-direction: column;
  }

  .defaulter-gallery-grid {
    grid-template-columns: 1fr;
  }

  .defaulter-gallery-page-button.previous,
  .defaulter-gallery-page-button.next {
    flex: 1 0 86px;
  }
}
