/* Style for Projects */
.project-item {
    margin-bottom: 20px;
}

/* Style for project sidebar meta */
#project-meta-list p {
    margin-bottom: 5px;
}
#project-meta-list {
    margin-top: 15px;
    margin-bottom: 15px;
}

/* gallery columns % */
.tsw-projects-gallery img {
    max-width: 100%;
}
.tsw-projects-gallery .gallery-item {
    display: inline-block;
}

.gallery-columns-1 .gallery-item { width: 100%; }
.gallery-columns-2 .gallery-item { width: 50%; }
.gallery-columns-3 .gallery-item { width: 33.33%; }
.gallery-columns-4 .gallery-item { width: 25%; }
.gallery-columns-5 .gallery-item { width: 20%; }
.gallery-columns-6 .gallery-item { width: 16.66%; }

/* Highlight Pinned Project */
.pinned-project, .ongoing-project {
    border: 3px solid #2F3490;
    padding: 35px 30px;
    background-color: #eef2ff;
    box-shadow: 0px 4px 12px rgba(47, 52, 144, 0.2);
    transition: transform 0.3s ease-in-out;
}
.ongoing-project {
    border-color: green;
    position: relative;
}
.ongoing-project::before {
  content: "ONGOING PROJECT";
  position: absolute;
  top: 35px;
  right: -62px;
  background-color: green;
  color: white;
  padding: 4px 40px;
  transform: rotate(45deg);
  font-weight: bold;
  font-size: 0.75rem;
  text-align: center;
  box-shadow: 0 0 2px rgba(0,0,0,0.3);
  pointer-events: none;
}
/* //prevent overflow on small screens of sash */
@media (max-width: 768px) {
    .ongoing-project {
        overflow: hidden !important;
    }
    .ongoing-project::before {
        top: 41px; /* Adjusted for smaller screens */
        right: -52px
    }
}

.pinned-project:hover {
    transform: translateY(-5px);
}

/* Optional: Custom Hue Styles for Markers */
.leaflet-marker-icon.highlight-marker {
    filter: hue-rotate(220deg); /* Blue */
}

.leaflet-marker-icon.default-marker {
    filter: hue-rotate(30deg); /* Orange */
}

.map-legend {
    background-color: white;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    line-height: 20px;
    width: 185px;
}

.map-legend strong {
    display: block;
    margin-bottom: -8px;
    color: #939598;
}

.map-legend .legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.map-legend .legend-icon {
    width: 16px;
    height: 26px;
    margin-right: 8px;
}

/* Circle Style Legend */
.circle-legend {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 8px;
    border: 2px solid #fff;
    box-shadow: 0 0 3px rgba(0,0,0,0.3);
}

/* Highlight Marker Legend */
.tsw-legend {
    padding: 5px 10px;
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    box-shadow: 0px 0px 5px rgba(0,0,0,0.1);
}

.tsw-legend .highlighted {
    color: #2F3490;
    font-weight: bold;
}


/*single post*/
.single-projects h1, .single-post h1 {
    background: #05A6DB;
    padding: 15px 20px 20px;
    color: #fff;
    margin-bottom: 1rem;
}
.single-projects h2, .single-post h2 {

}
.single-projects h3, .single-post h3 {
    color: #1B346D;
}
.single-projects h4, .single-post h4 {
    color: #939598;
}
/*.single-projects .tsw-projects-gallery {
    margin-bottom: 2rem;
}*/
.single-projects .tsw-projects-gallery a.gallery-item {
    height: 260px;
}
.single-projects .tsw-projects-gallery img {
    height: 100% !important;
    object-fit: cover;
}

/*thickbox edits*/
.single-projects img#TB_Image {
    margin: 0 !important;
    width: 100% !important;
    border: none !important;
}
.single-projects div#TB_caption {
    height: auto;
}

.single-projects #TB_prev, .single-projects #TB_next {
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 20px;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    text-align: center;
    cursor: pointer;
    z-index: 1001;
}

.single-projects #TB_prev a, .single-projects #TB_next a {
    display: none;
}
.single-projects #TB_prev {
    left: 10px;
    background: url('data:image/svg+xml;utf8,<svg width="40" height="40" xmlns="http://www.w3.org/2000/svg"><polygon points="30,0 10,20 30,40" style="fill:white;"/></svg>') no-repeat center center;
    background-size: contain;
}
.single-projects #TB_next {
    right: 10px;
    background: url('data:image/svg+xml;utf8,<svg width="40" height="40" xmlns="http://www.w3.org/2000/svg"><polygon points="10,0 30,20 10,40" style="fill:white;"/></svg>') no-repeat center center;
    background-size: contain;
}
