.caf-grid-foto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-template-rows: 1fr;
    grid-gap: 40px;
}

@media (min-width: 1200px) {
    .caf-grid-foto {
        grid-template-columns: repeat(auto-fit, minmax(300px, 343.333px));
    }
}

.caf-item-foto {
    background-repeat: no-repeat;
    background-size: contain;
    background-position: top center;
    display: flex;
    position: relative;
    background-color: #272727;
}

.fa-clone {
    position: absolute;
    font-size: 1.6rem;
    color: #ffffffdb;
    right: 10px;
    top: 10px;
    filter: drop-shadow(-4px 5px 5px rgba(64, 84, 115, 1));
}

.fa-clone path {
    stroke: #000000;
    stroke-width: 10;
}

.caf-item-foto:before {
    content: "";
    display: block;
    height: 0;
    width: 0;
    padding-bottom: calc(2 / 3 * 100%);
}

.caf-barra-foto {
    background-color: black;
    width: 100%;
    height: 38px;
    position: absolute;
    bottom: 0;
    padding: 8px;
    padding-left: 10px;
}

.fa-expand-arrows-alt {
    font-size: 1rem;
}

.fa-heart {
    font-size: 0.8rem;
    vertical-align: -2%;
}

.caf-likeit {
    background-color: #858585;
    width: 24px;
    height: 24px;
    text-align: center;
    display: inline-block;
    cursor: pointer;
}

.naranja-like {
	background-color: #ff7038 !important;
}

.caf-btn-like {
	display: flex;
}

.caf-votos-totales {
	font-size: 0.65rem;
	background-color: #fff;
	height: 24px;
	padding: 0 8px;
	line-height: 2.2;
	color: #272727;
	margin-right: 0.5rem;
	display: none;
}

.caf-votos-block {
display: block;
}

.caf-item-foto .modal-content,
#photoReviewModal .modal-content {
    border-radius: 0px;
    background-color: transparent;
    border: 0px;
}

.caf-item-foto .close,
#photoReviewModal button.close {
    position: absolute;
    right: -10px;
    top: -70px;
    font-size: 1.5rem;
    padding-bottom: 3px;
    border: 1px solid #fff;
    border-radius: 200px;
    width: 50px;
    height: 50px;
    text-shadow: 0 0px 0 #fff;
    color: #fff;
    opacity: 1;
}

.caf-grid-foto .caf-item-foto .close {
    z-index: 10;
}

.caf-item-foto .modal-dialog {
    max-width: 100%;
}

.caf-modal-body {
    display: flex;
    flex-direction: column;
}

.caf-modal-wrap-2 {
    margin-left: 0;
    white-space: nowrap;
}

.caf-modal-wrap-centered {
    margin: auto;
    white-space: nowrap;
}

@media (min-width: 780px) {
    .caf-item-foto .modal-dialog {
        max-width: 780px;
    }
}

@media (min-width: 1200px) {
	.caf-item-foto .close,
    #photoReviewModal button.close {
        right: -60px;
        top: 0px;
    }

    .caf-modal-body {
        flex-direction: row;
    }

    .caf-modal-wrap-2 {
        margin-left: auto;
    }
}

.modal-backdrop {
    opacity: 0.8 !important;
}

.caf_icon_modal {
    font-size: 1.2rem;
}

.modal.show .modal-dialog {
    margin-top: 5rem;
}

.caf-modal-share {
    line-height: 1;
    margin-right: 24px; /* 10px; */
}

.carousel-control-next,
.carousel-control-prev {
    width: 2%;
    /*opacity: 0.8;*/
}

.caf-item-foto .carousel-control-prev {
    left: -30px;
}

.caf-item-foto .carousel-control-next {
    right: -30px;
}

.modal img {
    max-height: 510px;
    object-fit: contain;
}

.foto-modal-bg {
    width: 100%;
    background-color: #272727;
}

.caf-votacion h5 {
    font-size: 1.3rem;
}

.caf-votacion h3 {
    font-weight: 100;
    font-size: 1.5rem;
}

.caf-votacion h1 {
    font-family: "Raleway", sans-serif;
    font-size: 2.2rem;
}

.caf-votacion p {
    margin-top: 1rem;
}

.caf-votacion img {
    width: 100%;
}

.caf-voto-confirmar {
    position: fixed;
    display: inline-block;
	padding: 1rem 2rem;
    bottom: 0;
    left: 50%;
	width: 95%;
    transform: translate(-50%, 0);
    background-color: #fff;
    border: 4px solid #ff7038;
	border-radius: 0.6rem;
	z-index: 20;
    box-shadow: rgba(255, 255, 255, 0.1) 0px 1px 1px 0px inset, rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
}

