/* Night Duty gallery styles */

.selected {
    color: var(--nd-root-soft) !important;
    box-shadow: 0 0 20px rgb(var(--nd-root-rgb) / 0.28) !important;
}

.Gallery_UI {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 18%, rgba(245, 197, 108, 0.14), transparent 22%),
        radial-gradient(circle at 18% 18%, rgb(var(--nd-root-rgb) / 0.14), transparent 26%),
        linear-gradient(145deg, #081018 0%, #030507 42%, #09121a 100%);
    display: flex;
    flex-direction: row;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    z-index: 1700;
}

.Gallery_UI.visible {
    opacity: 1;
}

.gallery_overlay {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(3, 5, 7, 0.68);
    backdrop-filter: blur(4px);
    z-index: 40;
}

.gallery_popup {
    background: linear-gradient(145deg, rgba(17, 36, 47, 0.98), rgba(8, 12, 20, 0.98));
    /* border: 2px solid rgba(90, 1, 3, 0.36); */
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.4), 0 0 30px rgba(90, 1, 3, 0.2);
    border-radius: 18px;
    padding: 26px;
    max-width: 500px;
    width: 90%;
    color: #ff9a9a;
    text-align: center;
    font-family: 'Rebelton', Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    letter-spacing: 0.05em;
}

.gallery_popup h2 {
    margin: 0 0 12px;
    font-size: 25px;
    color: #ff9a9a;
    letter-spacing: 0.06em;
}

.gallery_popup p {
    margin: 8px 0;
    font-size: 14px;
    color: #ff9a9a;
    /* line-height: 1.45; */
}

.gallery_popup button {
    margin-top: 14px;
    padding: 7px 18px 10px 18px;
    background: linear-gradient(145deg, rgba(90, 1, 3, 0.95), rgba(22, 3, 4, 0.97));
    color: #ff9a9a;
    border: 2px solid rgba(90, 1, 3, 0.28);
    border-radius: 999px;
    cursor: pointer;
    font-weight: bold;
    font-family: inherit;
    letter-spacing: 0.05em;
    transition: all 0.25s ease;
}

.gallery_popup button:hover {
    background: linear-gradient(145deg, rgba(110, 10, 12, 0.98), rgba(34, 4, 6, 0.98));
    box-shadow: 0 0 16px rgba(90, 1, 3, 0.34);
    border-color: rgba(90, 1, 3, 0.6);
}

.gallery_popup .gallery-popup-secondary {
    background: linear-gradient(145deg, rgba(42, 46, 55, 0.95), rgba(16, 18, 24, 0.98));
    color: #ff9a9a;
    border-color: rgba(136, 160, 171, 0.28);
}

.gallery_popup .gallery-popup-secondary:hover {
    background: linear-gradient(145deg, rgba(59, 64, 74, 0.98), rgba(21, 24, 31, 0.98));
    box-shadow: 0 0 16px rgba(136, 160, 171, 0.22);
    border-color: rgba(136, 160, 171, 0.52);
}

.gallery_popup .popup-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.gallery_sidebar {
    background: linear-gradient(145deg, rgb(var(--nd-root-rgb) / 0.88), rgba(14, 8, 10, 0.98));
    border-right: 3px solid rgb(var(--nd-root-strong-rgb) / 0.85);
    display: flex;
    flex-direction: column;
    width: 350px;
    height: 100%;
    font-weight: bold;
    font-family: 'Rebelton', Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    z-index: 10;
    position: absolute;
    left: 0;
    transform: translateX(-100%);
    transition: transform 0.5s ease-in-out, opacity 0.3s ease-in-out;
}

.gallery_sidebar,
.gallery_sidebar * {
    font-family: 'Rebelton', Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}

.Gallery_UI.visible .gallery_sidebar {
    transform: translateX(0);
}

.gallery {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row-reverse;
    position: absolute;
}

.G_logo {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 130px;
    max-height: 130px;
    align-items: center;
    margin-bottom: 25px;
    margin-top: 25px;
    border: 2px solid transparent;
    box-sizing: border-box;
    cursor: pointer;
    transition: background-color 0.25s, color 0.25s, box-shadow 0.25s;
}

