/* ============================= */
/* PHOTO VIEWER */
/* ============================= */

.photo-main-image-box{
    position:relative;
    overflow:hidden;
    border-radius:22px;
}

/* ============================= */
/* GRADIENT EDGES */
/* ============================= */

.photo-main-image-box::before,
.photo-main-image-box::after{
    content:"";
    position:absolute;
    top:0;
    width:140px;
    height:100%;
    opacity:0;
    transition:opacity .35s ease;
    pointer-events:none;
    z-index:2;
}

.photo-main-image-box::before{
    left:0;
    background:linear-gradient(
        to right,
        rgba(0,0,0,0.65),
        rgba(0,0,0,0.25),
        transparent
    );
}

.photo-main-image-box::after{
    right:0;
    background:linear-gradient(
        to left,
        rgba(0,0,0,0.65),
        rgba(0,0,0,0.25),
        transparent
    );
}

.photo-main-image-box:hover::before,
.photo-main-image-box:hover::after{
    opacity:1;
}

/* ============================= */
/* IMAGE */
/* ============================= */

.photo-main-image{
    width:100%;
    border-radius:22px;
    object-fit:cover;
    display:block;
    max-height:720px;
}

.photo-main-image-clickable{
    cursor:pointer;
    user-select:none;
    -webkit-user-drag:none;
}

/* ============================= */
/* ARROWS */
/* ============================= */
.photo-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%) scale(.92);
    width:60px;
    height:60px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    font-size:34px;
    font-weight:700;
    color:#ffffff;
    background:transparent;
    border-radius:50%;
    opacity:0;
    pointer-events:none;
    z-index:30;
    transition:
        opacity .25s ease,
        transform .25s ease,
        color .25s ease,
        text-shadow .25s ease;
    -webkit-tap-highlight-color: transparent;
}

.photo-main-image-box:hover .photo-arrow{
    opacity:1;
    pointer-events:auto;
    transform:translateY(-50%) scale(1);
}

.photo-arrow:hover{
    color:#00f7ff;
    transform:translateY(-50%) scale(1.08);
    text-shadow:
        0 0 10px rgba(0,247,255,0.7),
        0 0 24px rgba(0,247,255,0.5);
}

.photo-arrow-left{
    left:18px;
}

.photo-arrow-right{
    right:18px;
}

.photo-arrow.photo-arrow-disabled{
    opacity:0;
    pointer-events:none;
}

.photo-main-image-box:hover .photo-arrow.photo-arrow-disabled{
    opacity:.28;
    pointer-events:none;
}










/* ============================= */
/* PHOTO AUTHOR PILL */
/* ============================= */

.photo-author-block-inline{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:7px;
    min-width:0;
}

.photo-author-label-inline{
    margin:0;
    font-size:12px;
    letter-spacing:1.1px;
    text-transform:uppercase;
    color:#9fb3c8;
    font-weight:700;
}

.photo-author-pill-inline{
    display:inline-flex;
    align-items:center;
    gap:8px;
    width:auto;
    max-width:100%;
    padding:7px 12px 7px 8px;
    border-radius:999px;
    background:rgba(255,255,255,0.045);
    border:1px solid rgba(255,255,255,0.10);
    text-decoration:none;
    color:#dbeafe;
    box-shadow:0 6px 14px rgba(0,0,0,0.16);
    transition:all .2s ease;
}

.photo-author-pill-inline:hover{
    color:#ffffff;
    border-color:rgba(0,247,255,0.28);
    background:rgba(255,255,255,0.07);
    transform:translateY(-1px);
}

.photo-author-pill-inline:visited{
    color:#dbeafe;
}

.photo-author-pill-inline:focus{
    outline:none;
    box-shadow:0 0 0 3px rgba(0,247,255,0.16);
}

