.saphoto-contest-wrap,
.saphoto-submit-wrap,
.saphoto-profile-awards,
.saphoto-awards-wall,
.saphoto-leaderboard {
  width: 100%;
  box-sizing: border-box;
  margin: 24px auto;
}

.saphoto-section-head {
  text-align: center;
  margin: 0 auto 22px;
  max-width: 820px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(14px);
}

.saphoto-section-head.compact {
  padding: 14px 18px;
  margin-bottom: 16px;
}

.saphoto-section-head h2 {
  margin: 6px 0 8px;
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  line-height: 1.08;
  color: #111827;
}

.saphoto-section-head p {
  margin: 0 auto;
  color: #374151;
  font-size: 1rem;
}

.saphoto-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
  color: #5b21b6;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.saphoto-contest-state {
  display: inline-flex;
  margin-top: 14px;
  padding: 7px 13px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.84rem;
}

.saphoto-contest-state.is-open {
  background: #dcfce7;
  color: #166534;
}

.saphoto-contest-state.is-closed {
  background: #fee2e2;
  color: #991b1b;
}

.saphoto-entry-grid,
.saphoto-awards-wall-grid {
  display: grid;
  gap: 22px;
}

.saphoto-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.saphoto-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.saphoto-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.saphoto-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.saphoto-entry-card,
.saphoto-award-person-card {
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(16px);
}

.saphoto-entry-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #e5e7eb;
  overflow: hidden;
}

.saphoto-entry-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.saphoto-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: #6b7280;
  font-weight: 800;
}

.saphoto-vote-pill {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #111827;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
  font-weight: 900;
}

.saphoto-entry-body {
  padding: 18px;
  color: #111827;
}

.saphoto-entry-body h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 1.25rem;
}

.saphoto-entry-meta {
  margin: 6px 0;
  color: #374151;
  font-size: 0.94rem;
}

.saphoto-vote-form {
  margin-top: 14px;
}

.saphoto-vote-form button,
.saphoto-submit-form button {
  border: 0;
  cursor: pointer;
  width: 100%;
  padding: 12px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(124, 58, 237, 0.26);
}

.saphoto-vote-form button:hover,
.saphoto-submit-form button:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.saphoto-closed-note,
.saphoto-empty-awards,
.saphoto-notice,
.saphoto-flash {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  color: #374151;
  border: 1px solid rgba(148, 163, 184, 0.35);
  text-align: center;
}

.saphoto-flash {
  margin: 12px auto 18px;
  max-width: 780px;
  background: #ecfeff;
  color: #155e75;
  font-weight: 800;
}

.saphoto-submit-form {
  max-width: 760px;
  margin: 0 auto;
  padding: 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(16px);
}

.saphoto-submit-form label {
  display: block;
  margin-bottom: 14px;
  color: #111827;
  font-weight: 800;
}

.saphoto-submit-form input,
.saphoto-submit-form select,
.saphoto-submit-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  box-sizing: border-box;
}

.saphoto-badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.saphoto-award-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 96px;
  padding: 14px 16px;
  border-radius: 22px;
  text-align: center;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
  position: relative;
  overflow: hidden;
}

.saphoto-award-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.42), transparent 45%);
  pointer-events: none;
}

.saphoto-award-icon {
  font-size: 2rem;
  line-height: 1;
  z-index: 1;
}

.saphoto-award-name {
  margin-top: 6px;
  font-weight: 900;
  font-size: 0.96rem;
  z-index: 1;
}

.saphoto-award-context,
.saphoto-award-note {
  margin-top: 3px;
  font-size: 0.75rem;
  opacity: 0.86;
  z-index: 1;
}

.saphoto-awards-wall-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.saphoto-award-person-card {
  padding: 18px;
  text-align: center;
}

.saphoto-award-person-card h3 {
  margin: 14px 0 8px;
  color: #111827;
}

.saphoto-award-person-card a {
  display: inline-flex;
  padding: 8px 13px;
  border-radius: 999px;
  text-decoration: none;
  background: #111827;
  color: #ffffff;
  font-weight: 800;
}

.saphoto-leaderboard-list {
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
  list-style-position: inside;
}

.saphoto-leaderboard-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #111827;
}

.saphoto-leaderboard-list strong {
  white-space: nowrap;
}

.saphoto-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.saphoto-admin-grid input,
.saphoto-admin-grid select {
  width: 100%;
  max-width: 360px;
}

.saphoto-admin-preview img {
  max-width: 240px;
  height: auto;
  border-radius: 12px;
}

.saphoto-shortcode-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.saphoto-shortcode-list code {
  padding: 8px 10px;
  border-radius: 10px;
  background: #111827;
  color: #ffffff;
}

@media (max-width: 900px) {
  .saphoto-cols-3,
  .saphoto-cols-4,
  .saphoto-awards-wall-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .saphoto-cols-2,
  .saphoto-cols-3,
  .saphoto-cols-4,
  .saphoto-awards-wall-grid {
    grid-template-columns: 1fr;
  }

  .saphoto-section-head {
    padding: 16px;
  }

  .saphoto-admin-grid {
    grid-template-columns: 1fr;
  }
}

.saphoto-form-help {
  display: block;
  margin-top: 6px;
  color: #6b7280;
  font-size: 0.85rem;
  font-weight: 600;
}

/* 1.0.1 profile fallback wrapper */
.saphoto-awards-footer-fallback {
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto;
}

/* 1.0.2 front page feature card matched to Photographer Profiles latest news cards */
.saphoto-awards-feature-wrap {
  --saphoto-accent: #2563eb;
  --saphoto-accent-rgb: 37, 99, 235;
  --saphoto-card-radius: 24px;
  --saphoto-card-image-height: 320px;
  --saphoto-card-title-color: #0f172a;
  --saphoto-card-text-color: #64748b;
  --saphoto-button-text-color: #ffffff;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 18px;
  color: #162033;
  box-sizing: border-box;
}

.saphoto-awards-feature-wrap *,
.saphoto-awards-feature-wrap *::before,
.saphoto-awards-feature-wrap *::after {
  box-sizing: border-box;
}

.saphoto-awards-feature-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: var(--saphoto-card-radius);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.075);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.saphoto-awards-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.saphoto-awards-feature-media {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(260px, 42vw, var(--saphoto-card-image-height));
  min-height: clamp(260px, 42vw, var(--saphoto-card-image-height));
  overflow: hidden;
  background: #eff5fb;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  text-decoration: none;
}

.saphoto-awards-feature-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: clamp(260px, 42vw, var(--saphoto-card-image-height));
  object-fit: cover;
  transition: transform 260ms ease;
}

.saphoto-awards-feature-card:hover .saphoto-awards-feature-media img {
  transform: scale(1.035);
}

