.topMenu {
  position: fixed;

  top: 30px;

  left: 40%;

  display: flex;

  gap: 20px;

  z-index: 100;
}

.topMenu a {
  color: white;
  text-decoration: none;
  font-size: clamp(12px, 1.2vw, 16px);
  letter-spacing: 2px;
  opacity: 0.8;
}

.topMenu a:hover {
  opacity: 1;

  transform: scale(1.15);

  text-shadow: 0 0 10px rgba(255,255,255,0.8);
  transition:
  transform 0.3s ease,
  opacity 0.3s ease,
  text-shadow 0.3s ease;
}
.topMenu a:active {
  transform: scale(0.95);
}
.yearColumn {
 display: none;
  
  position: fixed;

  right: 16vw;
  bottom: 40px;

  color: white;

  font-size: clamp(10px, 1.4vw, 20px);

  line-height: 1.4;

  letter-spacing: 1px;

  text-align: center;

  opacity: 0.75;

  z-index: 25;
}
    body {
      margin: 0;
      overflow: hidden;
      background: black;
      font-family: Arial, sans-serif;
    }

   video {
  position: fixed;

  top: 0;
  left: 0;

  width: 100%;
  height: 70%;

  object-fit: cover;

  filter: brightness(0.80);

  z-index: -1;

  border-right: 2px solid rgba(255,255,255,0.08);
  border-bottom: 2px solid rgba(255,255,255,0.08);
}

   .title {
  position: absolute;

  top: 30px;
  left: 70px;

  color: white;

  font-size: clamp(20px, 2vw, 40px);

  letter-spacing: 8px;

  font-weight: 300;

  text-shadow: 0 0 18px rgba(0,0,0,0.85);

  z-index: 5;
}

    .mosaic {
  position: absolute;

  top: 10%;
  left: 6%;

  width: 15vw;
max-width: 220px;
min-width: 120px;

  opacity: 0.65;

  box-shadow: 0 0 40px rgba(0,0,0,0.45);
transition: opacity 0.4s ease,
            transform 0.4s ease;
  z-index: 4;
}
    
.mosaic:hover {
  opacity: 0.65;
  transform: scale(2.0);
}
    
.bottomPanel {
  position: fixed;

  left: 0;
  bottom: 0;

  width: 100%;
  height: 30%;

  z-index: 5;

  display: grid;

  grid-template-columns: repeat(8, 1fr);

  gap: 1px;

  padding: 1px;

  box-sizing: border-box;
}
    
.bottomImage {
  width: 100%;
  height: 100%;

  object-fit: cover;

  opacity: 0.82;

  transition:
    transform 0.4s ease,
    opacity 0.4s ease;

  border: 1px solid rgba(255,255,255,0.08);
}

.bottomImage:hover {
  transform: scale(2.6);
  transform-origin: center bottom;

  opacity: 1;
  z-index: 1000;
  position: relative;
}

    .cornerImage {
  display: none;

  position: fixed;

  right: 0;
  bottom: 0;

  width: clamp(120px, 12vw, 260px);
  height: auto;

  object-fit: contain;
  object-position: center bottom;

  opacity: 0.30;

  z-index: 20;

  transition:
    transform 0.4s ease,
    opacity 0.8s ease;
}

.cornerImage:hover {
  transform: scale(2);

  transform-origin: bottom right;

  opacity: 1;

  z-index: 1000;

  border: 2px solid red;
}
@media (max-width: 768px) {

  video {
    width: 100%;
    height: 60%;
  }

  .rightPanel {
    display: none;
  }

  .bottomPanel {
    width: 100%;
    height: 45%;
    grid-template-columns: repeat(4, 1fr);
  }

  .mosaic {
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    width: 35vw;
  }

  .middleRow {
    display: flex;
    justify-content: center;
    gap: 16px;
    position: absolute;
    top: 54%;
    left: 46%;
    transform: translateX(-50%);
  }

  .sideMap {
    display: block !important;
    width: 80px;
  }

  .cornerImage {
    display: none;
  }

  .yearColumn {
    display: block;
    pointer-events: none;
    position: absolute;
    top: 42%;
    left: 52%;
    transform: translateX(-50%);
    font-size: 12px;
    text-align: center;
  }

  .topMenu {
    top: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .topMenu a {
    font-size: 14px;
  }

  .title {
    font-size: 28px;
    top: 60px;
  }

}
.middleRow {
  position: absolute;
  top: 46%;
  left: 54%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: clamp(20px, 8vw, 150px);
  z-index: 5;
}

.sideMap {
  display: none;

  width: 80px;
  opacity: 0.30;

  position: relative;
  z-index: 10;
}

.sideMap:hover {
  opacity: 1;
  transform: scale(1.5);
}   
@media (orientation: landscape) {

  .bottomPanel {
    height: 42vh !important;
    grid-template-columns: repeat(8, 1fr);
    align-items: center;
  }

  .bottomImage {
    object-fit: contain !important;
  }
.photoArea{
    position:fixed;

    left:0;
    bottom:0;

    width:100%;
    height:45%;

    z-index:6;

    overflow:hidden;
}

.photoArea img{
    width:100%;
    height:100%;

    object-fit:cover;
}
#book{
    position:fixed;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%) rotate(180deg);
    width:100vw;
    height:100vh;
    object-fit:contain;
    background:black;
    z-index:1;
}

#bookContainer{
    position:fixed;
    inset:0;
    overflow:hidden;
}

#leftPage{
    position:absolute;
    left:22%;
    top:18%;
    width:28%;
    height:62%;

    display:grid;
    grid-template-columns:repeat(4,1fr);
    grid-template-rows:repeat(3,1fr);

    gap:2px;

    z-index:20;
}

#rightPage{
    position:absolute;
    left:51%;
    top:18%;
    width:28%;
    height:62%;

    display:grid;
    grid-template-columns:repeat(4,1fr);
    grid-template-rows:repeat(3,1fr);

    gap:2px;

    z-index:20;
}

.familyPhoto{
    width:94%;
    height:94%;

    justify-self:center;
    align-self:center;

    object-fit:cover;

    border:2px solid white;

    box-shadow:0 0 6px rgba(0,0,0,.35);

    cursor:pointer;

    transition:
        transform .25s,
        box-shadow .25s;

    position:relative;

    z-index:25;
}

.familyPhoto:hover{

    transform:scale(1.08);

    z-index:40;

    box-shadow:0 0 14px rgba(255,255,255,.5);
}

#nextPage{

    position:absolute;
    left:80%;
    top:16%;
    width:3%;
    height:68%;
    cursor:pointer;
    z-index:100;
}
#photoViewer{

    position:fixed;

    inset:0;

    display:none;

    justify-content:center;
    align-items:center;

    background:rgba(0,0,0,.88);

    z-index:5000;
}

#bigPhoto{

    max-width:92%;
    max-height:92%;

    border:8px solid white;

    box-shadow:0 0 30px black;
}