.photo-author-avatar-inline{
    width:26px;
    height:26px;
    min-width:26px;
    border-radius:50%;
    object-fit:cover;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

.photo-author-avatar-inline.avatar-fallback{
    background:rgba(0,247,255,0.10);
    border:1px solid rgba(0,247,255,0.16);
    color:#c9f9ff;
    font-size:11px;
    font-weight:800;
    line-height:1;
}

.photo-author-pill-text-inline{
    display:block;
    max-width:150px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:13px;
    font-weight:600;
    line-height:1.2;
    color:inherit;
}

/* ============================= */
/* COMMENTS USER */
/* ============================= */

.comment-user-inline{
    display:inline-flex;
    align-items:center;
    gap:8px;
}

.comment-user-avatar{
    width:32px;
    height:32px;
    min-width:32px;
    border-radius:50%;
    object-fit:cover;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

.comment-user-avatar.avatar-fallback{
    background:rgba(0,247,255,0.10);
    border:1px solid rgba(0,247,255,0.16);
    color:#c9f9ff;
    font-size:12px;
    font-weight:800;
    line-height:1;
}

/* ============================= */
/* LIKE BUTTON / BURST */
/* ============================= */

.like-toggle-btn.liked{
    box-shadow:0 0 18px rgba(255,80,120,0.22);
    transform:translateY(-1px);
}

.like-toggle-btn:disabled{
    opacity:.7;
    cursor:not-allowed;
}

.photo-like-burst{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%, -50%) scale(.4);
    font-size:110px;
    line-height:1;
    opacity:0;
    pointer-events:none;
    z-index:4;
    filter:drop-shadow(0 8px 24px rgba(0,0,0,0.35));
}

.photo-like-burst.show-like{
    animation:photoLikeBurst .9s ease forwards;
}

.photo-like-burst.show-unlike{
    animation:photoUnlikeBurst .75s ease forwards;
}

@keyframes photoLikeBurst{
    0%{
        opacity:0;
        transform:translate(-50%, -50%) scale(.35);
    }
    20%{
        opacity:1;
        transform:translate(-50%, -50%) scale(1.15);
    }
    45%{
        opacity:1;
        transform:translate(-50%, -50%) scale(1);
    }
    100%{
        opacity:0;
        transform:translate(-50%, -50%) scale(1.35);
    }
}


@keyframes photoUnlikeBurst{
    0%{
        opacity:1;
        transform:translate(-50%, -50%) scale(1.35);
    }
    35%{
        opacity:1;
        transform:translate(-50%, -50%) scale(1);
    }
    100%{
        opacity:0;
        transform:translate(-50%, -50%) scale(.25);
    }
}

/* ----- */


/* ============================= */
/* VIEWER-STYLE SWIPE ANIMATION */
/* ============================= */







#photoSwipeArea .photo-arrow{
    z-index:30;
}

#photoSwipeArea .photo-main-image{
    position:relative;
    z-index:1;
}

#photoSwipeArea .photo-like-burst{
    z-index:20;
}


/* ============================= */
/* MOBILE */
/* ============================= */

