:root {
  --pink-900: #f61e61;
  --pink-700: #f73772;
  --pink-500: #fa82a7;
  --pink-300: #fcb4ca;
  --pink-100: #fee6ed;
  --ink: #24151c;
  --muted: #76656d;
  --line: rgba(246, 30, 97, 0.18);
  --paper: rgba(255, 255, 255, 0.72);
  --shadow: 0 24px 70px rgba(84, 18, 43, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #fff7fa;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 16% 10%, rgba(252, 180, 202, 0.42), transparent 28rem),
    linear-gradient(140deg, #ffffff 0%, #fff7fa 44%, #fee6ed 100%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 56px;
}

.app-shell[aria-hidden="true"] {
  filter: blur(18px);
  pointer-events: none;
  user-select: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  min-height: 300px;
  padding: clamp(28px, 6vw, 72px) 0 34px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--pink-900);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 16px;
  font-size: clamp(3.35rem, 9.2vw, 8rem);
  line-height: 0.92;
  letter-spacing: 0;
  white-space: nowrap;
}

.intro {
  max-width: 610px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.4vw, 1.45rem);
  line-height: 1.45;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.hero-meta span,
.toggle-button,
.search-wrap {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 10px 30px rgba(84, 18, 43, 0.08);
  backdrop-filter: blur(22px);
}

.hero-meta span {
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--pink-900);
  font-size: 0.9rem;
  font-weight: 800;
}

.toolbar {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 12px 0;
}

.search-wrap {
  display: flex;
  align-items: center;
  width: min(420px, 100%);
  border-radius: 999px;
  padding: 7px 7px 7px 16px;
}

.search-wrap span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.search-wrap input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 9px 12px;
  color: var(--ink);
}

.view-toggle {
  display: flex;
  gap: 7px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.toggle-button {
  min-width: 84px;
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--muted);
  font-weight: 800;
}

.toggle-button.is-active {
  border-color: rgba(246, 30, 97, 0.28);
  background: var(--pink-900);
  color: white;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.album-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.album-card {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px);
}

.album-card:nth-child(4n + 1) {
  grid-row: span 2;
  min-height: 610px;
}

.album-card:nth-child(5n + 2) {
  min-height: 500px;
}

.album-media {
  position: absolute;
  inset: 0;
}

.album-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(36, 21, 28, 0.02) 0%, rgba(36, 21, 28, 0.12) 48%, rgba(36, 21, 28, 0.72) 100%);
}

.album-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.album-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: inherit;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  color: white;
}

.album-card h2 {
  margin-bottom: 8px;
  font-size: 1.45rem;
  letter-spacing: 0;
}

.album-card p {
  max-width: 30rem;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
}

.album-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}

.icon-button,
.open-album {
  display: inline-grid;
  place-items: center;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.22);
  color: white;
  backdrop-filter: blur(18px);
}

.icon-button {
  width: 42px;
  border-radius: 50%;
  font-size: 1.45rem;
  line-height: 1;
}

.open-album {
  border-radius: 999px;
  padding: 0 16px;
  font-weight: 800;
}

.photo-pill {
  margin-left: auto;
  border-radius: 999px;
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  font-weight: 800;
}

.dots {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  gap: 5px;
}

.dot {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
}

.dot.is-active {
  background: white;
}

.lock-screen {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(255, 247, 250, 0.62);
  backdrop-filter: blur(22px);
}

.lock-screen.is-hidden {
  display: none;
}

.login-card {
  width: min(420px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
}

.login-card h2 {
  margin-bottom: 12px;
  font-size: 2.2rem;
  letter-spacing: 0;
}

.login-card p {
  color: var(--muted);
  line-height: 1.5;
}

.login-card label {
  display: grid;
  gap: 8px;
  margin: 22px 0 14px;
  color: var(--muted);
  font-weight: 800;
}

.login-card input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: 0;
  padding: 14px 15px;
  background: white;
  color: var(--ink);
}

.login-card input:focus {
  border-color: var(--pink-900);
  box-shadow: 0 0 0 4px rgba(246, 30, 97, 0.12);
}

.login-card button {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 14px 16px;
  background: var(--pink-900);
  color: white;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(246, 30, 97, 0.22);
}

.error-message {
  min-height: 1.4em;
  margin: 12px 0 0;
  color: var(--pink-900);
  font-weight: 800;
}

.lightbox {
  width: min(1180px, calc(100% - 28px));
  height: min(860px, calc(100% - 28px));
  border: 0;
  border-radius: 30px;
  padding: 0;
  overflow: hidden;
  background: rgba(18, 12, 16, 0.92);
  box-shadow: 0 30px 100px rgba(36, 21, 28, 0.45);
}

.lightbox::backdrop {
  background: rgba(20, 8, 14, 0.54);
  backdrop-filter: blur(14px);
}

.lightbox figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  margin: 0;
}

.lightbox img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
}

.lightbox figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px 24px;
  color: white;
}

.lightbox .icon-button {
  position: absolute;
  z-index: 2;
  background: rgba(255, 255, 255, 0.18);
}

.close-button {
  top: 16px;
  right: 16px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 250px;
  }

  .hero-meta {
    justify-content: flex-start;
  }

  .album-grid,
  .album-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .app-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 18px;
  }

  h1 {
    font-size: clamp(2.7rem, 13vw, 4.9rem);
  }

  .toolbar {
    position: static;
    display: grid;
  }

  .view-toggle {
    width: 100%;
  }

  .toggle-button {
    flex: 1;
  }

  .album-grid,
  .album-grid.compact {
    grid-template-columns: 1fr;
  }

  .album-card,
  .album-card:nth-child(4n + 1),
  .album-card:nth-child(5n + 2) {
    min-height: 440px;
  }

  .login-card {
    border-radius: 24px;
    padding: 24px;
  }

  .lightbox {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .lightbox img {
    padding: 12px;
  }
}
