@media (min-width: 200px) {
body > .wrapper {
    height: 100vh;
}
body {
    background-color: #f5f5f0;
    font-family:
      Roboto,
      -apple-system,
      BlinkMacSystemFont,
      "Segoe UI",
      Roboto,
      Oxygen-Sans,
      Ubuntu,
      Cantarell,
      "Helvetica Neue",
    sans-serif;
    margin: 0;
    padding: 0;
}

.wrapper {
    margin: 0;
    padding: 0;
    min-height: 100vh; /* Make wrapper take up full viewport height */
    display: flex; /* Use flexbox for layout */
    flex-direction: column;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    /* background-color: rgba(255, 255, 255, 0.8); */
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
}

#hamburger {
    display: block;
    position: absolute;
    right: 2rem;
    top: 2rem;
    border: none;
    color: white;
    background-color: #b18e34;
    font-size: 2rem;
}

.logo {
  max-width: 130px;
  height: auto;
  /* margin: 0 1rem; */
}

.mobile-nav {
    width: 90%;
    display: none;
    position: absolute;
    text-align: right;
    line-height: 2.5rem;
    top: 10px;
    left: 0;
    flex-direction: column;
    background-color: #fff;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,.3);
}

.mobile-nav.active {
    display: flex;
}

.nav {
  display: none;
}

.menu-link:hover {
  color: #ccaa66;
}

.menu-link:active {
  color: #3388aa;
}

.menu-link {
  color: #a83;
  text-decoration: none;
  font-weight: 500;
}

.mobile-menu-link {
  color: #a83;
  text-decoration: none;
  font-weight: 500;
  font-size: 2rem;
}

.middle {
  align-items: center;
  padding: 2rem 0;
  flex-grow: 1;
}

.middle-wrapper {
  margin-bottom: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 100%;
}

.home-section {
  display: flex;
  justify-content: start;
  gap: 10em;
    flex-grow: 1;
    img {
    }
}

.home-content {
  padding: 0 2rem;
  font-size: 1.2em;
  height: 100%;
}

.home-container {
  display: flex;
  flex-direction: column;
}

.viewport {
  width: 500px;
  height: 500px;
  overflow: hidden;
  position: relative;

  img {
    position: absolute;
    top: -90px;
    left: -10px;
  }
}

.photo {
    margin: 2rem;
    max-height: 300px;
}

.middle-wrapper h1 {
    color: #a83;
}

/* Brands Section */
.brands-container {
  padding: 0 2rem;
  display: flex;
  /* gap: 1.5rem; */
  justify-content: space-between;
  max-height: 40px;
  max-width: 100vw;
}

.brand-logo {
  /* width: 100%; */
  /* margin: auto 0; */
  max-height: inherit;
  object-fit: contain;
}

.bottom {
    font-size: 0.8rem;
    background-color: #2b2b2b;
    color: #ccaa66;
    display: block;
    padding: 1rem;
    bottom: 0;
    left: 0;
    max-width: 100%;
}

.bottom-content {
  display: flex;
  justify-content: space-between;
}

.bottom-content div p {
  margin: auto;
  line-height: 2rem;
  color: white;
}

.company-info {
  font-size: 1rem;
  height: auto;
}

p a{
    color: inherit;
    text-decoration: none;
}

.bottom .created-by a img {
  max-height: 35px;
}

.bottom .created-by p {
  font-size: 0.875em;
}

#toolbar {
  padding: 16px;
  background: #f5f5f0;
  display: flex;
  align-items: center;
}
#backBtn {
  margin-right: 16px;
  cursor: pointer;
  display: none;
}
#pathDisplay {
  font-weight: bold;
}

#gallery {
  display: flex;
  flex-direction: column;
}
.folder-list{
    display: flex;
    gap: 10px;
}
.media-grid {
  display: grid;
  /* responsive columns: each cell min 200px, expand to fill */
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.item {
  cursor: pointer;
  text-align: center;
}
.item:has(.item-folder-thumb) {
  background-color: #aa8833;
  color: #f5f5f0;
  height: 50px;
  padding: .5em;
  align-items: center;
  justify-content: center;
}
.item-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.item-thumb img,
.item-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.item-folder-thumb {
    margin: auto;
    height: 100%;
    align-content: center;
}
.item-label {
  margin-top: 8px;
  font-size: 14px;
  word-break: break-all;
}

/* Lightbox styles */
#lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}
#lightbox-content {
  position: relative;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 40px);
  display: flex;
  justify-content: center;
  align-items: center;
}
#lightbox img,
#lightbox video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.close {
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 32px;
  color: white;
  cursor: pointer;
  z-index: 2;
}
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  color: white;
  cursor: pointer;
  user-select: none;
  z-index: 2;
}
.prev {
  left: 20px;
}
.next {
  right: 20px;
}

/* Larger screens */
@media (min-width: 768px) {

#hamburger {
    display: none;
}

.mobile-nav {
  display: none;
}

.header {
  padding: 2rem;
  flex-wrap: wrap;
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
  padding: 0;
  gap: 3rem;
}

.home-content h1 {
  font-size: 1.5rem;
}

.home-content {
  display: flex;
  flex-direction: row;
}

.bottom-content {
  justify-content: space-between;
}

@media (min-width: 1024px) {

.nav {
  gap: 4rem;
}

.home-content h1 {
  font-size: 2rem;
}
}