@media (max-width: 768px){
    .photo-page-wrap{
        padding:0 14px;
        margin:20px auto 40px;
    }

    .photo-view-card,
    .photo-comments-section{
        padding:18px;
        border-radius:20px;
    }

    .photo-view-grid{
        display:grid;
        grid-template-columns:1fr;
        gap:18px;
    }

    .photo-main-image-box{
        width:100%;
        order:1;
    }

    .photo-side-content{
        order:2;
        display:flex;
        flex-direction:column;
        gap:16px;
    }

    .photo-main-image{
        width:100%;
        max-height:none;
        border-radius:18px;
        object-fit:cover;
    }

    .photo-meta-top{
        display:flex;
        flex-direction:column;
        align-items:flex-start;
        gap:10px;
    }

    .photo-owner-actions{
        width:100%;
    }

    .photo-owner-actions .outline-btn{
        width:100%;
        justify-content:center;
    }

    .photo-status-row{
        display:flex;
        flex-direction:column;
        align-items:flex-start;
        gap:10px;
    }

    .photo-date{
        font-size:15px;
        line-height:1.5;
    }

    .photo-description-box h3{
        font-size:28px;
        margin-bottom:10px;
        line-height:1.2;
    }

    .photo-description-text2{
        font-size:18px;
        line-height:1.85;
        word-break:break-word;
        white-space:normal;
    }

    .photo-like-section{
        padding:18px;
        border-radius:18px;
    }

    .likes-counter{
        display:inline-block;
        font-size:20px;
        font-weight:700;
        line-height:1.4;
    }

    .photo-like-section .muted{
        font-size:17px;
        line-height:1.7;
        margin-bottom:12px;
    }

    .photo-like-section .outline-btn,
    .photo-like-section .neon-btn{
        width:100%;
        min-height:48px;
        padding:12px 18px;
        font-size:17px;
        justify-content:center;
    }

    .comments-header-row{
        display:flex;
        flex-direction:column;
        align-items:flex-start;
        gap:8px;
        margin-bottom:18px;
    }

    .comments-header-row h2{
        font-size:32px;
        line-height:1.15;
    }

    .comments-count{
        font-size:16px;
    }

    .comment-form{
        gap:12px;
    }

    .comment-form textarea{
        min-height:120px;
        font-size:17px;
        line-height:1.7;
        padding:14px;
    }

    .comment-form .neon-btn{
        width:100%;
        min-height:48px;
        font-size:17px;
        justify-content:center;
    }

    .comments-list{
        gap:12px;
    }

    .comment-card{
        padding:16px;
        border-radius:16px;
    }

    .comment-top{
        display:flex;
        flex-direction:column;
        align-items:flex-start;
        gap:4px;
        font-size:15px;
        line-height:1.5;
    }

    .comment-card p{
        font-size:17px;
        line-height:1.75;
        word-break:break-word;
    }

    .empty-comments{
        font-size:16px;
        line-height:1.7;
    }

    

   .photo-arrow{
    opacity:1 !important;
    pointer-events:auto !important;
    transform:translateY(-50%) scale(1) !important;
    width:48px;
    height:48px;
    font-size:26px;
    z-index:30;
}

   .photo-arrow-left{
    left:10px;
    }

   .photo-arrow-right{
    right:10px;
   }

   .photo-arrow.photo-arrow-disabled{
    opacity:.35 !important;
    pointer-events:none !important;
    }

    .photo-author-pill-inline{
        padding:6px 11px 6px 7px;
        gap:7px;
    }

    .photo-author-avatar-inline{
        width:24px;
        height:24px;
        min-width:24px;
        font-size:10px;
    }

    .photo-author-pill-text-inline{
        max-width:130px;
        font-size:12px;
    }
}


/* ------ */

.photo-scroll-hint{
    position:absolute;
    left:50%;
    bottom:10px;
    transform:translateX(-50%);
    z-index:20;
    display:none;
    align-items:center;
    gap:6px;
    padding:6px 9px;
    border-radius:999px;
    background:rgba(5,10,18,0.52);
    border:1px solid rgba(255,255,255,0.10);
    color:#fff;
    backdrop-filter:blur(6px);
    -webkit-backdrop-filter:blur(6px);
    pointer-events:none;
    opacity:.78;
}

