/* slides */
.slide {
  position: relative;
  min-height: 100vh;
  padding: 120px 8% 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* 1 hero: full-page carousel over a blurred, darkened copy of the current photo */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 14px) 5% 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #111111;
}
.bgs {
  position: absolute;
  inset: -80px;
  filter: blur(42px) brightness(0.38) saturate(1.15);
}
.bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25),
    transparent 30%,
    transparent 70%,
    #1a1815
  );
}
.hero > :not(.bgs) {
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
}
.ico {
  color: var(--gold);
  margin-bottom: 0 !important;
}
.ring {
  --h: min(44vh, 420px);
  width: 100%;
  height: var(--h);
  margin-bottom: 34px;
  touch-action: pan-y;
}
.c {
  position: absolute;
  left: 50%;
  top: 50%;
  height: var(--h);
  width: calc(var(--h) * 0.8);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  overflow: hidden;
  background: #2a2622;
  cursor: pointer;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
  will-change: transform;
}
.c img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.c.on {
  cursor: default;
}
.now {
  min-height: 5.6rem;
}
.now .name {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 5.5vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.now .genre {
  margin-top: 10px;
  font-size: 1.05rem;
  color: #dcd5c8;
}
.hint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #c1c1c1;
}

.hint svg {
  flex-shrink: 0;
  animation: hintArrow 1.5s ease-in-out infinite;
}

@keyframes hintArrow {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}
/* 2 authors: search + cards + pagination */
.authors {
  padding: 120px 8% 100px;
  background: #e2e2e2;
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
}
.authors h2 {
  scroll-margin-top: 90px;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 40px;
  color: #111111;
}
.tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px 24px;
  margin-bottom: 36px;
}
.search {
  position: relative;
  flex: 1 1 320px;
  max-width: 460px;
}
.search svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  pointer-events: none;
}
.search input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border: 1px solid rgb(0 0 0 / 28%);
  border-radius: 999px;
  background: transparent;
  color: #111111;
  font: inherit;
  transition:
    border-color 0.3s,
    background 0.3s,
    box-shadow 0.3s;
}
.search input::placeholder {
  color: #9b9b9b;
}
.search input:focus {
  outline: none;
  border-color: #898989;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 4px rgb(209 209 209 / 15%);
}
.count {
  font-size: 0.9rem;
  color: #797979;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.card {
  display: block;
}
.pic {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 14px;
  background: #2a2622;
  transition:
    transform 0.4s,
    box-shadow 0.4s;
}
.pic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition:
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.4s;
}
.pic.noimg img {
  display: none;
}
.pic.noimg::after {
  content: attr(data-i);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Playfair Display", serif;
  font-size: 4rem;
  color: var(--gold);
  background: linear-gradient(160deg, #3a2c22, #1c2825);
}
.card:hover .pic,
.card:focus-visible .pic {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
}
.card:hover img,
.card:focus-visible img {
  transform: scale(1.06);
  filter: none;
}
.card h3 {
  margin-top: 16px;
  font-size: 1.6rem;
  color: #111111;
}
mark {
  background: none;
  color: var(--gold);
}
.empty {
  grid-column: 1 / -1;
  padding: 70px 0;
  text-align: center;
  color: #797979;
  line-height: 1.8;
}
.empty .pg {
  margin-top: 18px;
}
.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 56px;
}
.pg {
  min-width: 40px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid rgb(0 0 0 / 28%);
  border-radius: 999px;
  background: none;
  color: #797979;

  font: inherit;
  cursor: pointer;
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s;
}
.pg:hover:not(:disabled),
.pg:focus-visible {
  background: #111111;
  color: rgb(226, 226, 226);
  border-color: var(--gold);
}
.pg[aria-current="page"] {
  background: #0f0e0d;
  color: var(--ink);
  border-color: var(--gold);
  cursor: default;
}
.pg:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pg-number {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  line-height: 1;
  text-align: center;
  box-sizing: border-box;
}

.pg-nav {
  padding: 0 12px;
}
.gap {
  color: #8f877a;
  padding: 0 4px;
}

@media (max-width: 1024px) {
  .authors {
    padding: 100px 6% 80px;
  }
}
@media (max-width: 860px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fgrid {
    grid-template-columns: 1fr 1fr;
  }
  .fgrid > :first-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 600px) {
  .ring {
    --h: min(36vh, 300px);
    margin-bottom: 26px;
  }
  .now {
    min-height: 5rem;
  }
  .authors {
    padding: 80px 5% 64px;
  }
  .grid {
    gap: 16px;
  }
  .card h3 {
    font-size: 1.15rem;
    margin-top: 10px;
  }
  .search {
    max-width: none;
  }
  .pg {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
  }
  .site-foot {
    padding: 60px 6% 30px;
  }
  .fgrid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .totop {
    right: 14px;
    bottom: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hint svg {
    animation: none;
  }
}
