/* ——— Photo Time ——— */
/* Shell (sky, title stamp, cream box) is shared with How to Get There. */

.photo-time__title {
  flex-direction: column;
  gap: 0.08em;
  width: calc(420 * 100cqw / var(--layout-ref-w));
  padding-top: calc(10 * 100cqw / var(--layout-ref-w));
  font-size: calc(30 * 100cqw / var(--layout-ref-w));
  white-space: normal;
}

.photo-time__title-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.28em;
  white-space: nowrap;
}

.photo-time__subtitle {
  font-family: var(--font-sans);
  font-size: 0.46em;
  font-weight: 400;
  font-style: normal;
  line-height: 1.2;
}

.photo-time__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 0.58fr);
  align-items: end;
  width: 100%;
  margin-top: calc(4 * 100cqw / var(--layout-ref-w));
}

.photo-time__stamp {
  position: relative;
  margin: 0;
}

.photo-time__stamp-frame {
  display: block;
  width: 100%;
  height: auto;
}

.photo-time__copy {
  position: absolute;
  top: 13%;
  right: 11%;
  bottom: 26%;
  left: 11%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.9em;
  margin: 0;
  overflow: hidden;
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: calc(12.5 * 100cqw / var(--layout-ref-w));
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
}

.photo-time__copy p {
  margin: 0;
}

.photo-time__copy em {
  font-style: italic;
}

.photo-time__copy strong {
  font-family: var(--font-sans-bold);
  font-weight: 400;
}

.photo-time__camera {
  position: absolute;
  right: 5%;
  bottom: -20%;
  z-index: 2;
  width: 25.3%;
  height: auto;
}

.photo-time__flowers {
  position: absolute;
  right: calc(20 * 100cqw / var(--layout-ref-w));
  bottom: 0;
  z-index: 1;
  display: block;
  width: calc(156 * 100cqw / var(--layout-ref-w));
  height: auto;
  margin: 0;
}

@media (max-width: 767px) {
  .photo-time__title {
    width: min(100%, 14rem);
    padding-top: 0.28rem;
    font-size: clamp(0.9rem, 4vw, 1.12rem);
  }

  .photo-time__subtitle {
    font-size: 0.54rem;
  }

  .photo-time__layout {
    grid-template-columns: 1fr;
    justify-items: center;
    margin-top: 0.28rem;
  }

  .photo-time__stamp {
    width: min(100%, 17.6rem);
  }

  .photo-time__copy {
    font-size: 0.54rem;
    line-height: 1.4;
  }

  .photo-time__flowers {
    position: static;
    width: min(42%, 5.76rem);
    margin: 0.12rem 0.32rem -1.02rem auto;
  }
}
