:root {
  --gallery-purple-950: #241735;
  --gallery-purple-800: #49336f;
  --gallery-purple-700: #67458d;
  --gallery-purple-500: #9473bd;
  --gallery-ink: #2b2134;
}

.gallery-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(42px, 5vw, 64px) 0 clamp(70px, 7vw, 88px);
  color: #fff;
  background:
    radial-gradient(circle at 80% 24%, rgba(214, 184, 255, .28), transparent 28%),
    radial-gradient(circle at 10% 100%, rgba(150, 111, 202, .22), transparent 34%),
    linear-gradient(125deg, var(--gallery-purple-950) 0%, var(--gallery-purple-800) 58%, #79529c 100%);
}

.gallery-hero::before,
.gallery-hero::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.gallery-hero::before { width: 460px; height: 460px; right: -150px; top: -240px; }
.gallery-hero::after { width: 650px; height: 650px; right: -245px; top: -330px; }

.gallery-hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
}

.gallery-hero-copy { max-width: 700px; }

.gallery-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 999px;
  color: #f3eaff;
  background: rgba(255, 255, 255, .1);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.gallery-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .98;
}

.gallery-hero-copy p { max-width: 620px; margin: 22px 0 0; color: rgba(255, 255, 255, .78); font-size: clamp(.98rem, 1.5vw, 1.12rem); line-height: 1.75; }

.gallery-hero-meta { display: flex; flex-wrap: wrap; gap: 18px 28px; margin-top: 28px; color: #f1e8fb; font-size: .86rem; }
.gallery-hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.gallery-hero-meta i { color: #d8bdf4; }

.gallery-hero-art {
  position: relative;
  display: grid;
  flex: 0 0 205px;
  place-items: center;
  width: 205px;
  height: 205px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 42% 58% 55% 45% / 49% 42% 58% 51%;
  background: linear-gradient(145deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .04));
  box-shadow: inset 0 0 0 18px rgba(255, 255, 255, .035), 0 20px 50px rgba(24, 11, 37, .22);
  transform: rotate(-9deg);
}

.gallery-hero-art > i { color: #fff; font-size: 4rem; opacity: .92; transform: rotate(9deg); }
.gallery-hero-orbit { position: absolute; border: 1px solid rgba(255, 255, 255, .34); border-radius: 50%; }
.orbit-one { inset: -22px 29px 35px -29px; transform: rotate(32deg); }
.orbit-two { inset: 34px -30px -20px 27px; transform: rotate(-25deg); }

.gallery-filter-card {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: -34px auto 30px;
  padding: 18px 22px;
  border: 1px solid rgba(111, 80, 145, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 40px rgba(56, 34, 83, .12);
}

.gallery-filter-label { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; color: var(--gallery-purple-700); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.gallery-filter-card strong { display: block; color: var(--gallery-ink); font-size: .96rem; }
.gallery-filter-form { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.gallery-filter-form select, .gallery-filter-form button, .gallery-filter-reset { min-height: 40px; border-radius: 9px; font: inherit; font-size: .84rem; }
.gallery-filter-form select { min-width: 140px; padding: 0 32px 0 12px; border: 1px solid #ded3e9; color: #4a3c57; background: #fff; }
.gallery-filter-form button { padding: 0 15px; border: 0; color: #fff; background: var(--gallery-purple-800); font-weight: 700; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.gallery-filter-form button:hover { background: #362354; transform: translateY(-1px); }
.gallery-filter-reset { display: inline-flex; align-items: center; padding: 0 7px; color: var(--gallery-purple-700); text-decoration: none; }
.gallery-filter-reset:hover { color: var(--gallery-purple-950); }
.featured-gallery-section { padding-top: 0; }

@media (max-width: 900px) {
  .gallery-hero .container { align-items: flex-start; }
  .gallery-hero-art { flex-basis: 165px; width: 165px; height: 165px; }
  .gallery-hero-art > i { font-size: 3.2rem; }
  .gallery-filter-card { align-items: flex-start; flex-direction: column; }
  .gallery-filter-form { justify-content: flex-start; width: 100%; }
}

@media (max-width: 640px) {
  .gallery-hero { padding-top: 46px; padding-bottom: 80px; }
  .gallery-hero .container { display: block; }
  .gallery-hero h1 { font-size: clamp(2rem, 11vw, 3rem); }
  .gallery-hero-copy p { margin-top: 17px; line-height: 1.6; }
  .gallery-hero-meta { gap: 10px 18px; margin-top: 22px; }
  .gallery-hero-art { display: none; }
  .gallery-filter-card { margin: -32px 12px 26px; padding: 16px; }
  .gallery-filter-form { display: grid; grid-template-columns: 1fr 1fr; }
  .gallery-filter-form select, .gallery-filter-form button { width: 100%; min-width: 0; }
  .gallery-filter-form button { grid-column: 1 / -1; }
}
