/*
	Theme Name: Vánoce AVMedia 2023
*/
html {
    font-size: 12px;
    line-height: 1.25em;
}
body {
    padding-bottom: 100px;
}
img {
    max-width: 100%;
}
.container a {
    color: black !important;
}
.container {
    position: relative;
    max-width: 1750px;
    padding-bottom: 200px;
    z-index: 1;
}

.container::before {
    content: "";
    height: 180px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-image: url(images/top.png);
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 2000;
}

.container::after {
    content: "";
    height: 700px;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    background-image: url(images/masle.svg);
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center top;
    z-index: -1;
}

#header {
    position: relative;
    z-index: 3000;
    display: flex;
    justify-content: space-between;
    padding: 0 25px;
}

#logo {
    position: relative;
    top: 30px;
    width: 120px;
    z-index: 1;
}

#header #title {
    position: relative;
    z-index: 1;
    text-align: left;
    color: white;
    font-size: 2.8rem;
    line-height: 1em;
    font-weight: 500;
    margin-top: 50px;
}

#header #subtitle {
    position: relative;
    z-index: 1;
    text-align: left;
    color: white;
    font-size: 1.7rem;
    line-height: 1em;
}

#map-container {
    width: calc(100%);
    height: 1000px;
    position: relative;
    z-index: 1999;
    /* transform: scale(1.25) translateX(-2%); */
    /* background: white; */
    margin: 25px 0 0 0;
}
#map {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#footer {
    display: flex;
    justify-content: space-between;
    padding: 50px 25px 0 550px;
}

#nfzz {
    max-width: 150px;
    margin-right: 25px;
    height: auto;
}

#footer #title {
    font-weight: bold;
    color: #d20a11;
    font-size: 1.6rem;
}

.posts-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: flex-start;
    margin-top: 3rem;
    margin-bottom: 3rem;
    background-image: url(images/podklad_trojuhelnik.png);
    background-repeat: no-repeat;
    background-position: right 300px;
    background-size: 75%;
}

.post {
    width: calc(20% - 2em); /* 5 divs na řádek s mezerami */
    margin: 1em;
    font-size: 1rem;
    line-height: 1.15em;
}

.post h2 {
    font-size: 1.1rem;
    font-weight: bold !important;
}

.post h2 a {
    color: black;
    text-decoration: none;
}

.post img {
    height: auto;
    margin-bottom: 1em;
    display: block;
}

.post .category {
    text-align: right;
    margin-bottom: 1em;
}
.post .category a {
    color: black !important;
}

.post .post-thumbnail {
    position: relative;
}

.post .post-excerpt {
    margin-bottom: 1em;
}

.post .caption {
    color: white;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.5em;
    font-weight: bold;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    font-size: 1.2rem;
}

.post .location {
    display: block;
    padding: 0 3em;
    margin-bottom: 1em;
    background-image: url(images/Bod.svg);
    background-size: 2em;
    background-repeat: no-repeat;
    background-position: 1em 0;
    min-height: 28px;
}

.post .more-link {
    color: black !important;
    font-weight: bold;
    text-align: right;
    display: block;
}

.leaflet-container {
    background: transparent;
    overflow: inherit;
}

.leaflet-popup {
    margin-bottom: 10px;
    /* bottom: -40px !important; */
}
.leaflet-popup-content-wrapper {
    border: 3px solid #d20a11;
    box-shadow: none;
    /* transform: scale(calc(1300 / 1650)); */
}

.leaflet-popup-content {
    margin: 1em;
    /* width: calc(250px / 1.25); */
    width: 250px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
        "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.leaflet-popup-content .post {
    width: 100%;
    margin: 0;
    min-width: 0;
    font-size: 1rem;
    line-height: 1.25em;
}

.leaflet-popup-content p {
    margin: 1em 0;
}

.leaflet-popup-close-button,
.leaflet-popup-tip-container {
    display: none;
}

@media (min-width: 1700px) {
    /* .leaflet-control-attribution {
        transform: scale(calc(1 / 1.25)) translate(-200px, -200px);
    }
    .leaflet-control-zoom {
        transform: scale(calc(1 / 1.25)) translate(250px, -200px);
    } */
}

.social {
    /* width: calc(40% - 60px); */
    font-size: 0.8rem;
}
.social > div {
    display: flex;
    justify-content: space-between;
}

.social > div > * {
    text-align: center;
    display: flex;
    /* justify-content: center; */
    align-items: center;
    flex-wrap: wrap;
    flex-direction: column;
    width: 33.3%;
}

.social > div span {
    word-wrap: break-word;
    width: 100%;
    display: block;
}

