/*  Layout adjustments  */
.pageLayout__section > .pageLayout__actionContainer {
    margin: 40px 0 -100px;
}

.pageLayout__header.news__detail {
    margin-top: -60px;
}

.pageLayout-withoutAction {
    margin-top: -60px !important;
    margin-bottom: -40px !important;
}

.pageLayout__NoEventsGrid {
    grid-template-areas: "h h h h h h h h h h h h" "c c c c c c c c c c c c" !important;
}

@media (max-width: 991px) {
    .pageLayout__section > .pageLayout__actionContainer {
        margin: 40px 0 -50px !important;
    }

    .pageLayout__header.news__detail {
        margin-top: -30px;
    }
}

/* All events */
div.allEventsShortcut > a {
    color: #b3c9db;
    font-family: PF Handbook Pro, sans-serif;
    text-transform: uppercase;
}

div.allEventsShortcut > a:hover {
    color: #004a87;
}

/*  Gallery images  **/
.gallery-iamge img {
    border-radius: 3px;
}

.gallery-iamge figcaption {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    width: 100% !important;
}

.gallery-iamge figcaption:before {
    width: 0 !important;
}

@media (min-width: 990px) {
    .template-media-1 {
        grid-template-columns: repeat(1, 1fr) !important;
    }

    .template-media-2 {
        grid-template-columns: repeat(2, 1fr) !important
    }

    .template-media-3 {
        grid-template-columns: repeat(3, 1fr) !important
    }

    .template-media-4 {
        grid-template-columns: repeat(4, 1fr) !important
    }

    .template-media-5 {
        grid-template-columns: repeat(5, 1fr) !important
    }

    .template-media-6 {
        grid-template-columns: repeat(6, 1fr) !important
    }

    .template-media-7 {
        grid-template-columns: repeat(7, 1fr) !important
    }

    .template-media-8 {
        grid-template-columns: repeat(8, 1fr) !important
    }

    div.allEventsShortcut {
        text-align: left;
        margin-top: 20px;
        margin-bottom: -40px;
    }
}

@media (max-width: 990px) and (min-width: 768px) {
    .template-media-1,
    .template-media-2 {
        grid-template-columns: repeat(1, 1fr) !important
    }

    .template-media-3,
    .template-media-4,
    .template-media-5 {
        grid-template-columns: repeat(2, 1fr) !important
    }

    .template-media-6,
    .template-media-7,
    .template-media-8 {
        grid-template-columns: repeat(3, 1fr) !important
    }

    div.allEventsShortcut {
        text-align: left;
        margin-top: 20px;
        margin-bottom: -40px;
    }
}

@media (max-width: 768px) {
    .template-media-1,
    .template-media-2,
    .template-media-3,
    .template-media-4,
    .template-media-5,
    .template-media-6,
    .template-media-7,
    .template-media-8 {
        grid-template-columns: repeat(1, 1fr) !important
    }

    div.allEventsShortcut {
        text-align: center;
        border-top: 1px solid #b3c9db;
        padding-top: 20px;
        margin-top: 20px;
        margin-bottom: -40px;
    }
}

.gallery-thumbnails {
    display: flex;
    flex-wrap: wrap;
    border-radius: 3px;
}

.gallery-thumbnails > figure > div {
    display: block;
    border-radius: 3px;
    background-size: cover;
    background-position: 50%;
    overflow: hidden;
    height: 60px;
    width: 60px;
    margin: 0 10px 10px 0;
}

/* Calendar view */
.calendar-week-event-block {
    float: left;
    clear: both;
    width: 100%;
    padding: 10px;
}

.calendar-week-event-block:hover {
    background-color: rgba(236, 236, 236, 0.5);
}

.calendar-week-event {
    float: left;
    margin-left: 10px;
    margin-bottom: 30px;
}

.table-calendar-month {
    margin: -20px 0 -20px;
}

.table-calendar-month tr:first-child > td {
    border-top: none !important;
}

.table-calendar-month td {
    width: 14.3%;
    position: relative;
}

.table-calendar-month td:before {
    content: "";
    display: block;
    padding-top: 50%;
}

.table-calendar-month td:hover {
    background-color: rgba(236, 236, 236, 0.2);
}

.table-calendar-month td.hasEvents {
    background-color: #E0E9F1;
}

.table-calendar-month td.hasEvents:hover {
    background-color: rgba(224, 233, 241, 0.8);
}

.table-calendar-month td.selectedDay {
    background-color: #004a87;
}

.table-calendar-month td.selectedDay:hover {
    background-color: rgba(0, 74, 135, 0.8);
}

.table-calendar-month td.selectedDay {
    color: #ffffff;
}

.table-calendar-month td.selectedDay > a {
    font-weight: bold;
    color: #ffffff;
}

/*  News  */
.news-backlink-wrap {
    max-width: 150px;
    margin-top: 60px;
}

/*  Align CSS Styled  */
.align-left {
    text-align: left;
}

.align-center {
    text-align: center;
}

.align-right {
    text-align: right;
}

/*  Remove inner padding  */
.studiesCard > .pageLayout__section {
    margin-bottom: 0 !important;
}

/* Homepage top image */
.homeHeader, .pageHeader {
    padding-top: unset !important;
}

.homeHeader__contentSlide {
    padding-top: 140px !important;
    min-height: calc(90vh - 400px) !important;
}

/* UnitManagerInfo image */
.personCard__image img {
    height: auto;
}

.menuContainer {
    z-index: 900;
}

.menuRibbon {
    position: absolute;
    top: 100%;
    width: unset;
    right: 0;
}

.menuRibbon__logo img,
.footer__logo img {
    max-width: 100%;
    height: auto;
}

.menuRibbon__controlContainer {
     align-self: flex-start;
     justify-self: flex-end;
 }

.menuRibbon__upperControls {
    justify-content: flex-end;
}

@media (max-width: 1366px) {
    .menuRibbon__upperControls {
        margin-top: 3px;
        margin-bottom: 3px;
    }

    .menuRibbon__logo {
        width: 200px !important;
    }
}

.footer__menu {
    grid-template-rows: repeat(auto-fit, 52px);
    grid-auto-rows: 52px;
}

.topLogo {
    position: relative;
    z-index: 500;
}

.menuRibbon__logo {
    width: 270px;
}

.genericText figure img {
    height: auto;
}
