:root {
    --soil: #1e120a;
    --bark: #3f2510;
    --clay: #7a5535;
    --straw: #c9964a;
    --cream: #f7f0e6;
    --sage: #6b9472;
    --meadow: #3d6e4e;
    --meadow2: #233d2c;
    --mist: #dde8e0;
    --dusk: #c4b49e;
    --white: #fdfaf6;
}

/* Fade-in and slide-up animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ease-in {
    animation: fadeInUp 0.4s ease-in-out forwards;
}

/* Stagger delays for initial load */
.ease-in {
    animation-delay: var(--animation-delay, 0s);
}

body{
    background-color: var(--cream);
    margin: 0px;
    font-family: "Josefin Sans", sans-serif;
}

.c{
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
}

::selection {
    background: var(--clay);
    color: var(--white);
    text-shadow:none;
}

::-moz-selection {
    background: var(--clay);
    color: var(--white);
    text-shadow:none;
}

header{
    position: relative;
    background: #faf1e4;
    backdrop-filter: blur(10px);
    border: 1px solid var(--dusk);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .nav {
    font-size: 1.1rem;
    z-index: 1;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 30px;
}

header .nav li a {
    padding: 5px 10px;
    border-radius: 7px;
    text-decoration: none;
    color: var(--clay);
    transition: .5s cubic-bezier(0.075, 0.82, 0.165, 1);
}

header .nav li a:hover {
    background-color: var(--clay);
    color: var(--white);
}

header img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 60px;
}

header .header-bal:any-link{
    font-weight: bold;
    z-index: 1;
    padding-left: 20px;
    display: flex;
    flex-direction: row;
    gap: 40px;
    font-size: 30px;
    color: var(--sage);
    margin: 0px;
    text-decoration: none;
    transition: .5s cubic-bezier(0.075, 0.82, 0.165, 1);
}

header .header-bal:any-link:hover{
    color: var(--clay);
}

header .p-bal {
    font-weight: bold;
    z-index: 1;
    padding-left: 20px;
    display: flex;
    flex-direction: row;
    gap: 40px;
    font-size: 15px;
    color: var(--sage);
    margin: 0px;
}

header .nav-toggle {
    display: none;
    border: none;
    background: transparent;
    padding: 10px;
    cursor: pointer;
    z-index: 2;
}

header .nav-toggle img {
    display: block;
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.atadopontok{
    max-width: 800px;
    margin-top: 50px;
    margin-left: auto;
    margin-right: auto;
}

.atadopontok h1{
    font-size: 30px;
    font-weight: bold;
    color: var(--straw);
    margin-bottom: 20px;
    text-align: center;
}
.atadopontok li{
    margin-bottom: 14px;

}
.atadopontok li a:any-link{
    font-size: 17px;
    font-weight: bold;
    text-decoration: none;
    color: var(--bark);
    transition: .5s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.jelentkezes{
    color: var(--meadow2);
    
    max-width: 60%;
    margin-top: 70px;
    margin-left: auto;
    margin-right: auto;
}

.jelentkezes h1{
    font-size: 28px;
    font-weight: bold;
    color: var(--bark);
    margin-bottom: 20px;
    text-align: center;
}

.jelentkezes p{
    font-size: 20px;
    color: var(--bark);
    margin-bottom: 10px;
    text-align: justify;
}

.rolunk{
    color: var(--meadow2);
    
    max-width: 80%;
    margin-top: 70px;
    margin-left: auto;
    margin-right: auto;
}

.rolunk h1{
    font-size: 28px;
    font-weight: bold;
    color: var(--bark);
    margin-bottom: 10px;
    text-align: center;
}

.rolunk p{
    font-size: 20px;
    color: var(--bark);
    margin-bottom: 10px;
    text-align: justify;
}

.gallery-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.gallery-header {
    text-align: center;
    margin-bottom: 32px;
}

.gallery-header h1 {
    font-size: 36px;
    color: var(--meadow);
    margin-bottom: 12px;
}

.gallery-header p {
    font-size: 18px;
    color: var(--bark);
    max-width: 760px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.gallery-item {
    font-style: italic;
    background: var(--cream);
    border: 2px solid var(--dusk);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    text-align: left;
    padding: 0;
    display: flex;
    flex-direction: column;
    transition: transform 0.5s cubic-bezier(0.075, 0.82, 0.165, 1), box-shadow 0.4s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
}

.gallery-item img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.gallery-item-caption {
    padding: 14px 16px;
    font-size: 16px;
    color: var(--bark);
    background: var(--white);
}

.gallery-modal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.gallery-modal.open {
    display: flex;
}

.gallery-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 12, 8, 0.85);
}

.gallery-modal-content {
    position: relative;
    width: min(100%, 980px);
    max-height: 90vh;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gallery-modal img {
    width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 20px;
    background: #000;
}

.gallery-modal-close {
    position: absolute;
    top: -50px;
    right: -50px;
    background: rgba(255, 255, 255, 0.14);
    color: var(--cream);
    border: none;
    font-size: 23px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
}

.gallery-modal-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.gallery-modal-caption {
    flex: 1;
    color: var(--cream);
    font-size: 18px;
    text-align: center;
    min-height: 42px;
}

.gallery-next{
    margin-bottom: 0px;
}

.gallery-modal button {
    border: none;
    background: rgba(255,255,255,0.14);
    color: var(--cream);
    padding: 12px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.gallery-modal button:hover {
    background: rgba(255,255,255,0.22);
}

#leaflet-js-map {
    margin-left: auto;
    margin-right: auto;
    width: 400px;
    height: 400px;
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: 30px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3);
}

.googlemap{
    margin-left: auto;
    margin-right: auto;
}

.googlemap iframe {
    width: 100%;
    height: 450px;
    border: 0;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3);
}

