/* Photo treatment is opt-in through approved venue and activity artwork. */
.booking-receipt[data-photo-experience],
#memory-detail[data-photo-experience],
.venue-staple-print {
  --photo-face: var(--ui);
  --photo-primary: var(--deep-teal);
  --photo-text: var(--ink);
  --photo-accent: var(--persimmon);
  --photo-rule: var(--border);
  color: var(--photo-text);
  font-family: var(--photo-face);
}

.booking-receipt[data-photo-experience] {
  width: min(100%, 35rem);
  margin-inline: auto;
  text-align: start;
}

.photo-ticket-outcome {
  margin: 0 0 .725rem;
  font: 400 clamp(2rem, 7vw, 3.05rem)/1.05 var(--photo-face);
  letter-spacing: -.035em;
}

.photo-ticket-body {
  padding: .875rem .875rem 0;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 .23rem .9rem #0b30252b;
}

.photo-ticket-lead {
  position: relative;
  padding: .15rem 3.65rem .6rem .25rem;
}

.photo-ticket-lead :is(h3, h5) {
  color: var(--photo-text);
  font: 500 clamp(1.6rem, 5.5vw, 2.35rem)/1.05 var(--photo-face);
  letter-spacing: -.032em;
  overflow-wrap: anywhere;
}

.photo-ticket-venue {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-block-start: .3rem;
  font-size: clamp(1rem, 3.6vw, 1.2rem);
}

