/*******************************************************
 *
 * Communities
 *
 *******************************************************/

.page-template-communities .ip-banner {
    display: none;
}

#inner-page-wrapper {
    margin-bottom: 0;
}

#inner-page-wrapper > .container {
    width: 100%;
    padding: 0;
}

.img-canvas{
    position: relative;
    overflow: hidden;
}

.img-canvas canvas{
    display: block;
    width: 100%;
    height: auto;
}

.img-canvas img{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
    transition: 0.3s;
}


.ip-communities-banner {
    margin-top: 116px;
    margin-bottom: -82px;
    padding-right: 100px;
    position: relative;
    z-index: 2;
}

.ip-communities-banner-photo img {
    filter: brightness(0.7);
}

.ip-communities-banner-photo canvas {
    min-height: clamp(300px,29.938vw,479px);
}

.ip-communities-banner h2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-transform: uppercase;
    font-size: clamp(40px,3.750vw,60px);
    letter-spacing: 0.08em;
    font-weight: 700;
    z-index: 3;
}

.ip-communities-banner .custom-breadcrumbs {
            position: absolute;
            bottom: 0;
            width: 100%;
            padding: 13px 20px;
        }


        .ip-communities-banner .custom-breadcrumbs p {
            max-width: max(1400px,87.5vw);
            margin: 0 auto;
            font-size: 15p;
        }

            .ip-communities-banner .custom-breadcrumbs p a span {
                color: #999;
            }

            .ip-communities-banner .custom-breadcrumbs p span {
                font-size: 15px;
                letter-spacing: 0.025em;
                font-weight: 200;
                color: #fff;
            }


.ip-comm-banner-scroll {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: calc(100% - 82px);
    background: #0d4785;
}

    .ip-comm-banner-scroll span {
        writing-mode: vertical-lr;
        text-transform: uppercase;
        color: #fff;
        font-family: var(--title-font);
        letter-spacing: 0.05em;
        font-size: 12px;
        display: flex;
        width: 100%;
        height: 100%;
        justify-content: end;
        align-items: center;
        padding-bottom: 60px;
    }

