* {
  user-select: none;
  -webkit-user-drag: none;
}

.page-wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.gallery {
  flex: 1;
}

.main {
  font-family: "Montserrat", sans-serif;
  background-color: #0a0f0c;
  color: #ffffff;
}

.header h1 {
  display: flex;
  justify-content: center;
  text-align: center;
  margin: 2.5rem;
}

.container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
  border: 0px;

}

.grafika-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px 8px 0px 0px;
  display: block;
}


.tile {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #0D1117;
  width: 100%;
  border: 1px solid #0D1117;
}

.tile img {
  transition-duration: 300ms;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #0D1117;
  display: block;
  border: 0px;
  border-radius: 20px;
}

.tile img:hover {
  transition-duration: 300ms;
  border-radius: 1%;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.overlay img {
  max-width: 80%;
  max-height: 1080px;
  border: 2px solid #ffffff;
  border-radius: 30px;
  display: block;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.close-btn:hover {
  color: #aaa;
}

button {
  background-color: #242424;
  color: #ffffff;
  border: none;
  padding: 20px 35px;
  border-radius: 10px;
  cursor: pointer;
  transition-duration: 600ms;
  display: block;
  margin: 0 auto 4.5rem;
  font-size: 20px;
  margin-top: 25px;
}

button:hover {
  background-color: #393939;
  transform: scale(1.1);
}

.tile iframe,
.tile video,
.tile embed {
  border: none !important;
  outline: none !important;
  background-color: transparent !important;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  display: block;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #2f2f2f;
  background: transparent;
  border: none;
}

::-webkit-scrollbar-thumb {
  background-color: #1AFF08;
  border-radius: 5px;
  border: 2px solid #2f2f2f;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #1AFF08;
}

.video-card {
  background-color: #161b22;
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  max-width: 1080px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  font-family: "Montserrat", sans-serif;
  color: #fff;
  margin: 20px auto;
}

.thumbnail {
  position: relative;
}

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

.yt-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background-color: rgba(0, 0, 0, 0.85);
  padding: 4px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  font-size: 12px;
}

.yt-badge img {
  height: 16px;
  margin-left: 5px;
}

.video-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background-color: #0d1117;
}

.author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.video-type {
  font-size: 0.9rem;
  color: #c9d1d9;
}

#montage {
  width: 90%;
  height: 150%;
}

@keyframes slideFadeIn {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.max-w-md {
  opacity: 0;
  transform: translateY(40px);
  animation: slideFadeIn 0.8s ease-out forwards;
}

.max-w-md:nth-child(1) {
  animation-delay: 0.1s;
}

.max-w-md:nth-child(2) {
  animation-delay: 0.3s;
}

.max-w-md:nth-child(3) {
  animation-delay: 0.5s;
}

.btn-back {
  padding: 10px;
  background-color: #72FF5F;
  display: flex;
  justify-content: center;
  text-align: center;
  border-radius: 14px;
  text-decoration: none;
  color: rgb(0, 0, 0);
  font-weight: 500;
  font-size: 20px;
  transition-duration: 300ms;
  width: 15rem;
  margin-bottom: 3rem;

}

.btn-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 2rem;

}

.btn-back:hover {
  transition-duration: 300ms;
  background-color: #62ca54;
}