.static-shell {
    min-height: 100vh;
    font-weight: 500;
    --pt-old-world-font: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
    --pt-ink: #24180f;
    --pt-parchment: #f5ecd1;
    --pt-parchment-dark: #8f6330;
}

.static-loading {
    padding: 2rem;
    font-weight: 700;
}

.page {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    min-width: 0;
}

.sidebar {
    background: rgb(2,0,36);
    background: linear-gradient(4deg, rgba(2,0,36,1) 2%, rgba(9,39,121,1) 32%, rgba(0,212,255,1) 94%);
}

.top-row {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
}

.static-header {
    overflow: hidden;
    justify-content: flex-start;
    padding: .75rem 1.5rem;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .top-row {
    height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}

.nav-logo-nevidane {
    width: 85px;
}

.nav-logo-crikvenica {
    width: 55px;
}

.oi {
    width: 2rem;
    font-size: 1.1rem;
    vertical-align: text-top;
    top: -2px;
}

.nav-item {
    font-size: .9rem;
    padding-bottom: .5rem;
}

.nav-item:first-of-type {
    padding-top: 1rem;
}

.nav-item:last-of-type {
    padding-bottom: 1rem;
}

.nav-link,
.nav-link-button {
    color: #d7d7d7;
    font-weight: 600;
    border-radius: 4px;
    min-height: 3rem;
    display: flex;
    align-items: center;
    line-height: 1.2;
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    padding: .5rem 1rem;
    text-decoration: none;
}

.nav-link.active,
.nav-link-button.active {
    background-color: rgba(255,255,255,0.25);
    color: white;
}

.nav-link:hover,
.nav-link-button:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-link span.active {
    font-weight: bold;
    color: mediumvioletred;
}

.nav-submenu {
    padding-left: .5rem;
}

.collapse:not(.show) {
    display: none;
}

.content {
    padding: 1.1rem 1.5rem;
    color: var(--pt-ink);
    font-family: var(--pt-old-world-font);
    font-size: 1.04rem;
    font-weight: 500;
    line-height: 1.55;
}

.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.timer {
    font-family: var(--pt-old-world-font);
    letter-spacing: 0;
}

.static-muted-panel {
    position: relative;
    overflow: hidden;
    color: var(--pt-ink);
    background:
        linear-gradient(90deg, rgba(94, 58, 25, .28) 0 3px, transparent 3px 100%),
        repeating-linear-gradient(to bottom, transparent 0, transparent 1.65rem, rgba(106, 72, 35, .12) 1.68rem, rgba(106, 72, 35, .12) 1.74rem),
        radial-gradient(circle at 96% 8%, rgba(116, 74, 34, .22), transparent 8rem),
        linear-gradient(135deg, #fff8df 0%, var(--pt-parchment) 46%, #ead7ad 100%);
    border: 1px solid rgba(105, 68, 31, .62);
    border-left: 8px solid var(--pt-parchment-dark);
    border-radius: 4px 18px 6px 16px;
    box-shadow:
        0 10px 24px rgba(44, 27, 12, .22),
        inset 0 0 0 1px rgba(255, 255, 255, .45),
        inset 0 0 28px rgba(100, 65, 28, .18);
    padding: 1.15rem 1.35rem 1.15rem 1.6rem;
    margin: 1.25rem 0;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}

.static-muted-panel::before {
    content: "";
    position: absolute;
    inset: .5rem auto .5rem .62rem;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(86, 48, 18, .42), transparent);
}

.static-muted-panel a {
    color: #6f2f12;
    font-weight: 700;
}

.static-contact-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
    margin-top: .75rem;
}

.static-contact-link {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    max-width: 100%;
    white-space: nowrap;
}

.static-contact-link .oi {
    flex: 0 0 auto;
}

.static-table-wrapper {
    overflow-x: auto;
    padding: .25rem;
}

.team-detail {
    background: #f2f2f2;
}

.team-detail img {
    max-width: 340px;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.team-detail-photo {
    margin: 0;
}

.team-detail-photo__button {
    width: min(100%, 360px);
    border: 1px solid rgba(105, 68, 31, .42);
    border-radius: 8px;
    background: #23190f;
    box-shadow: 0 8px 18px rgba(35, 22, 10, .2);
    cursor: zoom-in;
    overflow: hidden;
    padding: .35rem;
}

.team-detail-photo img {
    display: block;
    max-height: 280px;
    object-fit: contain;
}

.team-medals span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-right: 1.25rem;
}

