@font-face {
  font-family: "TikTok Sans";
  src: url("/fonts/tiktok-sans-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TikTok Sans";
  src: url("/fonts/tiktok-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TikTok Sans";
  src: url("/fonts/tiktok-sans-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --gap: 12px;
}

html,
body {
  margin: 0;
  padding: 0;
  font: 16px/1.5 "TikTok Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

main {
  padding: 2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--gap);
}

@media (max-width: 1023px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 767px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}

.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.card-body {
  padding-bottom: 1rem;
}

.card h3 {
  margin: 0.75rem 1rem;
  font-size: 1rem;
}

.subtitle {
  margin: 0 1rem;
  color: #555;
  font-size: 0.9rem;
}

.thumb {
  width: 100%;
  height: 180px;
  background: #e9e9e9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  font-size: 0.9rem;
  overflow: hidden;
}

.thumb picture {
  display: block;
  width: 100%;
  height: 100%;
  flex: 1 1 auto;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb span {
  padding: 0 1rem;
  text-align: center;
}

.count {
  color: #666;
  margin: 0 1rem 1rem;
  font-size: 0.9rem;
}

.album-header {
  margin-bottom: 2rem;
}

.album-intro {
  margin-bottom: 2rem;
  max-width: 60ch;
  color: #444;
}

.album-intro h2 {
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
}

.album-intro p {
  margin: 0 0 0.75rem;
}

.album-subtitle {
  margin: 0.25rem 0 0;
  color: #555;
  font-size: 1rem;
}

.album-meta {
  margin: 0.5rem 0 0;
  color: #777;
  font-size: 0.9rem;
}

.album-meta__item + .album-meta__item::before {
  content: '\2022';
  margin: 0 0.5rem;
}


.album-grid {
  --album-columns: 12;
  --album-gap: 16px;
  display: grid;
  gap: var(--album-gap);
  grid-template-columns: repeat(var(--album-columns), minmax(0, 1fr));
  grid-auto-flow: row dense;
  margin-bottom: 2rem;
}

@media (max-width: 1023px) {
  .album-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .album-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.album-item {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.album-photo {
  grid-column: span 2;
}

@media (max-width: 1023px) {
  .album-photo {
    grid-column: span 2;
  }
}

@media (max-width: 767px) {
  .album-photo {
    grid-column: span 2;
  }
}

.album-photo__media,
.featured-photo__media {
  width: 100%;
  height: 100%;
}

.album-photo__media picture,
.featured-photo__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.album-photo__img,
.featured-photo__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-item {
  grid-column: var(--col-large, auto) / span var(--colspan-large, 1);
  grid-row: var(--row-large, auto) / span var(--rowspan-large, 1);
}

@media (max-width: 1023px) {
  .featured-item {
    grid-column: var(--col-medium, auto) / span var(--colspan-medium, 1);
    grid-row: var(--row-medium, auto) / span var(--rowspan-medium, 1);
  }
}

@media (max-width: 767px) {
  .featured-item {
    grid-column: var(--col-small, auto) / span var(--colspan-small, 1);
    grid-row: var(--row-small, auto) / span var(--rowspan-small, 1);
  }
}

.featured-photo__caption {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: #444;
}

.featured-text__content {
  padding: 1.5rem;
  flex: 1;
}

.feature-style-light {
  background: #f9f9f9;
  color: #222;
}

.feature-style-dark {
  background: #222;
  color: #f9f9f9;
}

.feature-style-minimal {
  background: transparent;
  border: 1px dashed #bbb;
  color: #222;
}

.feature-style-accent {
  background: #ffeada;
  color: #3b2400;
}

.album-item--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: #f5f5f5;
  color: #666;
}

.album-item__message {
  text-align: center;
  padding: 1rem;
}

.album-item__message small {
  display: block;
  margin-top: 0.25rem;
  color: #888;
}

.back-link {
  margin-top: 1rem;
}

.back-link a {
  color: inherit;
  text-decoration: none;
}

.back-link a:hover,
.back-link a:focus {
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.share-error {
  background: #ffe1e1;
  color: #a10000;
  border: 1px solid #f5b5b5;
  padding: 0.75rem 1rem;
  margin: 1rem;
  border-radius: 4px;
}

.share-landing {
  margin: 2rem 1rem;
  text-align: center;
}

.share-landing h2 {
  margin-bottom: 0.5rem;
}

.share-content {
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.share-ok .share-content {
  opacity: 1;
}

.share-locked .share-content {
  display: none;
}

.share-ok .share-landing {
  display: none;
}

.share-ok .share-error {
  display: none;
}
