﻿@import './variables.css';

.calendar.section {
    background: var( --color-white);
    color: var( --color-black);
    width: auto;
    height: auto;
    margin-top: var(--spacing-sm);
    margin-block-end: var(--spacing-xl);
    font-size: var(--font-size-s);
}


@media screen and (min-width: 1200px) {
    .calendar.section .kalendarium.sub-section .more-events {
        display: none;
    }
}

.kalendarium .list-all {
    font-weight: 400;
    text-transform: none;
    font-size: 0.875em;
}

    .kalendarium .list-all::before {
        font-family: font-awesome;
        content: "\f105";
        margin: 0 0.3em;
        font-size: 1.1em;
        display: inline-block;
    }


@media screen and (min-width: 700px) {
    .calendar.section .kalendarium.sub-section .title {
        visibility: hidden;
    }

    .calendar.section {
        margin-top: var(--spacing-smm);
        margin-block-end: var(--spacing-big-xl);
    }
}

@media screen and (min-width: 1200px) {

    .calendar.section {
        margin-top: var(--spacing-xxl);
        margin-block-end: var(--spacing-xxxl);
    }
}

.calendar.section .content .mobile-heading, .calendar.section .content .desktop-heading {
    padding: 0 var(--spacing-xxs);
    margin-bottom: 4px;
}

.calendar-section.landing .mobile-heading, .calendar-section.landing .desktop-heading {
    margin-bottom: 4px;
}


@media screen and (min-width: 700px) {
    .calendar.section .content .mobile-heading, .calendar.section .content .desktop-heading {
        margin-bottom: 2px;
    }
}

@media screen and (min-width: 1200px) {
    .calendar.section .content .mobile-heading, .calendar.section .content .desktop-heading {
        margin-bottom: 28px;
    }

    .calendar-section.landing .desktop-heading {
        margin-bottom: 28px;
    }
}


.calendar.section .content .desktop-heading {
    display: none;
}

.calendar.section .kalendarium.sub-section .calendar-list li .when, .calendar-section.landing .calendar-list li .when {
    background-color: var(--color-bluishCyan-200);
    width: 75px;
    height: 63px;
    border-radius: 1px;
    color: var(--color-white);
    font-size: var(--font-size-);
    position: relative;
    margin-left: 3%;
    font-family: 'Crimson Pro';
    margin-right: 4%;
    text-align: center;
}

.calendar.section .content .more-events {
    margin-top: var(--spacing-m);
}

@media screen and (min-width: 1200px) {
    .calendar.section .content .desktop-heading {
        display: block;
    }

    .calendar.section .content .mobile-heading {
        display: none
    }
}

.calendar.section .kalendarium.sub-section .more-events {
    text-align: center;
}


.calendar-list > li {
    margin: 12px 0 0;
}

    .calendar-list > li:last-child {
        margin-bottom: 0px;
    }

.calendar-list .day {
    display: block;
    font-size: 30px;
    line-height: 0.42em;
    font-weight: 600;
    padding-top: 16px;
    padding-bottom: 4px;
    font-family: 'Crimson';
}

.calendar-list .month {
    font-size: 18px;
    letter-spacing: 0.08em;
    line-height: 1.0em;
    letter-spacing: -0.012em;
    font-weight: 400;
    font-family: 'Crimson';
}

.calendar-list .time {
    line-height: 1.0em;
    font-size: 0.96em;
    letter-spacing: 0.00em;
    font-weight: 400;
    letter-spacing: 0.012em;
}

.calendar-list .what {
    display: block;
    color: inherit;
    line-height: 1.3;
    margin-top: 0.12em;
    letter-spacing: 0.012em;
    font-family: 'Open sans';
    font-size: 15px;
}

.js .calendar-list li:hover .what {
    text-decoration: underline;
}

.kalendarium .list-all {
    font-weight: 400;
    text-transform: none;
    font-size: 0.875em;
}

    .kalendarium .list-all::before {
        font-family: font-awesome;
        content: "\f105";
        margin: 0 0.3em;
        font-size: 1.1em;
        display: inline-block;
    }


