
.photo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	grid-auto-rows: 180px;
	gap: 8px;
	grid-auto-flow: dense;
}

/* Image styling */
.photo-grid img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 4px;
	transition: transform 0.3s ease;
}

.photo-grid img:hover {
	transform: scale(1.03);
	z-index: 2;
}

/* Span classes */
.photo-grid .horizontal { grid-column: span 2; }
.photo-grid .vertical   { grid-row: span 2; }
.photo-grid .big        { grid-column: span 2; grid-row: span 2; }

/* ===================== RESPONSIVENESS ===================== */

@media (max-width: 768px) {
	.photo-grid {
		grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
		grid-auto-rows: 150px;
		gap: 6px;
	}
	
	/* Reduce spans on mobile for better layout */
	.photo-grid .horizontal,
	.photo-grid .big {
		grid-column: span 1;
	}
}

@media (max-width: 480px) {
	.photo-grid {
		grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
		grid-auto-rows: auto;
		gap: 5px;
		padding: 8px;
		
		width: 100%;
        height: auto;
        box-sizing: border-box;
	}
	
	.photo-grid .vertical,
	.photo-grid .big {
		grid-row: span 1;
	}
}

/* Optional: Extra large screens */
@media (min-width: 1400px) {
	.photo-grid {
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
		grid-auto-rows: 220px;
	}
}