﻿/* Feed4Gamers: Sector embedded article gallery and comparison styles. */

        .news-gallery{margin-top:10px}
.news-gallery .ng-grid{display:grid;gap:8px}
.news-gallery.auto .ng-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.news-gallery.duo  .ng-grid{grid-template-columns:repeat(2,minmax(0,1fr))}

@media (max-width: 640px){
  .news-gallery.auto .ng-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .news-gallery.duo  .ng-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

.news-gallery .ng-item{display:block}
.news-gallery .ng-img{width:100%;height:auto;display:block;border:0}

.news-gallery.cover .ng-item.is-cover{grid-column:1/-1}

.news-gallery.masonry .ng-grid{
  display:block;
  column-count:3;
  column-gap:8px;
}
.news-gallery.masonry .ng-item{
  break-inside:avoid;
  margin:0 0 8px;
}
@media (max-width: 640px){
  .news-gallery.masonry .ng-grid{column-count:2}
}

/* FIT režim – 16:9 dlaždice */
.news-gallery.fit .ng-item {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 2px;
  background: #111;
}

.news-gallery.fit .ng-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* =====================================================
   SECTORPICTS - 2 az 4 obrazky automaticky v jednom riadku
   ===================================================== */
.sectorpicts {
  display: flex;
  width: 100%;
  gap: 8px;
  margin: 8px 0;
  align-items: stretch;
}

.sectorpicts-item {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
}

.sectorpicts-img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}

@media (max-width: 640px) {
  .sectorpicts {
    flex-direction: column;
    gap: 8px;
  }

  .sectorpicts-item {
    width: 100%;
  }

  .sectorpicts-img {
    width: 100%;
    height: auto;
  }
}

.sectorcompare-wrap {
    position: relative;
    width: 100%;
}

/* =====================================================
   HLAVNY POROVNAVAC
   ===================================================== */

.sectorcompare {
    position: relative;

    width: 100%;

    overflow: hidden;

    background: #000;

    user-select: none;

    touch-action: pan-y;
}

/* =====================================================
   SLIDER
   ===================================================== */

.sectorcompare-slider {
    position: relative;

    width: 100%;

    overflow: hidden;

    cursor: ew-resize;
}

.sectorcompare-slider img {
    display: block;

    width: 100%;
    height: auto;

    pointer-events: none;

    user-select: none;

    -webkit-user-drag: none;
}

.sectorcompare-top {
    position: absolute;

    left: 0;
    top: 0;

    clip-path: inset(0 50% 0 0);
}

/* =====================================================
   DELIACA CIARA
   ===================================================== */

.sectorcompare-line {
    position: absolute;

    left: 50%;
    top: 0;
    bottom: 0;

    width: 3px;

    background: #fff;

    transform: translateX(-50%);

    pointer-events: none;

    z-index: 10;
}

/* =====================================================
   HANDLE
   ===================================================== */

.sectorcompare-handle {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 44px;
    height: 44px;

    margin-left: -22px;
    margin-top: -22px;

    border-radius: 50%;

    background: rgba(0,0,0,.58);

    border: 3px solid #fff;

    box-sizing: border-box;

    box-shadow: 0 1px 5px rgba(0,0,0,.5);
}

.sectorcompare-handle-arrow {
    position: absolute;

    top: 50%;

    width: 0;
    height: 0;

    margin-top: -6px;
}

.sectorcompare-handle-left {
    left: 8px;

    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 8px solid #fff;
}

.sectorcompare-handle-right {
    right: 8px;

    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid #fff;
}

/* =====================================================
   SLIDER POPISKY
   Popisky sa orezu presne podla polohy slidera.
   ===================================================== */

.sectorcompare-label-layer {
    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    pointer-events: none;

    z-index: 6;
}

.sectorcompare-label-layer-left {
    clip-path: inset(0 50% 0 0);
}

.sectorcompare-label-layer-right {
    clip-path: inset(0 0 0 50%);
}

.sectorcompare-label {
    position: absolute;

    top: 14px;

    padding: 7px 11px;

    background: rgba(0,0,0,.64);

    color: #fff;

    font-size: 15px;
    font-weight: bold;

    line-height: 1.1;

    border-radius: 4px;

    pointer-events: none;

    text-shadow: 0 1px 2px rgba(0,0,0,.9);

    white-space: nowrap;
}

.sectorcompare-label-left {
    left: 14px;
}

.sectorcompare-label-right {
    right: 14px;
}

/* =====================================================
   SIDE BY SIDE
   ===================================================== */

.sectorcompare-side {
    display: none;

    position: relative;

    width: 100%;

    aspect-ratio: var(--sectorcompare-ratio, 1.777777);

    background: #000;
}