.photo-scroll-pill{
    width:16px;
    height:3px;
    border-radius:999px;
    background:linear-gradient(90deg,#00f7ff,#7c3aed);
}



.photo-scroll-hint small{
    font-size:10px;
    color:#dbeafe;
    line-height:1;
    white-space:nowrap;
    display:none;
}

@media (max-width:900px){
    .photo-scroll-hint{
        display:inline-flex;
    }
}

@media (min-width:901px){
    .photo-scroll-hint{
        display:none !important;
    }
}

.photo-scroll-hint span{
    width:13px;
    height:13px;
    border-right:2px solid #fff;
    border-bottom:2px solid #fff;
    transform:rotate(45deg);
    animation:photoScrollArrow 1.2s infinite;
}





@keyframes photoScrollArrow{
    0%{
        opacity:0;
        transform:rotate(45deg) translateY(-4px);
    }
    45%{
        opacity:1;
    }
    100%{
        opacity:0;
        transform:rotate(45deg) translateY(8px);
    }
}






/* Desktop photo full view fix */


/* -----  */

.photo-view-card{
    padding:22px;
    border-radius:28px;
}

.photo-view-grid{
    display:grid;
    grid-template-columns:minmax(0, 1.15fr) minmax(340px, .85fr);
    gap:26px;
    align-items:start;
}

.photo-side-content{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.photo-description-box{
    padding:24px;
    border-radius:24px;
    background:rgba(255,255,255,.045);
    border:1px solid rgba(255,255,255,.08);
}

.photo-description-box h3{
    margin-bottom:14px;
}

.photo-description-text2{
    font-size:18px;
    line-height:1.85;
}

@media(max-width:768px){
    .photo-view-card{
        padding:16px;
        border-radius:22px;
    }

    .photo-view-grid{
        display:grid;
        grid-template-columns:1fr;
        gap:18px;
    }

    .photo-description-box{
        padding:18px;
        border-radius:20px;
    }

    .photo-description-text2{
        font-size:17px;
        line-height:1.85;
    }
}


@media (min-width: 769px){
    .photo-main-image-box{
        display:flex;
        align-items:center;
        justify-content:center;
        background:rgba(0,0,0,0.22);
        min-height:520px;
        max-height:82vh;
    }

    .photo-main-image{
        width:100%;
        height:auto;
        max-height:78vh;
        object-fit:contain;
    }
}


/* ULTRA PREMIUM NATIVE APP SWIPE */
#photoSwipeArea{
    touch-action:auto;
    overscroll-behavior:auto;
    position:relative;
    overflow:hidden;
    perspective:1000px;
    
}

#photoMainImage{

    will-change:transform, opacity !important;

    backface-visibility:hidden;
    -webkit-backface-visibility:hidden;

    transform:translate3d(0,0,0);

    opacity:1;

    user-select:none;
    -webkit-user-drag:none;
    -webkit-tap-highlight-color:transparent;
}







@media(max-width:768px){
    .photo-main-image-box{
        border-radius:24px;
        box-shadow:
            0 18px 50px rgba(0,0,0,.36),
            inset 0 0 0 1px rgba(255,255,255,.06);
    }

    .photo-main-image{
        border-radius:24px;
    }

    .photo-arrow{
        width:42px !important;
        height:42px !important;
        font-size:22px !important;
        background:rgba(5,10,18,.32);
        backdrop-filter:blur(10px);
        -webkit-backdrop-filter:blur(10px);
        border:1px solid rgba(255,255,255,.10);
    }
}


/* ===== PHOTO VIEWER SWIPE STABLE FINAL OVERRIDE ===== */

#photoSwipeArea{
    overflow:hidden !important;
    perspective:none !important;
    transform-style:flat !important;
    touch-action:pan-y !important;
}

#photoMainImage{
    display:block !important;
    width:100% !important;
    height:auto !important;
    max-width:100% !important;
    object-fit:contain !important;
    opacity:1;
    transform:translate3d(0,0,0) scale(1) !important;
    filter:none !important;
    backface-visibility:hidden;
    will-change:opacity, transform;
    transition:none !important;
}









@media(max-width:768px){
    #photoSwipeArea{
        overflow:hidden !important;
        touch-action:pan-y !important;
    }

    #photoMainImage{
        height:auto !important;
        max-height:none !important;
        object-fit:contain !important;
    }

    

   

    
}


/* ========================================= */
/* FINAL MOBILE PHOTO.PHP FULL WIDTH OVERRIDE */
/* ========================================= */