.saphoto-awards-feature-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: clamp(260px, 42vw, var(--saphoto-card-image-height));
  font-size: clamp(3rem, 9vw, 6rem);
  background: radial-gradient(circle at top left, rgba(var(--saphoto-accent-rgb), 0.20), #eff5fb 52%, #ffffff 100%);
}

.saphoto-awards-feature-ribbon,
.saphoto-awards-feature-status {
  position: absolute;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  color: #0f172a;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
}

.saphoto-awards-feature-ribbon {
  top: 16px;
  left: 16px;
  padding: 8px 13px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.saphoto-awards-feature-status {
  right: 16px;
  bottom: 16px;
  padding: 7px 12px;
  font-size: 0.82rem;
}

.saphoto-awards-feature-status.is-open {
  background: #ecfdf3;
  color: #15703d;
  border-color: rgba(34, 197, 94, 0.18);
}

.saphoto-awards-feature-status.is-closed {
  background: #fff7ed;
  color: #9a3412;
  border-color: rgba(249, 115, 22, 0.18);
}

.saphoto-awards-feature-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(22px, 4vw, 34px);
}

.saphoto-awards-feature-body .saphoto-kicker {
  margin-bottom: 8px;
  color: var(--saphoto-accent);
  background: rgba(var(--saphoto-accent-rgb), 0.10);
}

.saphoto-awards-feature-body h3 {
  margin: 10px 0 7px;
  color: var(--saphoto-card-title-color);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.22;
  font-weight: 800;
}

.saphoto-awards-feature-subtitle {
  max-width: 500px;
  margin: 0 auto 12px;
  color: var(--saphoto-card-text-color);
  line-height: 1.55;
}

.saphoto-awards-feature-detail-block {
  width: 100%;
  max-width: 500px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: calc(var(--saphoto-card-radius) - 8px);
  background: rgba(var(--saphoto-accent-rgb), 0.055);
  border: 1px solid rgba(var(--saphoto-accent-rgb), 0.10);
}

.saphoto-awards-feature-detail-block > span {
  display: block;
  margin-bottom: 6px;
  color: var(--saphoto-accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.saphoto-awards-feature-detail-block p {
  margin: 0;
  color: var(--saphoto-card-text-color);
  line-height: 1.55;
}

.saphoto-awards-feature-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.saphoto-awards-feature-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef5ff;
  color: #225aa0;
  border: 1px solid rgba(37, 99, 235, 0.08);
  font-size: 0.88rem;
  font-weight: 800;
}

.saphoto-awards-feature-stats strong {
  color: var(--saphoto-accent);
  font-weight: 900;
}

.saphoto-awards-feature-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.saphoto-awards-feature-actions .saphoto-button,
.saphoto-awards-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 9px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.saphoto-awards-feature-actions .saphoto-button {
  margin-top: 0;
  background: var(--saphoto-accent);
  color: var(--saphoto-button-text-color) !important;
  box-shadow: none;
}

.saphoto-awards-secondary-button {
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #ffffff;
  color: #111827 !important;
}

.saphoto-awards-feature-actions .saphoto-button:hover,
.saphoto-awards-secondary-button:hover {
  transform: translateY(-1px);
}

.saphoto-skin-glass .saphoto-awards-feature-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.68) 0%, rgba(255,255,255,0.48) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.34);
  box-shadow: 0 18px 54px rgba(15, 23, 42, 0.14);
}

.saphoto-skin-glass .saphoto-awards-feature-media,
.saphoto-skin-glass .saphoto-awards-feature-placeholder {
  background: linear-gradient(135deg, rgba(255,255,255,0.35), rgba(var(--saphoto-accent-rgb), 0.12));
}

.saphoto-skin-glass-dark .saphoto-awards-feature-card {
  background: linear-gradient(180deg, rgba(15,23,42,0.78) 0%, rgba(30,41,59,0.58) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 22px 58px rgba(2, 8, 23, 0.42);
}

.saphoto-skin-glass-dark .saphoto-awards-feature-body h3,
.saphoto-skin-glass-dark .saphoto-awards-secondary-button {
  color: #f8fbff !important;
}

.saphoto-skin-glass-dark .saphoto-awards-feature-subtitle,
.saphoto-skin-glass-dark .saphoto-awards-feature-detail-block p {
  color: #cbd5e1;
}

.saphoto-skin-glass-dark .saphoto-awards-feature-detail-block,
.saphoto-skin-glass-dark .saphoto-awards-secondary-button {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.10);
}

.saphoto-skin-minimal .saphoto-awards-feature-card {
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

@media (max-width: 640px) {
  .saphoto-awards-feature-wrap {
    padding: 20px 0;
  }

  .saphoto-awards-feature-body {
    padding: 20px;
  }

  .saphoto-awards-feature-ribbon {
    left: 12px;
    top: 12px;
    font-size: 0.68rem;
  }

  .saphoto-awards-feature-status {
    right: 12px;
    bottom: 12px;
  }

  .saphoto-awards-feature-actions {
    width: 100%;
  }

  .saphoto-awards-feature-actions .saphoto-button,
  .saphoto-awards-secondary-button {
    width: 100%;
  }
}

.saphoto-admin-public-hint {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #172033;
  font-size: 0.95rem;
}

.saphoto-admin-public-hint strong {
  display: block;
  margin-bottom: 6px;
}

.saphoto-admin-public-hint ul {
  margin: 8px 0 0 20px;
}

.saphoto-contest-footer-fallback {
  width: min(1180px, calc(100% - 32px));
  margin: 40px auto;
}

/* Full image viewer for contest voting cards */
.saphoto-entry-image.saphoto-fit-contain {
  background: linear-gradient(135deg, #f8fafc, #e0e7ff);
}

.saphoto-entry-image.saphoto-fit-contain img {
  object-fit: contain;
  padding: 10px;
  box-sizing: border-box;
}

.saphoto-view-photo {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(10px);
}

.saphoto-view-photo:hover,
.saphoto-view-photo:focus {
  background: rgba(15, 23, 42, 0.94);
  transform: translateY(-1px);
}

.saphoto-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 6, 23, 0.88);
}

.saphoto-lightbox.is-open {
  display: flex;
}

.saphoto-lightbox-inner {
  position: relative;
  width: min(1200px, 96vw);
  height: min(86vh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.saphoto-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  background: #111827;
}

.saphoto-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.3);
}

.saphoto-lightbox-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -44px;
  text-align: center;
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

@media (max-width: 640px) {
  .saphoto-view-photo {
    left: 10px;
    bottom: 10px;
    padding: 8px 11px;
    font-size: 0.82rem;
  }

  .saphoto-lightbox {
    padding: 14px;
  }

  .saphoto-lightbox-close {
    top: 8px;
    right: 8px;
  }

  .saphoto-lightbox-title {
    bottom: 10px;
    padding: 0 56px;
  }
}

