

html {
    box-sizing: border-box;
  }
  
  *, *:before, *:after {
    box-sizing: inherit;
  }
  
  body {
    background: #160101;
    color: #000;
    font-size: 100%;
    line-height: 24px;
    margin: 0;
    padding: 0;
    font-family: "Raleway", sans-serif;
  }
  * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      font-family: Calibri, sans-serif;
  }
  
  /* Navigation */
  /* header */
  .project-header {
    position: relative;
    width: 100%;
    height: 100vh; /* Full screen height */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    overflow: hidden;
  }
  
  .project-image {
    width: 100%;
    height: 100%;
    position: relative;
  }
  
  .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .overlay {
    position: absolute;
    bottom: 20px;
    left: 200px;
    
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
  }
  
  .text h2 {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
  }
  
  .text p {
    font-size: 16px;
    margin: 5px 0 0;
  }
  
  .scroll-icon {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 1.5s infinite;
  }
  
  .scroll-icon img {
    width: 40px;
    height: 40px;
    opacity: 0.8;
  }
  
  /* Bounce Animation for Scroll Down Icon */
  @keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
  }
  
  /* details */
  .project-details {
    text-align: center;
    margin: 50px auto;
    max-width: 900px;
    color: rgb(173, 173, 173);
  }
  
  h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
  }
  
  .descriptiont {
    font-size: 14px;
    max-width: 100%;
    word-break: break-word;
  }
  
  .details-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 20px;
  }
  
  .column {
    text-align: left;
  }
  
  .column p {
    margin: 5px 0;
    font-size: 14px;
  }
  
  .galleryt {
    margin-top: 40px;
    font-size: 20px;
    font-weight: bold;
  }
  
  /* ******************************************************
    Script Top
  *********************************************************/
  
  /* ******************************************************
    Script Header
  *********************************************************/
  
  
  
  .rt-heading {
    margin: 0 auto;
    text-align: center;
  }
  
  .Scriptcontent {
    line-height: 28px; 
  }
  
  
  .rt-container {
    margin: 0 auto;
    padding-left: 12px;
    padding-right: 12px;
    color :#fff;
  }
  
  .rt-row:before, .rt-row:after {
    display: table;
    line-height: 0;
    content: "";
  }
  
  .rt-row:after {
    clear: both;
  }
  
  [class^="col-rt-"] {
    box-sizing: border-box;
    padding: 0 15px;
    min-height: 1px;
    position: relative;
  }
  
  .gallery {
    display: grid;
    grid-template-columns: repeat(5,1fr); /* Staggered appearance */
    gap: 8px; /* Adjusted gap for tighter layout */
    padding: 50px; /* Added padding around the grid */
    margin-top: 80px; /* Adjusted to avoid navbar overlap */
  }
  
  .gallery-item {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    margin: 0;
    transition: transform 0.3s ease;
  }
  
  
  
  .gallery-item::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.4);
    
    background-position: center;
    background-size: 2.85rem;
    background-repeat: no-repeat;
    transition: opacity 250ms;
    z-index: 10;
  }
  
  .gallery-item .caption {
    position: absolute;
    text-align: center;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1em 0;
    line-height: 1em;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.1);
    transform: translateY(4em);
    transition: transform 250ms;
    z-index: 20;
  }
  
  .gallery-item .caption span {
    display: inline-block;
    max-width: calc(100% - 2em);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }
  
  .gallery-item:hover .thumb {
    transform: scale(1.05);
  }
  
  @media (hover: hover) {
    .gallery-item:hover::after {
      opacity: 1;
    }
    .gallery-item:hover .caption {
      transform: translateY(0);
    }
  }
  
  .gallery-item .thumb {
    display: inline-block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: unset;
    text-align: center;
    background-color: #333;
    transition: filter 500ms, transform 500ms;
  }
  
  .ie-fix .gallery-item .thumb {
    width: auto;
  }
  
  .gallery-item .placeholder {
    filter: blur(20px);
  }
  
  .lightbox-wrapper {
    display: none;
     backdrop-filter: blur(50px); 
      -webkit-backdrop-filter: blur(2px); 
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
  }
  
  .lightbox {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: white;
  }
  
  .lightbox .lightbox-header {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    padding: 0.1em; /* Decreased padding */
    font-weight: 600;
    text-align: center;
    font-size: 0.9em; /* Decreased font size */
  }
  
  .lightbox .lightbox-header > * {
    opacity: .75;
  }
  
  .lightbox .lightbox-close {
    position: relative;
    height: 1.85rem;
    width: 1.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    padding: 0;
    border: none;
  }
  
  .lightbox .lightbox-close::before, 
  .lightbox .lightbox-close::after {
    position: absolute;
    content: "";
    height: 4px;
    width: 80%;
    background-color: #fff;
  }
  
  .lightbox .lightbox-close::before {
    transform: rotate(-45deg);
  }
  
  .lightbox .lightbox-close::after {
    transform: rotate(45deg);
  }
  
  .lightbox .lightbox-close:hover {
    opacity: 1;
  }
  
  .lightbox .lightbox-slides-wrapper {
    flex-grow: 1;
    display: flex;
    overflow: hidden;
    position: relative;
  }
  
  .lightbox .lightbox-arrow {
    position: absolute;
    top: 50%;
    width: 4rem;
    height: 4rem;
    padding: .5rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1.5em;
    opacity: .75;
    cursor: pointer;
    filter: drop-shadow(0 0 7px #000);
  }
  
  .lightbox .lightbox-arrow:hover {
    opacity: 1;
  }
  
  .lightbox .lightbox-arrow.arrow-left {
    left: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='32' height='53' viewBox='0 0 32 53' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 26.5L27.3171 0L32 4.54286L9.36585 26.5L32 48.4571L27.3171 53L0 26.5Z' fill='white'/%3E%3C/svg%3E");
  }
  
  .lightbox .lightbox-arrow.arrow-right {
    right: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='32' height='53' viewBox='0 0 32 53' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M32 26.5L4.68293 53L0 48.4571L22.6341 26.5L3.83911e-06 4.54286L4.68293 0L32 26.5Z' fill='white'/%3E%3C/svg%3E");
  }
  
  .lightbox .lightbox-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    transition: all 0ms ease;
  }
  
  .lightbox .lightbox-slide[data-state="prev"] {
    transform: translateX(-100%);
    opacity: 0;
  }
  
  .lightbox .lightbox-slide[data-state="next"] {
    transform: translateX(100%);
    opacity: 0;
  }
  
  .lightbox .lightbox-image {
    display: block; /* Change to block to allow width/height settings */
    width: 100%; /* Set width to 100% of the viewport width */
    height: auto; /* Maintain aspect ratio */
    max-height: 100%; /* Limit height to 100% of the viewport height */
    object-fit: contain; /* Ensure the image fits within the given dimensions */
    margin: auto; /* Center the image */
  }
  
  
  .lightbox .spinner {
    display: none;
  }

  .details-grid table{
    text-align: left;
    margin-left: 7rem;
  }
