#card-gallery {
     /*background-color:red;*/
}
#card-gallery .text-page {
    line-height: 22px;
    text-align: center;
    color: var(--color-gray);
}

#card-gallery .heading-large {
    line-height: 44px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--color-default);
}

#card-gallery .read-more a {
    color: var(--color-default);
    text-transform: uppercase;
    margin: 0px;
    margin-top: 10px;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

#card-gallery .post-card {
    padding: 10px;
}

#card-gallery .content {
    background: var(--color-default);
    line-height: 18px;
    color: var(--color-white);
    padding: 20px;
    height: 120px;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
}

#card-gallery .content h2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media all and (max-width: 1366px) {
    #card-gallery {
        font-size: 19px;
    }
}

/* mobile*/
@media (max-width: 991.98px) {
    #card-gallery {
        /*margin-top: 70px;*/
    }

    #card-gallery .post-card {
        padding: 22px;
        padding-top: 0px;
    }

    #card-gallery .text-page {
        font-size: 16px;
        line-height: 19px;
        margin-block-end: 0;
    }

    #card-gallery .heading-large {
        font-size: 26px;
        font-weight: 300;
        line-height: 31px;
        letter-spacing: 0.13em;
    }

    #card-gallery .content {
        height: 105px;
    }

    #card-gallery .content h2 {
        height: auto;
        font-weight: 500;
        font-size: 16px;
        line-height: 24px;
    }

    #card-gallery .read-more a {
        font-weight: 700;
        font-size: 14px;
        line-height: 17px;
        margin: 10px;
    }
}




/*page mostrar galeria*/
 .gallery {
     display: flex;
     flex-wrap: wrap;
    /* Compensate for excess margin on outer gallery flex items */
     margin: -1rem -1rem;
}
 .gallery-item {
    /* Minimum width of 24rem and grow to fit available space */
     flex: 1 0 24rem;
    /* Margin value should be half of grid-gap value as margins on flex items don't collapse */
     margin: 1rem;
    /*box-shadow: 0.3rem 0.4rem 0.4rem rgba(0, 0, 0, 0.4);
    */
     overflow: hidden;
}
 .gallery-image {
     display: block;
     /*width: 100%;
     height: 100%;*/
     width: 400px;
     height: 250px;
     object-fit: cover;
     transition: transform 500ms ease-out;
     border-radius: 4px;
}
 .gallery-image:hover {
     transform: scale(1.10);
}
 @supports (display: grid) {
     .gallery {
         display: grid;
         grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
        /*grid-template-columns: auto auto auto auto;*/
         grid-gap: 2rem;
    }
     .gallery, .gallery-item {
         margin: 0;
         cursor: pointer;
    }
}
 body:not(.lg-from-hash) .lg-outer.lg-start-zoom .lg-item.lg-complete .lg-object{
    /*border: 2px solid #fff;*/
}

@media (max-width: 991.98px) {
    .gallery {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
        grid-gap: 1rem;
        justify-items: normal;
    }
}

@media (min-width: 1920px) and (max-width: 2560px) {
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    }
}

/* ============================ */
/* GALERIAS */
/* ============================ */
#all-galleries {
    padding-top: 10.5rem;
}

#all-galleries .text-page,
.heading-large {
    text-align: center;
    text-transform: uppercase;
    color: var(--color-black);
}

#all-galleries .heading-large {
    letter-spacing: 0.14em;
}

#all-galleries .text-page {
    line-height: 28px;
    margin-bottom: 0rem;
}

#latest-galleries .col-lg-6 {
    margin-top: 1.5rem;
}

.gallery-page {
    margin-top: 100px !important;
}

#latest-galleries h3 {
    line-height: 35px;
    color: var(--color-gray);
}

#latest-galleries p {
    line-height: 28px;
    color: var(--color-gray);
}

#latest-galleries .read-more a {
    padding-top: 1rem;
    padding-bottom: 1rem;
    text-transform: uppercase;
    color: var(--color-default) !important;
}

#latest-galleries hr {
    margin-top: 3rem;
    opacity: .15;
}