.saphoto-contest-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.saphoto-contest-actions .saphoto-button,
.saphoto-contest-actions .saphoto-awards-secondary-button {
  width: auto;
  min-width: 160px;
  text-align: center;
}

.saphoto-flash a {
  color: #0f4f66;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .saphoto-contest-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .saphoto-contest-actions .saphoto-button,
  .saphoto-contest-actions .saphoto-awards-secondary-button {
    width: 100%;
  }
}

/* 1.0.8: Front card now mirrors the Photographer Profile featured card system */
.saphoto-awards-feature-wrap.saphoto-featured-wrap {
  --saphoto-accent: #2563eb;
  --saphoto-accent-rgb: 37, 99, 235;
  --saphoto-card-radius: 24px;
  --saphoto-card-image-height: 250px;
  --saphoto-heading-color: #121a2c;
  --saphoto-body-color: #162033;
  --saphoto-muted-color: #64748b;
  --saphoto-card-title-color: #0f172a;
  --saphoto-card-text-color: #64748b;
  --saphoto-button-text-color: #ffffff;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 18px;
  color: var(--saphoto-body-color);
}

.saphoto-awards-feature-wrap.saphoto-featured-wrap *,
.saphoto-awards-feature-wrap.saphoto-featured-wrap *::before,
.saphoto-awards-feature-wrap.saphoto-featured-wrap *::after {
  box-sizing: border-box;
}

.saphoto-awards-feature-wrap .saphoto-featured-header {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: var(--saphoto-card-radius);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  padding: 30px;
  margin-bottom: 22px;
}

.saphoto-awards-feature-wrap .saphoto-featured-header h2 {
  margin: 0 0 10px;
  color: var(--saphoto-heading-color);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.saphoto-awards-feature-wrap .saphoto-featured-header p:last-child {
  margin-bottom: 0;
  color: var(--saphoto-muted-color);
  max-width: 760px;
}

.saphoto-awards-feature-wrap .saphoto-featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 620px);
  justify-content: center;
  justify-items: center;
  gap: 22px;
}

.saphoto-awards-feature-wrap.saphoto-columns-2 .saphoto-featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.saphoto-awards-feature-wrap.saphoto-columns-3 .saphoto-featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.saphoto-awards-feature-wrap.saphoto-columns-4 .saphoto-featured-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.saphoto-awards-feature-wrap.saphoto-featured-layout-single .saphoto-featured-grid { grid-template-columns: minmax(0, 620px); }

/* 1.0.10: horizontal contest/front awards card to match Photographer Profile front page layout */
.saphoto-awards-feature-wrap.saphoto-featured-layout-horizontal .saphoto-featured-grid {
  grid-template-columns: minmax(0, 1040px);
  justify-content: center;
  justify-items: center;
}

.saphoto-awards-feature-wrap .saphoto-featured-card-horizontal {
  display: grid;
  grid-template-columns: minmax(240px, 36%) minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
  max-width: 1040px;
  text-align: left;
}

.saphoto-awards-feature-wrap .saphoto-featured-card-horizontal .saphoto-featured-media,
.saphoto-awards-feature-wrap .saphoto-featured-card-horizontal .saphoto-awards-feature-media {
  height: 100%;
  min-height: clamp(270px, 32vw, 430px);
  border-bottom: 0;
  border-right: 1px solid rgba(15, 23, 42, 0.06);
}

.saphoto-awards-feature-wrap .saphoto-featured-card-horizontal .saphoto-featured-media img,
.saphoto-awards-feature-wrap .saphoto-featured-card-horizontal .saphoto-awards-feature-media img,
.saphoto-awards-feature-wrap .saphoto-featured-card-horizontal .saphoto-awards-feature-placeholder,
.saphoto-awards-feature-wrap .saphoto-featured-card-horizontal .saphoto-card-placeholder {
  min-height: clamp(270px, 32vw, 430px);
}

.saphoto-awards-feature-wrap .saphoto-featured-card-horizontal .saphoto-featured-body,
.saphoto-awards-feature-wrap .saphoto-featured-card-horizontal .saphoto-awards-feature-body {
  align-items: flex-start;
  justify-content: center;
  padding: clamp(22px, 4vw, 38px);
}

.saphoto-awards-feature-wrap .saphoto-featured-card-horizontal .saphoto-featured-body h3,
.saphoto-awards-feature-wrap .saphoto-featured-card-horizontal .saphoto-awards-feature-body h3 {
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}

.saphoto-awards-feature-wrap .saphoto-featured-card-horizontal .saphoto-tagline,
.saphoto-awards-feature-wrap .saphoto-featured-card-horizontal .saphoto-awards-feature-subtitle {
  max-width: 720px;
  margin-left: 0;
  margin-right: 0;
}

.saphoto-awards-feature-wrap .saphoto-featured-card-horizontal .saphoto-featured-detail-block,
.saphoto-awards-feature-wrap .saphoto-featured-card-horizontal .saphoto-awards-feature-detail-block {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: calc(var(--saphoto-card-radius) - 8px);
  background: rgba(var(--saphoto-accent-rgb), 0.055);
  border: 1px solid rgba(var(--saphoto-accent-rgb), 0.10);
}

.saphoto-awards-feature-wrap .saphoto-featured-card-horizontal .saphoto-featured-detail-block:nth-of-type(2),
.saphoto-awards-feature-wrap .saphoto-featured-card-horizontal .saphoto-featured-detail-block:nth-of-type(3),
.saphoto-awards-feature-wrap .saphoto-featured-card-horizontal .saphoto-awards-feature-detail-block:nth-of-type(2),
.saphoto-awards-feature-wrap .saphoto-featured-card-horizontal .saphoto-awards-feature-detail-block:nth-of-type(3) {
  width: fit-content;
  max-width: 100%;
}

.saphoto-awards-feature-wrap .saphoto-featured-card-horizontal .saphoto-chip-row,
.saphoto-awards-feature-wrap .saphoto-featured-card-horizontal .saphoto-awards-feature-stats {
  justify-content: flex-start;
}

.saphoto-awards-feature-wrap .saphoto-featured-card-horizontal .saphoto-status-badge,
.saphoto-awards-feature-wrap .saphoto-featured-card-horizontal .saphoto-awards-feature-status {
  margin-top: 16px;
}

.saphoto-awards-feature-wrap .saphoto-featured-card-horizontal .saphoto-awards-feature-actions.saphoto-link-row {
  justify-content: flex-start;
}

.saphoto-awards-feature-wrap .saphoto-featured-card-horizontal .saphoto-button,
.saphoto-awards-feature-wrap .saphoto-featured-card-horizontal .saphoto-awards-secondary-button {
  width: fit-content;
  min-width: 150px;
}

