* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    margin: 0;
    padding: 0;
    position: relative; 
    background-color: #f8f6f2; 
    font-family: 'Times New Roman', serif;
    overflow:scroll;
    overflow-x: hidden;
  }
  
  
  
  .background-title {
    position: absolute; 
    font-size: 240px;
    color: rgba(0, 0, 0, 0.05);
    font-style: italic;
    z-index: 0; 
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
  }
  
  .background-title.right {
    top: -0px;
    right: 0px;
  }
  
  .background-title.left {
    background:none;
    top: 260px;
    left: -550px;
  }
  
  
  
  .sidebar {
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 22px;
    z-index: 1;
  }
  
  .sidebar ul {
    list-style: none;
    padding: 0;
  }
  
  .sidebar ul li {
    margin-bottom: 10px;
  }
  
  .sidebar ul li a {
    text-decoration: none;
    color: #111; 
    transition: color 0.3s;
  }
  
  .sidebar ul li a:hover {
    color: #d9d9d9; 
  }
  .sidebar ul li a.blur-text {
    filter: blur(1px); 
    transition: filter 0.3s;
  }
  
  .sidebar ul li a.blur-text:hover {
    filter: blur(0px); 
  }
  
  .content {
    margin-left: 0;
    padding: 20px;
    position: relative;
   
  }
  
  .vertical-text {
    position:absolute;
    top: 160px;
    right: -110px;
    transform: rotate(270deg);
    font-size: 60px;
    font-weight:lighter
    
  }

  .background-video {
    position: absolute;       
    top: 640px;               
    left: 50%;               
    transform: translateX(-50%); 
    width: 480px;             
    opacity: 0.88;          
    z-index: 0;              
    pointer-events: none;     
    user-select: none;        
  }
  
  .text-on-image {
    position: absolute;
    top: 1273px;           
    left: 48%;             
    font-size: 288px;
    color: rgba(0, 0, 0, 0.13);  
    z-index: 1;           
    pointer-events: none;
    user-select: none;
  }
  
  .vertical-text-on-image {
    position: absolute;         
    top: 890px;                 
    left: 47.5%;                 
    transform: rotate(270deg); 
    font-size: 55px;
    font-style: italic;
    color: rgba(0, 0, 0, 0.5);  
    pointer-events: none;
    user-select: none;
    font-family: 'Times New Roman', serif;
  }
  
  .text-section {
    max-width: 900px;
    margin: 1800px auto 0 auto; 
    padding: 70px 0px;
    font-family: 'Times New Roman', serif;
    text-align: center; 
  }
  
  .text-section h1 {
    font-size: 68px;
    margin-bottom: 20px;
    color: rgba(0, 0, 0, 0.2);
    line-height: 1.4;
  }
  
  .text-section p {
    font-size: 32px;
    font-style:italic;
    margin-bottom: 40px;
    color: rgba(0, 0, 0, 0.8);
  }
  
  .text-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .text-section ul li {
    font-size: 36px;
    margin-bottom: 10px;
    text-transform: initial;
    color: #000;
    line-height: 1.6;
  }


  
 .section-main {
  position:absolute; 
  left: 0;            
  background: #F2EADF;
  height: 130vh;
  width: 100%;
  margin-top: 300px;
  margin-left: 0;
  padding-left: 0;
  box-sizing: border-box;
  opacity: 0.9;
  overflow: hidden;

}


.section-title {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-48%);
  font-size: 1150px;
  color: rgba(0, 0, 0, 0.08); /* caurspīdīgs teksts */
  font-style: italic;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  letter-spacing: 200px;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr); 
  gap: 0px;
  padding: 60px 80px;
  margin-top: 460px; 
  z-index: 2;
  position: relative;
}

.image-gallery img {
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

@media screen and (max-width: 678px) {

  body {
    overflow-x: hidden;
  }

  html, body {
    overflow-x: hidden;
  }
  

  
  .background-title {
    position: absolute; 
    font-size: 70px;
    color: rgba(0, 0, 0, 0.05);  /* ne tik caurspīdīgs kā 0.05 */
    font-style: italic;
    z-index: 10; 
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
  }
  
  .background-title.left {
    top: 180px;
    left: -20%;
  }
  
  .background-title.right {
    top: 70px;
    left: 70%;
  }

.sidebar {
position: fixed;
top: 20px;
left: 20px;
font-size: 18px;
z-index: 9;
}
.sidebar ul {
list-style: none;
padding: 0;
}

.sidebar ul li {
margin-bottom: 10px;
}

.sidebar ul li a {
text-decoration: none;
color: #111; 
transition: color 0.3s;
}

.sidebar ul li a:hover {
color: #d9d9d9; 
}

.sidebar ul li a.blur-text {
filter: blur(1px); 
transition: filter 0.3s;
}

.sidebar ul li a.blur-text:hover {
filter: blur(0px); 
}

.content {
margin-left: 0;
position: relative;
z-index: 1;
}

.vertical-text {
position: absolute;
top: 100px;
right: -55px; 
transform: rotate(270deg);
font-size: 36px;
font-weight: lighter;
color:black;
z-index: 1;
}

  .background-video {
    position: absolute;       
    top: 360px;               
    left: 50%;               
    transform: translateX(-50%); 
    width: 320px;             
    opacity: 0.88;          
    z-index: 0;              
    pointer-events: none;     
    user-select: none;        
  }
  
  .text-on-image {
    position: absolute;
    top: 768px;           
    left: 28%;             
    font-size: 220px;
    color: rgba(0, 0, 0, 0.13);  
    z-index: 1;           
    pointer-events: none;
    user-select: none;
  }
  
  .vertical-text-on-image {
    position: absolute;         
    top: 530px;                 
    left: 40.5%;                 
    transform: rotate(270deg); 
    font-size: 40px;
    font-style: italic;
    color: rgba(0, 0, 0, 0.5);  
    pointer-events: none;
    user-select: none;
    font-family: 'Times New Roman', serif;
    white-space: nowrap;
  }
  
  .text-section {
    max-width: 700px;
    margin: 1200px auto 0 auto; 
    padding: 70px 0px;
    font-family: 'Times New Roman', serif;
    text-align: center; 
  }
  
  .text-section h1 {
    font-size: 34px;
    margin-bottom: 20px;
    color: rgba(0, 0, 0, 0.2);
    line-height: 1.4;
  }
  
  .text-section p {
    font-size: 22px;
    font-style:italic;
    margin-bottom: 40px;
    color: rgba(0, 0, 0, 0.8);
  }
  
  .text-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .text-section ul li {
    font-size: 28px;
    margin-bottom: 10px;
    text-transform: initial;
    color: #000;
    line-height: 1.6;
  }


  
 .section-main {
  position:absolute; 
  left: 0;            
  background: #F2EADF;
  height: 230vh;
  width: 100%;
  margin-top: 200px;
  margin-left: 0;
  padding-left: 0;
  box-sizing: border-box;
  opacity: 0.9;
  overflow: hidden;

}


.section-title {
  position: absolute;
  top: 500px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 950px;
  color: rgba(0, 0, 0, 0.08); /* caurspīdīgs teksts */
  font-style: italic;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  letter-spacing: 50px;
}

.image-gallery {
  display: grid;
  grid-template-columns: 1fr; 
  justify-content: center;
  gap: 0px;
  padding: 0px 170px;
  margin-top: 80px; 
  z-index: 2;
  position: relative;
}

.image-gallery img {
  display: grid;
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  justify-content: center;
}
}