:root {
    --theme: #16171A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: Roboto;
    src: url("fonts/Roboto-Regular.ttf");
    font-weight: 400;
}

@font-face {
    font-family: Roboto;
    src: url("fonts/Roboto-Medium.ttf");
    font-weight: 500;
}

body {
    font-family: "Roboto", sans-serif;
    overflow: hidden;

    display: grid;
    place-items: center;
    height: 100vh;
    width: 100%;
}

/* ::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: gray;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b30000;
} */

body,
html {
    height: 100%;
}

/* header */
header {
    display: flex;
    background-color: var(--theme);
    color: #fff;
    height: 56px;
    align-items: center;
}

.desktop .header {
    display: flex !important;
}

body.show_menu.desktop nav.tabs {
    display: flex !important;
}


body.modal-embed:after,
body.inline-embed.fullscreen:after,
body:after {
    content: '';
    position: absolute;
    inset: 0;
    background-color:rgb(0 0 0 / 75%);
    z-index: 99;
}

.request_info {
    margin-right: 14px;
}

.request_info .request_info_btn {
    background-color: #004BA3;
    color: #fff;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    font-weight: 600;
    box-shadow: 0px 2px 4px 0px #5b404040;
}

body.inline-embed .header__logo{
    display: none;
}
body.inline-embed .header__title{
    margin-left: 15px;
}

.desktop[size="lg"] nav.tabs {
    display: flex !important;
}

/* lg - large */
body[size='lg']:not(.mobile) main {
    display: grid;
    grid-template-columns: 72px auto;
}

/*  md - medium */
body[size='md'] main nav,
.mobile.landscape main nav {
    display: none !important;
}


body[size='md'] .landscape_menu,
.mobile.landscape .landscape_menu {
    display: flex;
}

body[size='md'] main nav,
.mobile.landscape main nav {
    display: block;
    width: 124px;
    box-shadow: none;
    position: absolute;
    right: 0;
    box-shadow: 1px 3px 6px #8d8a8a;
    display: none;
}

body[size='md'].show_menu main nav,
.mobile.landscape.show_menu main nav {
    display: block !important;
}

body[size='md'] main nav li,
.mobile.landscape main nav li {
    flex-direction: row;
    justify-content: space-between;
    height: 50px;
    padding: 0 10px;

}

body[size='md'] main nav li svg,
.mobile.landscape main nav li svg {
    flex: 1;
    text-align: left;
    display: flex;
    margin-right: 5px;
}

body[size='md'] main nav li label,
.mobile.landscape main nav li label {
    flex: 2;
    text-align: left;
    cursor: pointer;
}

/*  sm - small */
body[size='sm'] main,
.mobile.portrait main {
    display: grid;
    height: calc(100vh - 56px);
}

/* body[data-tab="player_360"].mobile.portrait .player {
    min-height: 475px;
    overflow-x: hidden;
    overflow-y: auto;
} */

/* body[data-tab="player_360"].mobile.portrait .player iframe {
    min-height: 630px;
} */


body[data-tab="player_360"].mobile.portrait .player,
body[data-tab="player_360"].mobile.landscape .player {
    overflow-x: hidden;
    overflow-y: auto;
}

body[data-tab="player_360"].mobile.portrait .player iframe {
    min-height: 590px;
}

/* body[data-tab="player_360"].mobile.landscape .player iframe {
    min-height: 280px;
} */

body[size='sm'] nav.tabs,
.mobile.portrait nav.tabs {
    order: 1;
}

body[size='sm'] .player,
.mobile.portrait .player {
    order: 0;
    height: calc(100vh - 128px);
}

body[size='sm'] .tabs__list,
.mobile.portrait .tabs__list {
    flex-direction: row;
    justify-content: space-around;
}

.header__title {
    margin-right: auto;
    display: flex;
    flex-direction: column;
    width: calc(100% - 96px);
}

body.modal-embed #app {
    max-width: min(1200px, calc((100dvh - 40px) * 1.77)) !important;
}

.focus_mode .main,
.focus_mode .main .player,
#app {
    max-width: 1200px !important;
    width: 100%;
    z-index: 999;
    background-color: #fff;
}


.show_menu.landscape.mobile .main .tabs,
body:not(.focus_mode).mobile.portrait .main .tabs {
    display: flex !important;
}

