/* PROJECTS TEMPLATE*/
.container.wcfp-project-container {
    padding: 0 !important;
}
.wcfp-project-single {
    padding: 0 !important;
}

header.wcfp-project-header {
    background: #03477c;
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom:50px;
}

header.wcfp-project-header h1
{
    color: white;
    text-align: center;
    margin: 0!important;
}

.wcfp-project-container .et_full_width_portfolio_page #full-width {
        float: none;
        width: 100% !important;
        margin-right: 0;
}

.wcfp-project-container ul {
    list-style: disc;
    margin-bottom: 25px;
}

/* Two-column layout: overview + media */
.wcfp-project-two-col {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 0 20px 40px;
}

.wcfp-project-col,
.wcfp-project-media {
    flex: 1 1 0;
    min-width: 0;
}

.wcfp-project-one-col {
    padding: 0 20px 40px;
}

@media (max-width: 767px) {
    .container.wcfp-project-container {
        width: 100% !important;
        max-width: 100% !important;
    }
    .wcfp-project-two-col {
        flex-direction: column;
        padding: 0 40px 40px;
    }
    .wcfp-project-media {
        flex: 1 1 auto;
        max-width: 100%;
    }
}


/* Make project images responsive everywhere */
.wcfp-project-gallery-slide img,
.wcfp-project-media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* Mobile: stop the gallery from being insanely tall */
@media (max-width: 767px) {
  .wcfp-project-gallery-slide {
    overflow: hidden;
    border-radius: 12px;
  }

  .wcfp-project-gallery-slide img {
    height: 42vh;          /* adjust: 35vh–50vh */
    max-height: 420px;     /* adjust if you want */
    object-fit: cover;     /* use 'contain' if you don't want cropping */
    width: 100%;
  }
}