/* Photo Public Display Styles */

.dp-device-photos-section,
.dp-service-photos-section {
	margin: 30px 0;
	padding: 20px;
	background: #f9f9f9;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
}

.dp-device-photos-section h3,
.dp-service-photos-section h3 {
	margin-top: 0;
	margin-bottom: 20px;
	font-size: 20px;
	font-weight: 600;
	color: #333;
}

.dp-photo-gallery {
	display: grid;
	gap: 20px;
	margin-bottom: 20px;
}

.dp-gallery-device {
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.dp-gallery-service {
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

@media (max-width: 768px) {
	.dp-gallery-device,
	.dp-gallery-service {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	}
}

.dp-photo-item {
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
	background: white;
	transition: all 0.3s ease;
}

.dp-photo-item:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transform: translateY(-2px);
}

.dp-photo-link {
	display: block;
	position: relative;
	overflow: hidden;
	width: 100%;
	padding-bottom: 100%;
}

.dp-photo-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.dp-photo-item:hover .dp-photo-image {
	transform: scale(1.05);
}

.dp-photo-caption {
	padding: 12px;
	font-size: 14px;
	color: #666;
	line-height: 1.4;
	margin: 0;
	background: white;
}

/* Column Layout Classes */
.dp-col-1 {
	grid-column: span 1;
}

.dp-col-2 {
	grid-column: span 2;
}

.dp-col-3 {
	grid-column: span 3;
}

@media (max-width: 768px) {
	.dp-col-1,
	.dp-col-2,
	.dp-col-3 {
		grid-column: span 1;
	}
}

/* Gallery Container Variations */
.dp-gallery-masonry {
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	grid-auto-rows: 200px;
}

.dp-gallery-masonry .dp-photo-link {
	padding-bottom: 0;
	height: 100%;
}

.dp-gallery-masonry .dp-photo-image {
	position: static;
	height: 100%;
}
