.wpcf7-form-control.wpcf7-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wpcf7-form-control.wpcf7-checkbox input[type="checkbox"] {
  margin: 6px 6px 0 0;
  vertical-align: middle;
}
.wpcf7-form-control.wpcf7-checkbox .wpcf7-list-item {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.wpcf7-form-control.wpcf7-checkbox .wpcf7-list-item-label {
  margin: 0;
  padding: 0;
  vertical-align: middle;
  font-weight: normal;
}
.custom-tags .tag-link:not(:last-child)::after {
    content: ",";
    margin-right: 2px;
}
.custom-tags {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px; /* tighter spacing */
  padding-left: 0; /* ensures alignment with description text */
}

/* Remove any unintended margins on children */
.custom-tags > * {
  margin: 0;
}

/* Individual tag links */
.tag-link {
  background: rgba(228, 226, 226, 0.2);
  color: rgba(255, 255, 255, 0.9); /* brighter white */
  font-size: 12px;
  text-decoration: none;
  border-radius: 14px;
  padding: 2px 1px;
  line-height: 1.3;
  transition: all 0.2s ease;
}

.tag-link:hover {
  background: rgba(255, 254, 254, 0.8);
  color: #fff;
}

/* The + button */
.custom-tags-readmore {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.custom-tags-readmore:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
/* Portfolio search page custom style */
.portfolio-search .row {
  display: flex;
  flex-wrap: wrap;
}

.portfolio-search .col-md-6,
.portfolio-search .col-lg-4 {
  display: flex;
  margin-top: 15px !important;
  margin-bottom: 15px !important;
}

.portfolio-search .col-lg-4 div:hover{
  
    box-sizing: border-box;
    box-shadow: 0 4px 8px -2px rgba(9,30,66,.25), 0 0 0 1px rgba(9,30,66,.08);
    transition: box-shadow .15s ease-in-out;
}

.portfolio-search .col-lg-4 div:hover img {
    opacity: .5;
}

.portfolio-search .portfolio-short-description {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.portfolio-search .portfolio-short-description-bg,
.portfolio-search figure,
.portfolio-search figcaption {
  height: 100%;
}
.portfolio-search .portfolio-short-description::before {
    content: "";
    position: absolute;
    top: -6px;         /* creates the visible space */
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 1px solid transparent;
    border-radius: 6px;
    transition: all 0.3s ease;
    pointer-events: none; /* keeps border unclickable */
}

/* On hover: visible outline */
.portfolio-search .portfolio-short-description:hover::before {
    border-color: rgba(255,255,255,0.4); /* light white border */
}

