/*
Theme Name: Beagle Mojito
Description: Faithful WordPress theme for the Beagle Mojito website.
Version: 1.0.0
Text Domain: beagle-mojito
*/

:root {
    color: #000;
    font-family: Helvetica, Tahoma, sans-serif;
    font-size: 15px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #e8e6df;
}

a {
    color: inherit;
}

#box {
    width: min(100%, 1200px);
    margin: 0 auto;
    padding-bottom: 10px;
}

#header {
    position: relative;
    height: 119px;
    background: url("assets/pes_design/bg_top.png") repeat;
}

#header_logo {
    position: relative;
    z-index: 1;
    width: min(807px, 100%);
    height: 193px;
    margin: 0 auto;
    background: url("assets/pes_design/nadpis_plus_beagle.png") no-repeat top center;
}

#lang_menu {
    position: absolute;
    bottom: 10px;
    right: max(16px, calc((100% - 1010px) / 2));
}

#lang_menu,
#lang_menu ul {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#lang_menu > li {
    list-style: none;
}

#lang_menu img {
    display: block;
    width: 30px;
    height: auto;
}

#header_line,
#footer_line {
    height: 5px;
    background: url("assets/pes_design/header_line.png") repeat-x;
}

#container_bg {
    background: url("assets/pes_design/bg_mid.png") repeat;
}

#container {
    display: flex;
    width: min(100%, 1010px);
    min-height: 594px;
    margin: 0 auto;
    padding-top: 30px;
}

#side-a {
    flex: 0 0 340px;
    min-height: 700px;
    background: url("assets/pes_design/menu_bg.png") no-repeat top left;
}

.beagle-menu,
#side-a .menu {
    margin: 0;
    padding: 30px 0 0;
    list-style: none;
}

.beagle-menu li,
#side-a .menu li {
    padding-left: 18px;
    margin-bottom: 10px;
}

.beagle-menu a,
#side-a .menu a {
    color: #000;
    font-size: 15px;
    text-decoration: none;
}

.beagle-menu a:hover,
.beagle-menu a:focus,
#side-a .menu a:hover,
#side-a .menu a:focus {
    text-decoration: underline;
}

#side-b {
    width: 660px;
    height: 594px;
    min-height: 594px;
    padding: 10px 10px 10px 15px;
    overflow: auto;
    overflow-wrap: anywhere;
    background: url("assets/pes_design/bg_stred.new.jpg") no-repeat top left;
}

body.home #side-b {
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 0;
    background: none;
}

#side-b p,
#side-b div {
    line-height: 20px;
}

#content.PageCls {
    height: 574px;
    overflow: auto;
}

.PageCls_content {
    min-height: 100%;
    padding: 10px 15px 10px 5px;
    color: #fff;
}

.PageCls_content a {
    color: #fff;
}

.PageCls_content h1 {
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #fff;
}

.MojitoTergy {
    width: 100%;
}

.MojitoTergy > img {
    position: static;
    display: block;
    width: 640px;
    margin-top: 60px;
}

.wp-block-table.pes-vystavy {
    overflow: visible;
}

.pes-vystavy table,
table.pes-vystavy {
    width: 100%;
    border: 4px solid #000;
    border-collapse: collapse;
}

.pes-vystavy th,
table.pes-vystavy th {
    padding: 3px 5px;
    border-bottom: 1px solid #000;
    background: #acacac;
    font-size: 12px;
    color: #fff;
    text-align: left;
}

.pes-vystavy td,
table.pes-vystavy td {
    padding: 5px 2px 5px 5px;
    border-bottom: 1px solid #dadada;
    font-size: 12px;
    color: #fff;
}

#right-column {
    flex: 0 1 660px;
}

#footer {
    min-height: 50px;
    padding: 10px;
    color: #000;
    font-size: 10px;
    text-align: center;
}

.image-lightbox {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 50px;
    background: rgb(0 0 0 / 88%);
}

.image-lightbox[hidden] {
    display: none;
}

.image-lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-lightbox-close {
    position: fixed;
    top: 12px;
    right: 16px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
}

body.image-lightbox-open {
    overflow: hidden;
}

.reset {
    clear: both;
}

@media (max-width: 1000px) {
    #header {
        height: 92px;
    }

    #header_logo {
        height: 150px;
        background-size: contain;
    }

    #container {
        display: block;
        padding-top: 15px;
    }

    #side-a {
        width: 100%;
        min-height: 0;
        padding-bottom: 30px;
        background-size: cover;
    }

    #side-b {
        width: 100%;
        height: auto;
        min-height: 0;
        overflow: visible;
        background-size: cover;
    }

    #right-column {
        width: 100%;
    }

    #content.PageCls {
        height: auto;
        overflow: visible;
    }

    .MojitoTergy > img {
        width: 100%;
    }

    .wp-block-table.pes-vystavy {
        overflow-x: auto;
    }

    .image-lightbox {
        padding: 40px 15px;
    }
}