@media screen and (max-width: 768px){

    html,
    body{
        overflow-x:hidden !important;
    }

    .photo-page-wrap{
        width:100% !important;
        max-width:none !important;
        padding:0 !important;
        margin:0 auto 40px !important;
    }

    .photo-view-card{
        width:100% !important;
        padding:0 !important;
        margin:0 !important;
        border-radius:0 !important;
        background:transparent !important;
        border:0 !important;
        box-shadow:none !important;
        backdrop-filter:none !important;
        -webkit-backdrop-filter:none !important;
    }

    .photo-view-grid{
        display:block !important;
        width:100% !important;
        gap:0 !important;
    }

    #photoSwipeArea.photo-main-image-box{
	width:100vw !important;
        max-width:100vw !important;
        margin-left:calc(50% - 50vw) !important;
        margin-right:calc(50% - 50vw) !important;

        padding:0 !important;
        border-radius:0 !important;
        background:#000 !important;
        box-shadow:none !important;

        min-height:0 !important;
        max-height:none !important;

        display:block !important;
        overflow:hidden !important;
    }

    #photoSwipeArea::before,
    #photoSwipeArea::after{
        display:none !important;
        content:none !important;
        opacity:0 !important;
    }

    #photoMainImage.photo-main-image{
        display:block !important;
        width:100vw !important;
        max-width:100vw !important;
        height:auto !important;
        max-height:none !important;

        object-fit:contain !important;
        border-radius:0 !important;
        background:#000 !important;

        box-shadow:none !important;
        transform:none !important;
        filter:none !important;
    }

    .photo-side-content{
        position:relative !important;
        z-index:5 !important;

        margin:0 !important;
        padding:24px 16px 10px !important;

        border-radius:26px 26px 0 0 !important;

        background:linear-gradient(
            to bottom,
            rgba(7,12,20,.98),
            rgba(7,12,20,1)
        ) !important;

        box-shadow:0 -16px 38px rgba(0,0,0,.38) !important;
    }

    .photo-comments-section{
        margin:18px 0 0 !important;
        padding:22px 16px 40px !important;
        border-radius:26px 26px 0 0 !important;
    }

    .photo-arrow{
        opacity:1 !important;
        pointer-events:auto !important;
        z-index:60 !important;

        width:44px !important;
        height:44px !important;
        font-size:22px !important;

        background:rgba(0,0,0,.38) !important;
        border:1px solid rgba(255,255,255,.14) !important;
        box-shadow:0 10px 24px rgba(0,0,0,.35) !important;

        backdrop-filter:blur(10px) !important;
        -webkit-backdrop-filter:blur(10px) !important;
    }

    .photo-arrow-left{
        left:12px !important;
    }

    .photo-arrow-right{
        right:12px !important;
    }

    .photo-scroll-hint{
        bottom:18px !important;
        z-index:70 !important;
    }
}


/* =====================================================
   FINAL PHOTO.PHP MOBILE ARROWS + SMOOTH SWIPE OVERRIDE
   Put this at the VERY END of photo-viewer.css
===================================================== */

@media screen and (max-width:768px){

    /* πιο διακριτικά πλήκτρα */
    .photo-arrow{
        width:34px !important;
        height:54px !important;
        font-size:20px !important;

        background:rgba(0,0,0,.12) !important;
        border:0 !important;
        box-shadow:none !important;
        backdrop-filter:none !important;
        -webkit-backdrop-filter:none !important;

        opacity:.58 !important;
        color:rgba(255,255,255,.82) !important;
        text-shadow:0 1px 8px rgba(0,0,0,.45) !important;

        border-radius:999px !important;
        z-index:60 !important;
    }

    .photo-arrow:hover,
    .photo-arrow:active{
        opacity:.82 !important;
        color:#ffffff !important;
        background:rgba(0,0,0,.18) !important;
        transform:translateY(-50%) scale(1) !important;
        text-shadow:0 1px 10px rgba(0,0,0,.55) !important;
    }

    .photo-arrow-left{
        left:4px !important;
    }

    .photo-arrow-right{
        right:4px !important;
    }

    .photo-arrow.photo-arrow-disabled{
        opacity:.18 !important;
        pointer-events:none !important;
    }

    /* swipe πιο ομαλό */
    #photoMainImage{
        will-change:opacity, transform !important;
        backface-visibility:hidden !important;
        -webkit-backface-visibility:hidden !important;
        transform:translate3d(0,0,0) scale(1) !important;
    }

    

    
}




