@import "~styles/helpers";

.room {
  display: grid;
  grid-template-rows: 30px max-content 1fr;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "b m"
    "h h"
    "c c";
  margin-bottom: -90px;
  padding: $medium-spacing;

  &__back {
    grid-area: b;
  }

  &__context-menu {
    position: relative;
    grid-area: m;
    justify-self: end;
  }

  &__header {
    padding: 30px 0;
    grid-area: h;
  }

  &__intro {
    font-family: $sans-serif-font-family;
    font-weight: $font-weight-regular;
    font-size: toRem(17px);
    max-width: 900px;
    line-height: 1.5;
    margin-bottom: 25px;
  }

  &__meta {
    display: flex;
    flex-direction: column;
    @include desktop {
      flex-direction: row-reverse;
    }
    justify-content: start;
    position: relative;

    & > :first-child {
      margin-left: $large-spacing;
    }

    & > :nth-child(2) {
      margin-left: 0;
    }
  }

  &__content {
    margin: 0 -$medium-spacing;
    grid-area: c;
    padding: 50px 15px;
    background-color: rgba($color-charcoal-dark, 0.18);
    @include desktop {
      columns: 4;
      padding: 50px $medium-spacing;
    }
  }
}
