.party-page {
  background: #f7f3ec;
}

html,
body {
  overflow-x: hidden;
}

.form-box,
.faq-box,
.event-info-box {
  border-radius: 14px;
  background: #3d2b1f;
  color: #ffffff;
}

.form-box .label,
.form-box .title,
.faq-box .title,
.faq-box .content h3,
.faq-box .content p,
.faq-box .content a,
.event-info-box p {
  color: #ffffff;
}

.event-info-box p {
  margin: 0.25rem 0;
}

.event-info-box .calendar-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.event-info-box .calendar-link:hover,
.event-info-box .calendar-link:focus-visible {
  color: #f5d1a7;
}

.top-birthday-title {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 0.5rem;
  row-gap: 0.15rem;
}

.top-birthday-fiftieth {
  white-space: nowrap;
}

.top-birthday-fiftieth-image {
  height: 1.2em;
  display: inline-block;
  vertical-align: baseline;
}

@media (max-width: 768px) {
  .top-birthday-title {
    font-size: 1.6rem;
    column-gap: 0.3rem;
  }

  .top-birthday-fiftieth-image {
    height: 1.05em;
  }
}

.photo-strip {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0 1rem;
}

.photo-strip-inner {
  max-width: 1600px;
  margin: 0 auto;
}

.photo-pile {
  position: relative;
  min-height: 380px;
  border-radius: 10px;
  background: linear-gradient(180deg, #f2e9dc 0%, #e7dbca 100%);
  overflow: visible;
}

/* Taller, more generous pile on desktop */
@media (min-width: 769px) {
  .photo-pile {
    min-height: 560px;
  }
}

.pile-photo {
  position: absolute;
  width: 260px;
  height: 260px;
  object-fit: cover;
  border: 8px solid #ffffff;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease;
  cursor: zoom-in;
}

.pile-photo:hover {
  transform: rotate(0deg) scale(1.08);
}

.form-box {
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 40;
}

.form-box .label {
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.form-box .input {
  height: 3rem;
  border-radius: 10px;
  border: 1px solid #ccb6a1;
  background: #fffaf4;
  color: #2b2017;
  font-size: 1rem;
  font-weight: 600;
}

.form-box .input:focus {
  border-color: #d6a46a;
  box-shadow: 0 0 0 0.125em rgba(214, 164, 106, 0.28);
}

.form-box .input::placeholder {
  color: #8f7a68;
}

.form-box .count-input {
  width: 112px;
  text-align: center;
}

.form-box .checkbox {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.5;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.form-box .checkbox input[type='checkbox'] {
  width: 1.2rem;
  height: 1.2rem;
  margin: 0;
  appearance: none;
  border: 2px solid #e4c9a8;
  border-radius: 0.35rem;
  background: #fffaf4;
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.form-box .checkbox input[type='checkbox']::before {
  content: '';
  width: 0.62rem;
  height: 0.34rem;
  border: solid #ffffff;
  border-width: 0 0 3px 3px;
  transform: rotate(-45deg) scale(0);
  transition: transform 0.14s ease;
}

.form-box .checkbox input[type='checkbox']:checked {
  border-color: #d6a46a;
  background: linear-gradient(135deg, #d6a46a 0%, #b66f22 100%);
  box-shadow: 0 0 0 0.15rem rgba(214, 164, 106, 0.28);
}

.form-box .checkbox input[type='checkbox']:checked::before {
  transform: rotate(-45deg) scale(1);
}

.form-box .checkbox input[type='checkbox']:focus-visible {
  outline: 2px solid #f5d1a7;
  outline-offset: 2px;
}

.form-box .button {
  min-height: 3rem;
  padding-left: 1.2rem;
  padding-right: 1.2rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
}

.form-box .button.is-primary {
  background: #b66f22;
  border-color: #b66f22;
}

.form-box .button.is-primary:hover {
  background: #9f601d;
  border-color: #9f601d;
}

.faq-box .content h3 {
  margin-top: 1rem;
  margin-bottom: 0.3rem;
}

#photo-modal.modal {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

#photo-modal .modal-background {
  position: absolute;
  inset: 0;
}

#photo-modal .modal-content {
  position: absolute;
  inset: 0;
  margin: 0;
  max-width: none;
  width: auto;
  height: auto;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.full-photo {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  margin: 0;
  border-radius: 0;
  border: 10px solid #ffffff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  box-sizing: border-box;
  object-fit: contain;
}

@media (max-width: 768px) {
  .full-photo {
    max-width: 100dvw;
    max-height: 100dvh;
    border-width: 4px;
    box-shadow: none;
  }
}