.caf-voto-gracias {
    position: fixed;
    display: inline-block;
    padding: 1rem 2rem;
    top: 8em;
    left: 50%;
    width: 60%;
    transform: translate(-50%, 0);
    background-color: #fff;
    border: 4px solid #ff7038;
    border-radius: 0.6rem;
    z-index: 20;
    box-shadow: rgba(255, 255, 255, 0.1) 0px 1px 1px 0px inset, rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
}


.caf-voto-confirmar-minimizado {
    position: fixed;
    display: none;
    padding: 1rem 1rem;
    bottom: -1rem;
    right: 6rem;
    width: 16rem;
    background-color: #fff;
    border: 4px solid #ff7038;
    border-radius: 0.6rem;
    z-index: 20;
    box-shadow: rgba(255, 255, 255, 0.1) 0px 1px 1px 0px inset, rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
}

.caf-voto-confirmar-minimizado.mostrar {
    display: inline-block;
}
.caf-voto-confirmar .minimize-button,
.caf-voto-confirmar-minimizado .maximize-button {
    position: absolute;
    top: 0.5em;
    right: 1em;
    cursor: pointer;
}

.caf-voto-confirmar-minimizado .btn {
    padding: inherit;
}

.caf-voto-confirmar-minimizado .voto-min-text {
    display: inline-block;
}

@media (min-width: 990px) {
    .caf-voto-confirmar {
        padding: 2rem 3rem;
        width: auto;
    }
}


@media (max-width: 780px) {
    .modal-open .modal {
        padding-right: 0 !important;
    }

    .modal-dialog {
        padding: 0 25px !important;
    }

    .caf-item-foto .carousel-control-prev {
        left: -25px;
    }

    .caf-item-foto .carousel-control-next {
        right: -25px;
    }

    .carousel-control-next, .carousel-control-prev {
        width: 4% !important;
    }

    .caf-modal-wrap-2 {
        margin-top: 1rem;
    }
}

/****************/
/* CUSTOM RULES */
/****************/

.modal-backdrop {
    background-color: #000;
    display: block !important;
}

.close {
    font-weight: 700;
}

:is(#contestGrid) .close span {
    position: initial;
}

.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    width: 100%;
    align-items: stretch;
    justify-content: space-between;
    border-top: 1px solid;
    padding-top: 5px;
    border-radius: 0rem;
    margin-left: 0px;
}

.pagination .current.prev {
    display: inline-block;
    background-color: #fff0;
    border: 0px solid #fff0;
    line-height: 1.25;
    padding-top: 8px;
}

.pagination .active {
    color: #000;
    text-align: center;
}

.pagination .active::before {
    content: "\a0";
    display: block;
    border-top: 5px solid #28658e;
    height: 16px;
    width: 40px;
    margin-top: -8px;
}

.pagination .page-link {
    position: relative;
    display: inline-block;
    padding: .5rem .75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: #000;
    background-color: #fff0;
    border: 0px solid #fff0;
}

.pagination .disabled {
    color: #999;
}

#photoReviewModal .review{
    display: inline-block;
    min-height: auto;
}

#photoReviewModal .previewThumb {
    max-width: 12em;
}

#photoReviewModal .wrapper {
    min-height: 18em;
}

.trash-can {
    margin: auto;
}

h3.gracias,
h5.reviewInfo {
    color: #f8f9fa !important;
    margin-top: 8rem;
    display: none;
    padding-left: 2em;
    padding-right: 2em;
}

h6.info {
    color: #f8f9fa !important;
    padding-left: 2em;
    padding-right: 2em;
    font-weight: 400;
}

/* Reporte de Votos */
.caf-votacion-reporte table {
    width: 100% !important;
}

.caf-votacion-reporte table .preview-wrapper{
    cursor: pointer;
    position: relative;
    text-align: end;
}

.caf-votacion-reporte table .caf-item-foto::before {
    content: unset;
}

.caf-votacion-reporte table .caf-item-foto .close span {
    position: unset;
}

.caf-votacion-reporte .dataTables_wrapper #votesTable_filter input {
    background-color: #f2f4f4;
}


.caf-ampliar-foto {
    width: 100%;
    height: 84%;
}

.caf-autor-foto {
    font-size: .7rem;
    line-height: 2;
}
