.galeria{
    text-align: center;

    width: 90%;
    margin: 20px auto;
    overflow: hidden;

    img{
        border-radius: 50px;
    }
}

@media (min-width: 768px){
    .galeria{
        width: 80%;
    }
}

.controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    z-index: 2;
    pointer-events: none;
    visibility: hidden;
}
.control {
    position: absolute;
    height: 100%;
    cursor: pointer;
    pointer-events: auto;
    visibility: visible;
    text-align: center;
}
.control:before {
    position: absolute;
    width: 40px;
    bottom: 0;
    right: 0;
    background-color: var(--laranja-claro-acinzentado);
    border-radius: 20px;
}
.prev {
    right: 50px;
}
.prev:before {
    background-image: url('../img/arrow-left-blue.webp');
    background-size: 20px 20px;
    background-position: center;
    background-repeat: no-repeat;
    display: inline-block;
    width: 40px; 
    height: 40px;
    content:"";
}
.next {
    right: 0;
}
.next:before {
    background-image: url('../img/arrow-right-blue.webp');
    background-size: 20px 20px;
    background-position: center;
    background-repeat: no-repeat;
    display: inline-block;
    width: 40px; 
    height: 40px;
    content:"";
}
.carousel {
    width: 100%;
    height: 300px;
    margin: 0 auto;
    padding-left: 0;
    list-style: none;
}

@media screen and (min-width: 768px){
    .carousel {
        height: 500px;
    }
}

.carouselItem {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    transform: translate(-100%, 0);
}
.carouselItem.active ~ * {
    transform: translate(200%, 0);
}
.carouselItem.active + * {
    transform: translate(100%, 0);
}
.carouselItem.active {
    position: relative;
    transform: translate(0, 0);
}
.control {
    width: 30px;
    font-size: 3.5em;
}
*, *:before, *:after {
    box-sizing: border-box;
    position: relative;
}
*:before, *:after {
    pointer-events: none;
}
.carouselItem img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.carouselItem:before {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


/* || ImageBox */
body.imagebox {
    overflow: hidden;
}
img[data-imagebox] {
    cursor: pointer;
}
#imagebox {
    z-index: 9;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.9);
}
#imagebox * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
#imagebox .ib-loading {
    z-index: 2;
    position: fixed;
    top: 50%;
    left: 50%;
    -webkit-animation: ibLoading 1s linear infinite;
    animation: ibLoading 1s linear infinite;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #555;
    border-radius: 50%;
    width: 30px;
    height: 30px;
}
#imagebox .ib-content {
    z-index: 8;
    background-color: transparent;
    position: relative;
    width: 100%;
    height: 100%;
}
#imagebox .ib-content .ib-topbar {
    z-index: 9;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
}
#imagebox .ib-content .ib-topbar .ib-indexes {
    color: white;
    font-size: 1em;
    align-items: center;
    padding: 10px;
    width: 100%;
}
#imagebox .ib-content .ib-topbar .ib-buttons {
    display: flex;
    justify-content: flex-end;
    flex-flow: row nowrap;
    width: 100%;
}
#imagebox .ib-content .ib-topbar .ib-buttons .ib-button {
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: ease-in-out 0.2s;
    text-align: center;
}
#imagebox .ib-content .ib-topbar .ib-buttons .ib-button.ib-close {
    background-image: url('../img/icon-close.webp');
    background-repeat: no-repeat;
    background-size: cover;
    margin: 20px;
}
#imagebox .ib-content .ib-image-wrapper {
    opacity: 0;
    z-index: 8;
    position: fixed;
    top: 10%;
    right: 50%;
    bottom: 0;
    left: 0;
    transition: opacity 0.6s;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
}
#imagebox .ib-content .ib-image-wrapper img.ib-image {
    z-index: 8;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 90vh;
    min-width: 48px;
    min-height: 48px;
    -o-object-fit: contain;
    object-fit: contain;
    transition: ease-in-out 0.6s;
    display: block;
}
#imagebox .ib-content .ib-image-wrapper img.ib-hidden {
    opacity: 0;
}
#imagebox .ib-content .ib-image-wrapper img.ibFadeOut {
    animation: ibFadeOut 0.6s forwards;
}
#imagebox .ib-content .ib-image-wrapper img.ibFadeIn {
    animation: ibFadeIn 0.6s forwards;
}
#imagebox .ib-content .ib-control div {
    z-index: 9;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--azul-escuro);
    background-size: 32px 32px;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px;
    cursor: pointer;
    transition: ease-in-out 0.4s;
}
#imagebox .ib-content .ib-control div[disabled] {
    cursor: default;
    background-color: darkgray;
    box-shadow: none;
    pointer-events: none;
}
#imagebox .ib-content .ib-control .ib-control-left,
#imagebox .ib-content .ib-control .ib-control-right {
    box-shadow: 2px 0 16px rgba(0, 0, 0, 0.9);
    height: 100px;
}
#imagebox .ib-content .ib-control .ib-control-left {
    left: 0;
    background-image: url('../img/icon-arrow-left.webp');
}
#imagebox .ib-content .ib-control .ib-control-right {
    right: 0;
    background-image: url('../img/icon-arrow-right.webp');
}

@-webkit-keyframes ibLoading {
    0% {
        -webkit-transform: rotate(0deg);
        -webkit-transform: translate(-50%, -50%);
    } 100% {
        -webkit-transform: rotate(360deg);
        -webkit-transform: translate(-50%, -50%);
    }
}
/* animações e efeitos */
@keyframes ibLoading {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    } 100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
@keyframes ibFadeIn {
    from {
        opacity: 0;
    } to {
        opacity: 1;
    }
}
@keyframes ibFadeOut {
    from {
        opacity: 1;
    } to {
        opacity: 0;
    }
}

@media screen and (max-width: 720px) {
    #imagebox .ib-content .ib-description {
        padding: 45px;
    }
}
@media (max-width: 767.98px){
    #imagebox .ib-content .ib-control .ib-control-right,
    #imagebox .ib-content .ib-control .ib-control-left{
        height: 20%;
    }
}