/*
   Theme Name: Lyon church
   Author: Denis Olesik
 */


/*
 * Common things
 */
:root {
    --lc-hover-color: #8c2500;
}

body {
    font-family: 'Comfortaa', sans-serif !important;
}

main h1,
main h2,
main h3,
main h4 {
    margin-bottom: 0.6em;
}

main h1,
main h2 {
    margin-top: 1.5em;
}

main h3 {
    margin-top: 1.3em;
}

main {
    max-width: 960px;
    margin: 0 auto;
}

main a {
    color: #5f78f6;
}

main a:hover {
    color: #4357b7;
}

p {
    overflow-wrap: break-word;
}

.lyon-page {
    min-height: 400px;
}

.lyon-footer {
    margin-top: 5em;
}

/* Used in the contacts page data */
.icon-md {
    font-size: 1.2em;
}

[data-bs-toggle] {
    text-decoration:underline;
    text-decoration-style: dotted;
}


/*
 * Header
 */
header {
    padding: 0 3%;
    box-shadow: 0px 1px 2px -1px #111;
    margin-bottom: 20px;
    background-color: #ecf1fb; /*#c4d0ea;*/
}

.lyon-nav-icon {
    width: 35px;
    margin-right: 5px;
}

.navbar-brand:hover {
    color: var(--lc-hover-color) !important;
}

.nav-item {
    align-content: center;
}

.nav-link.active {
    font-weight: 700;
    color: var(--lc-hover-color) !important;
}
.nav-link:hover {
    color: var(--lc-hover-color) !important;
}


/*
 * Main page
 */
.lyon-main-page__top-block {
    margin: 3em;
    display: flex;
    justify-content: center;
    /*height: 400px;*/
}

.main-page__top-block-text
{
    margin: 0;
    width: 300px;
    font-size: 2rem;
}

.lyon-main-page__top-block-img {
    max-height: 300px;
    max-width: 500px;
    object-fit: contain;
    object-position: top;
}

#lyonCarousel {
    margin: 0 auto;
    width: 90%;
    max-width: 900px;
}

#lyonCarousel img {
    height: 450px;
    object-fit: contain;
}

#lyonCarousel .carousel-caption p {
    background: #9c9ece;
    width: fit-content;
    margin: 0.1em auto;
    padding: 0.3em;
    border-radius: 1em;
    -webkit-box-shadow: 0 0 5px 5px #9c9ece;
    box-shadow: 0 0 5px 5px #9c9ece;
}


/*
 * Post preview
 */
.lyon-post-preview {
    padding: 2em 0;
    display: flex;
    justify-content: space-between;
}

.lyon-post-preview:not(:last-child) {
    box-shadow: 0 1em 0.4em -1em rgba(0, 0, 0, .25)
}

.lyon-post-preview--thumbnail {
    max-height: 300px;
    max-width: 300px;
    object-fit: contain;
    object-position: top;
    margin: 1em;
}

.lyon-post-preview--title {
    font-size: 1.7rem;
    color: #4b4b4b;
}

.lyon-post-preview--title:hover {
    color: #5c5c5c;
}

.lyon-post-preview--date {
    font-size: 0.8rem;
    margin-bottom: 1em;
}

.lyon-post-preview--botton-link {
    font-size: 0.9rem;
}

.lyon-paginator {
    display: flex;
    justify-content: space-around;
    margin: 2em;
}

@media only screen and (max-width: 991.98px) {
    body
    {
        font-size: 1.4rem !important; /* rewrite bootstrap value */
    }

    header,
    header .navbar-brand {
        font-size: 1.4rem !important;
    }

    .main-page__top-block-text {
        font-size: 2.5rem;
    }

    .lyon-post-preview {
        flex-wrap: wrap;
    }

    .lyon-post-preview--thumbnail {
        margin: 1em 0;
    }
}

@media only screen and (max-width: 1200px) {
    header {
        padding: 0 20px;
    }
}

/*
 * Post page
 */
.lyon-post-title {
    margin-bottom: 0;
}


/*
 * WP fixes
 */
.wp-block-separator {
    margin: 3em 0;
}


/*
 * Bootstrap tweaks
 */
.tooltip {
    --bs-tooltip-bg: #38406c;
    opacity: 1 !important;
}
.tooltip-inner {
    box-shadow: 0px 0px 2px #000000;
}

button.navbar-toggler {
    background-color: #f4f4f4;
}
button.navbar-toggler,
button.navbar-toggler:focus { /* terrible box shadow disabled */
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
.navbar-toggler[aria-expanded="true"]:focus {
    filter: brightness(95%);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

@media only screen and (max-width: 991.98px) {
    .nav-item.lyon-socials {
        gap: 10px;
    }
}


.carousel-control-next-icon:after,
.carousel-control-prev-icon:after {
    position: absolute;
    transform: scale(3);
    color: var(--lc-hover-color);
}
.carousel-control-next-icon:after {
    content: "›";
}
.carousel-control-prev-icon:after {
    content: "‹";
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-image: none !important;
}