.sectorcompare-wrap.sectorcompare-side-mode .sectorcompare-slider {
    display: none;
}

.sectorcompare-wrap.sectorcompare-side-mode .sectorcompare-side {
    display: grid;

    grid-template-columns: 1fr 1fr;
}

/* polovice */

.sectorcompare-pane {
    position: relative;

    width: 100%;
    height: 100%;

    overflow: hidden;

    background: #080808;

    cursor: grab;

    touch-action: none;
}

.sectorcompare-pane:active {
    cursor: grabbing;
}

.sectorcompare-pane-left {
    border-right: 1px solid rgba(255,255,255,.55);
}

.sectorcompare-pane-right {
    border-left: 1px solid rgba(0,0,0,.4);
}

/* obrazky v side mode */

.sectorcompare-side-image {
    position: absolute;

    left: 50%;
    top: 50%;

    display: block;

    max-width: none !important;
    max-height: none !important;

    width: auto;
    height: auto;

    user-select: none;

    pointer-events: none;

    -webkit-user-drag: none;

    transform-origin: center center;

    will-change: transform;
}

/* side labels */

.sectorcompare-side-label {
    position: absolute;

    left: 12px;
    top: 12px;

    z-index: 8;

    padding: 7px 10px;

    border-radius: 4px;

    background: rgba(0,0,0,.64);

    color: #fff;

    font-size: 14px;
    font-weight: bold;

    line-height: 1;

    pointer-events: none;

    text-shadow: 0 1px 2px rgba(0,0,0,.9);
}

/* =====================================================
   OVLADACIE TLACIDLA
   ===================================================== */

.sectorcompare-control {
    position: relative;

    width: 36px;
    height: 36px;

    padding: 0;

    border: 0;

    border-radius: 5px;

    background: rgba(0,0,0,.68);

    cursor: pointer;

    display: flex;

    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    z-index: 20;

    transition: background-color .15s ease;
}

.sectorcompare-control:hover {
    background: rgba(0,0,0,.92);
}

.sectorcompare-control svg {
    display: block;

    width: 21px;
    height: 21px;

    fill: #fff;

    pointer-events: none;
}

/* otvorenie laveho */

.sectorcompare-open-left {
    position: absolute;

    left: 10px;
    bottom: 10px;
}

/* prava skupina */

.sectorcompare-tools {
    position: absolute;

    right: 10px;
    bottom: 10px;

    z-index: 20;

    display: flex;

    gap: 5px;
}

/* =====================================================
   TLACIDLO REZIMU UPROSTRED
   ===================================================== */

.sectorcompare-mode {
    position: absolute;

    left: 50%;
    bottom: 10px;

    transform: translateX(-50%);

    z-index: 25;
}

/* normalne ukazuje side by side ikonu */

.sectorcompare-mode-slidericon {
    display: none !important;
}

/* v side mode ukazuje ikonu slidera */

.sectorcompare-wrap.sectorcompare-side-mode .sectorcompare-mode-sideicon {
    display: none !important;
}

.sectorcompare-wrap.sectorcompare-side-mode .sectorcompare-mode-slidericon {
    display: block !important;
}

/* =====================================================
   LIGHTGALLERY
   ===================================================== */

.sectorcompare-gallery-link {
    display: none !important;
}

/* =====================================================
   EXIT
   ===================================================== */

.sectorcompare-exit {
    display: none;

    position: absolute;

    top: 14px;
    right: 14px;

    width: 36px;
    height: 36px;

    padding: 0;

    border: 0;

    border-radius: 5px;

    background: rgba(0,0,0,.68);

    cursor: pointer;

    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    z-index: 50;
}

.sectorcompare-exit:hover {
    background: rgba(0,0,0,.92);
}

.sectorcompare-exit svg {
    width: 21px;
    height: 21px;

    fill: #fff;

    pointer-events: none;
}

/* =====================================================
   FULLSCREEN
   ===================================================== */

.sectorcompare-wrap:fullscreen {
    width: 100vw;
    height: 100vh;

    background: #111;

    padding: 2vh 2vw;

    box-sizing: border-box;

    display: flex;

    align-items: center;
    justify-content: center;
}

.sectorcompare-wrap:fullscreen .sectorcompare {
    width: min(
        96vw,
        calc(96vh * var(--sectorcompare-ratio, 1.777777))
    );
}

/* vo fullscreene spodne ovladanie prec */

.sectorcompare-wrap:fullscreen .sectorcompare-open-left,
.sectorcompare-wrap:fullscreen .sectorcompare-tools,
.sectorcompare-wrap:fullscreen .sectorcompare-mode {
    display: none !important;
}

.sectorcompare-wrap:fullscreen .sectorcompare-exit {
    display: flex;
}

