/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.iotd-date {
    margin: 20px 0;
}

.iotd-title {
    margin-bottom: 20px;
}

.iotd-content {
    margin-bottom: 60px;
}

.iotd-masonry {
    margin: 0 -20px;
}

.iotd-masonry-sizer {
    width: 100%;
}

.iotd-masonry-item {
    margin-bottom: 40px;
    padding: 0 20px;
    width: 100%;
}

.iotd-masonry-item img {
    width: 100%;
    height: auto;
}

.btn-iotd-more {
    margin-bottom: 40px;
}

/*Overlay*/
.iotd-masonry-item-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 100%;
    opacity: 0;
    transition: .5s ease;
    background-color: rgba(0,0,0, 0.7);
}

.iotd-masonry-item:hover .iotd-masonry-item-overlay {
    opacity: 1;
}

.iotd-masonry-item-overlay-holder {
    padding: 0 20px;
}

.iotd-masonry-item-overlay-text {
    color: white;
    font-size: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
}
/*End Overlay*/

/*Modal*/
.iotd-masonry-item-modal .modal-dialog {
    max-width: 70%;
}

.iotd-masonry-item-modal .modal-content {
    border-radius: 0px;
}

.iotd-masonry-item-modal .modal-body,
.iotd-masonry-item-modal .modal-footer {
    text-align: center;
}

.iotd-masonry-item-modal .modal-header,
.iotd-masonry-item-modal .modal-footer {
    background: #000;
    color: #fff;
}

.iotd-masonry-item-modal .modal-footer {
    display: block;
}

.iotd-masonry-item-modal .modal-header button.close {
    color: #fff;
}

.iotd-masonry-item-modal .modal-footer .modal-footer-byline {
    font-size: 14px;
}
/*End Modal*/

.iotd-byline {
    font-size: 15px;
    margin-top: 4px;
}

/* Media Queries */
@media (min-width: 768px) {
    .iotd-masonry-sizer {
        width: 33.333%;
    }

    .iotd-masonry-item {
        width: 33.333%;
    }
}