@media screen and (min-width: 700px) {
    .calendar.section .kalendarium.sub-section .title {
        visibility: hidden;
    }
}


.calendar.section .kalendarium.sub-section .calendar-list, .calendar-section.landing .calendar-list {
    display: grid;
    grid-gap: 0;
    grid-template-columns: repeat(1, 1fr);
    max-width: 100%;
    align-self: center;
    padding-bottom: var(--spacing-xxs);
    margin-right: var(--spacing-xxxs);
}

    .calendar.section .kalendarium.sub-section .calendar-list li, .calendar-section.landing .calendar-list li {
        grid-auto-flow: column;
        border-bottom: 1px solid transparent;
        border-image: linear-gradient(to right, rgba(255,255,255) 3%, rgba(204,204,204) 3% 97%, rgba(255,255,255) 97%);
        border-image-slice: 1;
        font-family: 'Open Sans';
        height: 100%;
    }
    .calendar.section .kalendarium.sub-section .calendar-list a, .calendar-section.landing .calendar-list a {
        -webkit-flex: 1; /* Safari 6.1+ */
        flex: 1;
        display: flex;
        padding-top: 25px;
        padding-bottom: 10px;
        padding-right: var(--spacing-xxxs);
    }
        .calendar.section .kalendarium.sub-section .calendar-list a:hover, .calendar-section.landing .calendar-list a:hover {
            text-decoration: none;
        }

            .calendar.section .kalendarium.sub-section .calendar-list a:hover .what, .calendar-section.landing .calendar-list a:hover .what{
                text-decoration: underline;
            }

    .calendar.section .kalendarium.sub-section .calendar-list li:nth-child(1), .calendar-section.landing .calendar-list li:nth-child(1) {
        border-top: 1px solid var(--color-gray-300);
    }

@media screen and (min-width: 700px) {
    .calendar.section .kalendarium.sub-section .calendar-list li, .calendar-section.landing .calendar-list li{
        border-bottom: 1px solid var(--color-gray-300);
        border-image-slice: 2;
        margin-left: var(--spacing-xxxs);
        width: 98%;
    }
}


@media screen and (min-width: 1200px) {
    .calendar.section .kalendarium.sub-section .calendar-list li:nth-child(-n+3) {
        border-top: 1px solid var(--color-gray-300);
    }
}

.calendar.section .kalendarium.sub-section .calendar-list :nth-child(n+4), .calendar-section.landing .calendar-list :nth-child(n+4) {
    display: none;
}


.calendar.section .kalendarium.sub-section .calendar-list li .time, .calendar-section.landing .calendar-list li .time {
    font-size: var(--font-size-xs);
    font-family: 'Open Sans';
}

.calendar.section .kalendarium.sub-section .list-all, .calendar-section.landing .list all {
    text-transform: uppercase;
    bottom: 10px;
    width: 20%;
    margin-left: 25%;
    height: auto;
}


@media screen and (min-width: 700px) {
    .calendar.section .kalendarium.sub-section .calendar-list li:nth-child(-n+2), .calendar-section.landing .calendar-list li:nth-child(-n+2) {
        border-top: 1px solid var(--color-gray-300);
    }

    .calendar.section .kalendarium.sub-section .calendar-list :nth-child(n+4), .calendar-section.landing .calendar-list :nth-child(n+4) {
        display: block;
    }

        .calendar.section .kalendarium.sub-section .calendar-list :nth-child(n+4) a, .calendar-section.landing .calendar-list :nth-child(n+4) a{
            display: flex;
        }

    .calendar.section .kalendarium.sub-section .title, .calendar-section.landing .title {
        font-size: var(--font-size-m);
        margin-left: 40%;
    }

    .calendar.section .kalendarium.sub-section .calendar-list, .calendar-section.landing .calendar-list {
        grid-template-columns: repeat(2, 1fr);
        padding-top: 4px;
    }

    .calendar.section .kalendarium.sub-section .list-all {
        margin-left: 40%;
    }
}

@media screen and (min-width: 1200px) {
    .calendar.section .kalendarium.sub-section .calendar-list {
        grid-template-columns: repeat(3, 1fr);
    }
}