.saphoto-awards-feature-wrap.saphoto-skin-glass-dark .saphoto-featured-card-horizontal .saphoto-featured-detail-block,
.saphoto-awards-feature-wrap.saphoto-skin-glass-dark .saphoto-featured-card-horizontal .saphoto-awards-feature-detail-block {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.10);
}

.saphoto-awards-feature-wrap .saphoto-featured-card,
.saphoto-awards-feature-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: var(--saphoto-card-radius);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.075);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.saphoto-awards-feature-wrap .saphoto-featured-card-single,
.saphoto-awards-feature-card.saphoto-featured-card-single {
  max-width: 620px;
  text-align: center;
}

.saphoto-awards-feature-wrap .saphoto-featured-card:hover,
.saphoto-awards-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.saphoto-awards-feature-wrap .saphoto-featured-media,
.saphoto-awards-feature-media {
  position: relative;
  display: block;
  width: 100%;
  height: var(--saphoto-card-image-height);
  min-height: var(--saphoto-card-image-height);
  overflow: hidden;
  background: #eff5fb;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  text-decoration: none;
}

.saphoto-awards-feature-wrap .saphoto-featured-card-single .saphoto-featured-media,
.saphoto-awards-feature-card.saphoto-featured-card-single .saphoto-awards-feature-media {
  height: clamp(260px, 42vw, 390px);
  min-height: clamp(260px, 42vw, 390px);
}

.saphoto-awards-feature-wrap .saphoto-featured-media img,
.saphoto-awards-feature-media img,
.saphoto-awards-feature-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: var(--saphoto-card-image-height);
  object-fit: cover;
  transition: transform 260ms ease;
}

.saphoto-awards-feature-wrap .saphoto-featured-card:hover .saphoto-featured-media img,
.saphoto-awards-feature-card:hover .saphoto-awards-feature-media img {
  transform: scale(1.035);
}

.saphoto-awards-feature-wrap .saphoto-featured-ribbon,
.saphoto-awards-feature-ribbon {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
}

.saphoto-awards-feature-wrap .saphoto-awards-feature-status {
  position: absolute;
  right: 16px;
  bottom: 16px;
  margin: 0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
}

.saphoto-awards-feature-wrap .saphoto-featured-body,
.saphoto-awards-feature-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(22px, 4vw, 34px);
}

.saphoto-awards-feature-wrap .saphoto-kicker {
  color: var(--saphoto-accent);
}

.saphoto-awards-feature-wrap .saphoto-featured-body h3,
.saphoto-awards-feature-body h3 {
  margin: 10px 0 7px;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.22;
}

.saphoto-awards-feature-wrap .saphoto-featured-body h3 a,
.saphoto-awards-feature-body h3,
.saphoto-awards-feature-body h3 a {
  color: var(--saphoto-card-title-color);
  text-decoration: none;
  font-weight: 800;
}

.saphoto-awards-feature-wrap .saphoto-tagline,
.saphoto-awards-feature-subtitle,
.saphoto-awards-feature-wrap .saphoto-featured-text {
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  color: var(--saphoto-card-text-color);
  line-height: 1.55;
}

.saphoto-awards-feature-wrap .saphoto-featured-detail-block,
.saphoto-awards-feature-detail-block {
  width: 100%;
  max-width: 500px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: calc(var(--saphoto-card-radius) - 8px);
  background: rgba(var(--saphoto-accent-rgb), 0.055);
  border: 1px solid rgba(var(--saphoto-accent-rgb), 0.10);
}

.saphoto-awards-feature-wrap .saphoto-featured-detail-block > span,
.saphoto-awards-feature-detail-block > span {
  display: block;
  margin-bottom: 6px;
  color: var(--saphoto-accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.saphoto-awards-feature-wrap .saphoto-featured-detail-block p,
.saphoto-awards-feature-detail-block p {
  margin: 0;
  color: var(--saphoto-card-text-color);
  line-height: 1.55;
}

.saphoto-awards-feature-wrap .saphoto-chip-row,
.saphoto-awards-feature-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  align-items: center;
  margin-top: 0;
}

.saphoto-awards-feature-wrap .saphoto-chip,
.saphoto-awards-feature-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(var(--saphoto-accent-rgb), 0.14);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(var(--saphoto-accent-rgb), 0.10);
  color: var(--saphoto-accent);
}

.saphoto-awards-feature-actions.saphoto-link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.saphoto-awards-feature-wrap .saphoto-button,
.saphoto-awards-feature-wrap .saphoto-awards-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 9px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.saphoto-awards-feature-wrap .saphoto-button {
  background: var(--saphoto-accent);
  color: var(--saphoto-button-text-color) !important;
  box-shadow: none;
}

.saphoto-awards-feature-wrap .saphoto-awards-secondary-button {
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #ffffff;
  color: #111827 !important;
}

.saphoto-awards-feature-wrap .saphoto-button:hover,
.saphoto-awards-feature-wrap .saphoto-awards-secondary-button:hover {
  transform: translateY(-1px);
}

.saphoto-awards-feature-wrap.saphoto-skin-news .saphoto-featured-card,
.saphoto-awards-feature-wrap.saphoto-skin-news .saphoto-featured-header {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.075);
}

.saphoto-awards-feature-wrap.saphoto-skin-glass .saphoto-featured-card,
.saphoto-awards-feature-wrap.saphoto-skin-glass .saphoto-featured-header {
  background: linear-gradient(180deg, rgba(255,255,255,0.68) 0%, rgba(255,255,255,0.48) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.34);
  box-shadow: 0 18px 54px rgba(15, 23, 42, 0.14);
}

.saphoto-awards-feature-wrap.saphoto-skin-glass .saphoto-featured-media,
.saphoto-awards-feature-wrap.saphoto-skin-glass .saphoto-awards-feature-placeholder {
  background: linear-gradient(135deg, rgba(255,255,255,0.35), rgba(var(--saphoto-accent-rgb), 0.12));
}

.saphoto-awards-feature-wrap.saphoto-skin-glass-dark {
  color: #edf2ff;
}

