
body{margin:0;font-family:Arial,sans-serif;background:#f4f4f4}

.header a{color:#fff;text-decoration:none}
.container{display:grid;grid-template-columns:2fr 1fr;gap:20px;padding:20px}
.viewer,.meta{background:#fff;padding:20px;border-radius:10px}
.viewer img{width:100%;height:auto}
.tag{display:inline-block;background:#e5e7eb;padding:6px 10px;border-radius:20px;margin:4px;text-decoration:none;color:#111}
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:15px;padding:20px}
.gallery img{width:100%;border-radius:8px}
@media(max-width:900px){.container{grid-template-columns:1fr}}
.photo-image{
   max-width:100%;
   max-height:85vh;
   width:auto;
   height:auto;
}



.photo-layout{

    display:grid;

    grid-template-columns:minmax(0,3fr) 340px;

    gap:30px;

    align-items:start;

}

.photo-column{

    display:flex;

    flex-direction:column;

}

.photo-sidebar{

    background:#fff;

    border-radius:12px;

    padding:24px;

    box-shadow:0 2px 12px rgba(0,0,0,.08);

    position:sticky;

    top:90px;

}



#title{

    margin:0 0 25px;

}

.related-section{

    margin-top:50px;

}


/* ======================================
   PHOTO VIEWER V1
====================================== */

.viewer{

    position:relative;

    display:flex;

    justify-content:center;

    align-items:center;

}

.viewer img{

    display:block;

    width:100%;

    height:auto;

}

.viewer #photo {
    display: block;
    width: 100%;
    max-width: 1600px;
    max-height: 80vh;
    height: auto;
    object-fit: contain;
    margin-inline: auto;
}

.photo-nav{

    position:absolute;

    top:50%;

    transform:translateY(-50%);

    width:48px;

    height:48px;

    border:none;

    border-radius:50%;

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

    color:white;

    cursor:pointer;

    transition:.25s;

    z-index:20;

}

.photo-nav:hover{

    background:#03467d;

}

.photo-nav.left{

    left:20px;

}

.photo-nav.right{

    right:20px;

}

#photoCounter{

    text-align:center;

    font-size:15px;

    font-weight:bold;

    margin-top:15px;

    color:#666;

}

/* ==========================
   PHOTO HEADER
========================== */

.photo-header {
    margin: 20px 0 25px;
}

.photo-header h1 {
    margin: 15px 0 0;
    font-size: 2rem;
}

.back-button{
    display:inline-flex;
    align-items:center;
    gap:8px;

    color:#0b5cad;
    text-decoration:none;
    font-weight:600;
}

.back-button:hover{
    text-decoration:underline;
}

@media (max-width:768px){

    .photo-header{

        flex-direction:column;

        align-items:flex-start;

    }

    .photo-header h1{

        font-size:24px;

    }
        .photo-layout{

        grid-template-columns:1fr;

    }

    .photo-sidebar{

        position:static;

    }

    .photo-nav {
    z-index: 100;
    pointer-events: auto;
}

.viewer img{
    user-select:none;
    -webkit-user-select:none;
    -webkit-user-drag:none;
    touch-action:pan-y;
}


}