  
  .preloader {
  position: fixed;
  bottom: 10px;
  left: 10px;
  font-size: 20px;
  z-index: 1005;
  font-weight: bold;
  color: #000;
}
.force-hide {
    opacity: 0 !important;
    display: none !important;
}
.next-post h2 {
  font-size: 5em;
}
.banner {
  position: fixed;
  inset: 0;
  font-size: 4vw;
  font-weight: 700;
  z-index: 1001;
  color: #111;
  opacity: 1;
  transition: opacity 1s ease;
  pointer-events: none;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
 
}
.banner h2 {
  font-size: 6vw;
  text-align: center;
   font-family: sans-serif !important;
}
    .canvas-container {
      display: grid;
      grid-template-columns: repeat(3, 503px);
      grid-template-columns: repeat(3, minmax(33.33vw, 1fr));
      justify-content: center;
      opacity: 0;
      
    }
.canvas-wrapper {
     width: calc(100vw / 3); /* 3 per row */
  height: 41.67vw; /* proportional height */
      overflow: hidden;
      position: relative;
      transform: translateY(300px) scale(0.7);
      opacity: 0;
      display: inline-block;
  vertical-align: top;
    }
     canvas {
      width: 100%;
      height: 100%;
      display: block;
      image-rendering: auto;
    }
    @media (max-width: 1024px) {
      .canvas-container {
        grid-template-columns: repeat(2, 1fr);
        justify-content: center;
      }
    }

    @media (max-width: 640px) {
      .canvas-container {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    

    @media (max-width: 640px) {
      .canvas-wrapper {
        width: 100%;
        aspect-ratio: 503 / 629;
        height: auto;
      }
    }

   

    .canvas-overlay {
      position: absolute;
      bottom: 20px;
      left: 20px;
      color: white;
      font-size: 18px;
      z-index: 2;
      opacity: 0;
      transition: opacity 0.4s ease;
      pointer-events: none;
      text-shadow: 0 2px 4px rgba(0,0,0,0.5);
      line-height: 1em;
    }

    .canvas-wrapper:hover .canvas-overlay {
      opacity: 1;
      
    }

    .canvas-overlay .category {
      font-weight: bold;
      font-size: 16px;
      text-transform: uppercase;
      color: white;
     
    }

    .canvas-overlay .title {
      font-weight: 300;
      font-size: 14px;
      color: white;
      
    }

    .blend-wrapper {
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      background: white;
      mix-blend-mode: multiply;
    }

    .blend-text {
      font-size: 6vw;
      font-weight: bold;
      color: black;
      mix-blend-mode: difference;
      margin: 0;
    }

    .hero, .herocontact {
      overflow: hidden;
      opacity: 0;
      position: fixed;
      mix-blend-mode: difference;
      background-size: cover;
      display: flex;
      align-items: center;
      justify-content: center;
      writing-mode: vertical-lr;
      z-index: 9;
    }

    .hero {
      top: 0px;
      right: 30px;
    }

    .herocontact {
      bottom: 150px;
      right: 30px;
    }

    .blend-text {
      font-size: 2vw;
      font-weight: bold;
      color: white;
      mix-blend-mode: difference;
      text-align: center;
      line-height: 1.1;
      z-index: 1;
    }
    .bannerText{writing-mode: vertical-lr;font-size: 8vw;}
    #main-container{padding:0px;}
    .header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1030;
  background: transparent !important;
  z-index: 1;
  margin: 0px;
}
.logonew.ctws-new-head{display:none;}


/********   post details ********/
.gallery-wrapper {
  overflow: hidden;
  width: 100%;
  height: 100vh;
  position: relative;
}

.gallery {
  display: flex;
  flex-wrap: nowrap;
  height: 100%;
  transform: translateX(0);
  will-change: transform;
}

.gallery-item {
  flex: 0 0 100vw;
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin: auto;
  transition: opacity 0.3s ease;
}

.alt-overlay {
  position: absolute;
  top: 20px;
  width: 100%;
  text-align: center;
  color: white;
  font-size: 1.2em;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px;
}

/* Desktop layout with .block-text */
@media (min-width: 768px) {
  #postDetailContainer {
    display: flex;
    gap: 40px;
    
  }

  .block-text {
    flex: 0 0 40%;
  }

  .gallery-wrapper {
    flex: 1;
    height: auto;
  }

  .gallery {
    height: 100%;
  }

  .gallery-icon {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
  }
}


/********* blog details pages ********/