.saphoto-awards-feature-wrap.saphoto-skin-glass-dark .saphoto-featured-card,
.saphoto-awards-feature-wrap.saphoto-skin-glass-dark .saphoto-featured-header {
  background: linear-gradient(180deg, rgba(15,23,42,0.78) 0%, rgba(30,41,59,0.58) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 22px 58px rgba(2, 8, 23, 0.42);
}

.saphoto-awards-feature-wrap.saphoto-skin-glass-dark .saphoto-featured-header h2,
.saphoto-awards-feature-wrap.saphoto-skin-glass-dark .saphoto-featured-body h3 a {
  color: #f8fbff;
}

.saphoto-awards-feature-wrap.saphoto-skin-glass-dark .saphoto-tagline,
.saphoto-awards-feature-wrap.saphoto-skin-glass-dark .saphoto-featured-detail-block p,
.saphoto-awards-feature-wrap.saphoto-skin-glass-dark .saphoto-featured-header p:last-child {
  color: #cbd5e1;
}

.saphoto-awards-feature-wrap.saphoto-skin-glass-dark .saphoto-featured-detail-block,
.saphoto-awards-feature-wrap.saphoto-skin-glass-dark .saphoto-awards-secondary-button {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.10);
}

.saphoto-awards-feature-wrap.saphoto-skin-glass-dark .saphoto-awards-secondary-button {
  color: #f8fbff !important;
}

.saphoto-awards-feature-wrap.saphoto-skin-minimal .saphoto-featured-card,
.saphoto-awards-feature-wrap.saphoto-skin-minimal .saphoto-featured-header {
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
}

@media (max-width: 900px) {
  .saphoto-awards-feature-wrap.saphoto-columns-3 .saphoto-featured-grid,
  .saphoto-awards-feature-wrap.saphoto-columns-4 .saphoto-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .saphoto-awards-feature-wrap .saphoto-featured-card-horizontal {
    grid-template-columns: 1fr;
  }

  .saphoto-awards-feature-wrap .saphoto-featured-card-horizontal .saphoto-featured-media,
  .saphoto-awards-feature-wrap .saphoto-featured-card-horizontal .saphoto-awards-feature-media {
    height: var(--saphoto-card-image-height);
    min-height: var(--saphoto-card-image-height);
    border-right: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  }

  .saphoto-awards-feature-wrap .saphoto-featured-card-horizontal .saphoto-featured-media img,
  .saphoto-awards-feature-wrap .saphoto-featured-card-horizontal .saphoto-awards-feature-media img,
  .saphoto-awards-feature-wrap .saphoto-featured-card-horizontal .saphoto-awards-feature-placeholder,
  .saphoto-awards-feature-wrap .saphoto-featured-card-horizontal .saphoto-card-placeholder {
    min-height: var(--saphoto-card-image-height);
  }
}

@media (max-width: 640px) {
  .saphoto-awards-feature-wrap.saphoto-columns-2 .saphoto-featured-grid,
  .saphoto-awards-feature-wrap.saphoto-columns-3 .saphoto-featured-grid,
  .saphoto-awards-feature-wrap.saphoto-columns-4 .saphoto-featured-grid,
  .saphoto-awards-feature-wrap .saphoto-featured-grid {
    grid-template-columns: 1fr;
  }

  .saphoto-awards-feature-wrap .saphoto-featured-header,
  .saphoto-awards-feature-wrap .saphoto-featured-body {
    padding: 20px;
  }

  .saphoto-awards-feature-actions.saphoto-link-row {
    width: 100%;
  }

  .saphoto-awards-feature-wrap .saphoto-button,
  .saphoto-awards-feature-wrap .saphoto-awards-secondary-button,
  .saphoto-awards-feature-wrap .saphoto-featured-card-horizontal .saphoto-button,
  .saphoto-awards-feature-wrap .saphoto-featured-card-horizontal .saphoto-awards-secondary-button,
  .saphoto-awards-feature-wrap .saphoto-featured-card-horizontal .saphoto-featured-detail-block:nth-of-type(2),
  .saphoto-awards-feature-wrap .saphoto-featured-card-horizontal .saphoto-featured-detail-block:nth-of-type(3),
  .saphoto-awards-feature-wrap .saphoto-featured-card-horizontal .saphoto-awards-feature-detail-block:nth-of-type(2),
  .saphoto-awards-feature-wrap .saphoto-featured-card-horizontal .saphoto-awards-feature-detail-block:nth-of-type(3) {
    width: 100%;
  }
}

.saphoto-award-badge.has-image {
  gap: 6px;
}

.saphoto-award-image {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.28);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
  z-index: 1;
}

.saphoto-award-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.saphoto-award-image-admin-field {
  border: 1px solid #dcdcde;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  margin-bottom: 12px;
}

.saphoto-award-image-preview img {
  max-width: 96px;
  height: auto;
  border-radius: 14px;
  display: block;
}


/* 1.0.11: hard horizontal contest card match for Photographer Featured horizontal layout */
.saphoto-awards-feature-wrap.saphoto-awards-layout-horizontal .saphoto-featured-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1040px) !important;
  justify-content: center !important;
  justify-items: center !important;
  gap: 22px !important;
}

.saphoto-awards-feature-wrap.saphoto-awards-layout-horizontal .saphoto-awards-front-card-horizontal,
.saphoto-awards-feature-wrap.saphoto-awards-layout-horizontal .saphoto-awards-feature-card.saphoto-featured-card-horizontal {
  display: grid !important;
  grid-template-columns: minmax(240px, 36%) minmax(0, 1fr) !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 1040px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: left !important;
}

.saphoto-awards-feature-wrap.saphoto-awards-layout-horizontal .saphoto-awards-front-card-horizontal .saphoto-awards-feature-media,
.saphoto-awards-feature-wrap.saphoto-awards-layout-horizontal .saphoto-awards-front-card-horizontal .saphoto-featured-media {
  width: 100% !important;
  height: 100% !important;
  min-height: clamp(270px, 32vw, 430px) !important;
  border-bottom: 0 !important;
  border-right: 1px solid rgba(15, 23, 42, 0.06) !important;
}

.saphoto-awards-feature-wrap.saphoto-awards-layout-horizontal .saphoto-awards-front-card-horizontal .saphoto-awards-feature-media img,
.saphoto-awards-feature-wrap.saphoto-awards-layout-horizontal .saphoto-awards-front-card-horizontal .saphoto-featured-media img,
.saphoto-awards-feature-wrap.saphoto-awards-layout-horizontal .saphoto-awards-front-card-horizontal .saphoto-awards-feature-placeholder,
.saphoto-awards-feature-wrap.saphoto-awards-layout-horizontal .saphoto-awards-front-card-horizontal .saphoto-card-placeholder {
  width: 100% !important;
  height: 100% !important;
  min-height: clamp(270px, 32vw, 430px) !important;
  object-fit: cover !important;
}

.saphoto-awards-feature-wrap.saphoto-awards-layout-horizontal .saphoto-awards-front-card-horizontal .saphoto-awards-feature-body,
.saphoto-awards-feature-wrap.saphoto-awards-layout-horizontal .saphoto-awards-front-card-horizontal .saphoto-featured-body {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  padding: clamp(22px, 4vw, 38px) !important;
  text-align: left !important;
}

