.custom-gallery-widget {
    width: 100%;
}

/* ==========================
   FILTER
========================== */

.gallery-filter {
    position: relative;
    max-width: 260px;
    margin-bottom: 40px;
}

/* .gallery-dropdown-toggle {
    height: 60px;
    border: 1px solid #24489C;
    border-radius: 12px;
    padding: 0 20px;
    background: #fff;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: space-between;

    font-size: 20px;
    font-weight: 500;
    color: #24489C;
} */

.gallery-arrow {
    transition: .3s;
}

.gallery-filter.dropdown-open .gallery-arrow {
    transform: rotate(180deg);
}

.gallery-dropdown-list {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;

    width: 100%;

    background: #fff;
    border-radius: 18px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .15);

    padding: 12px;

    display: none;

    z-index: 99;
}

.gallery-filter.dropdown-open .gallery-dropdown-list {
    display: block;
}

.gallery-dropdown-list button {
    width: 100%;

    border: 0;
    background: transparent;

    text-align: left;

    padding: 16px 18px;

    border-radius: 12px;

    cursor: pointer;

    font-size: 18px;

    transition: .3s;
}

.gallery-dropdown-list button:hover {
    background: #F4F6F9;
}

.gallery-dropdown-list button.active {
    background: #E9EDF5;
}

/* ==========================
   GRID
========================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}


.gallery-item {
    display: block;
    animation-duration: .4s;
    animation-fill-mode: both;
}

.gallery-item.animate-in {
    animation-name: galleryFadeUp;
}

@keyframes galleryFadeUp {

    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.gallery-item img {
    width: 100%;
    height: 310px !important;
    display: block;
    object-fit: cover;
}

/* ==========================
   PAGINATION
========================== */

.gallery-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;

    margin-top: 40px;
}

.gallery-dot {
    width: 12px;
    height: 12px;

    border-radius: 50%;

    background: #D5D7DD;

    cursor: pointer;

    transition: .3s;
}

.gallery-dot.active {
    background: #24489C;
}


/* 22-06-26 */

.custom-gallery-widget .gallery-filter {
    width: 100%;
    max-width: 196px;
}

.custom-gallery-widget .gallery-dropdown-toggle {
    width: 100%;
    height: auto;
    position: relative;
    font-family: var(--e-global-typography-131cd63-font-family), Sans-serif !important;
    font-weight: 700;
    background: #ffffff !important;
    z-index: 9;
    cursor: pointer;
    padding: 10px 35px 10px 20px !important;
    border: 1px solid #000000 !important;
    border-radius: 10px !important;
    -webkit-border-radius: 10px !important;
    -moz-border-radius: 10px !important;
    -ms-border-radius: 10px !important;
    -o-border-radius: 10px !important;
}

.custom-gallery-widget .gallery-dropdown-toggle::after {
    position: absolute;
    content: "";
    right: 15px;
    top: 10px;
    width: 25px;
    height: 25px;
    background-color: transparent !important;
    background-size: 12px 8px;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1 !important;
    transition: transform 0.3s ease;
    -webkit-transition: transform 0.3s ease;
    -moz-transition: transform 0.3s ease;
    -ms-transition: transform 0.3s ease;
    -o-transition: transform 0.3s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cg clip-path='url(%23clip0_14_2)'%3E%3Cpath d='M9.44144e-06 0.569982C0.00282611 0.455083 0.0403176 0.343679 0.107553 0.250463C0.174789 0.157248 0.268609 0.0865738 0.376749 0.0476435C0.484889 0.00871313 0.602288 0.00335322 0.71351 0.0323236C0.824733 0.0612941 0.924603 0.123258 1.00001 0.209997L5.82002 6.28995L10.65 0.209997C10.7443 0.0921461 10.8814 0.0164803 11.0314 -0.000391203C11.1814 -0.0172627 11.3319 0.0260104 11.45 0.11997C11.5656 0.215739 11.6396 0.352608 11.6564 0.501806C11.6732 0.651004 11.6315 0.800891 11.54 0.919958L6.27 7.55997C6.21773 7.62839 6.1504 7.6838 6.07322 7.72196C5.99604 7.76012 5.91109 7.78 5.82499 7.78C5.73889 7.78 5.65397 7.76012 5.57679 7.72196C5.49961 7.6838 5.43228 7.62839 5.38001 7.55997L0.120005 0.929968C0.0414525 0.826456 -0.000725389 0.699923 9.44144e-06 0.569982Z' fill='%23000000'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_14_2'%3E%3Crect width='11.68' height='7.78' fill='%23000000'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
}

