@charset "utf-8";
/* CSS Document */

#photo {
	padding: 4rem 0 4rem 0;		
}

#video {	
	padding: 4rem 0 1rem 0;
}

.img-holder {
    position: relative;
    width: 12.75%;
    margin: 0.75%;
    float: left;
    display: inline-block;    
}

.img-holder:after {
    content: "";
    display: block;
    padding-bottom: 100%; /* kvadrat */
}

.img-holder img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
}

.img-holder:hover img {
    filter: sepia(100%) hue-rotate(150deg) saturate(200%);    
}

/* Sam proizvodni box */
.gal-box {
	flex: 0 0 calc((100% - 4.5rem) / 4); /* 3 × 1.5rem = 4.5rem ukupno */
	max-width: calc((100% - 4.5rem) / 4);
	flex-direction: column;
	color: #333e48;
	
	text-align: left;
	display: flex;	
	justify-content: space-between;
	padding: 1rem;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
	cursor: pointer;
	transition: transform 1s ease, box-shadow 1s ease;
}

.gal-box:hover {
	border-radius: 1.5rem;
	transform: translateY(-4px);	
}

/* Overlay */
#lightbox-overlay {
    position: fixed;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background: rgba(0,0,0,0.85);
	display: none; /* JS menja na flex */
	justify-content: center;
	align-items: center;
	z-index: 1000;
	cursor: zoom-out; /* vizuelni hint da klik zatvara */
}

/* Slika unutar overlay-a */
#lightbox-img {
	max-width: 90%;
	max-height: 90%;
	box-shadow: 0 0 25px rgba(0,0,0,0.0);
	border-radius: 4px;
	animation: fadeIn 0.3s ease;
}

/* Animacija pojavljivanja */
@keyframes fadeIn {
	from { opacity: 0; transform: scale(0.95); }
	to { opacity: 1; transform: scale(1); }
}

