* {
  box-sizing: border-box;
}

:root {
  --athar-orange: #e8752f;
  --text: #202020;
  --page-bg: #ffffff;
  --soft-line: #eeeeee;
}

html {
  background: var(--page-bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.topbar {
  position: relative;
  width: 100%;
  min-height: 92px;
  padding: 18px 28px 0;
}

.topbar-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--athar-orange);
}

.athar-logo {
  position: absolute;
  top: 17px;
  right: 28px;
  width: 88px;
  height: auto;
  display: block;
}

.page {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 34px 28px 70px;
}

#person-name {
  margin: 0;
  text-align: center;
  color: var(--athar-orange);
  font-family:
    "Brush Script MT",
    "Segoe Script",
    "Lucida Handwriting",
    cursive;
  font-size: clamp(42px, 6vw, 82px);
  font-weight: 500;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.name-rule {
  width: min(520px, 55%);
  height: 1px;
  margin: 22px auto 40px;
  background: var(--soft-line);
}

/* --------------------------------
   GALLERY
--------------------------------- */

.gallery {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  column-gap: 18px;
  row-gap: 18px;

  align-items: start;
}

.gallery-item {
  margin: 0;
  width: 100%;
}

/* Images and videos */

.gallery-item img,
.gallery-item video {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;

  border-radius: 8px;

  background: #f7f7f7;
}

.gallery-item video {
  max-height: 90vh;
}

/*
   Landscape images are intentionally
   allowed to sit directly together when
   they occur consecutively.
*/

.gallery-item.landscape + .gallery-item.landscape {
  margin-top: -18px;
}

/* Empty state */

.empty-message {
  margin: 80px 0;
  text-align: center;
  color: #999;
  font-size: 15px;
}

/* --------------------------------
   TABLET
--------------------------------- */

@media (max-width: 900px) {

  .gallery {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    column-gap: 12px;
    row-gap: 12px;
  }

  .gallery-item.landscape
    + .gallery-item.landscape {
    margin-top: -12px;
  }

  .page {
    padding-left: 14px;
    padding-right: 14px;
  }

  .topbar {
    min-height: 72px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .athar-logo {
    top: 12px;
    right: 14px;
    width: 64px;
  }
}

/* --------------------------------
   PHONE
--------------------------------- */

@media (max-width: 560px) {

  .gallery {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gallery-item.landscape
    + .gallery-item.landscape {
    margin-top: -12px;
  }

  .page {
    padding-top: 26px;
  }

  #person-name {
    font-size:
      clamp(38px, 12vw, 60px);
  }

  .name-rule {
    width: 70%;
    margin-top: 16px;
    margin-bottom: 26px;
  }
}