/* Safari */

.sectorcompare-wrap:-webkit-full-screen {
    width: 100vw;
    height: 100vh;

    background: #111;

    padding: 2vh 2vw;

    box-sizing: border-box;

    display: flex;

    align-items: center;
    justify-content: center;
}

.sectorcompare-wrap:-webkit-full-screen .sectorcompare {
    width: min(
        96vw,
        calc(96vh * var(--sectorcompare-ratio, 1.777777))
    );
}

.sectorcompare-wrap:-webkit-full-screen .sectorcompare-open-left,
.sectorcompare-wrap:-webkit-full-screen .sectorcompare-tools,
.sectorcompare-wrap:-webkit-full-screen .sectorcompare-mode {
    display: none !important;
}

.sectorcompare-wrap:-webkit-full-screen .sectorcompare-exit {
    display: flex;
}

/* =====================================================
   FALLBACK FULLSCREEN
   ===================================================== */

.sectorcompare-wrap.sectorcompare-maximized {
    position: fixed;

    left: 0;
    top: 0;

    width: 100vw;
    height: 100vh;

    z-index: 999999;

    background: #111;

    padding: 2vh 2vw;

    box-sizing: border-box;

    display: flex;

    align-items: center;
    justify-content: center;
}

.sectorcompare-wrap.sectorcompare-maximized .sectorcompare {
    width: min(
        96vw,
        calc(96vh * var(--sectorcompare-ratio, 1.777777))
    );
}

.sectorcompare-wrap.sectorcompare-maximized .sectorcompare-open-left,
.sectorcompare-wrap.sectorcompare-maximized .sectorcompare-tools,
.sectorcompare-wrap.sectorcompare-maximized .sectorcompare-mode {
    display: none !important;
}

.sectorcompare-wrap.sectorcompare-maximized .sectorcompare-exit {
    display: flex;
}

body.sectorcompare-lock {
    overflow: hidden;
}

/* =====================================================
   4-OBRAZKOVY INTERAKTIVNY COMPARE
   ===================================================== */

.sectorcompare-four-wrap {
    position: relative;
    width: 100%;
    margin: 0 0 18px 0;
    overflow: hidden;
    background: #000;
}

.sectorcompare-four {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    background: #000;
}

.sectorcompare-four-pane {
    position: relative;

    width: 100%;

    overflow: hidden;

    background: #080808;

    cursor: grab;

    touch-action: none;
}

 .sectorcompare-four {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 4px;
    }

    .sectorcompare-four-pane {
        height: 300px;

        /* vertikalne gesto nech scrolluje stranku */
        touch-action: pan-y;
    }

    .sectorcompare-four-label {
        left: 4px;
        top: 4px;
        padding: 4px 5px;
        font-size: 9px;
    }

    .sectorcompare-four-tools {
        right: 5px;
        bottom: 5px;
        gap: 3px;
    }

    .sectorcompare-four-exit {
        top: 8px;
        right: 8px;
        width: 34px;
        height: 34px;
    }

    .sectorcompare-four-exit svg {
        width: 19px;
        height: 19px;
    }

.sectorcompare-four-pane:active {
    cursor: grabbing;
}

.sectorcompare-four-image {
    position: absolute;
    left: 50%;
    top: 50%;
    display: block;
    max-width: none !important;
    max-height: none !important;
    width: auto;
    height: auto;
    user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
    transform-origin: center center;
    will-change: transform, width, height;
}

.sectorcompare-four-label {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 8;
    max-width: calc(100% - 16px);
    padding: 6px 8px;
    box-sizing: border-box;
    border-radius: 4px;
    background: rgba(0,0,0,.68);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.15;
    text-shadow: 0 1px 2px rgba(0,0,0,.9);
    pointer-events: none;
}

/* =====================================================
   TEMA POPISKOV
   (Gray)  = NVIDIA seda
   (Green) = NVIDIA zelena
   bez prefixu ostava povodna standardna tema
   ===================================================== */

.sectorcompare-label.sectorcompare-theme-gray,
.sectorcompare-side-label.sectorcompare-theme-gray,
.sectorcompare-four-label.sectorcompare-theme-gray {
    background: rgba(58,58,58,.94);
    color: #fff;
    border: 1px solid rgba(255,255,255,.08);
    text-shadow: 0 1px 2px rgba(0,0,0,.75);
}

.sectorcompare-label.sectorcompare-theme-green,
.sectorcompare-side-label.sectorcompare-theme-green,
.sectorcompare-four-label.sectorcompare-theme-green {
    background: #76B900;
    color: #111;
    border: 1px solid rgba(0,0,0,.18);
    text-shadow: none;
}

.sectorcompare-four-gallery-link {
    display: none !important;
}

