.tax-firm #main,
.tax-designers #main,
.tax-photographer #main {
    width: 100%;
    max-width: 1440px;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

.tax-firm #content.profile,
.tax-designers #content.profile,
.tax-photographer #content.profile {
    width: 100%;
    max-width: 1440px;
    float: none;
    margin: 20px auto 40px;
    box-sizing: border-box;
}

.tax-firm .profile.firm .profile-info,
.tax-designers .profile.firm .profile-info,
.tax-photographer .profile.firm .profile-info {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;
    padding: 35px 40px 40px 0;
    margin: 0;
    border: 0;
    border-bottom: 1px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
    box-sizing: border-box;
    white-space: normal;
}

.tax-firm .profile.firm .firm-image,
.tax-designers .profile.firm .firm-image,
.tax-photographer .profile.firm .firm-image {
    flex: 0 0 auto;
    float: none;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.tax-firm .profile.firm .profile-info-left,
.tax-designers .profile.firm .profile-info-left,
.tax-photographer .profile.firm .profile-info-left {
    min-width: 0;
    width: auto;
    padding: 0;
    text-align: left;
    white-space: normal;
}

.tax-firm .profile.firm .profile-info-left .profile-name,
.tax-designers .profile.firm .profile-info-left .profile-name,
.tax-photographer .profile.firm .profile-info-left .profile-name {
    margin: 0;
    padding: 5px 0;
    color: #333;
    font-size: 28px;
    font-weight: 700;
    line-height: 25px;
}

.tax-firm .profile.firm .profile-info-left .product-description,
.tax-designers .profile.firm .profile-info-left .product-description,
.tax-photographer .profile.firm .profile-info-left .product-description {
    padding: 10px 0;
    color: #333;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.625;
    text-align: left;
}

.tax-firm .profile.firm .profile-info-left .product-description p,
.tax-designers .profile.firm .profile-info-left .product-description p,
.tax-photographer .profile.firm .profile-info-left .product-description p {
    margin-bottom: 0;
}

.tax-firm .profile.firm .profile-info-left .learn,
.tax-designers .profile.firm .profile-info-left .learn,
.tax-photographer .profile.firm .profile-info-left .learn {
    max-width: 100%;
    overflow: hidden;
    color: #444;
    font-size: 14px;
    font-weight: 400;
    text-align: left;
    text-overflow: ellipsis;
    text-transform: none;
    white-space: nowrap;
}

.tax-firm .profile.firm .profile-info .profile-link,
.tax-designers .profile.firm .profile-info .profile-link,
.tax-photographer .profile.firm .profile-info .profile-link {
    color: #428bca;
    font-size: 15px;
    font-weight: 400;
    overflow-wrap: anywhere;
}

.tax-firm .profile-gallery,
.tax-designers .profile-gallery,
.tax-photographer .profile-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 24px;
    padding: 0;
    margin-top: 42px;
}

.tax-firm .profile-gallery .profile-context-heading,
.tax-designers .profile-gallery .profile-context-heading,
.tax-photographer .profile-gallery .profile-context-heading {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0 0 15px;
    padding: 0 30px;
    clear: both;
    box-sizing: border-box;
    color: #444;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    text-align: left;
    text-transform: uppercase;
}

.tax-firm .profile-gallery .profile-context-name,
.tax-designers .profile-gallery .profile-context-name,
.tax-photographer .profile-gallery .profile-context-name {
    display: inline-block;
    border-bottom: 2px solid #418bca;
    font-style: normal;
    font-weight: 700;
}

.tax-firm .profile-gallery img:hover,
.tax-designers .profile-gallery img:hover,
.tax-photographer .profile-gallery img:hover {
    opacity: 1;
}

.tax-firm .profile-gallery .expand-notice,
.tax-designers .profile-gallery .expand-notice,
.tax-photographer .profile-gallery .expand-notice {
    font-size: 13px;
    font-weight: 400;
    text-transform: lowercase;
    margin-left: 10px;
    vertical-align: top;
}

.tax-firm .profile-gallery .gallery-item-wrap,
.tax-designers .profile-gallery .gallery-item-wrap,
.tax-photographer .profile-gallery .gallery-item-wrap {
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: auto;
    float: none;
    margin: 0;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
}

