/* =====================================================================
   Grad Pišece - oživitev vsebine (časovnica prelomnic in galerije).
   Nalozi se SAMO na straneh gradu (glej vejo v index.php in en/index.php),
   zato ne vpliva na ostale strani spletisca.
   Barve so iz obstojece palete strani: rdeca #961A1F, zlata #A78D65.
   ===================================================================== */

/* ------------------------------------------------------- casovnica */

.gpTl {
    list-style: none;
    margin: 30px 0 10px;
    padding: 0 0 0 4px;
    position: relative;
}

/* siva vodilna crta */
.gpTl::before {
    content: "";
    position: absolute;
    left: 136px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: #E6E1DA;
}

/* rdeca crta, ki se ob drsenju "vozi" navzdol (visino nastavlja JS) */
.gpTl::after {
    content: "";
    position: absolute;
    left: 136px;
    top: 10px;
    width: 2px;
    height: var(--gpTl-napredek, 0px);
    max-height: calc(100% - 20px);
    background: linear-gradient(180deg, #961A1F, #C0483F);
    transition: height .25s linear;
}

.gpTl-item {
    position: relative;
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 46px;
    padding: 0 0 26px 0;
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .55s ease, transform .55s ease;
}
.gpTl-item.gpTl-viden { opacity: 1; transform: none; }

/* Pika na crti. Visja specificnost in izklop background-image sta nujna, ker
   main.css postavlja na vsak li v .user_container kljukico (check.svg) na left: 0. */
.user_container ol.gpTl li.gpTl-item::before {
    content: "";
    position: absolute;
    left: 131px;
    top: 9px;
    width: 12px;
    height: 12px;
    margin-top: 0;
    border-radius: 50%;
    background-image: none;
    background-color: #fff;
    border: 2px solid #D8D2C9;
    box-shadow: 0 0 0 4px #fff;
    transition: border-color .35s ease, transform .35s ease, background-color .35s ease;
    z-index: 2;
}
.user_container ol.gpTl li.gpTl-viden::before { border-color: #961A1F; }
.user_container ol.gpTl li.gpTl-aktiven::before { background-color: #961A1F; transform: scale(1.25); }

.gpTl-leto {
    text-align: right;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.28;
    padding-right: 6px;
    color: #961A1F;
    padding-top: 2px;
}

.gpTl-tekst {
    background: #FBF9F6;
    border-left: 3px solid #E6E1DA;
    padding: 14px 18px;
    border-radius: 2px;
    line-height: 1.65;
    transition: border-color .35s ease, background .35s ease;
}
.gpTl-item.gpTl-aktiven .gpTl-tekst { border-left-color: #961A1F; background: #F7F3EE; }

/* --------------------------------------------------------- galerija */

.userGgallery.gpGal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 12px;
    margin: 26px 0 10px;
    background: none;
}

/* pri stirih slikah dva stolpca, da ni prazne celice */
.userGgallery.gpGal--stiri { grid-template-columns: repeat(2, 1fr); }

/* pri petih ali vec slikah je prva vecja - galerija je zivahnejsa */
.userGgallery.gpGal--velika a:first-child { grid-column: span 2; grid-row: span 2; }
.userGgallery.gpGal--velika a:first-child img { aspect-ratio: auto; }

.userGgallery.gpGal a {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 2px;
    background: #2b2422;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s ease, transform .5s ease;
}
.userGgallery.gpGal a.gpGal-viden { opacity: 1; transform: none; }

.userGgallery.gpGal img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .6s ease, opacity .4s ease;
}
.userGgallery.gpGal a:hover img { transform: scale(1.06); opacity: .85; }

/* podnapis iz naslova slike v CMS */
.gpGal-opis {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 26px 12px 10px;
    color: #fff;
    font-size: 13px;
    line-height: 1.35;
    background: linear-gradient(180deg, rgba(43, 36, 34, 0), rgba(43, 36, 34, .82));
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .35s ease, transform .35s ease;
    pointer-events: none;
}
.userGgallery.gpGal a:hover .gpGal-opis { opacity: 1; transform: none; }

/* znak za povecavo */
.gpGal-lupa {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: #961A1F;
    font-size: 19px;
    line-height: 28px;
    text-align: center;
    opacity: 0;
    transform: scale(.8);
    transition: opacity .3s ease, transform .3s ease;
    pointer-events: none;
}
.userGgallery.gpGal a:hover .gpGal-lupa { opacity: 1; transform: none; }

/* --------------------------------------------------------- mobilno */

@media (max-width: 760px) {
    .gpTl::before, .gpTl::after { left: 6px; }
    .gpTl-item { grid-template-columns: 1fr; gap: 4px; padding-left: 30px; padding-bottom: 22px; }
    .user_container ol.gpTl li.gpTl-item::before { left: 1px; top: 7px; }
    .gpTl-leto { text-align: left; font-size: 16px; }
    .userGgallery.gpGal { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .userGgallery.gpGal--velika a:first-child { grid-column: span 2; grid-row: auto; }
    .userGgallery.gpGal--velika a:first-child img { aspect-ratio: 4 / 3; }
    .gpGal-opis { font-size: 12px; opacity: 1; transform: none; }
}

/* ------------------------------------------- manj gibanja (dostopnost) */

@media (prefers-reduced-motion: reduce) {
    .gpTl-item, .userGgallery.gpGal a, .userGgallery.gpGal img, .gpGal-opis, .gpGal-lupa {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .gpTl::after { transition: none; }
}
