@media screen and (max-width: 1599px) {
    .main-navigation ul > li > a:after {
        width: calc(100% - 3rem);
        left: 1.5rem;
    }
}
@media screen and (max-width: 1365px) {
    .main-section {
        max-width: 900px;        
    }
    .page-template-photography #content .wrapper, .page-template-painting #content .wrapper, .page-template-contact #content .wrapper {
        padding-bottom: 70px;
        padding-top: 42px;
    }
    .filter-block .dropdown-btn, .filter-block .search-blc .search-bar {
        width: 150px;
    }
    .filter-block .search-blc .search-bar {
        width: 160px;
    }
    
    }
@media screen and (max-width: 1199px) {
    .home-page-main-section .max-container {        
        padding: 4rem 0 3rem;
    }
    .home-page-main-section .hp-custom-gallery {
        margin-bottom: 2.5rem;
    }

    .home div#primary .singular-content-wrap {
        padding-top: 4rem;
        padding-bottom: 3rem;
    }
    .main-section {
        max-width: 750px;
        margin-inline: auto;
    }
    .main-section .page-heading {
        font-size: 13px;
        margin-bottom: 2em;
    }
    .photography-main .top-block .custom-row {
        gap: 25px;
    }
    .filter-block {
        flex-wrap: wrap;
    }
    .filter-block .search-blc .search-bar {
        width: 215px;
    }
    .pagination {
        gap: 30px;
        max-width: 380px;
        padding: 8px 0;
    }
    .pagination .page {
        padding: 5px 8px;
    }
    .pagination .page-numbers {
        gap: 15px;
    }
    .painting-gallery-main .custom-row {
        margin-bottom: 40px;
    }
    .address-bar .custom-row {
        gap: 15px;
    }
    .address-bar {
        margin-bottom: 40px;
    }

    }


@media screen and (max-width: 1024px) {
    body.admin-bar .dialog-type-lightbox {
        height: 100% !important;
        position: fixed !important;
    }
}
@media screen and (max-width: 1023px) {
    .main-section {
        max-width: 100%;        
        padding: 0 30px;
    }
    .page-template-photography #content .wrapper {
        padding-bottom: 60px;
        padding-top: 42px;
    }
    .swimmers-section .swimmers-gallery {
        column-count: 3;
        -webkit-column-count: 3;
        -moz-column-count: 3;
    }
}
@media screen and (max-width: 767px) {
    .common-btn {
        font-size: 16px;
        padding: 10px 16px;
    }

    .home-page-main-section .max-container {        
        padding: 3rem 0 2rem;
    }
    .home-page-main-section .hp-custom-gallery a {
        width: calc(50% - 1.25rem);
    }
.home div#primary .singular-content-wrap {
    padding-top: 3rem;
    padding-bottom: 2rem;
}

.home-button-group {
    gap: 15px;
}
.home-page-main-section .hp-custom-gallery {
    margin-bottom: 2rem;
}
.photography-gallery .custom-row .column {
    width: calc(33.33% - 15px );
}
.photography-gallery .custom-row .column:nth-child(4n + 2), .photography-gallery .custom-row .column:nth-child(4n + 3) {
    top: 0;
    position: relative;
}
.photography-gallery {
    margin: 40px 0 40px;
}
.photography-gallery .custom-row .column:last-child {
    float: inherit;
    margin-left: 0;
}
.common-title {
    margin-bottom: 1.5rem;
}
.page-template-photography #content .wrapper, .page-template-painting #content .wrapper, .page-template-contact #content .wrapper {
    padding-bottom: 40px;
}
.painting-gallery-main .custom-row a {
    width: calc(33.33% - 13px);
    justify-content: center;
}
.painting-gallery-main .custom-row {
    justify-content: center;
}
.painting-gallery-main .custom-row a:nth-child(5n + 2), .painting-gallery-main .custom-row a:nth-child(5n + 4) {
    bottom: 0;
    position: relative;
}

.pagination {
    gap: 14px;
    margin-top: 0;
}
.painting-gallery-main .custom-row a:after{
    display: none;
}
.filter-block {
    padding-bottom: 30px;
    margin-bottom: 40px;
}
.form-block {
    padding: 25px 25px;
}
.form-block .gform_title {
    margin-bottom: 10px;
}
.address-bar .custom-row {
    flex-wrap: wrap;
    align-items: center;
}
.address-bar .column {
    width: 280px;
}
}

@media screen and (max-width: 575px) {
.home-page-main-section .hp-custom-gallery a {
    width: calc(100% - 1.25rem);
}
.main-section .page-heading .title {
    font-size: 3em;
}
.photography-main .top-block .custom-row {
    flex-wrap: wrap;
}
.photography-main .quote-block:before {
    top: -10px;
    left: -5px;
}
.photography-main .quote-block:after {
    bottom: 5px;
    right: -10px;
}
.photography-gallery .custom-row .column {
    width: 100%;
}
.main-section {
    padding: 0 20px;
}
.swimmers-section .description {
    text-align: center;
}
.swimmers-section .swimmers-gallery {
    column-count: 1;
    -webkit-column-count: 1;
    -moz-column-count: 2;
}
.painting-gallery-main .custom-row a {
    width: calc(50% - 13px);
}
}


@media screen and (max-width: 399px) {
    .filter-block .dropdown-btn, .filter-block .search-blc .search-bar {
        width: 100%;
    }
    .filter-block .checkbox-dropdown {
        position: relative;
        width: 100%;
    }

.filter-block .search-blc .search-bar {
    width: 173px;
}
}