/* Media Query for Tablets and Below (max-width: 768px) */
@media (max-width: 768px) {
  /* Project Header */
  .project-header {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
  }
  .details-grid table{
    margin-left: 2rem;
  }
  
  .project-image {
    width: 100%;
    height: 100%;
  }

  
  .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }


  .overlay {
    left: 0; /* Center horizontally */
    bottom: 20px;
    width: 100%;
    padding: 10px;
    text-align: center;
    background: rgba(0, 0, 0, 0.5); /* Add slight background for readability */
  }

  .text h2 {
    font-size: 20px;
  }

  .text p {
    font-size: 14px;
  }

  .scroll-icon {
    bottom: 10px;
  }

  .scroll-icon img {
    width: 30px;
    height: 30px;
  }

  /* Project Details */
  .project-details {
    margin: 30px auto;
    padding: 0 15px;
    max-width: 90%;
  }

  .project-details h2 {
    font-size: 20px;
  }

  .descriptiont {
    font-size: 13px;
    margin-left: 2rem;
    text-align: justify;
  }

  .details-grid {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .column p {
    font-size: 13px;
  }

  .galleryt {
    font-size: 18px;
    margin-top: 20px;
  }

  /* Gallery */
  .gallery {
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    gap: 5px;
    padding: 20px;
    margin-top: 40px;
    margin-left: 2rem;
  }

  .gallery-item .thumb {
    width: 100%;
    height: auto;
  }

  .gallery-item .caption {
    font-size: 12px;
    padding: 0.5em 0;
  }
}


/* Media Query for Very Small Screens (max-width: 300px) */
@media (max-width: 300px) {
  /* Project Header */
  .project-header {
    height: 100vh;
    width: 100vw;
  }

  .overlay {
    bottom: 15px;
    padding: 8px;
  }

  .text h2 {
    font-size: 16px;
  }

  .text p {
    font-size: 12px;
  }

  .scroll-icon {
    bottom: 5px;
  }

  .scroll-icon img {
    width: 20px;
    height: 20px;
  }

  /* Project Details */
  .project-details {
    margin: 20px auto;
    padding: 0 10px;
    max-width: 95%;
  }

  .project-details h2 {
    font-size: 18px;
  }

  .descriptiont {
    font-size: 12px;
  }

  .details-grid {
    gap: 15px;
  }

  .column p {
    font-size: 12px;
  }

  .galleryt {
    font-size: 16px;
    margin-top: 15px;
  }

  /* Gallery */
  .gallery {
    grid-template-columns: 1fr; /* 1 column */
    gap: 3px;
    padding: 10px;
    margin-top: 20px;
  }

  .gallery-item .thumb {
    width: 100%;
    height: auto;
  }

  .gallery-item .caption {
    font-size: 10px;
    padding: 0.3em 0;
  }

  /* Lightbox */
  .lightbox .lightbox-header {
    font-size: 0.7em;
    padding: 0.05em;
  }

  .lightbox .lightbox-close {
    width: 1.2rem;
    height: 1.2rem;
  }

  .lightbox .lightbox-arrow {
    width: 2.5rem;
    height: 2.5rem;
    background-size: 0.8em;
  }
}



@media (max-width: 768px) {

  .slidep .contentp .title {
    font-size: 1em;
    
  }
  
  .slidep.active .contentp .title {
    opacity: 1;
    left: 1%;
    /* transform: translateX(-50px); Moves smoothly to the left */
  }
  
  /* View Project Button */
  .slidep .contentp .view-project {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 20px;
    background: #5f5e5d;
    border: none;
    color: white;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    opacity: 0;
    transition: all 0.5s ease;
    pointer-events: none;
  }
  
  .slidep.active .contentp .view-project {
    opacity: 1;
    pointer-events: auto; /* Makes button clickable when visible */
  }


}
