/* Photo Gallery Widget */

.photo-gallery-widget {
    background-color: #FFFFFF;
    padding-bottom: 40px;
}

/* --- Header Section --- */

.photo-gallery-header {
    padding: 0;
}

.photo-gallery-tag {
    background-color: #E9F0F4;
    color: #0053A5;
    font-size: 18px;
    line-height: 26px;
    font-weight: 300;
    padding: 2px 16px;
    border-radius: 60px;
    white-space: nowrap;
    display: inline-block;
    flex-shrink: 0;
}

/*h2.photo-gallery-title {
    color: #002569;
    font-size: 34px;
    line-height: 48px;
    font-weight: 400;
    text-transform: capitalize;
    margin-top: 24px;
    margin-bottom: 0;
}*/

/* --- Carousel Container --- */

.photo-gallery-carousel-container {
    margin-top: 24px;
    position: relative;
}

/* --- Slide --- */

.photo-gallery-slide {
    padding: 0 12px;
    outline: none;
}

.photo-gallery-slide-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* --- Image --- */

.photo-gallery-image {
    width: 100%;
    height: 540px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

/* --- Caption --- */

.photo-gallery-caption {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
}

.photo-gallery-caption-title {
    color: #002569;
    font-size: 18px;
    line-height: 26px;
    font-weight: 700;
}

.photo-gallery-caption-subtitle {
    color: #868F98;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
}

/* Caption position: above the image */
.photo-gallery-slide-inner.pg-caption-above .photo-gallery-caption {
    order: -1;
}

/* Caption position: overlaid on the bottom-left of the image */
.photo-gallery-slide-inner.pg-caption-overlay {
    position: relative;
}

.photo-gallery-slide-inner.pg-caption-overlay .photo-gallery-caption {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    margin: 0;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 8px;
}

.photo-gallery-slide-inner.pg-caption-overlay .photo-gallery-caption-title {
    color: #FFFFFF;
}

.photo-gallery-slide-inner.pg-caption-overlay .photo-gallery-caption-subtitle {
    color: #E5E8EB;
}

/* --- Pagination Wrapper --- */

.photo-gallery-carousel-container .slick-slider {
    margin-bottom: 0;
}

.photo-gallery-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px 80px 32px;
}

/* --- Slick Arrows --- */

.photo-gallery-prev-btn,
.photo-gallery-next-btn {
    position: static;
    z-index: 1000;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    line-height: 28px;
    font-weight: 400;
    color: #0053A5;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.photo-gallery-prev-btn {
    order: 1;
}

.photo-gallery-pagination .slick-dots {
    order: 2;
}

.photo-gallery-next-btn {
    order: 3;
}

.photo-gallery-prev-btn.slick-disabled {
    color: #707070;
    opacity: 0.5;
    cursor: default;
}

.photo-gallery-next-btn.slick-disabled {
    color: #707070;
    opacity: 0.5;
    cursor: default;
}

/* --- Slick Dots --- */

.photo-gallery-pagination .slick-dots {
    position: static;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    width: auto;
    max-width: 100%;
}

.photo-gallery-pagination .slick-dots li {
    margin: 0;
    padding: 0;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.photo-gallery-pagination .slick-dots li button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 0;
    line-height: 0;
    width: auto;
    height: auto;
}

.photo-gallery-dot {
    font-size: 20px;
    line-height: 28px;
    color: #0053A5;
    display: inline-block;
}

.photo-gallery-pagination .slick-dots li.slick-active .photo-gallery-dot,
.photo-gallery-pagination .slick-dots li[aria-current="true"] .photo-gallery-dot {
    color: #ED8000;
}

/* --- CTA Section --- */

.photo-gallery-cta {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

/* --- Responsive: Tablet --- */

@media only screen and (max-width: 991px) {
    .photo-gallery-image {
        height: 400px;
    }

    .photo-gallery-pagination {
        padding: 20px 40px 28px;
    }
}

/* --- Responsive: Mobile --- */

@media only screen and (max-width: 767px) {
    .photo-gallery-tag {
        display: none;
    }

/*    h2.photo-gallery-title {
        font-size: 18px;
        line-height: 26px;
        margin-top: 0;
    }*/

    .photo-gallery-image {
        height: 337px;
    }

    .photo-gallery-caption-title {
        font-size: 16px;
        line-height: 24px;
    }

    .photo-gallery-caption-subtitle {
        font-size: 14px;
        line-height: 22px;
    }

    .photo-gallery-slide-inner.pg-caption-overlay .photo-gallery-caption {
        left: 16px;
        right: 16px;
        bottom: 16px;
        padding: 10px 12px;
    }

    .photo-gallery-slide {
        padding: 0 8px;
    }

    .photo-gallery-slide-inner {
        gap: 16px;
    }

    .photo-gallery-pagination {
        display: none !important;
    }
}