/* DESKTOP PHOTO VIEWER SAFE IMPROVEMENT */
@media screen and (min-width: 901px) {
    .photo-page-wrap {
        max-width: 1500px;
        margin: 28px auto 60px;
        padding: 0 28px;
    }

    .photo-view-grid {
        grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.65fr);
        gap: 28px;
        align-items: start;
    }

    .photo-main-image-box {
        min-height: 620px;
        background: rgba(0, 0, 0, 0.65);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 30px;
    }

    .photo-main-image {
        width: 100%;
        max-height: 82vh;
        object-fit: contain;
        border-radius: 26px;
    }

    .photo-side-content {
        max-height: 82vh;
        overflow-y: auto;
    }
}


@media screen and (min-width: 901px) {

    .photo-main-image-box {
        backdrop-filter: blur(14px);
        box-shadow:
            0 30px 80px rgba(0,0,0,.45),
            inset 0 0 0 1px rgba(255,255,255,.06);
    }

    .photo-main-image {
        transition:
            transform .35s ease,
            box-shadow .35s ease;
    }

    .photo-main-image:hover {
        transform: scale(1.01);
    }
}


/* FINAL DESKTOP HOVER OVERRIDE */
@media screen and (min-width: 901px) {
    #photoMainImage.photo-main-image {
        transition: transform .35s ease, box-shadow .35s ease !important;
    }

    #photoMainImage.photo-main-image:hover {
        transform: translate3d(0,0,0) scale(1.012) !important;
        box-shadow: 0 22px 70px rgba(0,0,0,.35) !important;
    }
}


/* =========================================
   FINAL SAFE MOBILE SCROLL HINT
   Uses the real .photo-scroll-hint element
   No ::before / ::after conflict
========================================= */

@media screen and (max-width: 900px) {

    #photoSwipeArea::before,
    #photoSwipeArea::after {
        display: none !important;
        content: none !important;
        opacity: 0 !important;
    }

    #photoScrollHint.photo-scroll-hint {
        display: none;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;

        position: absolute !important;
        left: 50% !important;
        bottom: 54px !important;
        transform: translateX(-50%) !important;

        padding: 10px 14px !important;
        border-radius: 999px !important;

        background: rgba(0, 0, 0, 0.55) !important;
        border: 1px solid rgba(255, 255, 255, 0.18) !important;

        color: #ffffff !important;
        z-index: 90 !important;

        opacity: 0.92 !important;
        pointer-events: none !important;

        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;

        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38) !important;

        animation: photoHintFloatSafe 1.7s ease-in-out infinite !important;
    }

    #photoScrollHint.photo-scroll-hint.is-visible {
    display: inline-flex !important;
    }

    #photoScrollHint .photo-scroll-pill {
        display: inline-block !important;
        width: 18px !important;
        height: 4px !important;
        border-radius: 999px !important;
        background: linear-gradient(90deg, #00f7ff, #7c3aed) !important;
    }

    #photoScrollHint span {
        display: inline-block !important;
        width: 12px !important;
        height: 12px !important;
        border-right: 2px solid #ffffff !important;
        border-bottom: 2px solid #ffffff !important;
        transform: rotate(45deg) !important;
        animation: photoScrollArrow 1.2s infinite !important;
    }

    #photoScrollHint small {
        display: inline-block !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        color: #ffffff !important;
        white-space: nowrap !important;
    }
}

@keyframes photoHintFloatSafe {
    0% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-6px);
    }

    100% {
        transform: translateX(-50%) translateY(0);
    }
}

/* =========================================
   PHOTO SLIDE PUSH ANIMATION
========================================= */

.photo-main-image {
    position: relative;
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translate3d(0,0,0);
}



/* final state */
.photo-main-image.is-active {
    transform: translateX(0);
    opacity: 1;
}






/* =========================================
   FINAL CINEMATIC PUSH SLIDER
========================================= */

#photoMainImage.photo-main-image {

    transition: none !important;

    animation-duration: 420ms !important;
    animation-timing-function: cubic-bezier(.22,.61,.36,1) !important;
    animation-fill-mode: both !important;

    will-change: transform, opacity !important;

    backface-visibility: hidden !important;

    transform: translate3d(0,0,0) !important;
}