.all-galleries-card h4 {
    line-height: 29px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.gallery-page span.date {
    font-size: 12px;
    color: var(--color-gray);
    font-weight: 500;
}

.latest-news-content {
    margin-top: 2px;
    /*height: 100px;*/
    line-height: 28px;
    color: var(--color-gray);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.more-gallery {
    padding: 0px 0px 0px 0px;
    /*margin-bottom: 10px;
     margin-top: 50px;*/
}

.more-gallery .media {
    height: 125px;
}

.more-gallery .media-body {
    width: 100%;
    /*border-top: 1px solid var(--color-border);*/
    display: inline-block;
    content: '';
}

.more-gallery img {
    width: 150px;
    height: 100px;
}

.more-gallery .title-small,
{
line-height: 20px;
color: var(--color-gray);
}

.news-title span.date {
    font-size: 12px;
    color: var(--color-gray);
    font-weight: 500;
}

.title-small a {
    color: var(--color-gray);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.title-small a:hover {
    color: var(--color-gray);
}

.more-gallery .read-more a {
    padding-top: 1rem;
    /*padding-bottom: 1rem;*/
    text-transform: uppercase;
    color: var(--color-default) !important;
}

.link_hover:hover {
    text-decoration: underline;
}

@media all and (max-width: 1366px) {
    .latest-news-content {
        height: 120px;
        font-size: 22px;
    }
}

.gallery-box-image {
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: cover !important;
    background-position-x: center !important;
    border-radius: 4px;
}
.gallery-box-image {
    display: flex;
    justify-content: end;
    align-items: flex-end;
    width: 100%;
    height: 200px;
}

.gallery-img-page {
    display: flex;
    justify-content: end;
    align-items: flex-end;
    width: 100%;
    height: 380px;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: cover !important;
    background-position-x: center !important;
    border-radius: 4px;
}

.gallery-content{
    /*border-bottom: 1px solid var(--color-border);*/
}


.read-more-teste a {
    color: var(--color-default);
    text-transform: uppercase;
    margin: 0px;
    margin-top: 10px;
    padding-bottom: 20px;
}


.gallery-content .title {
    margin-top: 10px;
    line-height: 28px;
    height: 60px;
    color: var(--color-gray);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/*.news-box{
     border-bottom: 1px solid var(--color-border);
}*/

@media (max-width: 991.98px) {
    .gallery-img-page {
        height: 220px;
    }

    .gallery-content {
        font-size: 19px;
        height: 100px;
        margin-top: 0px;
        font-weight: 500;
    }

    .gallery-box-image {
        width: 133px;
        height: 90px;
        float: right;
        margin-top: 15px;
    }



    .gallery-content .title {
        color: #000;
        margin-top: 4px;
        font-size: 18px;
        line-height: 24px;
        height: auto;
        -webkit-line-clamp: 3;
    }
}


/* ============================ */
/* MOBILE - DESTAQUE */
/* ============================ */
@media (max-width: 991.98px) {
    #all-galleries {
        padding-top: 5rem;
    }

    #all-galleries .text-page {
        font-size: 18px;
        line-height: 22px;
    }

    #all-galleries .heading-large {
        font-size: 26px;
        line-height: 31px;
    }

    #all-galleries .intro-slogan {
        padding-top: 1rem;
    }

    #latest-galleries .date {}

    #latest-galleries h3 {
        margin-top: 0;
        font-weight: 500;
        font-size: 20px;
        line-height: 24px;
    }

    .gallery-page {
        margin-top: 0px !important;
    }

    #latest-galleries .read-more a {
        padding: 10px;
    }

    #latest-galleries hr {
        margin-top: 1rem;
        /*padding: 10px;*/
        border-bottom: none;
        margin-inline-start: 10px;
        margin-inline-end: 10px;
    }

    #latest-galleries img {
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
    }

    .latest-news-card h4 {
        font-size: 26px;
        line-height: 31px;
    }

    .latest-news-content {
        font-size: 20px;
        font-weight: 500;
        height: auto;
        margin-top: 0px;
        line-height: 24px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;

    }

    .last-news .title-small {
        font-size: 17px;
        line-height: 28px;
    }

    /* espaco noticia*/
    .last-news .media {
        height: auto;
    }

    .last-news {
        padding: 0px;
        margin-bottom: 5px;
        margin-top: 5px;
    }

    .news-border {
        border-block-end: 1px solid var(--color-border);
    }
}
