@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

/* Animation for gallery filtering */

.cfg-gallery-container {
    display: flex;
    flex-direction: column;
    align-items: start;
    margin: 0 auto;
    padding: 0px;
    border-radius: 18px;
}

.cpf-top-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.cpf-top-container p{
font-size: 16px;
    color: #3A3A3A;
    font-weight: 600;
    font-family: "Plus Jakarta Sans", Sans-serif;
}

.cfg-filters {
    margin-bottom: 30px;
    display: flex;
    gap: 16px;
    justify-content: center;
    background-color: #FFFFFF;
    padding: 10px;
    border-radius: 50px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.10), 0 1px 2px -1px rgba(0, 0, 0, 0.10);
}

.filter-button {
    padding: 10px 28px;
    border: none;
    border-radius: 24px;
    background: #ffffff;
    color: #3A3A3A;
    font-size: 16px;
    font-weight: 500;
      font-family: "Plus Jakarta Sans", Sans-serif;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    outline: none;
    border: 1.5px solid #dddddd;
    min-width: 90px;
    margin-bottom: 0px;
    border-color: #cecece !important;
}
.filter-button:hover, .filter-button.active {
    background: #12599C;
    color: #fff;
    border-color: #12599C;
    box-shadow: 0 4px 16px rgba(0,115,230,0.10);
}

.cfg-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    width: 100%;
    margin-bottom: 0px;
}

@media (max-width: 900px) {
    .cfg-images {
        grid-template-columns: repeat(2, 1fr);
    }
}



.cfg-image-item img {
    max-width: 100%;
    height: 450px;
    width: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cfg-image-item {
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    margin-bottom: 0px;
}

.cfg-image-caption {
    padding: 16px 16px 14px 16px;
    background: #fff;
    border-radius: 0 0 14px 14px;
    text-align: left;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cfg-image-title {
    font-size: 1.08rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 2px;
    line-height: 1.2;
    word-break: break-word;
}
.cfg-image-desc {
    font-size: 0.97rem;
    color: #555;
    line-height: 1.4;
    word-break: break-word;
}

.cfg-error {
    color: #c00;
    background: #fff0f0;
    border: 1px solid #fbb;
    padding: 18px 24px;
    border-radius: 10px;
    margin: 30px auto;
    text-align: center;
    font-size: 1.1rem;
    max-width: 400px;
}

.cpf-content{
    max-width: 50%;
}

.cpf-content h2{
    font-family: "Plus Jakarta Sans", Sans-serif;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2em;
    color: var(--e-global-color-7ed1f62);
    margin-bottom: 20px;
    margin-top: 0;
}

.cpf-heading {
    font-family: "Lora", serif;
    color: #12599C;
    font-weight: 600;
    font-style: italic;
}
@media (max-width: 768px) {
    .cfg-images {
        grid-template-columns: 1fr;
    }
	.cpf-top-container {
    align-items: start;
    flex-direction: column;
}
	.cpf-content {
    max-width: 100%;
}
	.cpf-content h2 {
    font-size: 24px;
}
	.filter-button {
    padding: 10px 12px !important;
    font-size: 12px;
    min-width: 60px;
}
	.cfg-image-item img {
    height: 300px;
}
}