.team-medals img,
.member-medal {
    width: 25px;
}

.results-section {
    margin-top: 45px;
}

.results-section .pt-content {
    display: none;
}

.results-section.open .pt-content {
    display: block;
}

.result-team-photo {
    width: min(100%, 620px);
    margin: 1rem 0 1.25rem;
}

.result-team-photo__button {
    width: 100%;
    border: 1px solid rgba(105, 68, 31, .42);
    border-radius: 8px;
    background: #23190f;
    box-shadow: 0 8px 18px rgba(35, 22, 10, .24);
    cursor: zoom-in;
    overflow: hidden;
    padding: .35rem;
}

.result-team-photo img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 5px;
}

.result-team-photo figcaption {
    margin-top: .45rem;
    font-weight: 700;
    color: var(--pt-ink);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    grid-template-rows: none;
    grid-auto-rows: auto;
    gap: 1rem;
}

.gallery__item {
    margin: 0;
    aspect-ratio: 4 / 3;
}

.gallery__button {
    width: 100%;
    height: 100%;
    border: 1px solid rgba(105, 68, 31, .42);
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 35%, rgba(255, 255, 255, .32), transparent 12rem),
        #23190f;
    box-shadow: 0 8px 18px rgba(35, 22, 10, .24);
    cursor: zoom-in;
    overflow: hidden;
    padding: .35rem;
}

.gallery__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 5px;
}

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

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(12, 9, 6, .94);
    padding: 4rem 1.25rem 1.25rem;
}

.gallery-lightbox__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .7);
}

.gallery-lightbox__close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(245, 236, 209, .5);
    border-radius: 999px;
    color: #f5ecd1;
    background: rgba(36, 24, 15, .86);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

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

.static-form {
    max-width: 560px;
}

.static-form .form-control {
    margin-bottom: 1rem;
}

.order-items {
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    margin: 1rem 0;
}

.order-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .5rem;
}

.calculator {
    max-width: 640px;
}

.calculator img {
    max-width: 100%;
    margin-top: 1.5rem;
}

.static-disabled {
    opacity: .7;
}

@media (max-width: 640.98px) {
    .static-header {
        min-height: auto;
        padding: .45rem .75rem;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .pt-header-text,
    .pt-header-text-sponzori {
        position: static;
        animation: none !important;
        left: auto !important;
        top: auto !important;
        overflow: visible;
        line-height: 1.35;
    }

    .pt-header-text {
        display: block;
        font-size: .95rem;
        font-weight: 800;
    }

    .pt-header-text img {
        display: none;
    }

    .pt-header-text-sponzori {
        display: inline-block;
        white-space: nowrap;
        font-size: .78rem;
    }

    .sidebar .top-row {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .nav-logo-nevidane {
        width: 48px;
    }

    .nav-logo-crikvenica {
        width: 42px;
    }

    .content {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .page {
        min-height: 100vh;
    }

    .pocetna .main-content {
        display: block;
    }

    .pocetna .main-content .img-container {
        width: 100%;
    }

    .pocetna .main-content .img-container img {
        width: 100%;
    }

    .timer {
        margin-top: 2rem;
        font-size: 28px;
    }

    .timer span {
        overflow-wrap: anywhere;
    }

    .pt-nagrade img {
        max-width: 100%;
        height: auto !important;
    }

    .pt-nagrade .front,
    .pt-nagrade .back {
        width: min(100%, 330px);
        min-width: 0;
        height: auto;
    }

    .pt-footer {
        display: block;
    }

    .pt-footer > * + * {
        margin-top: .5rem;
    }

    .gallery {
        display: block;
    }

    .gallery__item {
        margin-bottom: 1rem;
    }
}

@media (min-width: 641px) {
    .page {
        flex-direction: row;
    }

    .sidebar {
        overflow-y: auto;
        width: 280px;
        height: 100vh;
        position: sticky;
        top: 0;
        flex: 0 0 280px;
    }

    .top-row {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .navbar-toggler {
        display: none;
    }

    .collapse {
        display: block;
    }

    .content {
        padding-left: 2rem;
        padding-right: 1.5rem;
    }
}