.G_logo:hover {
    background: linear-gradient(145deg, rgb(var(--nd-root-strong-rgb) / 0.32), rgb(var(--nd-root-rgb) / 0.74)) !important;
    color: var(--nd-root-soft) !important;
    box-shadow: 0 0 18px rgb(var(--nd-root-rgb) / 0.22) !important;
    outline: 2px solid rgb(var(--nd-root-strong-rgb) / 0.85) !important;
}

.G_logo:hover .G_logo_text {
    color: var(--nd-root-soft);
}

.G_logo_text {
    font-size: 46px;
    color: white;
    text-shadow: 0 0 14px rgb(var(--nd-root-rgb) / 0.4);
    letter-spacing: 0.08em;
    bottom: 10px;
    position: relative;
}

.gallery_categories_cont {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.gallery_category {
    width: 100%;
    height: 110px;
    margin-bottom: 10px;
    text-align: center;
    cursor: pointer;
    font-size: 34px;
    color: var(--nd-root-soft);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid transparent;
    box-sizing: border-box;
    transition: background-color 0.25s, color 0.25s, box-shadow 0.25s;
    letter-spacing: 0.06em;
}

.gallery_category:hover {
    background-color: rgb(var(--nd-root-rgb) / 0.14);
    color: var(--nd-root-soft);
    box-shadow: inset 0 0 0 1px rgb(var(--nd-root-rgb) / 0.14), 0 0 12px rgb(var(--nd-root-rgb) / 0.14);
}

.gallery_category[data-category="attack"]:hover,
.gallery_category[data-category="attack"].selected {
    background: linear-gradient(145deg, rgb(var(--nd-root-strong-rgb) / 0.32), rgb(var(--nd-root-rgb) / 0.74)) !important;
    color: var(--nd-root-soft) !important;
    box-shadow: 0 0 18px rgb(var(--nd-root-rgb) / 0.22) !important;
    outline: 2px solid rgb(var(--nd-root-strong-rgb) / 0.85) !important;
}

.gallery_category[data-category="reward"]:hover,
.gallery_category[data-category="reward"].selected {
    background: linear-gradient(145deg, rgb(var(--nd-root-strong-rgb) / 0.32), rgb(var(--nd-root-rgb) / 0.74)) !important;
    color: var(--nd-root-soft) !important;
    box-shadow: 0 0 18px rgb(var(--nd-root-rgb) / 0.22) !important;
    outline: 2px solid rgb(var(--nd-root-strong-rgb) / 0.85) !important;
}

.gallery_category[data-category="camera"]:hover,
.gallery_category[data-category="camera"].selected {
    background: linear-gradient(145deg, rgb(var(--nd-root-strong-rgb) / 0.32), rgb(var(--nd-root-rgb) / 0.74)) !important;
    color: var(--nd-root-soft) !important;
    box-shadow: 0 0 18px rgb(var(--nd-root-rgb) / 0.2) !important;
    outline: 2px solid rgb(var(--nd-root-strong-rgb) / 0.85) !important;
}

.gallery_category.is-locked {
    opacity: 0.58;
}

.gallery_category.is-locked.selected {
    opacity: 0.58;
}

.gallery_category[data-category="gold"]:hover,
.gallery_category[data-category="gold"].selected {
    background: linear-gradient(145deg, rgba(255, 221, 116, 0.48), rgba(110, 74, 14, 1)) !important;
    color: rgba(255, 215, 98, 1) !important;
    box-shadow: 0 0 22px rgba(255, 214, 92, 1) !important;
    outline: 2px solid rgba(255, 221, 116, 1) !important;
}

.gallery_category[data-category="diamond"]:hover,
.gallery_category[data-category="diamond"].selected {
    background: linear-gradient(145deg, rgba(214, 247, 255, 0.44), rgba(34, 74, 102, 0.96)) !important;
    color: rgba(232, 251, 255, 1) !important;
    box-shadow: 0 0 22px rgba(191, 240, 255, 1) !important;
    outline: 2px solid rgba(214, 247, 255, 1) !important;
}

.gallery_category label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
    pointer-events: none;
    margin-bottom: 10px;
}

