body {
    display: grid;
    height: 100vh;
    grid-template-columns: 70% 30%;
    grid-template-rows: 8% 92%;
    margin-top: 0;
    margin-bottom: 0;
}

#buttons {
    grid-row: 1 / span 1;
    grid-column: 1 / span 1;
}

#map {
    grid-row: 2 / span 1;
    grid-column: 1 / span 1;
}

#details {
    grid-row: 2 / span 1;
    grid-column: 2 / span 1;
    margin-left: 5px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: visible;
}

.travelphotos {
    z-index: 100001;
}

#entrycontainer {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px;
}

.btn {
    text-decoration: underline;
}

.btn:hover {
    cursor: pointer;
}

.dates p {
    text-decoration: underline;
}

.dates p:hover {
    cursor: pointer;
}

div .notes {
    display: none;
}

div.scroll-container {
  background-color: white;
  overflow: auto;
  white-space: nowrap;
  padding: 5px;
}

div.scroll-container img {
  padding: 2px;
  height: 100px;
  transition: transform 0.25s ease;
  cursor: zoom-in;
}

div.scroll-container span {
    padding: 2px;
}

#center {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    height: 80%;
    z-index: -1;
    pointer-events: none;
}

#center img {
    max-width: 80vw;
    max-height: 80vh;
    border: 10px solid black;
    pointer-events: auto;
}


#center img.zoomed {
  cursor: zoom-out;
  pointer-events: auto;
}

.subtrips-container {
    margin-left: 6px;
}

.pages {
    display: none;
}

/* When a page is shown we set it to flex in JS so it becomes a column container */
.pages[style] {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.pages h2 {
    margin: 0;
    padding: 8px 6px;
    background: white;
    z-index: 10;
    flex: 0 0 auto;
}

.backbtn {
    position: relative;
    margin: 6px 0 0 6px;
    flex: 0 0 auto;
}

.backlife {
    position: relative;
    margin: 6px 0 0 6px;
    flex: 0 0 auto;
}

#return {
    position:absolute;
    right:0px;
    top:0px;
    height:30px;
    cursor: pointer;
}

.textcontainer {
    margin-left: 6px;
    overflow: auto!important;
}

.textcontainer p {
    margin: none;
    padding: none;
}