/* swipe left -> next image */
#photoMainImage.is-swipe-next {
    animation-name: photoPushNextFinal !important;
}

/* swipe right -> prev image */
#photoMainImage.is-swipe-prev {
    animation-name: photoPushPrevFinal !important;
}

/* resting state */
#photoMainImage.is-active {
    transform: translate3d(0,0,0) !important;
    opacity: 1 !important;
}

@keyframes photoPushNextFinal {

    0% {
        transform: translate3d(100%,0,0);
        opacity: .88;
    }

    100% {
        transform: translate3d(0,0,0);
        opacity: 1;
    }
}

@keyframes photoPushPrevFinal {

    0% {
        transform: translate3d(-100%,0,0);
        opacity: .88;
    }

    100% {
        transform: translate3d(0,0,0);
        opacity: 1;
    }
}


/* =========================================
   TRUE PUSH SLIDER
========================================= */

.photo-slide-old,
.photo-slide-new{
    position:absolute !important;
    inset:0 !important;

    width:100% !important;
    height:100% !important;

    object-fit:contain !important;

    z-index:50 !important;

    background:#000 !important;

    will-change:transform !important;

    backface-visibility:hidden !important;
}

/* NEXT */

.slide-old-next{
    animation:photoOldNext 420ms cubic-bezier(.22,.61,.36,1) forwards;
}

.slide-new-next{
    animation:photoNewNext 420ms cubic-bezier(.22,.61,.36,1) forwards;
}

/* PREV */

.slide-old-prev{
    animation:photoOldPrev 420ms cubic-bezier(.22,.61,.36,1) forwards;
}

.slide-new-prev{
    animation:photoNewPrev 420ms cubic-bezier(.22,.61,.36,1) forwards;
}

/* KEYFRAMES */

@keyframes photoOldNext{
    from{
        transform:translate3d(0,0,0);
    }

    to{
        transform:translate3d(-100%,0,0);
    }
}

@keyframes photoNewNext{
    from{
        transform:translate3d(100%,0,0);
    }

    to{
        transform:translate3d(0,0,0);
    }
}

@keyframes photoOldPrev{
    from{
        transform:translate3d(0,0,0);
    }

    to{
        transform:translate3d(100%,0,0);
    }
}

@keyframes photoNewPrev{
    from{
        transform:translate3d(-100%,0,0);
    }

    to{
        transform:translate3d(0,0,0);
    }
}




.photo-story-track {
    position: absolute;
    inset: 0;
    display: flex;
    width: 200%;
    height: 100%;
    z-index: 50;
    background: #000;
}

.photo-story-track img {
    width: 50%;
    height: 100%;
    object-fit: contain;
    background: #000;
    flex-shrink: 0;
}

.photo-story-track.next {
    animation: storyNext 420ms cubic-bezier(.22,.61,.36,1) forwards;
}

.photo-story-track.prev {
    animation: storyPrev 420ms cubic-bezier(.22,.61,.36,1) forwards;
}

@keyframes storyNext {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes storyPrev {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}



#photoMainImage.photo-main-image,
#photoMainImage.photo-main-image:hover{
    transform:translate3d(0,0,0) !important;
    transition:none !important;
    animation:none;
}


@media screen and (max-width:768px){

    .photo-story-track{
        height:100% !important;
        min-height:100% !important;
    }

    .photo-story-track img{
        height:100% !important;
        max-height:none !important;
    }

}


@media screen and (max-width:768px){

    .photo-arrow-disabled{
        display:none !important;
        opacity:0 !important;
        pointer-events:none !important;
    }

}


.photo-arrow-disabled{
    display:none !important;
    pointer-events:none !important;
}

.photo-date-only{
    justify-content:flex-end;
}


@media(max-width:768px){

    .photo-date-only{
        width:100%;
        display:flex;
        justify-content:flex-end !important;
        align-items:center;
        text-align:right;
    }

    .photo-date-only .photo-date{
        margin-left:auto;
        text-align:right;
    }
}