.header__title .title {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    font-weight: 500;
    /* font-size: clamp(14px, 1.5vw, 16px); */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tabs__list__item .tab_icon svg {
    fill: #6D727A;
}

.tabs__list__item.active .tab_icon svg {
    fill: #16171A;
}

.header__title .title_sup {
    font-size: 12px;
    display: block;
    /* margin: 2px 0; */
    font-weight: 500;
}

.player {
    height: 100%;
    position: relative;
}

.player.portrait-video-player {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader_wrapper {
    position: absolute;
    inset: 0px;
    background-color: rgb(255, 255, 255);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* .main {
    height: calc(100vh - 56px);
} */

nav.tabs {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    overflow: hidden;
    box-shadow: 1px 3px 6px #8d8a8a;
    z-index: 99;
}

body:not(.focus_mode).portrait .main .tabs {
    display: flex;
}

.tabs__list {
    display: flex;
    flex-direction: column;
    user-select: none;
}

nav.tabs li {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 72px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

nav.tabs li.active label {
    color: #16171A;
}

.tabs__list__item label {
    color: #6D727A;
    font-size: 12px;
    cursor: pointer;
    font-weight: 500;
}

.header__logo,
.landscape_menu {
    margin: 14px;
    cursor: pointer;
    display: flex;
}

body[size="md"] .request_info {
    margin-right:0px;
}

.landscape_menu {
    display: none;
}

.tabs__list__item svg {
    display: block;
    margin: 5px 0;
}

.header__tabs {
    position: relative;
    /* margin-right: 20px; */
    display: none;
    margin-left:15px;
}

.header__tabs__list {
    display: inline-flex;
    background: #E4E9EF;
    border-radius: 39px;
    justify-content: space-around;
    width: 320px;
}

.header__tabs__list li {
    list-style-type: none;
    height: 38px;
    cursor: pointer;
    flex: 1;
    text-align: center;
    color: #6D727A;
    z-index: 9;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header__tabs__list li.active {
    color: #000;
}

.header__tabs__list li svg path {
    fill: #6D727A;
}

.header__tabs__list li.active svg path {
    fill: #000;
}

.header__tabs .slide-nav {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 0px;
    pointer-events: none;
    z-index: 0;
}

.header__tabs .header__tabs__list svg {
    z-index: 9;
    margin: 0 8px;
}

.header__tabs .slide-nav .slide-nav-children {
    height: 100%;
    background-color: #fff;
    border-radius: 32px;
    transition: transform 0.4s;
    box-shadow: 1px 1px 3px rgba(0, 42, 50, 0.15);
}

main iframe {
    width: 100%;
    display: block;
    border: none;
    height: 100%;
}

body:not([size="sm"]) iframe {
    aspect-ratio: 16 /9;
    height: auto;
}

body.ig-embed[data-tab="photos"]:not([size="sm"]) iframe {
    width: 75%;
    margin: 0 auto;
    aspect-ratio: 4/3;
}
body.ig-embed:not(.mobile)[data-tab="photos"]:not([size="sm"]).player_16_9 iframe {
    width: 100%;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
}

body.ig-embed.mobile[data-tab="photos"]:not([size="sm"]).player_16_9 iframe {
    width: calc((100vh - 50px) * (16 / 9));
    margin: 0 auto;
}

body.ig-embed.mobile[data-tab="photos"]:not([size="sm"]).player_4_3 iframe {
    width: calc((100vh - 50px) * (4 / 3));
    margin: 0 auto;
}

body.ig-embed[data-tab="photos"] .player {
    aspect-ratio: 16 / 9;
}

body.ig-embed[data-tab="photos"][size='sm'] .player {
    aspect-ratio: unset;
    display: grid;
    align-items: center;
}
body.ig-embed[data-tab="photos"][size='sm'] iframe {
    aspect-ratio: 16 / 12 !important;
    height: auto;
}

.contact_txt {
    display: flex;
    margin: 15px;
    cursor: pointer;
    display: none;
}

body[size="lg"] .contact_txt {
    display: flex;
}

.contact_txt svg {
    margin: 0 10px;
}

body[size='sm'] .header__title {
    width: calc(100% - 60px);
}

.mobile.landscape iframe {
    height: calc(100vh - 56px);
    aspect-ratio: initial !important;
}

.focus_mode.mobile.landscape iframe {
    height: 100vh !important;
}

.mobile.portrait iframe {
    aspect-ratio: initial !important;
    height: 100%;
    /* height: calc(100vh - 76px); */
}

.mobile.portrait .header__title {
    width: calc(100% - 56px);
}

body[data-tab="player_360"].mobile.portrait header,
body[data-tab="player_360"][size="sm"] header,

body[data-tab="features"].mobile.portrait header,
body[data-tab="features"][size="sm"] header {
    display: none !important;
}

body[data-tab="player_360"].mobile.portrait main,
body[data-tab="player_360"][size="sm"] main,

body[data-tab="features"].mobile.portrait main,
body[data-tab="features"][size="sm"] main {
    height: 100vh;
}

body[data-tab="player_360"].mobile.portrait .player,
body[data-tab="player_360"][size="sm"] .player,


body[data-tab="features"].mobile.portrait .player,
body[data-tab="features"][size="sm"] .player {
    height: calc(100vh - 72px);
}

body[data-tab="player_360"][size="sm"] .header__title,
body[data-tab="features"][size="sm"] .header__title {
    width: calc(100% - 56px);
}

/* body[data-tab="player_360"][size="sm"] .header{
    display:none;
} */

@media screen and (max-width: 928px) {

    body[size='md'][data-tab="player_360"] .header__tabs,
    [data-tab="player_360"].mobile.landscape .header__tabs {
        display: block;
    }

    body[data-tab="player_360"] .header__title {
        width: calc(100% - 446px);
    }
}

main iframe.portrait-video {
    max-width: 100%;
    margin-inline: auto;
    aspect-ratio: 9 / 16 !important;
}

body:not([size="sm"]):not(.mobile) main iframe.portrait-video {
    width: 31.640625%;
    height: auto;
}

body[size="sm"] main iframe.portrait-video,
body.mobile.portrait main iframe.portrait-video {
    width: min(100%, calc(56.25vh - 72px));
    /* height: auto; */
}

body.mobile.landscape main iframe.portrait-video {
    width: auto;
    height: calc(100vh - 56px);
}
