/*
Theme Name: Vartemplom2
Theme URI: https://vartemplom.ro/
Author: Beder Jenő
Author URI: https://vartemplom.ro/
Description: A Vártemplom gyors, karbantartható, egyedi WordPress témája. 2026-ban teljesen átírt verzió.
Version: 2.0.0
Requires at least: 7.0
Requires PHP: 8.2
Text Domain: vartemplom2
*/

/* CSS Index*/

/* Swiper slide beállítása */

/* A reszponzív képattribútumok mellett is az eredeti képarány maradjon érvényben. */
.pastor-sliders .team-style-01 figure img {
    display: block;
    width: 100%;
    height: auto;
}


/* Heti idézet: hosszú szöveg mobilon mindig a háttérképen belül törjön. */
.section-4 .sec4 .content {
    max-width: 100%;
    min-width: 0;
}

.section-4 .sec4 .content h4 {
    max-width: 100%;
    overflow-wrap: anywhere;
}

@media (max-width: 767px) {
    .section-4 .sec4 {
        min-height: 0;
        padding: 2rem 1rem !important;
    }

    .section-4 .sec4 .content {
        width: 100% !important;
        gap: 1rem !important;
    }

    .section-4 .sec4 .content h4 {
        font-size: clamp(1.65rem, 7vw, 2.25rem);
        line-height: 1.2;
    }

    .section-4 .weekly-word-image img {
        max-width: min(160px, 55vw) !important;
    }

}


.album-egyenlokepek-slider .swiper-slide {
    width: auto !important; /* Ez a kulcs! */
}

.pagination .page-item .page-link,
.pagination .page-item .page-link.size-48 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.vt-event-card-wrap {
    height: 100%;
}

.vt-event-card__media {
    height: 400px;
}

.vt-event-card {
    height: 100%;
}

.vt-event-card .content-event {
    width: 90%;
    min-height: 180px;
    padding: 24px 24px 20px;
}

.vt-event-card__title a,
.vt-event-card__excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vt-event-card__title a {
    -webkit-line-clamp: 2;
}

.vt-event-card__excerpt {
    -webkit-line-clamp: 3;
}

.vt-event-card .content-p {
    padding-bottom: 16px !important;
    margin-bottom: 16px;
}

@media (max-width: 991.98px) {
    .vt-event-card__media {
        height: 320px;
    }

    .vt-event-card .content-event {
        min-height: 0;
    }
}

.album-egyenlokepek-slider img {
    height: 500px;
    width: auto;
    display: block;
}
.swiper-zoom-container img {
    display: block;
}

.swiper-6-items_egyenlo .swiper-slide {
    width: auto !important; /* Ez a kulcs! */
}

.swiper-6-items_egyenlo img {
    height: 500px;
    width: auto;
    display: block;
}



.appSwiper-header-text {
  height: auto !important;
}

/* Rövid istentiszteleti időpontok a fejléc jobb felső részén. */
.vt-service-times > a,
.vt-service-times-mobile {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--tc-color-neutral-900);
    text-decoration: none;
}

.vt-service-times > a:hover,
.vt-service-times-mobile:hover {
    color: var(--tc-theme-primary);
}

.vt-service-times__copy,
.vt-service-times-mobile__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.1;
}

.vt-service-times__copy strong,
.vt-service-times-mobile__copy strong {
    font-size: 11px;
    font-weight: 700;
}

.vt-service-times__copy > span,
.vt-service-times-mobile__copy small {
    margin-top: 2px;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
}

.vt-service-times-mobile {
    flex: 0 1 220px;
    min-width: 0;
    max-width: 220px;
    margin-left: auto;
    padding: 5px 9px;
    border: 1px solid rgb(201 158 105 / 45%);
    border-radius: 10px;
    background: rgb(255 255 255 / 92%);
}

@media (max-width: 1199.98px) {
    .tgmenu__nav {
        flex-wrap: nowrap;
    }

    .tgmenu__nav > .logo,
    .tc-header__area .mobile-nav-toggler {
        flex: 0 0 auto;
    }

    .tc-header__area .mobile-nav-toggler {
        margin-left: 8px;
    }
}

@media (min-width: 1200px) and (max-width: 1499.98px) {
    .tc-header__top-right .vt-header-address {
        display: none !important;
    }
}

@media (max-width: 479.98px) {
    .vt-service-times-mobile {
        padding-inline: 7px;
    }

    .vt-service-times-mobile__copy strong {
        font-size: 10px;
    }

    .vt-service-times-mobile__copy small {
        max-width: 180px;
        overflow: hidden;
        font-size: 9px;
        text-overflow: ellipsis;
    }
}

p {
    text-indent: 2em; /* vagy 1.5em, vagy akár 40px, igény szerint */
}

.vt-news-card {
    height: 100%;
}

.vt-news-card__media {
    flex: 0 0 auto;
    background: #f6f2eb;
}

.vt-news-card__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 3.2em;
}

.vt-news-card__title a {
    display: inline;
}

.vt-news-card__excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    min-height: 6em;
}

/* Vartemplom responsive overflow fixes - 2026-08-05 */
.event-details-section-1 iframe[src*="calendar.google.com/calendar/embed"] {
    display: block;
    width: 100% !important;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

@media (max-width: 575.98px) {
    .copyright-text.text-nowrap,
    .copyright-text.text-nowrap p,
    .copyright-text.text-nowrap a {
        white-space: normal !important;
    }

    .copyright-text.text-nowrap a {
        overflow-wrap: anywhere;
        word-break: normal;
    }
}

/* Mobile off-canvas overflow containment - 2026-08-05 */
@media (max-width: 575.98px) {
    html,
    body {
        overflow-x: hidden;
    }

    @supports (overflow-x: clip) {
        html,
        body {
            overflow-x: clip;
        }
    }
}
