/**
 * @author: Procurios
 * @about:  mmt-meeting-list.css
 *          Default layout and structure settings of the meetling list snippet of mod_meeting2.
 */

/**
 * Generic settings, resets, defaults
 */

/** Reset lists */
.mmt-ml-meetings {
    margin: 0;
    padding: 0;
    list-style: none;
}

/** Contain floats / clearfix */
.mmt-clearfix:before, .mmt-clearfix:after {
    content: "\0020";
    display: block;
    height: 0;
    visibility: hidden;
}

.mmt-clearfix:after {
    clear: both;
}

.mmt-clearfix {
    zoom: 1;
}

/**
 * Search form
 */

.mmt-meeting-list form {
    margin-bottom: 1em;
    overflow: hidden;
    *zoom: 1;
}

.mmt-meeting-list label {
    position: absolute;
    left: -999em;
    top: -999em;
}

/** Reset all margins */
.mmt-meeting-list div.field,
.mmt-meeting-list div.fieldinput {
    float: left;
    width: auto;
    clear: none;
}

/** Set dimensions for search bar */
.mmt-meeting-list div.field {
    width: 80%;
}

.mmt-meeting-list div.fieldinput {
    width: 100%;
    margin: 0;
}

.mmt-meeting-list div.fieldinput input {
    width: 90%;
    height: auto;
}

/** Reset dimensions for submit section */
.mmt-meeting-list div.submit {
    width: auto;
}

/**
 * Pager
 */

.pbuic-pager {
    clear: both;
    margin-bottom: 1em;
}

/**
 * .mmt-meeting-list
 * Parent element, acts as container of all snippet related elements
 */

.mmt-meeting-list {
    height: 100%;
}

.mmt-meeting-list ol {
    clear: both;
}

.mmt-meeting-list ol li {
    margin-bottom: 2em;
    border: 1px solid #ddd;
    overflow: hidden;
    -webkit-transform: translateZ(0);
	transform: translateZ(0);
	transition: transform .1s;
}

@media screen and (min-width: 768px) {
    .mmt-meeting-list ol {
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }

    .mmt-meeting-list ol li {
        display: block;
        float: left;
        width: 48%;
        margin-right: 4%;
        margin-bottom: 2%;
    }

    .mmt-meeting-list ol li:nth-child(2n+2) {
        margin-right: 0;
        clear: right;
    }

    .mmt-meeting-list ol li:nth-child(2n+3) {
        clear: left;
    }
}

@media screen and (min-width: 1150px) {
    .mmt-meeting-list ol li:nth-child(1n),
    .mmt-meeting-list ol li {
        width: 23.5%;
        margin-right: 2%;
        clear: none;
    }

    .mmt-meeting-list ol li:nth-child(4n+4) {
        margin-right: 0;
        clear: right;
    }

    .mmt-meeting-list ol li:nth-child(4n+5) {
        clear: left;
    }

    .variant-subpage .mmt-meeting-list ol li:nth-child(1n),
    .variant-subpage .mmt-meeting-list ol li {
        width: 48%;
        margin-right: 4%;
        margin-bottom: 1em;
    }

    .variant-subpage .mmt-meeting-list ol li:nth-child(2n+2) {
        margin-right: 0;
        clear: right;
    }

    .variant-subpage .mmt-meeting-list ol li:nth-child(2n+3) {
        clear: left;
    }
}

.mmt-ml-meeting {
    position: relative;
}

.mmt-ml-meeting:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 38px;
    height: 34px;
    padding: .5em 0;
    text-indent: -999em;
    z-index: 50;
    background: #006b9c url(/ui/uck-2016/img/icons/icon--meetingWhite.svg) no-repeat 50% 50%;
    background-size: 24px;
    pointer-events: none;
}

.mmt-meeting-list .mmt-ml-first {
    border-top: 1px solid #ddd;
}

.mmt-ml-title-pane,
.mmt-ml-footer-pane {
    margin: 0 15px;
    padding: 15px 0;
}

.mmt-ml-desc-pane {
    margin: 0 15px;
}

.mmt-ml-description {
    padding-bottom: 15px;
}

/**
 * .mmt-ml-title-pane
 * Contains title, registration status and labels
 */

.mmt-ml-title-pane h3 {
    width: 100%;
    margin: 0;
    overflow-wrap: break-word;
    font-size: 1.3em;
    color: #11588c;
}

/** Date and location */
.mmt-ml-date-location {
    margin: 0 0 3px;
}

/** Meta data */
.mmt-ml-meta-data {
    margin: 0;
    font-size: 0.9em;
    color: #555;
}

.mmt-ml-meta-data span {
    display: block;
    float: left;
    white-space: nowrap;
    margin: 3px 10px 3px 0;
    padding-left: 20px;
    background: transparent url(../../../img/snippets/icon-registrations.png) no-repeat 0 5px;
}

.mmt-ml-meta-data .mmt-ml-registrations {
    padding-left: 18px;
}

.mmt-ml-meta-data .mmt-ml-labels {
    background-image: url(../../../img/snippets/icon-labels.png);
}

/**
 * .mmt-ml-desc-pane
 * Contains image and description
 */

.mmt-ml-meeting-image {
    position: relative;
    overflow: hidden;
    padding-top: 50%;
    z-index: 30;
}

.mmt-ml-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0 ;
    width: 100%;
}

/**
 * .mmt-ml-footer-pane
 * Contains call-to-actions
 */

.mmt-ml-footer-pane {
    padding: 0;
    border-top: 1px solid #e6e6e6;
}

@media (min-width: 768px) {
    .mmt-meeting-list ol li {
        padding-bottom: 95px;
    }

    .mmt-ml-footer-pane {
        position: absolute;
        height: 95px;
        max-width: 90%;
        bottom: 0;
    }
}

.mmt-ml-footer-pane p {
    margin: 0;
}

.mmt-ml-footer-pane a,
.mmt-ml-footer-pane span {
    display: block;
    float: left;
    overflow: hidden;
    max-width: 100%;
    padding: 10px 10px 10px 22px;
    white-space: nowrap;
    text-overflow: ellipsis;
    background: transparent url(../../../img/snippets/icon-read-more.png) no-repeat 0 14px;
}

.mmt-ml-footer-pane .mmt-ml-register {
    float: right;
    background-image: url(../../../img/snippets/icon-register.png);
}

/**
 * Changes when hovering on one meeting
 */

.mmt-meeting-list ol li:hover {
    cursor: pointer;
    -webkit-transform: scale(.95);
    transform: scale(.95);
}

/**
 * .mmt-meeting-list-simple
 */

.mmt-meeting-list-simple ol li {
    border: 0;
    margin-bottom: 1em;
    border-top: 1px solid #ddd;
}

.mmt-meeting-list-simple ol li:hover {
    background: transparent;
    border-color: #ddd;
    box-shadow: none;
}

.mmt-meeting-list-simple .mmt-ml-first {
    border-top: 0;
}

/** Containing link to meetin */
.mmt-meeting-list-simple ol a {
    display: block;
    padding: 3px 0;
    text-decoration: none;
    color: #000;
}

/** Location and date */
.mmt-meeting-list-simple .mmt-ml-date-location {
    margin-bottom: 0;
    font-size: .9em;
}

/** Meeting title */
.mmt-meeting-list-simple .mmt-ml-title {
    display: block;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/**
 * mmt-ml-meeting-inactive
 */

.mmt-ml-meeting-inactive:after {
    background-color: #585858;
}