.logo-projects{
margin-top:40px;
text-shadow: 0px -2px 0 #000;
}
.project-wrap{
  background-color:rgb(111, 132, 170);
  padding:20px 40px;
  border-bottom: #3a3030 1px solid;
   width: 100%;
    background-image: url(../img/rctlogotransparent.png),url(../img/buildingsky.JPG);
    background-size: 30vh, cover;
    background-repeat: no-repeat;
    background-position:bottom left calc(50% + 80px), center;
    display: flex;
    justify-content: center;
    align-items:center;
}


.projects-title-links{
    width: fit-content;
    height: 100%;
     background: linear-gradient(135deg, #334244, #ffffff62);  /* soft gradient */
    padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* subtle depth */
    
}
.projects-title-links ul{
    list-style: none;
    margin-top: 35px;  
  display: flex;
  flex-wrap: wrap;   /* allows items to wrap into new rows */
  gap: 30px;         /* spacing between items (both rows and columns) */
  list-style: none;   
  
}


.projects-title-links ul li a {
  display: inline-block;   /* makes padding work properly */
  padding: 6px 8px;       /* space inside the button */
  background:var(--site-color-01);    /* button background */
  color: #3a3030;             /* text color */
  text-decoration: none;   /* remove underline */
  border-radius: 8px;      /* round corners */
  transition: background 0.3s;
  border-bottom: #b69606 1px solid;
}

.projects-title-links ul li a:hover {
 background: #555;       /* hover effect */
  border-bottom: #25241e 1px solid;
}


.projects-title-links ul li a{
    padding: 0 10px;
    font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    line-height: 60px;
    font-size: 1.7rem;
    color: #000;
    
}
.projects-title-links ul li a:hover{
  color: #ccc;
}


.main-projects{
    width: 100%;
    padding: 10px 0;
}
.project{
    width: 90%;
    padding: 20px 0;
    display: flex;
    align-items:center;
    justify-content: center;
    column-gap: 20px;
}
 
.projects-desc{   
 width: 250px;
 height: 300px;
 margin-left:  100px;
 margin-bottom: 10px;
 padding: 30px 0;
}
.projects-desc h1{
    font-size: 1.8rem ;
}
.projects-desc h2{
    font-size: 1.5rem;
}
.projects-desc p{
    font-size: 1.7rem;
}

.projects-img{
padding-right: 20px;
width: 100%;
}
.projects-img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.projects-desc {
  max-width: 600px;
}


.project {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 4rem;
  align-items: flex-start;
}

.projects-desc {
  flex: 1 1 300px;
  max-width: 400px;
}

.grid-gallery {
  flex: 2 1 500px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.grid-gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.grid-gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}



@media (min-width: 768px) {
  .project {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
  }
  .projects-img {
    flex: 1;
  }
  .projects-desc {
    flex: 1;
  }


  /* Popup (hidden by default) */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.9);
}

/* Image inside modal */
.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
}

/* Caption */
#caption {
  text-align: center;
  color: #ccc;
  margin-top: 10px;
}

/* Close button */
.close {
  position: absolute;
  top: 20px; right: 35px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
}

/* Next & Prev arrows */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  font-size: 40px;
  color: white;
  padding: 16px;
  user-select: none;
}

.prev { left: 20px; }
.next { right: 20px; }

.prev:hover, .next:hover, .close:hover {
  color: #f1f1f1;
}

}

