/* Mobile vertical column */
.mobile_photo_row_container {
    width: 100%;
    padding-bottom: 50px;
}
.mobile_photo_row {
    display: flex;
    flex-direction: column;   /* stack images vertically */
    gap: 10px;                /* vertical spacing between images */
    padding: 0;
    box-sizing: border-box;
}
.mobile_photo_row img {
    width: 100%;             /* full container width */
    height: auto;            /* preserve aspect ratio */
    object-fit: cover;
}
.drag_hint { display: none; } /* no need for drag hint */

/* Desktop masonry */
.desktop_gallery_container { 
    display: none; 
    width: 100%; 
    justify-content: center; 
    margin: 20px 0 80px 0;
}

.desktop_gallery_wrap { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 950px; }
.desktop_gallery_3col {
    column-count: 3;
    column-gap: 10px;
}
.desktop_gallery_3col img {
    width: 100%;
    margin-bottom: 10px;
    display: block;
    object-fit: cover;
    break-inside: avoid;
}

/* Lightbox */
/* Lightbox container */
.jg-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    pointer-events: none;
}

.jg-lightbox.open {
    display: flex;
    pointer-events: auto;
}

/* Background overlay */
.jg-lightbox .jg-lb-bg {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.95);
    cursor: zoom-out;
}

/* Stage wrapper */
.jg-lightbox .jg-lb-stage {
    position: relative;
    max-height: 80vh;      /* leave white space vertically */
    max-width: 80vw;       /* leave white space horizontally */
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Image itself */
.jg-lightbox .jg-lb-stage img {
    max-height: 80vh;      /* scale to fit viewport but leave space */
    max-width: 80vw;
    width: auto;
    height: auto;
    object-fit: contain;   /* preserve aspect ratio */
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Lightbox buttons - minimal style */
.jg-lightbox button {
    background: none;       /* remove background */
    color: #000;            /* black arrows/X */
    border: none;           /* remove black border */
    width: auto;
    height: auto;
    padding: 8px 12px;      /* clickable area */
    font-size: 28px;        /* readable */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Lightbox buttons - minimal, fixed placement */
.jg-lightbox .jg-lb-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: rgb(80,80,80);
    font-size: 28px;
    cursor: pointer;
    z-index: 100001;
}

.jg-lightbox .jg-lb-prev {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgb(80,80,80);
    font-size: 36px;
    cursor: pointer;
    z-index: 100001;
    font-weight: 400;
}

.jg-lightbox .jg-lb-next {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgb(80,80,80);
    font-size: 36px;
    cursor: pointer;
    z-index: 100001;
    font-weight: 400;
}

.desktop_gallery_3col img.jg-lightbox-trigger {
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .desktop_gallery_container { display: none; }
    .mobile_photo_row_container { display: block; }
}
@media (min-width: 768px) {
    .desktop_gallery_container { display: flex; }
    .mobile_photo_row_container { display: none; }
}
