html, body {
  height: 100%;
  width: 100%;
  
  display: flex;

  scrollbar-width: thin;
  scrollbar-color: #0d0d0d40 #00000040;
}

p {
  font-family: "Arial", sans-serif;
}

h2 {
  margin: 0px 0px 15px 0px;
}

#listing {
  margin: 12px 0px 0px 0px;
  font-family: "Arial", sans-serif;
  font-size: 24px
}

.tab-container {
  width: 90%;
  height: 85%;
  margin: 2rem auto;
  font-family: sans-serif;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: scroll;
}

.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tab {
  flex: 1;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border: none;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  backdrop-filter: blur(12px);
  border-radius: 4px;
  transition: background 0.3s ease;
}

#bgVideo {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  object-fit: cover;
}

.tab:hover {
  background: rgba(25, 25, 25, 0.35);
  backdrop-filter: blur(12px);
}

.tab.active {
  background: rgba(25, 25, 25, 0.35);
  backdrop-filter: blur(12px);
  color: #fff;
}

.tab-content {
  display: none;
  color: #fff;
}

.tab-content.active {
  display: block;
}

* {
    box-sizing: border-box; /* Ensures padding and borders are included in the element's total width/height */
    margin: 0;
    padding: 0;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  grid-auto-flow: dense; 
}

.grid-item {
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: auto; 
  width: 100%;
  height: 100%;
}

.grid-item img,
.grid-item video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; 
}
.grid-item video { max-height: 360px; }

::-webkit-scrollbar {
  width: 4px; 
}

::-webkit-scrollbar-track {
  background: #0d0d0d40; 
  border-radius: 10px; 
}

::-webkit-scrollbar-thumb {
  background: #00000040;
  border-radius: 10px; 
}

::-webkit-scrollbar-thumb:hover {
  background: #00000066; 
}

::-webkit-scrollbar-button {
  
}

::-webkit-scrollbar-corner {

}

@media (min-width: 600px) {
  .grid-item.orientation-landscape {
    grid-column: span 2;
  }

  .grid-item.orientation-portrait {
    grid-row: span 2;
  }
  
}