.saphoto-awards-feature-wrap.saphoto-awards-layout-horizontal .saphoto-awards-front-card-horizontal .saphoto-kicker {
  justify-content: flex-start !important;
}

.saphoto-awards-feature-wrap.saphoto-awards-layout-horizontal .saphoto-awards-front-card-horizontal h3 {
  font-size: clamp(1.65rem, 3vw, 2.45rem) !important;
  text-align: left !important;
}

.saphoto-awards-feature-wrap.saphoto-awards-layout-horizontal .saphoto-awards-front-card-horizontal .saphoto-tagline,
.saphoto-awards-feature-wrap.saphoto-awards-layout-horizontal .saphoto-awards-front-card-horizontal .saphoto-awards-feature-subtitle {
  max-width: 720px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left !important;
}

.saphoto-awards-feature-wrap.saphoto-awards-layout-horizontal .saphoto-awards-front-card-horizontal .saphoto-awards-feature-detail-block,
.saphoto-awards-feature-wrap.saphoto-awards-layout-horizontal .saphoto-awards-front-card-horizontal .saphoto-featured-detail-block {
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left !important;
}

.saphoto-awards-feature-wrap.saphoto-awards-layout-horizontal .saphoto-awards-front-card-horizontal .saphoto-awards-feature-detail-block:nth-of-type(2),
.saphoto-awards-feature-wrap.saphoto-awards-layout-horizontal .saphoto-awards-front-card-horizontal .saphoto-awards-feature-detail-block:nth-of-type(3),
.saphoto-awards-feature-wrap.saphoto-awards-layout-horizontal .saphoto-awards-front-card-horizontal .saphoto-featured-detail-block:nth-of-type(2),
.saphoto-awards-feature-wrap.saphoto-awards-layout-horizontal .saphoto-awards-front-card-horizontal .saphoto-featured-detail-block:nth-of-type(3) {
  width: fit-content !important;
  max-width: 100% !important;
}

.saphoto-awards-feature-wrap.saphoto-awards-layout-horizontal .saphoto-awards-front-card-horizontal .saphoto-awards-feature-stats,
.saphoto-awards-feature-wrap.saphoto-awards-layout-horizontal .saphoto-awards-front-card-horizontal .saphoto-chip-row,
.saphoto-awards-feature-wrap.saphoto-awards-layout-horizontal .saphoto-awards-front-card-horizontal .saphoto-awards-feature-actions,
.saphoto-awards-feature-wrap.saphoto-awards-layout-horizontal .saphoto-awards-front-card-horizontal .saphoto-link-row {
  justify-content: flex-start !important;
}

.saphoto-awards-feature-wrap.saphoto-awards-layout-horizontal .saphoto-awards-front-card-horizontal .saphoto-button,
.saphoto-awards-feature-wrap.saphoto-awards-layout-horizontal .saphoto-awards-front-card-horizontal .saphoto-awards-secondary-button {
  width: fit-content !important;
  min-width: 150px !important;
}

@media (max-width: 900px) {
  .saphoto-awards-feature-wrap.saphoto-awards-layout-horizontal .saphoto-awards-front-card-horizontal,
  .saphoto-awards-feature-wrap.saphoto-awards-layout-horizontal .saphoto-awards-feature-card.saphoto-featured-card-horizontal {
    grid-template-columns: 1fr !important;
  }

  .saphoto-awards-feature-wrap.saphoto-awards-layout-horizontal .saphoto-awards-front-card-horizontal .saphoto-awards-feature-media,
  .saphoto-awards-feature-wrap.saphoto-awards-layout-horizontal .saphoto-awards-front-card-horizontal .saphoto-featured-media {
    height: var(--saphoto-card-image-height) !important;
    min-height: var(--saphoto-card-image-height) !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
  }

  .saphoto-awards-feature-wrap.saphoto-awards-layout-horizontal .saphoto-awards-front-card-horizontal .saphoto-awards-feature-media img,
  .saphoto-awards-feature-wrap.saphoto-awards-layout-horizontal .saphoto-awards-front-card-horizontal .saphoto-featured-media img,
  .saphoto-awards-feature-wrap.saphoto-awards-layout-horizontal .saphoto-awards-front-card-horizontal .saphoto-awards-feature-placeholder,
  .saphoto-awards-feature-wrap.saphoto-awards-layout-horizontal .saphoto-awards-front-card-horizontal .saphoto-card-placeholder {
    min-height: var(--saphoto-card-image-height) !important;
  }
}

@media (max-width: 640px) {
  .saphoto-awards-feature-wrap.saphoto-awards-layout-horizontal .saphoto-awards-front-card-horizontal .saphoto-button,
  .saphoto-awards-feature-wrap.saphoto-awards-layout-horizontal .saphoto-awards-front-card-horizontal .saphoto-awards-secondary-button,
  .saphoto-awards-feature-wrap.saphoto-awards-layout-horizontal .saphoto-awards-front-card-horizontal .saphoto-awards-feature-detail-block:nth-of-type(2),
  .saphoto-awards-feature-wrap.saphoto-awards-layout-horizontal .saphoto-awards-front-card-horizontal .saphoto-awards-feature-detail-block:nth-of-type(3) {
    width: 100% !important;
  }
}

/* Contest archive and recent winners page */
.saphoto-contest-archive {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 18px;
  color: var(--saphoto-body-color, #162033);
}

.saphoto-contest-archive .saphoto-contest-archive-header {
  margin-bottom: 22px;
}

.saphoto-contest-archive-current .saphoto-awards-feature-wrap {
  padding-left: 0;
  padding-right: 0;
}

.saphoto-contest-archive-block,
.saphoto-contest-winners-section {
  margin-top: 28px;
}

.saphoto-contest-list {
  display: grid;
  gap: 18px;
}

.saphoto-contest-list-card {
  display: grid;
  grid-template-columns: minmax(240px, 36%) minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--saphoto-card-radius, 24px);
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 18px 45px rgba(15, 23, 42, .10);
}

.saphoto-contest-list-media {
  position: relative;
  display: block;
  min-height: 250px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .14), rgba(124, 58, 237, .12));
  overflow: hidden;
}

.saphoto-contest-list-media img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  display: block;
  transition: transform .24s ease;
}

.saphoto-contest-list-card:hover .saphoto-contest-list-media img {
  transform: scale(1.035);
}

