@font-face {
    font-family: Avenir;
    src: url("/infoscreens/production_assets/AvenirNextCyr-Regular.woff") format("woff");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: Avenir;
    src: url("/infoscreens/production_assets/AvenirNextCyr-Medium.woff") format("woff");
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: Avenir;
    src: url("/infoscreens/production_assets/AvenirNextCyr-Bold.woff") format("woff");
    font-weight: 700;
    font-display: swap;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
    margin: 0;
    min-height: 100vh;
    background: #333 url("rotation_bg.svg") center / cover;
    color: #fff;
    font-family: Avenir, Arial, sans-serif;
}

.camera-layout { padding: 5vh 2.7vh 2.7vh; }

h1 {
    margin: 0;
    font-size: 6.4vh;
    line-height: .98;
}

.camera-content {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
    margin-top: 5vh;
    height: 74.75vh;
    box-shadow: 5px 0 13px #0004;
}

.camera-image {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    background-color: #242424;
}

.camera-image img {
    position: absolute;
    top: -2.8vh;
    left: 0;
    width: 100%;
    height: calc(100% + 5.6vh);
    object-fit: cover;
    object-position: left top;
}

aside {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2vh;
    min-height: 0;
    overflow: hidden;
    background: #2e2e2e;
    padding: 2.7vh;
    font-size: 1.8vh;
}

h2 {
    margin: 0 0 1.8vh;
    color: #aaa;
    font-size: inherit;
    font-weight: 500;
}

.camera-section { min-height: 0; }
ul { margin: 0; padding: 0; list-style: none; }
li { display: flex; align-items: baseline; gap: .6vh; margin-bottom: 1vh; line-height: 1.3; font-weight: 500; }
li img { width: 1.6vh; flex: none; }
li[aria-current="true"] { color: #c8821c; font-weight: 700; transform: translateX(1.8vh); }
.news { flex: 0 0 20vh; overflow: hidden; }
.news p { margin: 0 0 1vh; }
#rotation-slide { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }

@media (max-width: 767px) {
    .camera-layout { padding: 27px 15px; }
    h1 { font-size: 26px; line-height: normal; }
    .camera-content { display: block; margin-top: 20px; height: auto; box-shadow: none; }
    .camera-image { margin: 0 -15px; aspect-ratio: 16 / 9; }
    .camera-image img { top: 0; height: 100%; }
    aside { gap: 30px; background: transparent; padding: 30px 0 0; font-size: 15px; }
    li { margin-bottom: 5px; }
    li img { width: 14px; }
    .news { flex-basis: auto; }
}