.char_filter {
    position: absolute;
    bottom: 22px;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.gallery_unlock_button {
    position: absolute;
    top: 38px;
    left: 390px;
    min-width: 250px;
    padding: 6px 20px 12px 20px;
    background: linear-gradient(145deg, rgb(var(--nd-root-strong-rgb) / 0.32), rgb(var(--nd-root-rgb) / 0.74)) !important;
    color: white;
    border: 2px solid rgb(var(--nd-root-strong-rgb) / 0.85) !important;
    border-radius: 999px;
    cursor: pointer;
    font-family: 'Rebelton',sans-serif;
    font-size: 20px;
    letter-spacing: 0.04em;
    /* text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35); */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
    z-index: 30;
    pointer-events: auto;
}

.gallery_unlock_button:hover {
    filter: brightness(1.1);
    transform: scale(1.1);
}

.gallery_unlock_button.is-complete {
    background: linear-gradient(145deg, #1f6847, #103725);
    color: #ecfff6;
    border-color: rgba(108, 230, 177, 0.58);
    cursor: default;
}

.gallery_unlock_button.is-complete:hover {
    transform: none;
    box-shadow: none;
    filter: none;
}

.gallery_unlock_button.is-edition-locked {
    opacity: 0.82;
}

.gallery-inmate-filter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px;
}

.gallery-inmate-filter-label {
    font-size: 18px;
    font-weight: bold;
    color: var(--nd-root-soft);
    text-shadow: 0 0 10px rgb(var(--nd-root-rgb) / 0.28);
    letter-spacing: 0.1em;
    margin-bottom: 5px;
}

.gallery-inmate-filter-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.gallery-inmate-filter-btn {
    font-size: 22px;
    cursor: pointer;
    background: linear-gradient(145deg, rgb(var(--nd-root-rgb) / 0.98), rgba(24, 3, 4, 0.98));
    color: var(--nd-root-soft);
    border: 2px solid rgb(var(--nd-root-strong-rgb) / 0.85);
    padding: 0px 8px 4px 8px;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
}

.gallery-inmate-filter-btn:hover {
    background: linear-gradient(145deg, rgb(var(--nd-root-strong-rgb) / 0.72), rgb(var(--nd-root-rgb) / 0.92));
    box-shadow: 0 0 12px rgb(var(--nd-root-rgb) / 0.26);
    border-color: rgb(var(--nd-root-rgb) / 0.55);
}

.gallery-inmate-filter-name {
    font-size: 18px;
    color: #ffffff;
    min-width: 150px;
    text-align: center;
    letter-spacing: 0.08em;
}

.gallery_scene {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.6s ease-in-out 0.2s;
    z-index: 5;
    cursor: zoom-in;
}

.Gallery_UI.visible .gallery_scene {
    opacity: 1;
}

.gallery_scene.is-focused {
    cursor: zoom-out;
}

.gallery_scene video,
.gallery_scene img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.scene_transition_overlay {
    position: absolute;
    inset: 0;
    background: #000;
    opacity: 0;
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.22s ease;
}

.scene_transition_overlay.visible {
    opacity: 0.85;
}

.scene_player,
.scene_image {
    position: absolute;
    inset: 0;
    display: none;
    cursor: zoom-in;
}

.scene_player.is-visible,
.scene_image.is-visible {
    display: block;
}

.gallery_scene_variant_switcher {
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    /* background: rgba(3, 7, 12, 0.82); */
    /* border: 1px solid rgb(var(--nd-root-strong-rgb) / 0.65); */
    /* box-shadow: 0 12px 26px rgba(0, 0, 0, 0.42); */
    z-index: 16;
}

.gallery_scene_variant_switcher.is-visible {
    display: flex;
}

.gallery_scene_variant_button {
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 8px;
    border: 2px solid rgb(var(--nd-root-strong-rgb) / 0.5);
    background: rgba(0, 0, 0, 0.75);
    color: #f4fbff;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.gallery_scene_variant_button:hover {
    border-color: rgb(var(--nd-root-strong-rgb) / 0.95);
    color: var(--nd-root-soft);
    box-shadow: 0 0 14px rgb(var(--nd-root-rgb) / 0.28);
}

.gallery_scene_variant_button.is-disabled,
.gallery_scene_variant_button:disabled {
    border-color: rgba(138, 146, 156, 0.34);
    background: rgba(18, 20, 24, 0.82);
    color: rgba(170, 176, 184, 0.72);
    cursor: default;
    box-shadow: none;
}

.gallery_scene_variant_button.is-disabled:hover,
.gallery_scene_variant_button:disabled:hover {
    border-color: rgba(138, 146, 156, 0.34);
    color: rgba(170, 176, 184, 0.72);
    box-shadow: none;
}

.gallery_scene_variant_button.is-active {
    background: linear-gradient(145deg, rgb(var(--nd-root-strong-rgb) / 0.5), rgb(var(--nd-root-rgb) / 0.86));
    border-color: rgb(var(--nd-root-strong-rgb) / 1);
    color: var(--nd-root-soft);
    box-shadow: 0 0 16px rgb(var(--nd-root-rgb) / 0.34);
}

.Gallery_UI.is-scene-focused .gallery_sidebar,
.Gallery_UI.is-scene-focused .gallery_selection,
.Gallery_UI.is-scene-focused .gallery_arrow,
.Gallery_UI.is-scene-focused .gallery_unlock_button {
    display: none;
}

.gallery_arrow.arrow-hidden {
    display: none;
}

.gallery_meta_kicker {
    font-family: Consolas, monospace;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--nd-amber);
    margin-bottom: 8px;
}

