* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

body {
  background: #f5f1eb;
}

/* Verticle nav bar*/

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  display: flex;
  z-index: 1000;
}

.tab {
  width: 80px;
  height: 100vh;
  color: white;
  display: flex;
  flex-direction: column;
  padding: 20px;
  transition: width 0.6s ease;
  overflow: hidden;
}

.tab-1 { background: #3f372f; }
.tab-2 { background: #8c5e3c; }
.tab-3 { background: #1f2a30; }

.tab:hover,
.tab.active {
  width: 60vw;
  max-width: 600px;
}

.tab-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 2px;
  cursor: pointer;
}

.tab-content {
  opacity: 0;
  margin-top: 40px;
  transition: opacity 0.4s ease;
}

.tab.active .tab-content {
  opacity: 1;
}

/* Background page w flexbox */

.page {
  padding-left: 240px;
  min-height: 100vh;
  display: flex;
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 60px 80px;
}

/* Title/business name */

.brand {
  font-size: 2.5rem;
  letter-spacing: 3px;
  margin-bottom: 60px;
}

/* photo gallery */

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-end;
  max-width: 1100px;
}

.gallery img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.large { flex: 1 1 100%; }
.vertical { flex: 1 1 45%; }
.wide { flex: 1 1 70%; }
.small { flex: 1 1 30%; }


/* Tablet size */


@media (max-width: 1024px) {

  .content {
    padding: 60px 40px;
  }

  .gallery img {
    height: 300px;
  }
}


/* mobile sizes */

@media (max-width: 768px) {

  .tab {
    width: 50px;
  }

  .page {
    padding-left: 150px;
  }

  .content {
    padding: 40px 20px;
  }

  .brand {
    font-size: 1.6rem;
    margin-bottom: 40px;
  }

  .gallery img {
    height: 200px;
  }

  .vertical,
  .wide,
  .small {
    flex: 1 1 100%;
  }
}