@charset "utf-8";

body {
  margin: 0;
  font-family: Tahoma, sans-serif;
  background-color: #111;
}

img {
  vertical-align: bottom;
}

/* helper */

.h-grid {
  display: grid;
}

.h-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.h-grid-8 {
  grid-template-columns: repeat(8, 1fr);
}

/* component */

.role {
  position: relative;
  transition-duration: .3s;
}

.role-gradient::before {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .8));
  content: "";
}

.role-deceased {
  display: flex;
  align-items: center;
  justify-content: center;
}

.role-deceased::after {
  z-index: 1;
  position: absolute;
  font-size: 2.6vw;
  font-weight: 600;
  color: rgba(184, 0, 0, .4);
  text-transform: uppercase;
  content: 'deceased';
  transform: rotate(-45deg);
}

@media screen and (max-width: 768px) {
  .role-deceased::after {
    font-size: 5.5vw;
  }
}

.role__img {
  max-width: 100%;
  height: auto;
}

.role__info {
  position: absolute;
  left: 0;
  bottom: 15px;
  width: 100%;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  text-align: center;
  color: #fff;
  text-transform: uppercase;
}

.role:hover {
  opacity: .5;
}

.dialog {
  z-index: 10;
  position: fixed;
  top: 0;
  left: 0;
  max-width: 400px;
  padding: 1rem;
  border: none;
  box-sizing: border-box;
  outline: none;
}

.dialog::backdrop {
  background-color: rgba(0, 0, 0, .8);
}

.dialog__info {
  margin-top: 1rem;
  color: #333;
}

.dialog__description {
  margin-top: .5rem;
  line-height: 1.3;
}

.dialog__description--name {
  font-weight: 600;
}

.dialog__description--intro {
  font-weight: 100;
}

.dialog__img {
  max-width: 100%;
  height: auto;
}