/*
Theme Name: Parafia
Description: Customizations extracted from the modified Activello
Template: activello
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: parafia
*/

body {
    color: #232323;
    font-size: 17px;
    line-height: 1.65;
}

/* Also handle parent-rendered metadata: "by" is an unwrapped text node. */
.entry-meta {
    font-size: 0;
}

.entry-meta > * {
    font-size: 13px;
}

.entry-meta .author.vcard {
    display: none;
}

/* Replace the parent's 1090px cap, keeping the wider layout within the viewport. */
.container {
    max-width: 100%;
}

.top-container {
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 1200px) {
    .container {
        width: 1366px;
    }
}

#menu-main {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.navbar.navbar-default {
    min-height: 70px;
}

.navbar-collapse {
    width: 100%;
}

#masthead {
    background-color: #e0e0e0;
}

.activello-child-slider {
    max-width: 1366px;
    margin: 0 auto;
}

.wp-block-table .has-fixed-layout {
    table-layout: auto !important;
}

.wp-block-table .has-fixed-layout td:first-child {
    min-width: 10%;
}

/* Cinzel provides the Roman inscription style of the previous image heading. */
#logo.parish-branding {
    padding: 28px 0 30px;
}

.parish-branding .site-name {
    display: block;
    margin: 0;
}

.site-name .parish-name {
    display: block;
    float: none;
    height: auto;
    padding: 0;
    white-space: normal;
    font-family: "Cinzel", "Times New Roman", serif;
    font-variant: normal;
    font-weight: 600;
    font-style: normal;
    line-height: 1.3;
    color: #171717;
    text-decoration: none;
}

.parish-name-intro,
.parish-name-detail {
    display: block;
}

.parish-name-intro {
    font-size: clamp(21px, 2vw, 25px);
    margin-bottom: 3px;
}

.parish-name-detail {
    font-size: clamp(23px, 2.2vw, 30px);
    max-width: 1100px;
    margin: 0 auto;
    text-wrap: balance;
}

.entry-content {
    font-size: 18px;
    line-height: 1.65;
}

.entry-content p {
    margin-bottom: 1.1em;
}

#secondary .widget {
    font-size: 17px;
    line-height: 1.65;
}

#secondary .widget-title {
    font-size: 15px;
    line-height: 1.5;
    color: #444;
}

#secondary .widget_text u,
#secondary .widget_custom_html u,
#secondary .widget_block u {
    text-decoration: none;
}

#secondary .widget a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

#secondary .parish-office-days {
    padding-left: 1.25em;
    margin: 0 0 1em;
    list-style: disc;
}

#secondary .parish-office-days li {
    border: 0;
    padding: 2px 0;
}

/* Cap the photo, not its controls; preserve the church around the frame centre. */
.activello-child-slider .rslides,
.activello-child-slider .rslides > li,
.activello-child-slider .rslides img,
.activello-child-slider .carousel-inner > .item,
.activello-child-slider .carousel-inner > .item > img,
.activello-child-slider .slider-pro,
.activello-child-slider .sp-mask,
.activello-child-slider .sp-slides-container,
.activello-child-slider .sp-slide,
.activello-child-slider .sp-image,
.activello-child-slider .flexslider .slides > li,
.activello-child-slider .flexslider .slides img {
    height: clamp(220px, 26vw, 350px) !important;
}

.activello-child-slider .rslides img,
.activello-child-slider .carousel-inner > .item > img,
.activello-child-slider .sp-image,
.activello-child-slider .flexslider .slides img {
    width: 100%;
    object-fit: cover;
    object-position: center 45%;
}

.activello-child-slider .sp-image {
    width: 100% !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
}

.parish-table-scroll,
.entry-content .wp-block-table {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.parish-table-scroll:focus-visible,
.entry-content .wp-block-table:focus-visible {
    outline: 2px solid #8e6193;
    outline-offset: 3px;
}

.entry-content table {
    font-size: 16px;
    line-height: 1.55;
    width: 100%;
    margin-bottom: 1em;
}

.entry-content table th,
.entry-content table td {
    padding: 10px 12px;
    vertical-align: top;
}

.entry-content table td:first-child,
.entry-content .wp-block-table .has-fixed-layout td:first-child {
    min-width: 4.5rem;
}

.top-container > .row {
    margin-right: 0;
    margin-left: 0;
}

@media (max-width: 767px) {
    #logo.parish-branding {
        padding: 23px 4px;
    }

    #menu-main {
        display: block;
    }

    .entry-content {
        font-size: 17px;
    }

    .entry-title {
        font-size: 23px;
        line-height: 1.35;
    }

    .entry-content table {
        font-size: 15px;
    }

    .entry-content table th,
    .entry-content table td {
        padding: 8px;
    }

    .entry-content table td {
        overflow-wrap: anywhere;
    }

    #secondary {
        margin-top: 30px;
    }
}