.sectorcompare-four-tools {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 30;
    display: flex;
    gap: 5px;
}

.sectorcompare-four-exit {
    display: none;
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: rgba(0,0,0,.68);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    z-index: 50;
}

.sectorcompare-four-exit:hover {
    background: rgba(0,0,0,.92);
}

.sectorcompare-four-exit svg {
    width: 21px;
    height: 21px;
    fill: #fff;
    pointer-events: none;
}

/* fullscreen */
.sectorcompare-four-wrap:fullscreen,
.sectorcompare-four-wrap:-webkit-full-screen,
.sectorcompare-four-wrap.sectorcompare-four-maximized {
    width: 100vw;
    height: 400vh;
    background: #111;
    padding: 2vh 2vw;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 999999;
}

.sectorcompare-four-wrap:fullscreen,
.sectorcompare-four-wrap:-webkit-full-screen {
    position: relative;
}

.sectorcompare-four-wrap.sectorcompare-four-maximized {
    position: fixed;
    left: 0;
    top: 0;
}

.sectorcompare-four-wrap:fullscreen .sectorcompare-four,
.sectorcompare-four-wrap:-webkit-full-screen .sectorcompare-four,
.sectorcompare-four-wrap.sectorcompare-four-maximized .sectorcompare-four {
    width: 96vw;
}

.sectorcompare-four-wrap:fullscreen .sectorcompare-four-tools,
.sectorcompare-four-wrap:-webkit-full-screen .sectorcompare-four-tools,
.sectorcompare-four-wrap.sectorcompare-four-maximized .sectorcompare-four-tools {
    display: none !important;
}

.sectorcompare-four-wrap:fullscreen .sectorcompare-four-exit,
.sectorcompare-four-wrap:-webkit-full-screen .sectorcompare-four-exit,
.sectorcompare-four-wrap.sectorcompare-four-maximized .sectorcompare-four-exit {
    display: flex;
}

body.sectorcompare-four-lock {
    overflow: hidden;
}

/* =====================================================
   MOBIL
   ===================================================== */

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

    .sectorcompare-label {
        top: 8px;

        padding: 6px 8px;

        font-size: 11px;
    }

    .sectorcompare-label-left {
        left: 8px;
    }

    .sectorcompare-label-right {
        right: 8px;
    }

    .sectorcompare-side-label {
        left: 7px;
        top: 7px;

        padding: 5px 7px;

        font-size: 10px;
    }

    .sectorcompare-handle {
        width: 38px;
        height: 38px;

        margin-left: -19px;
        margin-top: -19px;

        border-width: 2px;
    }

    .sectorcompare-handle-arrow {
        margin-top: -5px;
    }

    .sectorcompare-handle-left {
        left: 6px;

        border-top-width: 5px;
        border-bottom-width: 5px;
        border-right-width: 7px;
    }

    .sectorcompare-handle-right {
        right: 6px;

        border-top-width: 5px;
        border-bottom-width: 5px;
        border-left-width: 7px;
    }

    .sectorcompare-control {
        width: 32px;
        height: 32px;

        border-radius: 4px;
    }

    .sectorcompare-control svg {
        width: 18px;
        height: 18px;
    }

    .sectorcompare-open-left {
        left: 7px;
        bottom: 7px;
    }

    .sectorcompare-tools {
        right: 7px;
        bottom: 7px;

        gap: 4px;
    }

    .sectorcompare-mode {
        bottom: 7px;
    }

    .sectorcompare-exit {
        top: 10px;
        right: 10px;

        width: 34px;
        height: 34px;
    }

    .sectorcompare-exit svg {
        width: 19px;
        height: 19px;
    }

}

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

    .sectorcompare-four-label {
        left: 7px;
        top: 7px;
        max-width: calc(100% - 14px);
        padding: 6px 8px;
        font-size: 11px;
    }

    .sectorcompare-four-tools {
        right: 7px;
        bottom: 7px;
        gap: 4px;
    }

    .sectorcompare-four-exit {
        top: 10px;
        right: 10px;
        width: 34px;
        height: 34px;
    }

    .sectorcompare-four-exit svg {
        width: 19px;
        height: 19px;
    }

    .sectorcompare-four-wrap:fullscreen,
    .sectorcompare-four-wrap:-webkit-full-screen,
    .sectorcompare-four-wrap.sectorcompare-four-maximized {
        display: block;
        padding: 12px;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .sectorcompare-four-wrap:fullscreen .sectorcompare-four,
    .sectorcompare-four-wrap:-webkit-full-screen .sectorcompare-four,
    .sectorcompare-four-wrap.sectorcompare-four-maximized .sectorcompare-four {
        width: 100%;
    }
}