.social picture {
    display: block;
    width: 100px;
    height: 100px;
    position: relative;
    overflow: hidden;
}

.social picture img {
    width: 200px;
    max-width: 200px;
    height: 200px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.social picture img.ln {
    width: 170px;
    max-width: 170px;
    height: 170px;
}

.social picture img.ico {
    width: 100px;
    max-width: 100px;
    height: 100px;
}

#modal {
    z-index: 9999999999999;
}

.modal-content {
    border: 5px solid #d20a11;
    border-radius: 10px;
}

.modal-header {
    justify-content: center;
}

.modal-header .close {
    color: #d20a11;
    font-weight: bold;
    font-size: 2rem;
    opacity: 1;
}

.acceptance a {
    color: black !important;
    font-weight: bold;
}

.btn-primary {
    background-color: #d20a11;
    border-color: #d20a11;
}

.btn-primary.disabled,
.btn-primary:disabled {
    background-color: #d20a11;
    border-color: #d20a11;
}

@media (max-width: 1700px) {
    #header #title {
        margin-top: 40px;
    }
    #logo {
        top: 20px;
    }
    .post {
        width: calc(25% - 2rem);
    }
    #map-container {
        height: 780px;
    }
    #map {
        /* transform: none; */
        /* scale(1) translateX(-2%); */
    }
}
@media (max-width: 1450px) {
    #header #title {
        margin-top: 30px;
    }
    .container::after {
        height: 500px;
    }
}
@media (max-width: 1300px) {
    #header {
        padding: 0 10px;
    }
    #logo {
        top: 15px;
    }
    #header #title {
        font-size: 2rem;
    }
    #header #subtitle {
        font-size: 1.3rem;
    }
    .post {
        width: calc(33.333% - 2rem);
    }
    .container::after {
        height: 400px;
    }
    /*#map-container {
        height: 700px;
    }
    #map {
        transform: scale(1.75) translateX(-1.25%);
    } */
}
@media (max-width: 1200px) {
    #header #title {
        margin-top: 30px;
    }
}
@media (max-width: 1100px) {
    #header #title {
        margin-top: 25px;
    }
    #logo {
        top: 10px;
    }
    #footer {
        padding-left: 350px;
    }
    /* #map-container {
        height: 600px;
    }
    #map {
        transform: scale(1.5) translateX(-1%);
    } */
}
@media (max-width: 1000px) {
    #header #title {
        margin-top: 20px;
        font-size: 1.5rem;
    }
    #header #subtitle {
        font-size: 1rem;
    }
    #logo {
        width: 80px;
    }
    #footer {
        padding-left: 300px;
    }
}
@media (max-width: 992px) {
    #logo {
        top: 5px;
    }
    .post {
        width: calc(50% - 2rem);
    }
    .container::after {
        height: 400px;
    }
    /* #map-container {
        height: 450px;
    }
    #map {
        transform: scale(1.15) translateX(-1.5%);
    } */
}

@media (max-width: 850px) {
    #map-container {
        height: 450px;
    }
}

@media (max-width: 800px) {
    #header #title {
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    #header #title {
        text-align: right;
        color: black;
    }
    #header #subtitle {
        color: black;
    }
    #logo {
        width: 100px;
    }
    .container {
        padding-top: 50px;
    }
    .container::before {
        top: -20px;
    }
    .container::after {
        height: 300px;
    }
    #footer {
        padding-left: 100px;
    }
    .post {
        width: calc(100% - 2rem);
        min-width: 300px;
    }

    /* #map-container {
        padding-top: 50px;
        height: 350px;
    }
    #map {
        transform: scale(1.7) translateX(-1.25%);
    } */
}

@media (max-width: 576px) {
    .container::after {
        height: 300px;
    }
    #footer {
        padding-left: 25px;
    }
    .container {
        padding-top: 25px;
    }
    /* .leaflet-popup {
        transform: none !important;
        left: 0 !important;
        top: 0 !important;
        bottom: auto !important;
        right: auto !important;
    } */
}

@media (max-width: 500px) {
    #map-container {
        height: 350px;
        margin-top: 25px;
    }
}

@media (max-width: 400px) {
    .container::before {
        top: -10px;
    }
    .container::after {
        height: 220px;
    }
    #header {
        display: block;
        text-align: center;
    }
    #header #title,
    #header #subtitle {
        text-align: center;
    }
    #logo {
        margin: auto;
    }
    #footer {
        display: block;
        text-align: center;
    }
    #nfzz {
        margin-bottom: 1rem;
    }
}

.leaflet-control-zoom a {
    text-decoration: none !important;
}
