/* --------------------------------------------------------------
hmdap.alpine.dev.br lib/css/fotos.css
-------------------------------------------------------------- */
.page-section {
    padding: 4rem 1rem 0 1rem;
}

.portfolio-item {
    height: 100%;
}

.portfolio-item .portfolio-link {
    display: block;
    overflow: hidden;
    border-radius: .6rem;
    position: relative;
}

.portfolio-item .img-fluid {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.portfolio-caption {
    text-align: center;
    padding-top: 1rem;
}

.portfolio-caption-heading {
    font-weight: 700;
}

.portfolio-modal .modal-dialog {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-modal .modal-content {
    border: 0;
    border-radius: 1rem;
    padding: 1rem 0;
}

.portfolio-modal .modal-body {
    text-align: center;
    padding: 2rem 1rem;
}

.close-modal {
    cursor: pointer;
    display: flex;
    justify-content: flex-end;
    padding: 0 1.25rem;
}

.close-modal img {
    width: 32px;
    height: 32px;
}

.portfolio-modal .carousel-wrap {
    position: relative;
}

.portfolio-modal .carousel-inner {
    border-radius: .85rem;
    overflow: hidden;
    background: #f8f9fa;
}

.portfolio-modal .carousel-item img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    background: #f8f9fa;
    display: block;
}

.zoom-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.portfolio-modal .carousel-control-prev,
.portfolio-modal .carousel-control-next {
    width: 12%;
}

.portfolio-modal .carousel-control-prev-icon,
.portfolio-modal .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, .45);
    border-radius: 50%;
    background-size: 60% 60%;
    width: 3rem;
    height: 3rem;
}

.foto-legenda {
    padding: 0 1rem 1rem 1rem;
    font-size: .96rem;
    color: #6c757d;
    text-align: center;
    line-height: 1.5;
    min-height: 60px;
}

.thumbs-wrap {
    display: flex;
    gap: .65rem;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-top: 1rem;
    padding: .2rem 0 .5rem 0;
    scrollbar-width: thin;
}

.thumbs-wrap::-webkit-scrollbar {
    height: 8px;
}

.thumbs-wrap::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.25);
    border-radius: 999px;
}

.thumb-btn {
    flex: 0 0 auto;
    padding: 0;
    border: 2px solid transparent;
    border-radius: .7rem;
    overflow: hidden;
    background: #fff;
    width: 84px;
    height: 84px;
    transition: .2s ease;
    opacity: .82;
}

.thumb-btn:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.thumb-btn.active {
    border-color: #0d6efd;
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, .16);
}

.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.zoom-modal .modal-dialog {
    max-width: 95vw;
}

.zoom-modal .modal-content {
    background: rgba(0, 0, 0, .94);
    border: 0;
    border-radius: 1rem;
}

.zoom-body {
    padding: 1rem;
    text-align: center;
}

.zoom-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.zoom-caption {
    color: #fff;
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.5;
}

.zoom-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 30;
}

@media (max-width: 767.98px) {
    .portfolio-item .img-fluid {
        height: 220px;
    }

    .portfolio-modal .modal-body {
        padding: 1.5rem .75rem;
    }

    .thumb-btn {
        width: 68px;
        height: 68px;
    }

    .foto-legenda {
        min-height: auto;
        font-size: .92rem;
    }
}