@font-face {
  font-family: 'Playwrite IT Moderna';
  src: url('/fonts/PlaywriteITModerna-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

body {
  font-family: sans-serif;
  background: white;
  color: white;
  padding: 0 .5rem;
  user-select: none;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 1rem;
  height: 1rem;
}
::-webkit-scrollbar-track {
  background: #222222;
}
::-webkit-scrollbar-thumb {
  background: #333333;
}
::-webkit-scrollbar-thumb:hover {
  background: #444444;
}
::-webkit-scrollbar-thumb:active {
  background: #444444;
}
::-webkit-scrollbar-corner {
  background: #121212;
}

h1 {
  font-family: 'Playwrite IT Moderna';
  text-align: center;
  color: #B61CE5;
  font-display: block;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@media (max-width: 500px) {
  h1 {
    font-size: 26px;
  }
}

h2 {
  font-family: 'Playwrite IT Moderna';
  letter-spacing: 2px;
  text-align: center;
}

.lowercase {
  font-size: .7em;
}

.grid {
  column-gap: .5rem;
  columns: 2;
}

@media (min-width: 1024px) {
  .grid {
    columns: 3;
  }
}

@media (min-width: 1280px) {
  .grid {
    columns: 4;
  }
}

@media (min-width: 1920px) {
  .grid {
    columns: 5;
  }
}

@media (min-width: 3000px) {
  .grid {
    columns: 6;
  }
}

.header {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: .5rem 0;
  martin-top: 1rem;
}

.spacer {
  width: 100%;
}

.profile-pic {
  width: 5rem;
  height: 5rem;
  border-radius: 100%;

}

.item {
  break-inside: avoid;
  cursor: pointer;
  background: radial-gradient(circle, #121212 10%, white 30%);
  background-size: 200% 200%;
  position: relative;
  overflow: hidden;
  animation: spin-bg 8s infinite linear;
  padding-bottom: .5rem;
  box-decoration-break: clone;
}

@keyframes spin-bg {
  0% {
    background-position: 50% 50%;
  }
  100% {
    background-position: 51% 51%;
  }
}


.item img {
  width: 100%;
  height: auto;
  display: block;
}

.item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  outline: none;
}

.aspect-16-9 {
  aspect-ratio: 16/9;
}

.aspect-4-3 {
  aspect-ratio: 16/9;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

#mediaContainer {
  position: relative;
  width: 100%;
  height: 100%;
}

#mediaContainer img,
#mediaContainer video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.25rem;
}

.modal.active {
  display: flex;
}

.modal-close-container {
  position: fixed;
  top: 0px;
  right: 0px;
  width: 100px;
  height: 100px;
  z-index: 2;
}

.modal-close {
  position: absolute;
  top: 2rem;
  right: 1rem;
  line-height: 0;
  font-size: 3rem;
  color: white;
  cursor: pointer;
}

/* Loading spinner */
.spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  position: absolute;
  z-index: 2; /* Ensures spinner is on top of the thumbnail */
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

_::-webkit-full-page-media, _:future, :root button, h1 {
  letter-spacing: -1.5px;
}


