* {
    font-family: "Lato", Helvetica, sans-serif;
    font-weight: 300;
    line-height: 1.5;
    color: #333447;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
}
img {
    max-width: 100%;
}
a {
    text-decoration: none;
}
a:hover {
    color: #a8612e;
}
h1 {
    margin-top: 0;
}
th {
    font-weight: 400;
}
caption {
    font-weight: 400;
}
.bold {
    font-weight: 400;
}

/* lato-300 - latin */
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: local(''),
         url('../fonts/lato-v23-latin-300.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
         url('../fonts/lato-v23-latin-300.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* lato-regular - latin */
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local(''),
         url('../fonts/lato-v23-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
         url('../fonts/lato-v23-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

.container {
    max-width: 960px;
    width: 100%;
    margin: 1rem auto 0 auto;
    padding: 8px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
/* Sections that span the full width; everything else auto-places into the
   two-column grid in source order (logo+nav, about+gallery, map+contact,
   prices-women+prices-men). */
.container > .full {
    grid-column: 1 / -1;
}

#nav {
    align-self: center;
    justify-self: end;
}
#nav a {
    display: inline-block;
    text-transform: uppercase;
    padding-left: 1.5rem;
}

#jumbotron {
    background-image: url("../img/team.djeocjai.jpeg");
    background-position: top;
    background-size: cover;
    width: 100%;
    aspect-ratio: 960 / 538;
}

.highlight {
    border-left: 1px solid #a8612e;
    padding-left: 10px;
}
#info {
    border-left: 1px solid;
    padding-left: 10px;
}

#gallery img, #map img {
    width: 100%;
    overflow: hidden;
    object-fit: contain;
}
#gallery_link {
    font-weight: 400;
    cursor: pointer;
    display: inline-block;
    padding: 0;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 1rem;
    color: #333447;
}
#gallery_link:hover {
    color: #a8612e;
}
.picture {
    display: none;
}

.separator {
    margin: 1rem 0;
    height: 1px;
    width: 100%;
    background-color: #777777;
}

#contact table tr {
    vertical-align: baseline;
}
#contact table td {
    padding-bottom: 5px;
}
#contact address {
    font-style: normal;
    margin: 1em 0;
}
table tr td:first-child {
    padding-right: 3rem;
}
table td:not(:first-of-type) {
    text-align: right;
}

#prices-women, #prices-men {
    justify-self: center;
}

#termin {
    display: none;
}

.social-media a {
    font-size: 1.5rem;
}
.social-media a svg {
    width: 1em;
    height: 1em;
}
#footer {
    justify-self: end;
    text-align: right;
    margin-top: 100px;
    margin-bottom: 30px;
}
#footer a {
    padding-left: 1.5rem;
}

/* Lightbox gallery */
.lb-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.lb-overlay.open {
    display: flex;
}
.lb-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}
.lb-btn {
    position: absolute;
    background: none;
    border: none;
    color: #fdfdfd;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 1rem;
    user-select: none;
}
.lb-btn:hover {
    color: #a8612e;
}
.lb-close {
    top: 0;
    right: 0;
}
.lb-prev {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}
.lb-next {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

@media only screen and (max-width: 600px) {
    .container {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    #jumbotron {
        background-image: url("../img/team-mobile.djeocjai.jpeg");
        aspect-ratio: 430 / 307;
    }
    #termin {
        display: inline-block;
        background-color: #a8612e;
        padding: 1rem;
        color: #fdfdfd;
    }
    #nav {
        justify-self: center;
    }
}