.photo-ticket-venue::before {
  content: "";
  flex: none;
  inline-size: 1rem;
  block-size: 1rem;
  background: var(--photo-accent);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 1a8.5 8.5 0 0 1 8.5 8.5C20.5 15.4 12 23 12 23S3.5 15.4 3.5 9.5A8.5 8.5 0 0 1 12 1Zm0 12a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.photo-ticket-seal {
  position: absolute;
  inset: 0 .125rem auto auto;
  display: grid;
  place-items: center;
  inline-size: clamp(2.5rem, 11vw, 3.25rem);
  aspect-ratio: 1;
  border: 1.5px solid var(--photo-accent);
  border-radius: 50%;
}

.photo-ticket-seal::before,
.venue-staple-frame::before {
  content: "";
  inline-size: 64%;
  aspect-ratio: 5 / 3;
  background: var(--photo-accent);
  mask: url("/brand/symbol.svg") center / contain no-repeat;
}

.photo-ticket-image {
  display: block;
  width: 100%;
  aspect-ratio: 1.5;
  max-block-size: 21rem;
  background: var(--photo-rule);
  object-fit: cover;
  object-position: 48% 49%;
  border-radius: .75rem;
}

.photo-ticket-details {
  display: grid;
  gap: 0;
  margin: .5rem .25rem 0;
}

.photo-ticket-fact {
  display: grid;
  grid-template-columns: minmax(0, .43fr) minmax(0, 1fr);
  align-items: baseline;
  gap: .65rem;
  padding-block: .4rem;
  border-block-end: 1px solid var(--photo-rule);
}

.photo-ticket-fact dt {
  font-size: .8rem;
  color: #3c5755;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.photo-ticket-fact:is([data-fact="time"], [data-fact="meeting"]) {
  grid-template-columns: 1.1em minmax(0, 1fr);
}

.photo-ticket-fact:is([data-fact="time"], [data-fact="meeting"]) dt span {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.photo-ticket-fact:is([data-fact="time"], [data-fact="meeting"]) dt::before {
  content: "";
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  background: var(--photo-text);
  mask: var(--ticket-fact-icon) center / contain no-repeat;
}

.photo-ticket-fact[data-fact="time"] {
  --ticket-fact-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4m8-4v4'/%3E%3C/svg%3E");
}

.photo-ticket-fact[data-fact="meeting"] {
  --ticket-fact-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M21 10.5c0 4-4 7-9 7H9l-5 3 1.5-5A6 6 0 0 1 3 10.5c0-4 4-7 9-7s9 3 9 7Z'/%3E%3C/svg%3E");
}

.photo-ticket-fact dd {
  margin: 0;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.photo-ticket-fact[data-fact="time"] dd {
  font-size: clamp(1.05rem, 4vw, 1.375rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.photo-ticket-fact dd small {
  display: block;
  margin-block-start: .15rem;
  color: #3c5755;
  font-size: .7rem;
  font-weight: 400;
}

.photo-ticket-fact:last-child { border-block-end: 0; }

.photo-ticket-strap {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: .5rem;
  margin: .4rem -.875rem 0;
  padding: .15rem 1.1rem .2rem;
  border-block-start: 1px dashed #8ea3a1;
}

.photo-ticket-strap::before,
.photo-ticket-strap::after {
  position: absolute;
  inset-block-start: 0;
  content: "";
  inline-size: 1rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  pointer-events: none;
}

.photo-ticket-strap::before { inset-inline-start: 0; transform: translate(-50%, -50%); }
.photo-ticket-strap::after { inset-inline-end: 0; transform: translate(50%, -50%); }

.photo-ticket-status { font-size: .85rem; color: #355855; }

.booking-receipt[data-photo-experience] .photo-ticket-strap :is(a, button) {
  display: inline-flex;
  min-block-size: 44px;
  align-items: center;
  margin: 0;
  padding: .25rem .25rem;
  border: 0;
  color: var(--photo-primary);
  background: none;
  font-family: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: .22em;
}

.photo-ticket-open { margin-block-start: .6rem; }
.photo-plan-ticket { margin-block-start: 1.125rem; }
.plans-section .guest-activity:has(.photo-plan-ticket:not([hidden])) {
  grid-column: 1 / -1;
  border-color: transparent;
  background: #fff;
}

.verified-round:has(> .booking-receipt[data-photo-experience]) {
  border: 0;
  background: #fff;
}

#memory-detail[data-photo-experience] {
  --staple-cover: var(--photo-primary);
  --staple-paper: #fff;
  --staple-edge: var(--photo-rule);
  --staple-pin: var(--photo-accent);
  --staple-display: var(--photo-face);
  color: var(--photo-text);
  background: #fff;
}

#memory-detail[data-photo-experience] .staple-view-toolbar {
  padding-inline: .5rem;
  color: var(--photo-text);
  background: #fff;
  border: 0;
}

#memory-detail[data-photo-experience] .staple-view-library {
  font: 400 clamp(1.8rem, 6.6vw, 2.85rem)/1.1 var(--photo-face);
  letter-spacing: -.035em;
}

#memory-detail[data-photo-experience] .staple-photo-booth {
  padding: .5rem .5rem .85rem;
  border: 0;
}

#memory-detail[data-photo-experience] .staple-photo-mount {
  position: relative;
  max-inline-size: 38rem;
  padding: .48rem;
  margin-block: .45rem .75rem;
  background: #fff;
  border-radius: .4rem;
  transform: rotate(-1.35deg);
  box-shadow: 0 .3rem .8rem #1236302e;
}

#memory-detail[data-photo-experience] .staple-photo-mount img.private-memory-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1.12;
  max-block-size: min(45svh, 27rem);
  object-fit: cover;
  object-position: 50% 53%;
  border-radius: .2rem;
}

#memory-detail[data-photo-experience] .staple-photo-mount img[data-portrait-photo] {
  aspect-ratio: auto;
  object-fit: contain;
}

#memory-detail[data-photo-experience] .staple-view-caption h3 {
  font: 400 clamp(1.8rem, 6.2vw, 3.2rem)/1.05 var(--photo-face);
  letter-spacing: -.035em;
  margin-block-end: .3rem;
}

#memory-detail[data-photo-experience] :is(.staple-recorded-place, .staple-access-summary) {
  font-size: clamp(.95rem, 3.7vw, 1.2rem);
  overflow-wrap: anywhere;
}

