/* A small photo journal: original portraits, the site's own palette, no content hidden. */
.hya-home .hya-home-container {
  padding-top: 30px;
}

.hya-home .hya-home-intro {
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: 0 0 28px;
  margin-bottom: 8px;
}

.hya-home .hya-intro-story {
  min-width: 0;
  max-width: 560px;
}

.hya-home .hya-intro-story .hya-home-title {
  padding: 0 0 24px;
}

.hya-home .hya-intro-story .hya-home-title h1 {
  font-size: clamp(56px, 5.4vw, 74px);
  line-height: 1.14;
  margin-bottom: 12px;
}

.hya-home .hya-intro-story .hya-eyebrow {
  margin-bottom: 12px;
  color: var(--hp-accent);
}

.hya-home .hya-intro-story .hya-home-title .subtitle {
  font-size: calc(20px * var(--hp-font-scale));
}

.hya-home .hya-intro-story .hya-home-title::after {
  margin-top: 18px;
}

.hya-home .hya-intro-story .hya-anniversary {
  padding: 19px 24px;
  background: var(--hp-soft);
  border-color: var(--hp-border);
}

.hya-home .hya-intro-story .hya-anniversary h2 {
  margin-bottom: 13px;
  color: var(--hp-accent-hover);
}

.hya-home .hya-intro-story .hya-anniversary .countdown-item:first-child span {
  font-size: 53px;
}

.hya-home .hya-intro-story .hya-anniversary .countdown-item span {
  font-size: 25px;
}

.hya-home .hya-intro-story .hya-anniversary .start-date {
  margin-top: 14px;
  padding-top: 11px;
  border-color: var(--hp-border);
}

.hya-home .hya-photo-hero,
.hya-home .hya-photo-card {
  position: relative;
  margin: 0;
  min-width: 0;
  padding: 10px;
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
  border-radius: 19px;
  box-shadow: 0 12px 34px color-mix(in srgb, var(--hp-shadow) 58%, transparent);
}

.hya-home .hya-photo-hero {
  justify-self: center;
  width: min(100%, 300px);
}

.hya-home .hya-photo-hero::before {
  content: '';
  position: absolute;
  inset: 16px -17px -12px 16px;
  z-index: -1;
  border: 1px solid var(--hp-border);
  border-radius: 20px;
  background: var(--hp-soft);
  transform: rotate(3deg);
  pointer-events: none;
}

.hya-home .hya-photo-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 11px;
  background: var(--hp-surface2);
  color: var(--hp-text);
  cursor: zoom-in;
  line-height: 0;
  isolation: isolate;
}

.hya-home .hya-photo-open img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center center;
  transition: transform .4s ease;
}

.hya-home .hya-photo-hero .hya-photo-open img {
  aspect-ratio: 4 / 5;
  object-position: center 55%;
}

.hya-home .hya-photo-open-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  border: 1px solid #ffffff48;
  border-radius: 7px;
  background: #241b18a6;
  color: #fff;
  font-size: calc(10px * var(--hp-font-scale));
  line-height: 1.4;
  backdrop-filter: blur(5px);
  pointer-events: none;
}

.hya-home :is(.hya-photo-hero, .hya-photo-card) figcaption {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 13px 4px 3px;
  color: var(--hp-text);
  line-height: 1.7;
}

.hya-home .hya-photo-no {
  flex-shrink: 0;
  font: 400 calc(12px * var(--hp-font-scale))/1.5 Georgia, serif;
  color: var(--hp-accent);
  letter-spacing: .03em;
}

.hya-home :is(.hya-photo-hero, .hya-photo-card) figcaption strong {
  font-weight: 500;
  font-size: calc(12px * var(--hp-font-scale));
  letter-spacing: .02em;
  overflow-wrap: anywhere;
}

.hya-home .hya-explore .hya-section-heading {
  margin-top: 20px;
  margin-bottom: 18px;
}

.hya-home .hya-explore .nav-card {
  min-height: 129px;
  padding-top: 17px;
  padding-bottom: 16px;
}

.hya-home .hya-explore .nav-icon {
  margin-bottom: 11px;
  width: 36px;
  height: 36px;
  font-size: 20px;
}

.hya-home .hya-photo-journal {
  margin: 0 0 42px;
  padding-top: 9px;
  border-top: 1px solid var(--hp-border);
}

.hya-home .hya-photo-journal .hya-section-heading {
  margin-top: 24px;
}

.hya-home .hya-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.hya-home .hya-photo-card {
  box-shadow: 0 6px 20px color-mix(in srgb, var(--hp-shadow) 32%, transparent);
}

.hya-home .hya-photo-card figcaption {
  padding: 13px 4px 5px;
}

.hya-home .hya-photo-journal-note {
  margin: 17px 0 0;
  color: var(--hp-muted);
  font-size: calc(11px * var(--hp-font-scale));
  line-height: 1.8;
}

/* Native dialog keeps focus within the full-size photo viewer. */
.hya-photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 11000;
  width: min(1120px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 18px;
  overflow: auto;
  border: 1px solid var(--hp-border);
  border-radius: 20px;
  background: var(--hp-surface);
  color: var(--hp-text);
  box-shadow: 0 24px 80px #0004;
}

.hya-photo-lightbox::backdrop {
  background: #100d0ccc;
  backdrop-filter: blur(6px);
}

