.webtile {
  background-color: #f9f9f9;
  box-shadow: rgba(72, 86, 93, 0.4) 0 2px 5px;
  display: flex;
  flex-flow: column nowrap;
  font-family: 'acumin-pro', Helvetica, Arial, sans-serif;
  font-size: 14px;
  margin: 15px;
  position: relative;
  height: 600px;
  width: 325px;
  z-index: 100;
}

.event_gallery {
  display: flex;
  flex-flow: row wrap;
}

/* Webtile Image */
.webtile__image-container {
  background-color: #49565e;
  display: block;
  flex-grow: 0;
  flex-shrink: 0;
  height: 300px;
  width: 325px;
}

.webtile__image {
  /* define exact dimensions for the image */
  /* and use object-fit to crop the image within those dimensions */
  object-fit: cover;
  height: 300px;
  width: 100%;
}

/* Calendar and Sponsors Bar */
.webtile__bar {
  background-color: #237bbd;
  background-color: var(--backgroundColor);
  border-bottom: 2px solid #237bbd;
  border-bottom: 2px solid var(--backgroundColor);
  color: #ffffff;
  color: var(--textColor);
  display: flex;
  flex-flow: row nowrap;
  flex-grow: 0;
  flex-shrink: 0;
  /* Position at bottom of image */
  position: relative;
  height: 22px;
  top: -22px;
  margin-bottom: -22px;
  z-index: 101;
}

.webtile__bar--colorless {
  background-color: transparent;
}

.webtile__calendar {
  background-color: #e1e5e8;
  background-clip: content-box;
  border-radius: 0 0 3px 3px;
  box-shadow: inset 0 0 0 1px rgba(172, 174, 177, 40%);
  display: flex;
  flex-flow: column nowrap;
  flex-shrink: 0;
  flex-grow: 0;
  align-items: center;
  position: absolute;
  top: -16px;
  left: 10px;
  height: 50px;
  width: 50px;
}

.webtile__calendar__month {
  background-color: #237bbd;
  background-color: var(--backgroundColor);
  border: 1px solid #00000047;
  border-bottom: none;
  flex-shrink: 0;
  flex-grow: 0;
  font-size: 12px;
  letter-spacing: 0.1em;
  margin: -1px; /* collapse into the border of its parent */
  text-align: center;
  text-transform: uppercase;
  width: 100%;
}

.webtile__calendar--month-ranges .webtile__calendar__month {
  font-size: 7px;
  padding: 4px 0px;
}

.webtile__calendar__date {
  color: #3b434a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  font-size: 25px;
  font-weight: bold;
}

.webtile__calendar--date-ranges .webtile__calendar__date {
  font-size: 14px;
}

.webtile__calendar--has-minis {
  color: #3b434a;
  border-top: 3px solid #237bbd;
  border-top: 3px solid var(--backgroundColor);
  flex-flow: row wrap;
  font-size: 9px;
  margin-top: -1px; /* account for box-shadow */
  text-align: center;
  text-transform: uppercase;
}

.webtile__calendar--mini {
  display: flex;
  flex-flow: column nowrap;
  flex-basis: 50%;
  line-height: 1.2;
}

.webtile__sponsors {
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-end;
  padding-left: 70px; /* calendar (50px) + 10px padding on each side */
  padding-right: 17px;
  width: 100%;
}

.webtile__sponsors__text {
  font-size: 12px;
  margin-right: 3px;
  position: relative;
  top: 3px;
}

.webtile__sponsor {
  background-color: white;
  border: 1px solid #3b434a;
  box-sizing: border-box;
  border-radius: 3px;
  display: block;
  margin: 0 2.5px;
  margin-top: 3px;
  padding: 3px;
  height: 2em;
  max-width: 120px;
}

.webtile__sponsor:hover {
  border-color: #237bbd;
  border-color: var(--backgroundColor);
}

.webtile__sponsor__image {
  max-height: 100%;
  max-width: 100%;
}

/* Content Section */
.webtile__content {
  flex-grow: 1;
  flex-shrink: 1;
  line-height: 1.25;
  overflow: hidden;
  position: relative;
}

.webtile__pages {
  display: flex;
  flex-flow: row nowrap;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  transition: 1.25s ease;
}

.webtile__content--flipped .webtile__pages {
  left: -100%;
}

.webtile__page {
  box-sizing: border-box;
  flex-grow: 0;
  flex-shrink: 0;
  padding: 1.25em 0.75rem 0 0.75rem;
  width: 325px;
}

.webtile__page--front {
  padding-right: 30px;
}

.webtile__page--back {
  padding-left: 30px;
  overflow-y: auto;
}

.webtile__button--info {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: 30px;
}

.webtile__button--info:focus { /* prefer to outline the arrow than the container */
  outline: none;
  text-shadow:
     1px  1px 1px #a3c5fb,
    -1px  1px 1px #a3c5fb,
     1px -1px 1px #a3c5fb,
    -1px -1px 1px #a3c5fb;
}

.webtile__content--flipped .webtile__button--info {
  transform: scaleX(-1);
  right: auto;
  left: 0;
}

.webtile__title {
  font-family: "utopia-std", Georgia, serif;
  font-size: 30px;
  font-weight: normal;
  line-height: 1.1;
  margin-top: 0;
  margin-bottom: 16px;
}

.webtile__time {
  display: block;
  margin-bottom: 16px;
}

.webtile__address {
  color: #94999d;
  font-style: inherit;
}

/* Tickets Link (Action Button) */
.webtile__button--action {
  background-color: #3b434a;
  box-sizing: border-box;
  color: #94999d;
  flex-grow: 0;
  flex-shrink: 0;
  font-size: 18px;
  font-weight: bold;
  overflow: hidden;
  padding: 0.75em;
  position: relative;
  text-align: center;
  text-decoration: none;
  transition: 0.3s;
  width: 100%;
}

.webtile__button--action[disabled] {
  background: #ebecee;
  cursor: default;
}

.webtile__button--action:hover {
  background: #1e1e1f;
  color: #ffffff;
}

.webtile__button--action[disabled]:hover {
  background: #ebecee;
  color: #94999d;
  text-decoration: none;
}

.webtile__button--action .fa-ticket-alt {
  transform: rotate(-35deg);
}

.webtile__background-icon {
  font-size: 3em;
  opacity: 0.25;
  position: absolute;
  top: 0;
  left: 0.25em;
}


/* Featured Tile */
@media (min-width: 775px) {
  .event_featured .webtile {
    display: block;
    margin: 1rem;
    position: relative;
    height: 300px;
    width: 100%;
    max-width: 1035px;
  }

  .event_featured .webtile__image-container {
    overflow: hidden;
    position: absolute;
    top: 0;
    right: 325px;
    bottom: 0;
    left: 0;
    width: auto;
  }

  .event_featured .webtile__content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 50px;
    width: 325px;
  }

  .event_featured .webtile__bar {
    margin-bottom: initial;
    position: absolute;
    top: auto;
    right: 325px;
    bottom: 0;
    left: 0;
  }

  .event_featured .webtile__button--info {
    position: absolute;
    right: 0;
  }

  .event_featured .webtile__button--action {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 325px;
  }
}
