@import url(/global.css);

main {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;

  > p {
    max-width: 30rem;
    margin: 0 2rem;
  }
}

#hallway {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  overflow-x: scroll;
  overflow-y: hidden;
  perspective: 20in;
  perspective-origin: bottom center;
}

.candles {
  align-self: flex-end;
  content: url(/images/candles.png);
  translate: 0 30% 10in;
  filter: drop-shadow(0 0 6px var(--dark));
  &:last-of-type {
    visibility: hidden;
    translate: 0;
  }
}

.painting {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 4rem;

  img {
    display: block;
    max-width: 90vw;
    max-height: 80vh;
    border-image-source: url(/images/frame.png);
    border-image-slice: 170 fill;
    border-image-repeat: repeat;
    border-style: solid;
    border-width: 4rem;
    border-image-width: 6rem;
    border-color: var(--dark);

    &::before {
      content: "";
      display: block;
      background-color: var(--light);
      inset: 0;
      width: 400px;
      max-width: 100%;
      height: 400px;
      max-height: 100%;
    }
  }

  figcaption {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: max-content;
    min-width: 8rem;
    padding: 1rem;

    background-color: var(--light);
    border-color: var(--dark);
    border-image-source: url(/images/plaque.png);
    border-image-slice: 50;
    border-image-repeat: repeat;
    border-style: solid;
    border-width: 0.5rem;
    border-image-width: 2rem;

    p {
      margin: 0.25rem 0;
      color: var(--dark);
      font-family: serif;
      font-size: 10pt;
    }
  }
}