.gallery_meta_title {
    font-family: Georgia, serif;
    font-size: 34px;
    color: #f7fbff;
    margin-bottom: 10px;
}

.gallery_meta_description {
    font-size: 17px;
    line-height: 1.48;
    color: #bfd0d9;
    max-width: 56ch;
}

.gallery_selection {
    width: 430px;
    clip-path: url(#myClip);
    overflow: hidden;
    position: relative;
    right: 0;
    z-index: 20;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.5), rgba(5, 12, 19, 0.82));
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out 0.1s, opacity 0.3s ease-in-out;
    border-left: 1px solid rgba(90, 1, 3, 0.14);
}

.Gallery_UI.visible .gallery_selection {
    transform: translateX(0);
}

.gallery_selection_content {
    display: block;
    width: 100%;
    will-change: transform;
    padding-bottom: 84px;
}

.gallery_selection::-webkit-scrollbar {
    display: none;
}

.scene_prev {
    width: 100%;
    min-height: 258px;
    max-height: 258px;
    position: relative;
    padding: 0;
    border: 2px solid transparent;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    background: rgba(7, 11, 18, 0.92);
    text-align: left;
    aspect-ratio: 16 / 9;
    margin-bottom: 5px;
    box-sizing: border-box;
}

.scene_prev.selected {
    background: rgba(7, 11, 18, 0.92) !important;
    color: inherit !important;
    box-shadow: none !important;
    outline: none !important;
}

.scene_prev img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 0.35s ease, filter 0.35s ease;
}

.scene_prev--gold {
    border-right: 2px solid rgba(255, 219, 112, 0.98);
    box-shadow: inset 0 0 0 1px rgba(255, 213, 98, 0.18);
}

.scene_prev--diamond {
    border-right: 2px solid rgba(202, 244, 255, 0.98);
    box-shadow: inset 0 0 0 1px rgba(191, 240, 255, 0.18);
}

.scene_prev_text {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18px;
}

.videoTitle {
    font-family: Georgia, serif;
    font-size: 23px;
    color: #fff;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
    margin-bottom: 0;
    transform: translateX(60px);
}

.sceneSubTitle {
    font-family: Consolas, monospace;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--nd-root-soft);
}

.gallery_arrow {
    position: absolute;
    right: 440px;
    top: 5px;
    z-index: 25;
    width: 40px;
    height: 40px;
    transition: top 0.3s ease-in-out;
    pointer-events: none;
}

.gallery_arrow svg {
    width: 810%;
    height: 240%;
    filter: drop-shadow(0 0 5px rgb(var(--nd-root-rgb) / 0.8));
}

.gallery_arrow polygon {
    fill: var(--nd-root-soft);
    stroke: var(--nd-red);
}

.unlocked_counter {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 430px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 20px;
    font-family: Georgia, serif;
    z-index: 101;
    pointer-events: none;
}

@media (max-width: 1400px) {
    .gallery_sidebar {
        width: 300px;
    }

    .gallery_selection {
        width: 360px;
    }

    .gallery_arrow {
        right: 360px;
    }

    .gallery_unlock_button {
        left: 330px;
    }
}
