.event {
  position: relative;
  margin-top: calc(3rem / 2);
  margin-bottom: calc(3rem / 2);
}
.event .image {
  z-index: 15;
}
.event .info {
  z-index: 10;
}
.event .link-cover {
  z-index: 5;
}
.event .image,
.event .info {
  pointer-events: none;
}
.event .event-title {
  font-family: 'Forum', serif;
  font-weight: normal;
  font-size: 2.666666666666667rem;
  margin: 0;
  line-height: 110%;
  color: #d3a46c;
  transition: color 0.15s ease;
  margin-bottom: 0.333333333333333rem;
}
.event .link-cover:hover ~ .event-title,
.event .link-cover:focus-within ~ .event-title,
.event .link-cover:hover ~ .info .event-title,
.event .link-cover:focus-within ~ .info .event-title {
  color: #d07716;
}
.event .image {
  overflow: hidden;
}
.event .image img {
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease-out;
}
.event .description {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.event .link-cover {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
@media (min-width: 993px) {
  .event:hover .image img,
  .event:focus-within .image img {
    transform: scale(1.05);
  }
}
[data-e='event-wide'] {
  display: flex;
  flex-wrap: wrap;
}
[data-e='event-wide'] .description {
  -webkit-line-clamp: 5;
}
[data-e='event-wide'] .info,
[data-e='event-wide'] .image img {
  width: calc((100vw / 36 * (36 - (4 * 2)) - (3rem * (2 - 1)) - 0.6rem) / 2);
  height: calc(((100vw / 36 * (36 - (4 * 2)) - (3rem * (2 - 1)) - 0.6rem) / 2) / 16 * 9);
}
[data-e='event-wide'] .info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
[data-e='event-square'] .event-title {
  margin-top: 0.5rem;
  text-align: center;
}
[data-e='event-square'],
[data-e='event-square'] .image img,
[data-e='event-square'] .info {
  width: calc((100vw / 36 * (36 - (4 * 2)) - (3rem * (3 - 1)) - 0.6rem) / 3);
}
[data-e='event-square'] .image img,
[data-e='event-square'] .info {
  height: calc((100vw / 36 * (36 - (4 * 2)) - (3rem * (3 - 1)) - 0.6rem) / 3);
}
[data-e='event-square'] .description {
  -webkit-line-clamp: 5;
}
[data-e='event-square'] .info {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background-color 0.15s ease;
}
@media (min-width: 993px) {
  [data-e='event-square'] .info {
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0,0.72);
  }
}
[data-e='event-square'] .info::before {
  position: absolute;
  content: '';
  top: 2rem;
  left: 2rem;
  width: calc(100% - (2rem * 2));
  height: calc(100% - (2rem * 2));
  border: 2px solid #d07716;
  transition: border-color 0.15s ease;
}
[data-e='event-square'] .info .top {
  order: 1;
}
[data-e='event-square'] .info .center {
  order: 2;
}
[data-e='event-square'] .info .bottom {
  order: 3;
}
[data-e='event-square'] .info .top,
[data-e='event-square'] .info .center,
[data-e='event-square'] .info .bottom {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
[data-e='event-square'] .list-meta-info {
  justify-content: center;
}
[data-e='event-square'] .description {
  text-align: center;
}
@media (min-width: 993px) {
  [data-e='event-square']:not(:hover):not(:focus-within) .info {
    background-color: rgba(0,0,0,0);
  }
  [data-e='event-square']:not(:hover):not(:focus-within) .info::before {
    border-color: #d3a46c;
  }
  [data-e='event-square']:not(:hover):not(:focus-within) .info .top,
  [data-e='event-square']:not(:hover):not(:focus-within) .info .center,
  [data-e='event-square']:not(:hover):not(:focus-within) .info .bottom {
    opacity: 0;
  }
  [data-e='event-square']:not(:hover):not(:focus-within) .info .top {
    transform: translateY(-1rem);
  }
  [data-e='event-square']:not(:hover):not(:focus-within) .info .center {
    transform: scale(1.1);
  }
  [data-e='event-square']:not(:hover):not(:focus-within) .info .bottom {
    transform: translateY(1rem);
  }
}
@media (max-width: 1600px) {
  [data-e='event-wide'] .info,
  [data-e='event-wide'] .image img {
    width: calc((100vw / 36 * (36 - (3 * 2)) - (3rem * (2 - 1)) - 0.6rem) / 2);
    height: calc(((100vw / 36 * (36 - (3 * 2)) - (3rem * (2 - 1)) - 0.6rem) / 2) / 16 * 9);
  }
  [data-e='event-wide'] .description {
    -webkit-line-clamp: 3;
  }
  [data-e='event-square'],
  [data-e='event-square'] .image img,
  [data-e='event-square'] .info {
    width: calc((100vw / 36 * (36 - (3 * 2)) - (3rem * (3 - 1)) - 0.6rem) / 3);
  }
  [data-e='event-square'] .image img,
  [data-e='event-square'] .info {
    height: calc((100vw / 36 * (36 - (3 * 2)) - (3rem * (3 - 1)) - 0.6rem) / 3);
  }
  [data-e='event-square'] .description {
    -webkit-line-clamp: 4;
  }
}
@media (max-width: 1440px) {
  .event .event-title {
    font-size: 2.333333333333333rem;
  }
  [data-e='event-wide'] .info,
  [data-e='event-wide'] .image img {
    width: calc((100vw / 36 * (36 - (2 * 2)) - (3rem * (2 - 1)) - 0.6rem) / 2);
    height: calc(((100vw / 36 * (36 - (2 * 2)) - (3rem * (2 - 1)) - 0.6rem) / 2) / 16 * 9);
  }
  [data-e='event-square'],
  [data-e='event-square'] .image img,
  [data-e='event-square'] .info {
    width: calc((100vw / 36 * (36 - (2 * 2)) - (3rem * (3 - 1)) - 0.6rem) / 3);
  }
  [data-e='event-square'] .image img,
  [data-e='event-square'] .info {
    height: calc((100vw / 36 * (36 - (2 * 2)) - (3rem * (3 - 1)) - 0.6rem) / 3);
  }
}
@media (max-width: 1200px) {
  .event .event-title {
    font-size: 2rem;
  }
  [data-e='event-wide'] .description {
    -webkit-line-clamp: 2;
  }
  [data-e='event-square'] .info {
    background-color: transparent;
  }
  [data-e='event-square'] .info::before {
    top: 1rem;
    left: 1rem;
    width: calc(100% - (1rem * 2));
    height: calc(100% - (1rem * 2));
  }
}
@media (max-width: 1200px) and (min-width: 993px) {
  > * {
    display: none;
  }
}
@media (min-width: 993px) {
  [data-e='event-square'] .info .top .event-title {
    display: none;
  }
}
@media (max-width: 992px) {
  [data-e='event-wide'] .image {
    overflow: auto;
  }
  [data-e='event-wide'] .image img {
    width: 100%;
    height: calc(100vw / 16 * 10);
  }
  [data-e='event-wide'] .info {
    margin-top: 1rem;
    width: 100%;
    height: auto;
    padding-left: calc(100vw / 12);
    padding-right: calc(100vw / 12);
  }
  .event {
    margin-top: 2rem;
    margin-bottom: 2rem;
  }
  [data-e='event-square'] {
    margin-top: 1rem;
    margin-bottom: 1rem;
    display: flex;
    width: 100%;
  }
  [data-e='event-square'] > .event-title,
  [data-e='event-square'] .description,
  [data-e='event-square'] .info .top .list-meta-info {
    display: none;
  }
  [data-e='event-square'] .image,
  [data-e='event-square'] .info {
    width: 50vw;
  }
  [data-e='event-square'] .image img {
    width: 50vw;
  }
  [data-e='event-square'] .image img,
  [data-e='event-square'] .info {
    height: 50vw;
  }
  [data-e='event-square'] .info {
    padding: 0 calc(100vw / 12);
    justify-content: center;
    background-color: rgba(0,0,0,0.18);
  }
  [data-e='event-square'] .info::before {
    opacity: 0;
  }
  [data-e='event-square'] .event-title {
    text-align: left;
    font-size: 1.666666666666667rem;
  }
  [data-e='event-square'] .top .event-title,
  [data-e='event-square'] .list-meta-info .location {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  [data-e='event-square'] .top .event-title {
    -webkit-line-clamp: 2;
  }
  [data-e='event-square'] .list-meta-info .location {
    -webkit-line-clamp: 1;
  }
  [data-e='event-square'] .list-meta-info {
    justify-content: flex-start;
  }
  [data-e='event-square'] .list-meta-info li {
    line-height: 150%;
    font-size: 0.888888888888889rem;
  }
  [data-e='event-square'] .list-meta-info > li:not(:last-child) {
    margin-bottom: 0.333333333333333rem;
  }
}
