﻿.image-content-tile .card {
    width: 100%;
}

.image-content-tile .inactive-tile:after {
    content: ' ';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: rgba(255, 255, 255, 0.75);
}

.image-content-tile .card__card {
    position: relative;
    display: flex;
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
}

.image-content-tile__tile {
    overflow: hidden;
}

.image-content-tile .image-overlay {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    z-index: 1;
    background: linear-gradient( 0deg, rgba(2, 9, 13, 0.75) 0%, rgba(2, 9, 13, 0) 100%);
}

.image-content-tile__main .card__card {
    min-height: 550px;
}

.image-content-tile__tile .card__card {
    min-height: 640px;
}

.image-content-tile .card__image {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 0;
    overflow: hidden;
}

.image-content-tile img {
    transition: transform 1s;
}

.image-content-tile .card__title {
    font-weight: 400;
}


.image-content-tile .card__content {
    position: absolute;
    bottom: 0;
    padding: 0 25px 15px;
    color: #fff;
    z-index: 2;
    max-width: 1000px;
}

.image-content-tile .card__content .card__title {
    line-height: 1;
}

.image-content-tile .card__content p {
    line-height: 1.4;
    opacity: 0;
    max-height: 0;
    transition: all 0.35s cubic-bezier(0.75, 0, 0.25, 1);
}

.image-content-tile a:hover img {
    transform: scale(1.05, 1.05);
}

.image-content-tile__main a:hover img {
    transform: scale(1.02, 1.02);
}


.image-content-tile a:hover p {
    opacity: 1;
    max-height: 300px;
}

.image-content-tile .admin-buttons {
    position: absolute;
    top: 5px;
    right: 12px;
    z-index: 3;
}

.image-content-tile .admin-buttons a {
    padding: 15px;
}

.image-content-tile .admin-form .card__content {
    width: 100%;
    max-width: 100%;
}

.image-content-tile .admin-form label {
    color: #fff;
    margin-top: 0;
}

.image-content-tile .admin-form textarea,
.image-content-tile .admin-form input[type=text] {
    background: rgba(255,255,255,0.3);
    border: none;
    color: white;
    display: block;
    width: 100%;
}

.image-content-tile .admin-form input[type=text] {    
    padding: 5px 10px;
}

.image-content-tile .admin-form textarea {
    padding: 5px 10px;
    height: 100px;
}

@media (max-width: 1440px) {
    .image-content-tile__main .card__card {
        min-height: 250px;
    }

    .image-content-tile__tile .card__card {
        min-height: 340px;
    }

    .image-content-tile .card__content p {
        opacity: 1;
        max-height: 300px;
    }

    .image-content-tile .image-overlay {
        height: 80%;
    }
}