@font-face {
  font-family: 'Lausanne';
  src: url('fonts/hrzyvqvm8lhka6gg.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Lausanne';
  src: url('fonts/n4ou8aia53p6lpqa.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -moz-tap-highlight-color: transparent;
  -ms-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

body {
  font-family: 'Lausanne', sans-serif;
  font-weight: 300;
  line-height: 1.4rem;
  color: #58584C;
  background-color: #fff;
  margin: 2rem 2.4rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto 1fr;
  gap: 0.6rem;
  max-width: 1800px;
  margin: 0 auto;
  height: calc(100dvh - 4rem);
  overflow: hidden;
}

.gallery-grid h1,
.bold {
  font-size: 1.1rem;
  font-weight: 700;
  color: #000;
}

.gallery-grid h2,
.gallery-grid p,
.gallery-grid li {
  font-size: 1.1rem;
  font-weight: 300;
}

.gallery-grid figure {
  font-size: 1rem;
}

.gallery-grid ul {
  list-style: none;
  margin-left: 3rem;
}

.gallery-grid li {
  position: relative;
  width: fit-content;
}


@media (pointer: fine) {
  .gallery-grid li:hover::before {
    content: '\25B6';
    position: absolute;
    left: -1.3rem;
    font-size: 1.3rem;
    color: #000;
  }
}

.dot {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  background-color: #000;
  border-radius: 50%;
  margin-right: 0.3rem;
  vertical-align: middle;
  margin-bottom: 0.15rem;
}

.email {
  margin-left: 1.3rem;
  margin-bottom: .5rem;
}

.home-link,
.email a,
.gallery-grid li a,
.back-button a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.email a:hover,
.gallery-grid li a:hover,
.back-button a:hover {
  opacity: 0.5;
}

.event-info {
  margin-left: 4rem;
  margin-top: -0.3rem;
}

.event-count {
  padding: 0 0.2rem;
}

.status-line {
  margin-left: 4rem;
  white-space: nowrap;
}

.back-button {
  margin-left: 4rem;
  font-size: 1.1rem;
}

.subtitle-mobile,
.mobile-links {
  display: none;
}

.col1-row1 {
  grid-column: 1;
  grid-row: 1;
}

.col2-row1 {
  grid-column: 2;
  grid-row: 1;
}

.col4-row1 {
  grid-column: 3;
  grid-row: 1;
  text-align: right;
}

.img-grid-wrapper {
  grid-column: 1 / -1;
  grid-row: 2;
  overflow: hidden;
  min-height: 0;
}

.img-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 1fr repeat(3, 1fr) .2fr;
  column-gap: 0.4rem;
  row-gap: .4rem;
  height: 100%;
  margin-right: 10dvw;
}

.img-cell .placeholder {
  max-width: 100%;
  aspect-ratio: 4 / 3;
  background: #d0d0d0;
}

.img-cell img {
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.img-cell.empty {
  background: transparent;
}

.img-cell img {
  cursor: pointer;
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: default;
  padding: 2rem 2.4rem;
}

.lightbox img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transform: none;
}

@media (min-width: 640px) and (orientation: landscape) {
  .lightbox img:not(.portrait) {
    max-width: 70vw;
  }
}

@media (min-width: 640px) and (orientation: portrait) {
  .lightbox img.portrait {
    max-height: 75dvh;
  }
}

.lightbox-images {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-images img {
  display: none;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.lightbox-images img.active {
  display: block;
}

.lightbox-counter {
  position: absolute;
  top: 2rem;
  right: 2.4rem;
  font-size: 1.1rem;
  color: #58584C;
}

.lightbox-download {
  position: absolute;
  top: 2rem;
  right: calc(2.4rem + 4rem);
  font-size: 1.1rem;
  color: #58584C;
  text-decoration: none;
  cursor: pointer;
}

.lightbox-download:hover {
  opacity: 0.5;
}

.lightbox-close {
  display: none;
  position: absolute;
  top: 2rem;
  left: 2.4rem;
  cursor: pointer;
  font-size: 1.1rem;
  z-index: 100;
  pointer-events: auto;
  touch-action: manipulation;
}

@media (pointer: coarse) {
  .lightbox-close {
    display: block;
  }

  .lightbox-close,
  .lightbox-download {
    padding: 0.5rem;
    margin: -0.5rem;
  }
}

/* Portrait images: rotate -90° (counter-clockwise) in preview grid */
.img-cell.portrait {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.img-cell.portrait img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 75%;
  height: 133.33%;
  transform: rotate(-90deg);
  object-fit: cover;
  max-width: none;
  aspect-ratio: auto;
}

.lightbox-placeholder {
  height: 95dvh;
  aspect-ratio: 4 / 3;
  background: #d0d0d0;
}

.img-cell .placeholder:not(.nav-cell) {
  cursor: pointer;
}

.grid-spacer {
  height: 12rem;
}

.placeholder.nav-cell {
  background: #29291E;
  cursor: pointer;
  color: #fff;
  font-size: 1.1rem;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.placeholder.nav-cell:hover {
  background: #000;
}

.event-list {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: .7fr .7fr 1fr;
  column-gap: 0.6rem;
  row-gap: 0;
  align-content: start;
}

.event-list .grid-spacer {
  height: 12rem;
}

.event-list figure {
  height: auto;
}

.event-info-list-item {
  grid-column: 1 / -1;
  height: auto;
  color: inherit;
  text-decoration: none;
  padding-top: .5rem;
  padding-bottom: .8rem;
  display: grid;
  grid-template-columns: subgrid;
  align-items: start;
  border-top: 1px solid #919181;
  transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-info-list-item h2 {
  font-size: 1.4rem;
}

.event-info-list-item:first-of-type {
  margin-top: .4rem;
}

.event-info-list-item:hover {
  color: #000;
  border-color: #000;
}

.future-event-info-list-item {
  grid-column: 1 / -1;
  height: auto;
  padding-top: .5rem;
  padding-bottom: .8rem;
  display: grid;
  grid-template-columns: subgrid;
  align-items: start;
  border-top: 1px solid black;
  opacity: 0.3;
  pointer-events: none;
}

.future-event-info-list-item h2 {
  font-size: 1.4rem;
}

/* .event-list-name {
  white-space: nowrap;
} */


.event-list-venue {
  white-space: nowrap;
}

@media (max-width: 1259px) {
  body {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .lightbox {
    padding: 2rem 1rem;
  }

  .lightbox-close {
    left: 1rem;
  }

  .event-list .grid-spacer:nth-child(4),
  .event-list figure:nth-of-type(4) {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: 2fr 1fr 1fr;
    height: auto;
    overflow: visible;
  }

  .event-list {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .venue-label,
  .event-list-venue {
    margin-left: 3rem;
  }

  .date-label {
    text-align: right;
    margin-right: 5.5ch;
  }

  .event-list-date {
    text-align: right;
  }

  .future-event-info-list-item .event-list-date {
    margin-right: 3ch;
  }

  .img-grid {
    margin-right: 0;
    padding: 0;
    height: auto;
    row-gap: 0.4rem;
  }

  .img-grid-wrapper {
    overflow: visible;
    grid-column: 1 / 4;
    /* padding-right: calc(27.3% - 3rem); */
  }

}

@media (max-width: 999px) {
  .gallery-grid {
    grid-template-columns: 4fr 1.5fr;
  }

  .col4-row1 {
    display: block;
    grid-column: 1 / -1;
    grid-row: 3;
    text-align: left;
  }

  .index-page .col4-row1 {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
  }

  .col2-row1 {
    margin-left: auto;
  }

  .img-grid-wrapper {
    grid-column: 1 / 3;
    padding-right: 0;
  }

  .img-grid {
    grid-template-columns: repeat(3, 1fr);
  }

}

@media (max-width: 639px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .col1-row1 {
    position: fixed;
    top: 2rem;
    left: 1rem;
    right: 1rem;
    background: #fff;
    z-index: 100;
    padding-bottom: 1rem;
  }

  .col1-row1::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 14rem;
    background: #fff;
    z-index: -1;
  }

  .col2-row1 {
    position: fixed;
    top: 2rem;
    right: 1rem;
    margin-top: 2.8rem;
    background: #fff;
    z-index: 100;
  }

  .copyright-credit,
  .copyright-credit #copyright-year,
  .gallery-grid figure {
    font-size: 0.95rem;
  }

  .index-page .col4-row1 {
    position: fixed;
    bottom: .6rem;
    left: 1rem;
  }

  .event-list {
    margin-top: 12rem;
  }

  .event-list .grid-spacer:nth-child(3) {
    display: none;
  }

  .event-list .grid-spacer {
    height: 0;
  }

  .img-grid-wrapper {
    grid-column: 1;
  }

  .subtitle-full {
    display: none;
  }

  .subtitle-mobile {
    display: inline;
  }

  .title-line {
    white-space: nowrap;
  }

  .event-info,
  .status-line {
    display: none;
  }

  .back-button {
    position: absolute;
    top: 0;
    right: 0;
    margin-left: 0;
  }

  .lightbox-close {
    display: block;
  }

  .lightbox img.portrait {
    max-height: 60dvh;
  }

  .lightbox-counter {
    top: 2rem;
    right: 1rem;
  }

  .lightbox-download {
    right: calc(1rem + 3.7rem);
  }

  .event-list,
  .event-info-list-item {
    grid-template-columns: 4fr 1fr;
  }

  .event-info-list-item h2,
  .future-event-info-list-item h2 {
    font-size: 1.2rem;
  }

  .venue-label,
  .event-list-venue {
    display: none;
  }

  .date-label,
  .event-list-date {
    grid-column: 2;
  }

  .date-label {
    margin-right: 4.6ch;
  }
}

