* {
  margin: 0;
  box-sizing: border-box;
}

:root {
  --text: rgb(54, 54, 54);
  --text-soft: rgba(54, 54, 54, 0.72);
  --text-faint: rgba(54, 54, 54, 0.45);
  --link: rgb(190, 54, 54);
  --link-hover: rgb(54, 54, 200);
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

body {
  display: grid;
  justify-items: center;

  font-family: var(--font-main);
  color: var(--text);
}

h1 {
  color: var(--text);
  font-size: 4em;
  font-weight: 500;
}

h2 {
  color: var(--text);
  font-size: 2em;
  font-weight: 400;
}

p {
  color: var(--text);
  font-size: 1.4em;
  font-weight: 300;
}

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 0;
}

a:hover {
  color: var(--link-hover);
  border-bottom-color: var(--link-hover);
}

.photos {
  position: relative;

  width: 87vw;
  max-width: 1200px;

  margin-left: auto;
  margin-right: auto;
  margin-top: 2em;
  margin-bottom: 0;
}

/* Top-right cat + buttons. Keep this block inside .photos, before .title_div. */

.page-top {
  position: absolute;
  top: 1em;
  right: 0;
  z-index: 5;

  display: flex;
  flex-direction: column;
  align-items: flex-end;

  margin: 0;
}

.site-mark {
  display: block;
  width: 150px;

  margin-bottom: 0.65em;
  margin-right: 0.2em;

  border-bottom: 0;
}

.site-mark img {
  display: block;
  width: 100%;
  height: auto;

  opacity: 0.88;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.site-mark:hover img {
  opacity: 1;
  transform: rotate(-360deg) scale(1);
}
.friend-links {
  display: flex;
  justify-content: center;
  gap: 0.45em;

  margin-top: 0.55em;
}

.friend-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 2.2em;
  height: 1.55em;
  padding: 0 0.45em;

  color: rgba(54, 54, 54, 0.58);
  border: 1px solid rgba(54, 54, 54, 0.28);
  border-radius: 1500px;

  font-size: 0.9em;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: lowercase;

  text-decoration: none;
  transition: 0.25s;
}

.friend-links a:hover {
  color: rgb(190, 54, 54);
  border-color: rgba(190, 54, 54, 0.55);
  transform: translateY(-1px);
}
.top-buttons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75em;

  margin: 0;
}

.back_button,
.language_button {
  height: min-content;
  width: min-content;

  text-align: center;
  display: block;
  text-decoration: none;
  white-space: nowrap;

  font-size: 1.1em;
  border: var(--text) 1px solid;
  color: var(--text);

  padding: 3px 5px;
  border-radius: 0;
  transition: 0.5s;
}

.back_button:hover,
.language_button:hover {
  border: #0000007a 1px solid;
  color: #0000007a;
  border-radius: 10px;
}

/* Title */

.title_div {
  padding-right: 170px;
  padding-left: 170px;
}

.title {
  text-align: center;
  line-height: 1.3;
  margin-bottom: 2.5em;
}

/* Photo sections */

.photo-section {
  margin-bottom: 4em;
}

.photo-section-title {
  color: var(--text);
  font-size: 1.6em;
  font-weight: 400;
  text-align: center;
  margin-bottom: 0.35em;
}

.photo-section h4.photo-section-title {
  margin-top: 2.2em;
}

.photo-section-note {
  color: var(--text-soft);
  font-size: 1em;
  font-weight: 300;
  line-height: 1.35;
  text-align: center;

  max-width: 34rem;
  margin: 0 auto 1.8em;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2em;
}

.photo-grid:not(.two-columns) {
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 2em;
}

.photo-grid.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2em;
}

.photo-item {
  margin: 0;
}

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

  border: none;
  border-radius: 2px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.09);
}

.photo-item figcaption {
  color: rgba(54, 54, 54, 0.62);
  font-size: 1.2em;
  font-weight: 300;
  line-height: 1.35;
  text-align: center;

  margin-top: 0.55em;
  margin-bottom: 0;
}

.photo-date {
  color: var(--text-faint);
  font-size: 0.9em;
}

/* Mobile */

@media (max-width: 768px) {
  .photos {
    width: 90vw;
    max-width: 480px;
    margin-top: 3em;
  }

  .site-mark {
    width: 80px;
    margin-bottom: 0.55em;
  }

  .back_button,
  .language_button {
    font-size: 1em;
  }

  .title_div {
    padding-right: 110px;
    padding-left: 0;
  }

  .title {
    text-align: left;
    margin-bottom: 2.2em;
  }

  h1 {
    font-size: 3em;
  }

  h2 {
    font-size: 1.5em;
  }

  p {
    font-size: 1.2em;
  }

  .photo-section {
    margin-bottom: 3em;
  }

  .photo-section-title {
    font-size: 1.35em;
  }

  .photo-section-note {
    font-size: 0.95em;
  }

  .photo-grid.two-columns {
    grid-template-columns: 1fr;
  }

  .photo-item figcaption {
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .title_div {
    padding-right: 0;
    padding-top: 115px;
  }

  .page-top {
    top: 0;
  }
}