.hya-photo-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
}

.hya-photo-lightbox-header h2 {
  margin: 0;
  color: var(--hp-text);
  font: 500 calc(17px * var(--hp-font-scale))/1.6 var(--hya-serif);
}

.hya-photo-lightbox-close {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--hp-border);
  border-radius: 50%;
  background: var(--hp-surface2);
  color: var(--hp-text);
  font: 400 26px/1 var(--hya-sans);
  cursor: pointer;
}

.hya-photo-lightbox-image {
  display: block;
  width: 100%;
  height: min(72dvh, 760px);
  object-fit: contain;
  background: var(--hp-surface2);
  border-radius: 10px;
}

.hya-photo-lightbox-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 15px;
}

.hya-photo-lightbox-caption {
  margin: 0;
  color: var(--hp-muted);
  font-size: calc(12px * var(--hp-font-scale));
  line-height: 1.7;
}

.hya-photo-lightbox-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hya-photo-lightbox-nav button {
  min-width: 40px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--hp-border);
  border-radius: 8px;
  background: var(--hp-surface2);
  color: var(--hp-accent-hover);
  font-size: calc(12px * var(--hp-font-scale));
  line-height: 1.4;
  cursor: pointer;
}

.hya-photo-lightbox-nav span {
  min-width: 40px;
  color: var(--hp-muted);
  text-align: center;
  font: calc(12px * var(--hp-font-scale))/1.5 Georgia, serif;
  font-variant-numeric: tabular-nums;
}

.hya-photo-lightbox button:focus-visible {
  outline: 3px solid var(--hp-focus-ring);
  outline-offset: 3px;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hya-home .hya-photo-open:hover img {
    transform: scale(1.025);
  }
}

@media (max-width: 1000px) {
  .hya-home .hya-home-container {
    padding-top: 27px;
  }

  .hya-home .hya-home-intro {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .85fr);
    gap: 28px;
  }

  .hya-home .hya-photo-hero {
    width: min(100%, 278px);
  }

  .hya-home .hya-intro-story .hya-home-title h1 {
    font-size: 60px;
  }

  .hya-home .hya-intro-story .hya-anniversary {
    padding-inline: 20px;
  }

  .hya-home .hya-photo-grid {
    gap: 16px;
  }
}

@media (max-width: 760px) {
  .hya-home .hya-home-container {
    padding-top: 25px;
  }

  .hya-home .hya-home-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding-bottom: 28px;
    margin-bottom: 0;
  }

  .hya-home .hya-intro-story {
    max-width: none;
  }

  .hya-home .hya-intro-story .hya-home-title {
    padding-bottom: 21px;
  }

  .hya-home .hya-intro-story .hya-home-title h1 {
    font-size: 60px;
    margin-bottom: 10px;
  }

  .hya-home .hya-intro-story .hya-home-title .subtitle {
    font-size: calc(18px * var(--hp-font-scale));
  }

  .hya-home .hya-intro-story .hya-anniversary {
    padding: 20px;
  }

  .hya-home .hya-intro-story .hya-anniversary .countdown {
    gap: 9px;
  }

  .hya-home .hya-intro-story .hya-anniversary .countdown-item:first-child span {
    font-size: 48px;
  }

  .hya-home .hya-intro-story .hya-anniversary .countdown-item span {
    font-size: 23px;
  }

  .hya-home .hya-photo-hero {
    width: min(100% - 26px, 300px);
  }

  .hya-home .hya-photo-hero::before {
    inset: 12px -12px -9px 12px;
    transform: rotate(2deg);
  }

  .hya-home .hya-photo-journal {
    margin-bottom: 28px;
    padding-top: 3px;
  }

  .hya-home .hya-photo-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 480px;
    margin-inline: auto;
    gap: 21px;
  }

  .hya-home .hya-photo-card {
    padding: 9px;
  }

  .hya-home .hya-photo-card figcaption {
    padding: 13px 5px 5px;
  }

  .hya-home .hya-photo-card figcaption strong {
    font-size: calc(13px * var(--hp-font-scale));
  }

  .hya-home .hya-photo-journal-note {
    max-width: 480px;
    margin-inline: auto;
  }

  .hya-photo-lightbox {
    width: calc(100vw - 20px);
    padding: 13px;
    max-height: calc(100dvh - 20px);
    border-radius: 14px;
  }

  .hya-photo-lightbox-header {
    padding-bottom: 11px;
    gap: 12px;
  }

  .hya-photo-lightbox-header h2 {
    font-size: calc(15px * var(--hp-font-scale));
  }

  .hya-photo-lightbox-image {
    height: min(67dvh, 720px);
  }

  .hya-photo-lightbox-footer {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 12px;
  }

  .hya-photo-lightbox-nav {
    margin-left: auto;
  }
}

@media (max-width: 350px) {
  .hya-home .hya-intro-story .hya-home-title h1 {
    font-size: 52px;
  }

  .hya-home .hya-intro-story .hya-anniversary {
    padding-inline: 16px;
  }

  .hya-home .hya-intro-story .hya-anniversary .countdown-item:first-child span {
    font-size: 41px;
  }

  .hya-home .hya-intro-story .hya-anniversary .countdown-item span {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hya-home .hya-photo-open img {
    transition: none;
  }
}