.tax-firm .profile-gallery .gallery-item,
.tax-designers .profile-gallery .gallery-item,
.tax-photographer .profile-gallery .gallery-item {
    width: 100%;
    position: relative;
    float: none;
    margin: 0;
    border: none;
}

.tax-firm .profile-gallery .profile-thumb-link,
.tax-designers .profile-gallery .profile-thumb-link,
.tax-photographer .profile-gallery .profile-thumb-link {
    display: block;
    aspect-ratio: 5 / 3;
    background: #f3f3f3;
    overflow: hidden;
}

.tax-firm .profile-gallery .gallery-item-wrap img,
.tax-designers .profile-gallery .gallery-item-wrap img,
.tax-photographer .profile-gallery .gallery-item-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    border-radius: 0;
}

.tax-firm .profile-gallery .gallery-item .item-info,
.tax-designers .profile-gallery .gallery-item .item-info,
.tax-photographer .profile-gallery .gallery-item .item-info {
    width: 100%;
    min-height: 67px;
    margin: 0;
    padding: 13px 16px 14px;
    display: flex;
    align-items: flex-start;
    background-color: transparent;
    white-space: normal;
    overflow: hidden;
    color: #444;
    text-align: left;
    box-sizing: border-box;
}

.tax-firm .profile-gallery .gallery-item .item-info .project-title,
.tax-designers .profile-gallery .gallery-item .item-info .project-title,
.tax-photographer .profile-gallery .gallery-item .item-info .project-title {
    color: #444;
    font-size: 16px;
    line-height: 20px;
    text-shadow: none;
    font-weight: 600;
    padding: 0;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tax-firm .profile-gallery .gallery-item .item-info .project-title:hover,
.tax-designers .profile-gallery .gallery-item .item-info .project-title:hover,
.tax-photographer .profile-gallery .gallery-item .item-info .project-title:hover {
    color: #428bca;
}

.tax-firm #content.profile > .pagination,
.tax-designers #content.profile > .pagination,
.tax-photographer #content.profile > .pagination {
    display: flow-root;
    width: 100%;
    max-width: 100%;
    margin: 44px auto 64px;
    clear: both;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .tax-firm .profile-gallery,
    .tax-designers .profile-gallery,
    .tax-photographer .profile-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .tax-firm #main,
    .tax-designers #main,
    .tax-photographer #main {
        padding-left: 12px;
        padding-right: 12px;
    }

    .tax-firm .profile.firm .profile-info,
    .tax-designers .profile.firm .profile-info,
    .tax-photographer .profile.firm .profile-info {
        gap: 20px;
        padding: 24px 24px 24px 0;
    }

    .tax-firm .profile.firm .firm-image,
    .tax-designers .profile.firm .firm-image,
    .tax-photographer .profile.firm .firm-image {
        width: 82px;
        height: 82px;
    }

    .tax-firm .profile.firm .profile-info-left .profile-name,
    .tax-designers .profile.firm .profile-info-left .profile-name,
    .tax-photographer .profile.firm .profile-info-left .profile-name {
        font-size: 24px;
        line-height: 28px;
    }

    .tax-firm .profile.firm .profile-info-left .product-description,
    .tax-designers .profile.firm .profile-info-left .product-description,
    .tax-photographer .profile.firm .profile-info-left .product-description {
        font-size: 16px;
    }

    .tax-firm .profile-gallery,
    .tax-designers .profile-gallery,
    .tax-photographer .profile-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 16px;
    }
}

@media (max-width: 520px) {
    .tax-firm .profile.firm .profile-info,
    .tax-designers .profile.firm .profile-info,
    .tax-photographer .profile.firm .profile-info {
        align-items: flex-start;
        flex-direction: column;
    }

    .tax-firm .profile.firm .firm-image,
    .tax-designers .profile.firm .firm-image,
    .tax-photographer .profile.firm .firm-image {
        width: 72px;
        height: 72px;
    }

    .tax-firm .profile.firm .profile-info-left .learn,
    .tax-designers .profile.firm .profile-info-left .learn,
    .tax-photographer .profile.firm .profile-info-left .learn {
        white-space: normal;
    }

    .tax-firm .profile-gallery,
    .tax-designers .profile-gallery,
    .tax-photographer .profile-gallery {
        grid-template-columns: 1fr;
    }
}