#memory-detail[data-photo-experience] .staple-caption-details {
  align-items: start;
  flex-direction: column-reverse;
  gap: .25rem;
  border: 0;
  padding: 0;
  margin-block: .45rem .25rem;
}

#memory-detail[data-photo-experience] .staple-caption-mark { display: none; }

#memory-detail[data-photo-experience] .staple-photo-mark { display: none; }

#memory-detail[data-photo-experience] .staple-photo-mount::before,
#memory-detail[data-photo-experience] .staple-photo-mount::after {
  position: absolute;
  display: block;
  content: "";
  pointer-events: none;
}

#memory-detail[data-photo-experience] .staple-photo-mount::before {
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 2.6rem;
  height: 1.9rem;
  border-end-end-radius: .375rem;
  background-color: #fff;
}

#memory-detail[data-photo-experience] .staple-photo-mount::after {
  inset-block-start: .36rem;
  inset-inline-start: .42rem;
  width: 1.75rem;
  aspect-ratio: 5 / 3;
  background: var(--photo-accent);
  mask: url("/brand/symbol.svg") center / contain no-repeat;
}

@media (prefers-reduced-motion: no-preference) {
  #memory-detail[data-photo-experience] .staple-photo-mount:has(.staple-photo-settles)::before,
  #memory-detail[data-photo-experience] .staple-photo-mount:has(.staple-photo-settles)::after {
    animation: staple-settles 260ms cubic-bezier(.2,.85,.3,1.1) both;
  }
}

#memory-detail[data-photo-experience] button:focus-visible {
  outline-color: var(--photo-primary);
}

.palm-staple-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: .9rem;
}

.palm-staple-map,
.palm-staple-revisit,
.venue-staple-open {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  gap: .55rem;
  font-weight: 500;
  color: var(--photo-primary);
  text-decoration: underline;
  text-underline-offset: .25em;
}

.palm-staple-revisit { font-size: .875rem; }

.palm-staple-map::after {
  content: "";
  inline-size: .52em;
  block-size: .52em;
  border-top: .11em solid;
  border-right: .11em solid;
  transform: rotate(45deg);
}

.venue-staple-print {
  inline-size: 100%;
  align-self: end;
  pointer-events: auto;
}

.venue-staple-frame {
  position: relative;
  margin: 0;
  padding: clamp(.4rem, .85vw, .75rem);
  background: #fff;
  border-radius: .25rem;
  transform: rotate(3deg);
  box-shadow: 0 .28rem .8rem #103a3840;
}

.venue-staple-frame::before {
  position: absolute;
  inset: .1rem auto auto .12rem;
  inline-size: clamp(1.5rem, 4vw, 2.6rem);
  border: .35rem solid #fff;
  box-sizing: content-box;
}

.venue-staple-frame img.private-memory-photo {
  display: block;
  width: 100%;
  max-height: none;
  aspect-ratio: 1.12;
  object-fit: cover;
  object-position: 50% 53%;
}

.venue-staple-frame img[data-portrait-photo] {
  aspect-ratio: auto;
  max-block-size: min(54svh, 30rem);
  object-fit: contain;
}

.venue-staple-caption {
  margin-block-start: .5rem;
  font-size: clamp(.8125rem, 1.18vw, 1.2rem);
  overflow-wrap: anywhere;
}

.venue-staple-open { margin-block-start: .3rem; }

@media (max-width: 640px) {
  .photo-ticket-image { aspect-ratio: 1.25; }
  #memory-detail[data-photo-experience] .staple-view-toolbar .button.secondary {
    border-color: var(--photo-rule);
  }
  #memory-detail[data-photo-experience] .staple-photo-mount {
    max-inline-size: calc(100% - .5rem);
    margin-inline: auto;
  }
  #memory-detail[data-photo-experience] .staple-view-caption {
    padding-inline: .25rem;
  }
}
