
/*
(by guessing) Classes added to BODY depending on overall page type:
 on single event pages
  single-tribe_events
*/

/* + Header (links to adjacent or parent events/months) {{{ */

.tribe-events-back {
    margin: 0 20px 0 0;
    float: left;
}

.tribe-events-nav-previous {
    margin-right: 5px;
    float: left;
}

.tribe-events-nav-next {
    margin-left: 5px;
    float: right;
}

/*
.events-list .tribe-events-back.tribe-events-loop {
    margin: 0 auto 20px;
}
*/

/* + }}} */

/* + Month view {{{ */

/* + + Header (month/year name) {{{ */

#tribe-events-header {
    font-family: 'Roboto', sans-serif;
    margin: 0.83em 0 0.83em 0;
    //margin-bottom: .5em;
    text-align: center;
}

.tribe-events-month-title {
    display: inline;
}

/* + + }}} */

/* + + Calendar table {{{ */

table.tribe-events-calendar {
    clear: both;
    font-family: 'Roboto', sans-serif;
    margin: 0 0 0.6em 0;
    font-size: 14px;
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
    //border: 1px solid #bbb;
}


table.tribe-events-calendar th {
    background-color: #222;
    color: #eee;
    height: 10px;
    padding: 4px 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tribe-events-calendar td {
    height: 110px;
    width: 14.28%;
    vertical-align: top;
    padding: 0 0 0.5em 0;
    font-size: 12px;
    position: relative;
    border: 1px solid #bbb;
}
.tribe-events-calendar td.adjacent-month {
    border-width: 1px;
    border-color: #ccc;
    border-style: none;
    color: #ccc;
}

/* Day numbers */
.tribe-events-calendar div[id*='tribe-events-daynum-'],
.tribe-events-calendar div[id*='tribe-events-daynum-'] a {
    font-size: 14px;
    font-weight: normal;
    text-decoration: none;
}
.tribe-events-calendar td div[id*='tribe-events-daynum-'] {
    padding: 6px 9px;
    line-height: 1.2;
}

/* */
.tribe-events-calendar td a {
    text-decoration: none;
    word-wrap: break-word;
    font-weight: normal;
    line-height: 18px;
}
.tribe-events-calendar td.adjacent-month a {
    color: #ccc;
}

.tribe-events-month-event-title {
}
.tribe-events-month-event-title a {
    color: #008;
}

/* Text caption of an event inside a cell */
.tribe-events-calendar td .type-tribe_events {
    padding: 6px 12px;
}

/* + + }}} */

/* + }}} */

/* + Day view {{{ */

/*
  URL eg. .../whatson/2017-09-11/
  Clicking a date on the mini-month calendar leads here if there's more than one event on the day.
*/

body.tribe-events-day .tribe-events-list {
    /* Don't wrap content under end of sidebar */
    overflow: hidden;
}

body.tribe-events-day .type-tribe_events {
    margin-bottom: 2em;
}

body.tribe-events-day .tribe-events-list-event-title {
}

/* + }}} */

/* + Individual event post {{{ */

#event_main_content {
    /* Don't wrap content under end of sidebar */
    overflow: hidden;
}

.tribe-events-titleblock {
    display: flex;
    flex-direction: row;
    margin-bottom: 1em;
}

.tribe-events-titleblock-left {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tribe-events-single-event-title {
    /*margin-top: 1em;*/
    margin-bottom: 0;
    font-size: 2em;
}

.tribe-events-schedule {
    margin-bottom: 1em;
}

.tribe-events-schedule-details {
    line-height: 1;
    font-size: 1.5em;
}

.tribe-events-titleblock-right {
    align-self: flex-end;
}
.tribe-events-cost {
    font-size: 1.5em;
    margin-left: 10px;
    color: #fff;
    background-color: #333;
    padding: 0.55em;
}
.tribe-events-cost-link {
    text-decoration: none;
}
.tribe-events-cost-link .tribe-events-cost:hover {
    background-color: #ff0;
    color: #000;
    //border: 0.5em solid yellow;
    //padding: 0.05em;
}

/* + + Meta sections {{{ */

.tribe-events-event-meta {
    background-color: #fafafa;
    border: 1px solid #eee;
    border-radius: 3px;
    padding: 1.5em;
    margin-bottom: 1em;
}

.tribe-events-meta-group {
    /* Make meta groups appear side-by-side */
    display: inline-block;
    box-sizing: border-box;
    width: 49%;
    padding: 0 2% 0 0;
    vertical-align: top;
}

.tribe-events-meta-group .tribe-events-single-section-title {
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 0.5em;
}

.tribe-events-event-meta dl {
    margin-top: 0.5em;
    margin-bottom: 1.5em;
}

.tribe-events-event-meta dt {
    font-weight: bold;
    padding-right: 12px;
    width: auto;
}

.tribe-events-event-meta dd {
    margin-bottom: 0.25em;
    margin-left: 1em;
}


.single-tribe_events .tribe-events-event-meta {
    width: 100%;
    //margin: 30px -4% 30px 0;
}

/* Export links */

.single-tribe_events .tribe-events-cal-links {
    float: right;
    margin-right: 2em;
}

.single-tribe_events .tribe-events-cal-links a {
    background-color: #37f;
    color: #fff;
    border-radius: 3px;
    cursor: pointer;
    display: inline-block;
    font-family: sans-serif;
    //font-weight: 700;
    padding: 10px;
    text-decoration: none;
}

.single-tribe_events .tribe-events-gcal ,
.single-tribe_events .tribe-events-ical {
    font-style: italic;
}

/* + + }}} */

/* + }}} */

/* + List view {{{ */

.tribe-events-post {
    border: 1px solid grey;
    margin: 1em 0 1em 0;
    padding: 1em;
}

/* + }}} */

/* + Ajax indicators {{{ */

.tribe-events-ajax-loading {
    display: none;
    position: absolute;
    left: 50%;
    box-shadow: none;
}

.tribe-events-loading .tribe-events-ajax-loading {
    display: block;
}

.tribe-events-spinner {
    width: 32px;
    height: 32px;
    margin-left: -16px;
}

.tribe-events-spinner-medium {
    width: 24px;
    height: 24px;
    margin-left: -12px;
}

.tribe-events-spinner-small {
    width: 16px;
    height: 16px;
    margin-left: -8px;
}

/* + }}}

/* + Float clearing {{{ */

.clearfix:before,
.tribe-clearfix:before,
.clearfix:after,
.tribe-clearfix:after {
    content: '';
    display: table;
}

.clearfix:after,
.tribe-clearfix:after {
    clear: both;
}

.clearfix,
.tribe-clearfix {
    zoom: 1;
}

.tribe-clear {
    clear: both;
}

/* + }}} */

/* + Hidden things {{{ */

.tribe-events-visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/* + }}} */

/* OLD?...

   = Single Event Template Styles
   @ Template: single-event.php
=============================================*/

.single-tribe_events {
    padding: 0;
}

.single-tribe_events .tribe-events-schedule .recurringinfo {
    margin-right: 10px;
}

.tribe-events-single-event-description img.attachment-post-thumbnail {
    margin-left: auto;
    margin-right: auto;
    display: block;
    text-align: center;
}