.site-footer {
    position: relative;
    margin-top: 60px;
    background-color: var(--soil);
    color: var(--cream);
    padding: 20px 18px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer .footer-content {
    display: flex;
    flex-direction: row;
    gap: 120px;
    align-items: center;
    justify-content: center;
}

.footer-social {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.footer-social a {
    display: inline-flex;
    width: 34px;
    height: 34px;
}

.footer-social a:hover {
    filter: brightness(0.8) saturate(3);
}

.footer-social img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.site-footer p:hover {
    color: var(--dusk);
}

.kertlat {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.kertlat .jelentkezes {
    flex: 1 1 320px;
    min-width: 280px;
}

.kertlat img {
    flex: 1 1 320px;
    max-width: 600px;
    width: 100%;
    border-radius: 15px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.cikkek {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}
.cikkek h1 {
    font-size: 28px;
    color: var(--meadow);
    margin-bottom: 20px;
    text-align: center;
}

.cikkek ul{
    padding-left: 10px;
}

.cikkek li{
    margin-bottom: 15px;
    text-align: justify;
}
.cikkek a{
    font-size: 18px;
    text-decoration: none;
    color: var(--straw);
    font-weight: bold;
}

.cikkek a:hover{
    color: var(--meadow);
}

@media (max-width: 860px) {
    .gallery-item img {
        height: 160px;
    }

    .gallery-modal-content {
        width: 100%;
        padding: 16px;
    }

    .gallery-modal button {
        padding: 10px 14px;
        font-size: 14px;
    }


}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-modal-controls {
        flex-direction: column;
        align-items: stretch;
        margin-left: auto;
        margin-right: auto;
        width: 25%;
    }

    .gallery-next{
        margin-bottom: 110px;
    }

    .gallery-modal-close {
        top: -40px;
        right: 15px;
        font-size: 50px;
    }
}

@media (max-width: 1000px) {
    header {
        padding: 20px;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 20px;
    }

    header > div {
        order: 1;
    }

    header .header-bal:any-link {
        font-size: 24px;
        padding-left: 0;
        gap: 20px;
        margin-top: 18px;
        order: 1;
        
    }

    header .p-bal {
        order: 1;
        margin-top: 0px;
        padding-left: 0;
    }

    header > a:has(img) {
        order: 0;
    }

    header img {
        position: static;
        transform: none;
        height: 50px;
        order: 3;
    }

    header .nav-toggle {
        display: flex;
        order: 2;
        margin-left: auto;
    }

    header .nav {
        width: 100%;
        display: none;
        flex-direction: column;
        gap: 12px;
        margin: 0;
        padding: 10px 0 0;
        order: 4;
        border-top: 1px solid var(--dusk);
    }

    header .nav.open {
        display: flex;
    }

    header .nav li a {
        display: block;
        width: 100%;
        padding: 10px 12px;
    }

    .atadopontok{
        max-width: 90%;
        margin-top: 30px;
    }

    .jelentkezes{
    max-width: 90%;
    }

    .site-footer {
        padding: 18px 14px;
    }

    .site-footer .footer-content {
        flex-direction: column;
        gap: 12px;
    }

    .footer-social {
        gap: 30px;
        flex-direction: column;
    }

    .kertlat {
        flex-direction: column;
        align-items: stretch;
    }

    .kertlat .jelentkezes,
    .kertlat img {
        width: 100%;
    }

    .googlemap{
        width: 95%;

        margin-left: auto;
        margin-right: auto;
    }
    .googlemap iframe {
        height: 350px;
        border-radius: 15px;
    }

}

.rolunkimg {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 900px;
    margin: 40px auto;
}

.rolunkimg img {
    width: calc(50% - 10px);
    max-width: 420px;
    height: auto;
    border-radius: 15px;
    object-fit: cover;
}

.moved-image {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.moved-image img {
    width: 100%;
    max-width: 620px;
    border-radius: 15px;
    height: auto;
    object-fit: cover;
    display: block;
}


@media (max-width: 680px) {
    .rolunkimg {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .rolunkimg img {
        width: 100%;
        max-width: 420px;
    }
}




