.container {
  display: flex;
  height: 100vh; /* 让容器充满整个视口高度 */
}

.sidebar {
  flex: 1;
  padding: 20px;
  background-color: #f0f0f0;
}

.photos {
  flex: 6.2;
  padding: 20px;
}

#timeNav {
  list-style-type: none;
  padding: 0;
}

#timeNav li {
  margin-bottom: 10px;
}

#timeNav li a {
  text-decoration: none;
  color: blue;
  font-size: 1.6em;
}

#timeNav li a:hover{
  color: black;
}

#photosContainer {
  margin-left: 43px;
  display: flex;
  flex-wrap: wrap;
}

.photo {
  margin: 10px;
}

.photo img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
}

/* 模态框样式 */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}