.custom-gallery-widget .gallery-filter.dropdown-open .gallery-dropdown-toggle::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cg clip-path='url(%23clip0_14_2)'%3E%3Cpath d='M9.44144e-06 0.569982C0.00282611 0.455083 0.0403176 0.343679 0.107553 0.250463C0.174789 0.157248 0.268609 0.0865738 0.376749 0.0476435C0.484889 0.00871313 0.602288 0.00335322 0.71351 0.0323236C0.824733 0.0612941 0.924603 0.123258 1.00001 0.209997L5.82002 6.28995L10.65 0.209997C10.7443 0.0921461 10.8814 0.0164803 11.0314 -0.000391203C11.1814 -0.0172627 11.3319 0.0260104 11.45 0.11997C11.5656 0.215739 11.6396 0.352608 11.6564 0.501806C11.6732 0.651004 11.6315 0.800891 11.54 0.919958L6.27 7.55997C6.21773 7.62839 6.1504 7.6838 6.07322 7.72196C5.99604 7.76012 5.91109 7.78 5.82499 7.78C5.73889 7.78 5.65397 7.76012 5.57679 7.72196C5.49961 7.6838 5.43228 7.62839 5.38001 7.55997L0.120005 0.929968C0.0414525 0.826456 -0.000725389 0.699923 9.44144e-06 0.569982Z' fill='%23234181'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_14_2'%3E%3Crect width='11.68' height='7.78' fill='%23234181'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
    transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    -o-transform: rotate(180deg);
}

.custom-gallery-widget .gallery-filter.dropdown-open .gallery-dropdown-toggle {
    border: 1px solid #234181 !important;
    color: #234181;
}

.custom-gallery-widget .gallery-dropdown-list button {
    font-family: var(--e-global-typography-131cd63-font-family), Sans-serif;
    font-size: 15px;
    line-height: 20px;
    padding: 10px 20px;
    margin-bottom: 10px;
    color: #000000;
    text-wrap: auto;
}

.custom-gallery-widget .gallery-dropdown-list button:hover,
.custom-gallery-widget .gallery-dropdown-list button.active {
    background: #e9ecf2;
}

.custom-gallery-widget .gallery-pagination {
    gap: 8px;
    margin-top: 25px;
}

.custom-gallery-widget .gallery-pagination .gallery-dot {
    width: 10px;
    height: 10px;
}

.custom-gallery-widget .gallery-pagination .gallery-dot.active {
    background: #1e3a8a;
    transform: scale(1.3);
    -webkit-transform: scale(1.3);
    -moz-transform: scale(1.3);
    -ms-transform: scale(1.3);
    -o-transform: scale(1.3);
}

/* 22-06-26 */

/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 1366px) {

    .gallery-grid {
        gap: 10px;
    }

    .gallery-item img {
        height: 238px !important;
    }

}

@media (max-width: 1024px) {

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item img {
        height: 350px !important;
    }

}

@media (max-width: 880px) {
    .gallery-item img {
        height: 300px !important;
    }

}

@media (max-width: 767px) {

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-dropdown-toggle {
        height: 50px;
        font-size: 16px;
    }

    .gallery-dropdown-list button {
        font-size: 16px;
    }

    .gallery-item img {
        height: 100% !important;
    }

}