.split-block {
      display: flex;
      flex-direction: row;
      height: 100vh;
    }

    .left-col, .right-col {
      width: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .left-col {
      background: #fff;
      text-align: center;
      flex-direction: column;
      padding: 2rem;
    }

    .left-col h2 {
      font-size: 2rem;
      letter-spacing: 0.05em;
      font-weight: 400;
    }

    .left-col h1 {
      font-size: 3.5rem;
      font-weight: 500;
      margin-top: 0.3rem;
      font-style: italic;
    }

    .right-col img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    /* Mobile styles */
    @media (max-width: 768px) {
      .split-block {
        flex-direction: column;
        height: auto;
      }

      .left-col, .right-col {
        width: 100%;
        height: auto;
      }

      .left-col {
        padding: 2rem 1.5rem;
      }

      .left-col h1 {
        font-size: 2.5rem;
      }

      .left-col h2 {
        font-size: 1.2rem;
      }

      .right-col img {
        height: auto;
        max-height: 400px;
      }
    }
    
    #postDetailContainer {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  background: #fff;
}
.h-section.next-post {
  flex: 0 0 40vw;
  min-width: 40vw;
  max-width: 40vw;
  white-space:nowrap;
}
#scrollAreaSpacer {
  width: 1px;
  pointer-events: none;
}
    .scroll-blocker {
  height: 100vh;
  background: white;
}
    /************* new code for details ****/
  html.loading,
  body.loading {
    overflow: hidden;
    height: 100%;
  }
    #horizontalWrapper {
      display: flex;
      height: 100vh;
      width: max-content;
      flex-wrap: nowrap;
    }

    .h-section {
      flex: 0 0 100vw;
      min-width: 100vw;
      height: 100vh;
      box-sizing: border-box;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }

    .h-section.ctws-img {
      flex: 0 0 auto;
      width: auto;
      height: 100vh;
      min-width: unset;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      padding-right: 100px;
    }
    .h-section.ctws-img:first-of-type {
      padding-left: 100px;
    }

    .first-section {
      flex-direction: row;
      flex: 0 0 100vw;
      margin-right: 200px;
    }

    .text-block {
      width: 50%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding: 2rem;
      text-align: center;
    }

    .image-block {
      width: 50%;
      height: 100vh;
      position: relative;
      overflow: hidden;
    }

    .image-block img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      display: block;
    }

    #postPagePreloader {
      position: absolute;
      inset: 0;
      background: #fff;
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 1000;
      flex-direction: column;
      text-align: center;
      transition: opacity 0.6s ease;
    }

    
#postLoaderText {
  font-size: 2rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.8s ease, transform 0.8s ease;

  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;

  /* ✅ Center the text inside */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
    .fade-in-scale {
      opacity: 1 !important;
      transform: scale(1) !important;
    }

    .gallery-item {
      flex: 0 0 calc(100vw - 100px);
      margin-right: 100px;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .gallery-item img {
      height: 80vh;
      width: auto;
      object-fit: cover;
      object-position: center;
      opacity: 0;
      transition: opacity 0.5s ease-in-out;
    }

    .gallery-item img.lazy-loaded {
      opacity: 1;
    }

    .next-post {
      background: #f4f4f4;
      flex-direction: column;
    }

    .next-post .text {
      text-align: center;
    }
	.next-post {
  
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: flex;
  height: 100vh;
}

.next-post .text {
  width: 50vh;
  height: 50vh;
 /* background-image: url('https://newsite.antonisprodromou.com/wp-content/uploads/2024/03/2.jpg');*/
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #000;
  font-size: 1.5rem;
  padding: 1rem;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}
    @media (max-width: 768px) {
    .blend-text {
      font-size: 6vw;
      }
      html, body {
        overflow-x: hidden;
        overflow-y: auto;
      }
.text-block {
  position: absolute;
  z-index: 9;
  background: rgba(0,0,0,0.4);
  color: #fff;
}
      #horizontalWrapper {
        flex-direction: column !important;
        width: 100%;
        height: auto !important;
        
      }

      .h-section {
        flex: none;
        width: 100%;
        height: 100vh;
        flex-direction: column;
      }

      
	  .text-block h3, .text-block h1 {
  		color: #fff !important;
		}

  .text-block, .image-block {
    width: 100%;
    height: 100%;
    color: #fff !important;
  }

      .image-block img {
        width: 100%;
        height: 100vh;
        object-fit: cover;
        object-position: center;
      }

      .gallery-item {
        margin-right: 0;
        width: 100%;
        height: 100vh;
      }

      .gallery-item img {
        width: 100%;
        height: 100vh;
        object-fit: cover;
        object-position: center;
      }

      .h-section.ctws-img {
        padding: 0;
      }
      .h-section.next-post {
  width: 100vw;
  max-width: 100vw;
  overflow: unset !important;
  margin:20px 0px !important; 
}
.h-section.next-post h2 {
  font-size: 44px;
}
.scroll-blocker{height:auto;}
    }