/* --- Gallery Grid --- */


.gallery-row {
    display: flex;
    flex-wrap: wrap;
	justify-content:center;
    gap: 15px;
	margin: 0 auto;
}

.gallery-row img {
	width: 200px;
	height: auto;
	object-fit: cover;
	border-radius: 8px;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;

}

#pagination-controls-top {
	margin-bottom:30px;
	margin-top:20px;
    gap: 5px;
	align-items:center;
	text-align:center;

}
#pagination-controls-bottom {
	margin-bottom:20px;
	margin-top:30px;
    gap: 5px;
	align-items:center;
	text-align:center;

}

.page-btn {
    padding: 8px 12px;
    cursor: pointer;
    border: 1px solid #ccc;
    background: white;
}

.page-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}
.page-btn:disabled {
    background-color: #f1f1f1;
    color: #bbb;
    cursor: not-allowed;
    border-color: #ddd;
}

.nav-btn {
    font-weight: bold;
}
.pagination-ellipsis {
    padding: 8px 6px;
    color: #666;
    user-select: none;
    align-self: center;
}


/* Add pointer hand indicator to indicate images are clickable */
.gallery-row img {
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

/* Optional hover visual cue */
.gallery-row img:hover {
    transform: scale(1.03);
}

/* Lightbox overlay background wrapper */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999; /* Ensures it sits on top of all elements */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Dark backdrop tint */
    justify-content: center;
    align-items: center;
}

/* Large image constraints inside popup overlay */
.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border: 1px solid black;
    border-radius: 4px;
}

/* Close "X" Button Positioning and Look */
.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    user-select: none;
}

.close-btn:hover {
    color: #bbb;
}