.saphoto-contest-list-placeholder {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.saphoto-contest-list-status {
  position: absolute;
  left: 16px;
  top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: .42rem .72rem;
  font-weight: 900;
  font-size: .78rem;
  color: #0f172a;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .16);
}

.saphoto-contest-list-status.is-open {
  background: #dcfce7;
  color: #166534;
}

.saphoto-contest-list-status.is-closed,
.saphoto-contest-list-status.is-awarded {
  background: #e0e7ff;
  color: #1e3a8a;
}

.saphoto-contest-list-body {
  padding: clamp(18px, 3vw, 28px);
}

.saphoto-contest-list-body h3 {
  margin: .15rem 0 .4rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.1;
  color: var(--saphoto-card-title-color, #0f172a);
}

.saphoto-contest-list-body h3 a {
  color: inherit;
  text-decoration: none;
}

.saphoto-contest-list-body h3 a:hover {
  text-decoration: underline;
}

.saphoto-contest-list-theme {
  color: var(--saphoto-card-text-color, #64748b);
  margin: 0 0 14px;
}

.saphoto-contest-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.saphoto-contest-list-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .42rem .7rem;
  background: rgba(37, 99, 235, .08);
  color: var(--saphoto-card-text-color, #475569);
  font-weight: 800;
  font-size: .84rem;
}

.saphoto-contest-list-winners {
  margin-top: 16px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(248, 250, 252, .9);
  border: 1px solid rgba(226, 232, 240, .9);
}

.saphoto-contest-list-winners > strong {
  display: block;
  margin-bottom: 8px;
  color: var(--saphoto-card-title-color, #0f172a);
}

.saphoto-contest-list-winners p {
  margin: 0;
  color: var(--saphoto-muted-color, #64748b);
}

.saphoto-contest-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.saphoto-winners-timeline {
  display: grid;
  gap: 18px;
}

.saphoto-winners-month-card {
  border-radius: var(--saphoto-card-radius, 24px);
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 18px 45px rgba(15, 23, 42, .10);
  padding: clamp(18px, 3vw, 26px);
}

.saphoto-winners-month-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.saphoto-winners-month-head h3 {
  margin: .1rem 0 0;
  color: var(--saphoto-card-title-color, #0f172a);
}

.saphoto-winners-month-head h3 a {
  color: inherit;
  text-decoration: none;
}

.saphoto-winners-month-head h3 a:hover {
  text-decoration: underline;
}

.saphoto-winner-group-list {
  display: grid;
  gap: 12px;
}

.saphoto-winner-group-list.is-compact {
  gap: 8px;
}

.saphoto-winner-row {
  display: grid;
  grid-template-columns: minmax(150px, auto) 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-radius: 18px;
  background: rgba(248, 250, 252, .92);
  border: 1px solid rgba(226, 232, 240, .9);
  padding: 12px;
}

.saphoto-winner-group-list.is-compact .saphoto-winner-row {
  grid-template-columns: minmax(140px, auto) minmax(0, 1fr) auto;
  padding: 10px;
}

.saphoto-winner-photo img,
.saphoto-winner-photo span {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: #475569;
  font-weight: 800;
  overflow: hidden;
}

.saphoto-award-mini {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: .45rem .7rem;
  font-weight: 900;
  font-size: .82rem;
  max-width: 100%;
}

.saphoto-award-mini img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 999px;
  background: rgba(255, 255, 255, .3);
}

.saphoto-winner-info strong {
  display: block;
  color: var(--saphoto-card-title-color, #0f172a);
  line-height: 1.25;
}

.saphoto-winner-info > span,
.saphoto-winner-info p {
  color: var(--saphoto-card-text-color, #64748b);
}

.saphoto-winner-info p {
  margin: 3px 0 0;
}

.saphoto-winner-info a {
  color: var(--saphoto-accent, #2563eb);
  font-weight: 800;
  text-decoration: none;
}

.saphoto-winner-info a:hover {
  text-decoration: underline;
}

.saphoto-winner-kind {
  display: inline-flex;
  margin-left: 4px;
  font-size: .72rem;
  font-weight: 900;
  color: var(--saphoto-muted-color, #64748b);
}

.saphoto-winner-contest-link {
  color: var(--saphoto-accent, #2563eb);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.saphoto-winner-contest-link:hover {
  text-decoration: underline;
}

.saphoto-skin-glass .saphoto-contest-list-card,
.saphoto-skin-glass .saphoto-winners-month-card {
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .42);
}

.saphoto-skin-glass-dark .saphoto-contest-list-card,
.saphoto-skin-glass-dark .saphoto-winners-month-card,
.saphoto-skin-glass-dark .saphoto-contest-list-winners,
.saphoto-skin-glass-dark .saphoto-winner-row {
  background: rgba(15, 23, 42, .72);
  border-color: rgba(255, 255, 255, .12);
}

.saphoto-skin-glass-dark .saphoto-contest-list-body h3,
.saphoto-skin-glass-dark .saphoto-winners-month-head h3,
.saphoto-skin-glass-dark .saphoto-winner-info strong {
  color: #f8fbff;
}

.saphoto-skin-glass-dark .saphoto-contest-list-theme,
.saphoto-skin-glass-dark .saphoto-winner-info > span,
.saphoto-skin-glass-dark .saphoto-winner-info p,
.saphoto-skin-glass-dark .saphoto-contest-list-winners p {
  color: rgba(226, 232, 240, .86);
}

.saphoto-skin-minimal .saphoto-contest-list-card,
.saphoto-skin-minimal .saphoto-winners-month-card {
  box-shadow: none;
}

@media (max-width: 860px) {
  .saphoto-contest-list-card,
  .saphoto-winner-row,
  .saphoto-winner-group-list.is-compact .saphoto-winner-row {
    grid-template-columns: 1fr;
  }

  .saphoto-contest-list-media,
  .saphoto-contest-list-media img,
  .saphoto-contest-list-placeholder {
    min-height: 220px;
  }

  .saphoto-winners-month-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .saphoto-winner-contest-link {
    white-space: normal;
  }
}

/* Current and upcoming contest schedule */
.saphoto-contest-schedule {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 18px;
  color: var(--saphoto-body-color, #162033);
}

.saphoto-contest-schedule .saphoto-contest-schedule-header {
  margin-bottom: 22px;
}

.saphoto-contest-schedule-block {
  margin-top: 28px;
}

.saphoto-contest-schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.saphoto-contest-schedule-card {
  overflow: hidden;
  border-radius: var(--saphoto-card-radius, 24px);
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 18px 45px rgba(15, 23, 42, .10);
}

.saphoto-contest-schedule-image {
  display: block;
  height: var(--saphoto-card-image-height, 250px);
  min-height: 210px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .14), rgba(124, 58, 237, .12));
  overflow: hidden;
  text-decoration: none;
}

.saphoto-contest-schedule-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .24s ease;
}

.saphoto-contest-schedule-card:hover .saphoto-contest-schedule-image img {
  transform: scale(1.035);
}

.saphoto-contest-schedule-image span {
  min-height: 210px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--saphoto-accent, #2563eb);
  font-weight: 900;
  font-size: 1.35rem;
}

.saphoto-contest-schedule-body {
  padding: clamp(18px, 3vw, 26px);
}

.saphoto-contest-schedule-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.saphoto-contest-schedule-badges .saphoto-contest-list-status,
.saphoto-contest-schedule-badges > span {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: .42rem .72rem;
  font-weight: 900;
  font-size: .78rem;
  box-shadow: none;
}

.saphoto-contest-schedule-badges > span:not(.saphoto-contest-list-status) {
  background: rgba(37, 99, 235, .10);
  color: var(--saphoto-accent, #2563eb);
}

.saphoto-contest-list-status.is-upcoming,
.saphoto-contest-schedule-card.is-upcoming .saphoto-contest-list-status {
  background: #fef3c7;
  color: #92400e;
}

.saphoto-contest-schedule-body h3 {
  margin: .2rem 0 .45rem;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.1;
  color: var(--saphoto-card-title-color, #0f172a);
}

.saphoto-contest-schedule-body h3 a {
  color: inherit;
  text-decoration: none;
}

.saphoto-contest-schedule-body h3 a:hover {
  color: var(--saphoto-accent, #2563eb);
}

.saphoto-contest-schedule-body p,
.saphoto-contest-schedule-meta,
.saphoto-contest-schedule-stats {
  color: var(--saphoto-card-text-color, #64748b);
}

.saphoto-contest-schedule-meta,
.saphoto-contest-schedule-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.saphoto-contest-schedule-meta span,
.saphoto-contest-schedule-stats span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .38rem .62rem;
  background: rgba(248, 250, 252, .96);
  border: 1px solid rgba(226, 232, 240, .9);
  color: var(--saphoto-muted-color, #64748b);
  font-size: .82rem;
  font-weight: 800;
}

.saphoto-contest-schedule .saphoto-contest-list-actions {
  margin-top: 16px;
}

.saphoto-skin-glass .saphoto-contest-schedule-card {
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .42);
}

.saphoto-skin-glass-dark .saphoto-contest-schedule-card,
.saphoto-skin-glass-dark .saphoto-contest-schedule-meta span,
.saphoto-skin-glass-dark .saphoto-contest-schedule-stats span {
  background: rgba(15, 23, 42, .72);
  border-color: rgba(255, 255, 255, .12);
}

.saphoto-skin-glass-dark .saphoto-contest-schedule-body h3 {
  color: #f8fbff;
}

.saphoto-skin-glass-dark .saphoto-contest-schedule-body p,
.saphoto-skin-glass-dark .saphoto-contest-schedule-meta,
.saphoto-skin-glass-dark .saphoto-contest-schedule-stats,
.saphoto-skin-glass-dark .saphoto-contest-schedule-meta span,
.saphoto-skin-glass-dark .saphoto-contest-schedule-stats span {
  color: rgba(226, 232, 240, .86);
}

.saphoto-skin-minimal .saphoto-contest-schedule-card {
  box-shadow: none;
}

/* All in one contest hub page */
.saphoto-contest-hub {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 18px;
  color: var(--saphoto-body-color, #162033);
}

.saphoto-contest-hub .saphoto-contest-hub-header {
  margin-bottom: 26px;
}

.saphoto-contest-hub-block {
  margin-top: clamp(28px, 5vw, 46px);
}

.saphoto-contest-hub-feature .saphoto-awards-feature-wrap {
  padding-left: 0;
  padding-right: 0;
}

.saphoto-contest-hub-schedule-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.saphoto-contest-hub .saphoto-contest-schedule-block {
  margin-top: 0;
}

.saphoto-section-head.mini {
  margin-bottom: 14px;
}

.saphoto-section-head.mini h3 {
  margin: .15rem 0 0;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  color: var(--saphoto-card-title-color, #0f172a);
}

.saphoto-contest-hub .saphoto-section-head.compact p {
  max-width: 760px;
  color: var(--saphoto-muted-color, #64748b);
}

.saphoto-skin-glass-dark .saphoto-section-head.mini h3 {
  color: #f8fbff;
}

@media (min-width: 980px) {
  .saphoto-contest-hub-schedule-columns {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

/* Contest phase timeline */
.saphoto-contest-timeline {
  display: grid;
  gap: .45rem;
  margin: .75rem 0 1rem;
  font-size: .92rem;
  color: var(--saphoto-muted-color, #64748b);
}
.saphoto-contest-timeline span {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .25rem;
  align-items: center;
}
.saphoto-contest-timeline strong {
  color: var(--saphoto-card-title-color, #0f172a);
}
.saphoto-contest-state.is-submissions,
.saphoto-status-badge.is-submissions,
.saphoto-contest-list-status.is-submissions {
  background: #ecfdf5;
  color: #166534;
  border-color: rgba(22,101,52,.22);
}
.saphoto-contest-state.is-voting,
.saphoto-status-badge.is-voting,
.saphoto-contest-list-status.is-voting,
.saphoto-contest-state.is-open,
.saphoto-status-badge.is-open,
.saphoto-contest-list-status.is-open {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: rgba(29,78,216,.22);
}
.saphoto-contest-state.is-submissions-closed,
.saphoto-status-badge.is-submissions-closed,
.saphoto-contest-list-status.is-submissions-closed,
.saphoto-contest-state.is-voting-soon,
.saphoto-status-badge.is-voting-soon,
.saphoto-contest-list-status.is-voting-soon,
.saphoto-contest-state.is-upcoming,
.saphoto-status-badge.is-upcoming,
.saphoto-contest-list-status.is-upcoming {
  background: #fff7ed;
  color: #9a3412;
  border-color: rgba(154,52,18,.22);
}
.saphoto-contest-state.is-closed,
.saphoto-status-badge.is-closed,
.saphoto-contest-list-status.is-closed,
.saphoto-contest-state.is-awarded,
.saphoto-status-badge.is-awarded,
.saphoto-contest-list-status.is-awarded {
  background: #f8fafc;
  color: #475569;
  border-color: rgba(71,85,105,.2);
}

.saphoto-model-picker-block {
  display: grid;
  gap: 12px;
}

.saphoto-profile-search-select {
  display: grid;
  gap: 8px;
}

.saphoto-profile-search-input {
  margin-top: 6px;
}

.saphoto-profile-search-results option[hidden] {
  display: none;
}

.saphoto-form-help {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 600;
}

.saphoto-unlisted-toggle {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 2px 0 8px !important;
}

.saphoto-unlisted-toggle input {
  width: auto !important;
  margin: 0 !important;
}

.saphoto-unlisted-model-fields {
  display: grid;
  gap: 6px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  border-radius: 18px;
  padding: 16px;
}

.saphoto-unlisted-model-fields[hidden] {
  display: none !important;
}
