﻿/* --- PHOTO VIEWER --- */

/*.photo-viewer {
    position: relative;
    overflow: hidden;
    background: #000;
    width: 100%;
    height: 100%;
}

.photo-viewer-image {
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
}

.photo-viewer-image-static {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: none !important;
}

.photo-viewer-image-panzoom {
    will-change: transform;
    transition: transform 0.05s ease-out;
}*/

/* optioneel, als je ShowCaption = true gebruikt */
/*.photo-viewer-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    color: #fff;
    font-size: 14px;
}

.photo-viewer-title {
    font-weight: 600;
}

.photo-viewer-author {
    opacity: 0.8;
    font-size: 12px;
}*/

/* --- PHOTO GALLERY MODAL --- */

/*.photo-gallery-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.photo-gallery-overlay {
    position: absolute;
    inset: 0;
}

.photo-gallery-content {
    position: relative;
    width: 90vw;
    max-width: 2048px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    z-index: 1001;
    outline: none;
}

.photo-gallery-header,
.photo-gallery-footer {
    padding: 8px 12px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.photo-gallery-title {
    font-weight: 600;
    font-size: 16px;
}

.photo-gallery-close-btn {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.photo-gallery-photo-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-gallery-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
}

.photo-gallery-nav-btn {
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    cursor: pointer;
}

    .photo-gallery-nav-btn:disabled {
        opacity: 0.3;
        cursor: default;
    }

.photo-gallery-counter {
    color: #ccc;
    font-size: 13px;
}

.photo-gallery-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 60%;
    color: #eee;
}

.photo-gallery-author {
    font-weight: 500;
    font-size: 13px;
}

.photo-gallery-description {
    font-size: 12px;
    opacity: 0.8;
}*/

/* Thumbnails (voorbeeld) */
/*.photo-thumb {
    width: 200px;
    height: 130px;
    object-fit: cover;
    cursor: pointer;
    margin: 4px;
    border-radius: 4px;
}

.photo-frame {
    width: 100%;
    max-width: 2048px;
    margin: 0 auto;
    overflow: hidden;
    background: #000;
}

.photo-frame-4-3 {
    aspect-ratio: 4 / 3;
}

.photo-frame-fill {
    width: 100%;
    height: 100%;
}*/

/* Modal: fullscreen */
/*.photo-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: block;
    outline: none;
}

.photo-gallery-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.85);
}*/

/* Shell: full screen layout (foto + comments) */
/*.photo-gallery-shell {
    position: absolute;
    inset: 0;
    display: flex;
    width: 100%;
    height: 100%;
    background: #000;
}*/

/* Foto area */
/*.photo-gallery-stage {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;*/ /* belangrijk in flex layouts */
    /*min-height: 0;
    overflow: hidden;
    background: #000;
}*/

/* Frame waar PhotoViewer in zit: vult volledig */
/*.photo-gallery-photo-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}*/

/* Topbar overlay */
/*.photo-gallery-topbar {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;*/ /* zodat pannen op foto blijft werken */
/*}

.photo-gallery-counter {
    pointer-events: auto;
    color: #fff;
    background: rgba(0,0,0,.35);
    padding: 6px 10px;
    border-radius: 8px;
    backdrop-filter: blur(6px);
}

.photo-gallery-topbar-actions {
    pointer-events: auto;
    display: flex;
    gap: 8px;
}*/

/* Prev/next overlay */
/*.photo-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: auto;
}

.photo-gallery-prev {
    left: 12px;
}

.photo-gallery-next {
    right: 12px;
}*/

/* Comments panel: naast de foto, duwt foto smaller */
/*.photo-gallery-comments {
    width: 0;
    overflow: hidden;
    border-radius: 0 !important;
    border: 0 !important;
    transition: width 0.25s ease;
    display: flex;
    flex-direction: column;
}

    .photo-gallery-comments.open {
        width: 420px;*/ /* pas aan */
    /*}

.photo-gallery-comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
}

.photo-gallery-comments-body {
    flex: 1 1 auto;
    overflow: auto;
    padding: 12px;
}

.photo-gallery-comments-footer {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,.06);
}

.photo-gallery-stars {
    display: flex;
    gap: 6px;
}

.photo-gallery-comment-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}*/


.photo-viewer {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    /* Cruciaal voor touch/drag: */
    touch-action: none;
}

.photo-viewer-img {
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none; /* laat de DIV alle pointer events krijgen */
}
/* ===== PhotoGallery (fullscreen) ===== */
.photo-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    outline: none;
}

.photo-gallery-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.88);
}

.photo-gallery-shell {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center; /* horizontaal centreren */
    align-items: stretch; /* volle hoogte */
    background: #000;
}

.photo-gallery-content {
    width: 100%;
    max-width: 2048px; /* ⭐ HIER */
    height: 100%;
    display: flex;
    background: #000;
}

/* Stage = alle ruimte die overblijft (foto) */
.photo-gallery-stage {
    position: relative;
    flex: 1 1 auto;
    min-width: 0; /* cruciaal voor flex + pan */
    min-height: 0;
    overflow: hidden;
}

/* Frame voor PhotoViewer: echt 100%/100% */
.photo-gallery-frame {
    position: absolute;
    inset: 0;
}

/* Overlay: teller linksboven */
.photo-gallery-counter {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    color: #fff;
    background: rgba(0,0,0,0.35);
    padding: 6px 10px;
    border-radius: 8px;
    backdrop-filter: blur(6px);
}

/* Overlay: actions rechtsboven */
.photo-gallery-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    display: flex;
    gap: 8px;
}

/* Overlay: prev/next op foto */
.photo-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.photo-gallery-prev {
    left: 12px;
}

.photo-gallery-next {
    right: 12px;
}

/* Comments panel naast foto, maakt foto smaller */
.photo-gallery-comments {
    width: 0;
    overflow: hidden;
    border-radius: 0 !important;
    border: 0 !important;
    transition: width 0.25s ease;
    display: flex;
    flex-direction: column;
}

    .photo-gallery-comments.open {
        width: 420px;
    }

.photo-gallery-comments-header {
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.photo-gallery-comments-body {
    padding: 12px;
    flex: 1 1 auto;
    overflow: auto;
}

.photo-gallery-comments-footer {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.photo-gallery-stars {
    display: flex;
    gap: 6px;
}

.photo-gallery-comment-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}