.ip-communities-content {
    position: relative;
    padding: 0 20px;
}

    .ip-comm-bg {
        position: absolute;
        width: 100%;
        height: 100%;
        max-height: 782px;
        top:0;
        left: 0;
    }

        .ip-comm-bg::before {
            position: absolute;
            content: '';
            width: 100%;
            height: 30%;
            bottom: 0;
            left: 0;
            background: linear-gradient(0deg, #fff, transparent);
            z-index: 1;
        }

        .ip-comm-bg:after {
            position: absolute;
            content: '';
            width: 100%;
            height: 10%;
            top: 0;
            left: 0;
            background: linear-gradient(180deg, #fff, transparent);
        }

        .ip-comm-bg canvas {
            background-position: center;
            background-repeat: no-repeat;
            background-size: cover;
            filter: grayscale(1);
            opacity: 0.15;
        }

    .ip-communities-content {
        position: relative;
    }

        .ip-communities-content:before {
            position: absolute;
            content: '';
            width: 60%;
            height: 100%;
            top: 0;
            left: 0;
            background: linear-gradient(90deg, #fff,#fff, transparent);
            z-index: 1;
        }


    .ip-communities-content-inner {
        width: 100%;
        max-width: max(1400px,87.5vw);
        margin: 0 auto;
        padding: 157px 0 85px;
        position: relative;
        z-index: 2;
    }

        .ip-communities-title {
            width: 100%;
            max-width: 1140px;
            margin: 0 auto;
        }

        .ip-communities-entries {
            padding-top: 45px;
        }

            .ip-communities-entry-row {
                margin-bottom: 30px;
            }

                .ip-communities-entry {
                    display: flex;
                    justify-content: space-between;
                    position: relative;
                    flex-wrap: wrap;
                }

                    .ip-communities-entry-item {
                        position: relative;
                    }

                    .ip-communities-entry-item:last-child {
                        width: calc((543/1400)*100%);
                    }

                    .ip-communities-entry-item:first-child {
                        width: calc((826/1400)*100%);
                    }

                    .ip-communities-entries .ip-communities-entry-row:nth-child(even) .ip-communities-entry .ip-communities-entry-item {
                        width: calc((684/1400)*100%);
                    }

                        .ip-communities-entry-item-photo {}

                            .ip-communities-entry-item:hover .ip-communities-entry-item-photo img {
                                transform: scale(1.2);
                            }

                            .ip-communities-entry-item-photo:before {
                                position: absolute;
                                content: '';
                                width: 100%;
                                height: 50%;
                                bottom: 0;
                                left: 0;
                                pointer-events: none;
                                background: linear-gradient(0deg, black, transparent);
                                z-index: 1;
                                opacity: 0.8;
                            }

                        .ip-communities-entry-item-label {
                            position: absolute;
                            bottom: 20px;
                            z-index: 3;
                            padding: 20px clamp(15px,2.500vw,40px);
                            width: 100%;
                        }

                            .ip-communities-entry-item-label h2 {
                                font-size: clamp(25px,2vw,32px);
                                color: #fff;
                                text-transform: uppercase;
                                font-weight: 700;
                            }


        .ip-comm-navigations {
            width: fit-content;
            padding: 0 137px;
            position: relative;
            margin: 80px auto 30px;
            display: flex;
            align-items: center;
        }

            .ip-comm-nav-numbers {
                display: flex;
                justify-content: center;
            }

                .ip-comm-nav-number {
                    margin: 0 7px;
                }
                    .ip-comm-nav-number {
                        font-size: 24px;
                        font-weight: 600;
                        color: #666;
                        transition: 0.3s;
                        cursor: pointer;
                    }

                        .ip-comm-nav-number:hover, .ip-comm-nav-number.active {
                            color: var(--primary-color);
                        }

                        /* .ip-comm-nav-arrow {
                            position: absolute;
                            top: 68%;
                        } */

                        .ip-comm-nav-arrows > div.prev {
                            left: 0;
                            transform: rotate(180deg) translateY(50%);
                        }

                        .ip-comm-nav-arrows > div.next {
                            right: 0;
                            transform: translateY(-50%);
                        }

.page-numbers {
    font-size: 24px;
    font-weight: 600;
    color: #666;
    transition: 0.3s;
    cursor: pointer;
    margin: 0 7px;
}

a.prev.page-numbers {
    top: 50%;
    position: relative;
    transform: rotate(180deg);
}

/*******************************************************
 *
 * Mobile styles and other media queries
 *
 *******************************************************/

 
/* iPad(landscape) | iPad(landscape) | Galaxy Tab 4 (landscape) | Galaxy Tab 3 (landscape) */ 
@media only screen and (max-width: 1199px) {

} 

/* iPad(portrait) | Galaxy Tab 4(portrait)  */ 
@media only screen and (max-width: 991px) {
	
   .ip-communities-entry-item-label {
        padding: 15px;
    }

    .ip-communities-banner {
        margin-top: 0;
    }

    .ip-comm-banner-scroll {
        background: #00529f;
        width: 50px;
    }

    .ip-communities-banner {
        padding-right: 50px;
    }

   
    
	
} 

/* Galaxy Tab 3(portrait) | Galaxy S5(landscape) */ 
@media only screen and (max-width: 767px) {

     .ip-communities-entry-item {
        width: 100% !important;
        margin-bottom: 20px;
    }

    .ip-communities-entry-row {
        margin-bottom: 0;
    }

    .ip-communities-entry-item-photo canvas {
        min-height: 72.917vw;
    }

    .ip-communities-entry-item-label {
        text-align: center;
    }

    .ip-comm-nav-arrow.prev {
        /* transform: rotate(180deg) !important; */
    }

    .ip-comm-nav-arrows {
        display: flex;
        justify-content: space-between;
        margin-top: 30px;
    }

    .ip-comm-nav-arrow {
        position: relative;
        transform: none !important;
        left: auto !important;
        right: auto !important;
    }

    .ip-comm-navigations {
        padding: 0px;
    }

}

/* Galaxy S5(portrait) | iPod Touch(landscape) | iPod Touch(portrait) */ 
@media only screen and (max-width: 480px) {

    .ip-communities-banner h2 {
        font-size: 24px;
    }

    .ip-communities-banner {
        padding-right: 35px;
    }

    .ip-comm-banner-scroll {
        width: 35px;
    }

    .ip-comm-nav-number {
        font-size: 17px;
    }

}
 
