/**
 * BGE Membership - Photos Frontend CSS
 * 
 * Styles for shortcode photo displays on the website
 *
 * @package    BGE_Membership
 * @subpackage Photos
 */

/* ==========================================================================
   Featured Photo Display
   ========================================================================== */

.bge-photo {
	margin: 20px 0;
}

.bge-photo__title {
	font-size: 20px;
	margin: 0 0 15px 0;
	color: #333;
}

.bge-photo__image-wrapper {
	position: relative;
	overflow: hidden;
	border-radius: 4px;
}

.bge-photo__image {
	width: 100%;
	height: auto;
	display: block;
}

.bge-photo--bordered .bge-photo__image-wrapper {
	border: 2px solid #ddd;
}

.bge-photo--shadowed .bge-photo__image-wrapper {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bge-photo__caption {
	margin-top: 15px;
	color: #666;
	font-size: 14px;
	line-height: 1.6;
}

.bge-photo__caption p:first-child {
	margin-top: 0;
}

.bge-photo__caption p:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   Photo Gallery Display
   ========================================================================== */

.bge-photo-gallery {
	margin: 30px 0;
}

.bge-photo-gallery__grid {
	display: grid;
	gap: 20px;
	margin-bottom: 30px;
}

.bge-photo-gallery__grid--columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.bge-photo-gallery__grid--columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.bge-photo-gallery__grid--columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.bge-photo-gallery__grid--columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.bge-photo-gallery__item {
	position: relative;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 4px;
	overflow: hidden;
	transition: transform 0.2s, box-shadow 0.2s;
}

.bge-photo-gallery__item:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bge-photo-gallery__photo .bge-photo__image-wrapper {
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.bge-photo-gallery__photo .bge-photo__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bge-photo-gallery__photo .bge-photo__title {
	padding: 10px;
	margin: 0;
	font-size: 14px;
	border-top: 1px solid #eee;
}

.bge-photo-gallery__photo .bge-photo__caption {
	padding: 0 10px 10px;
	margin: 0;
	font-size: 13px;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.bge-photo-gallery__pagination {
	text-align: center;
	padding: 20px 0;
}

.bge-photo-gallery__pagination .page-numbers {
	display: inline-block;
	padding: 8px 12px;
	margin: 0 5px;
	background: #f5f5f5;
	color: #333;
	text-decoration: none;
	border-radius: 3px;
	transition: background-color 0.2s;
}

.bge-photo-gallery__pagination .page-numbers:hover {
	background: #4a90e2;
	color: #fff;
}

.bge-photo-gallery__pagination .page-numbers.current {
	background: #4a90e2;
	color: #fff;
}

/* ==========================================================================
   Empty States
   ========================================================================== */

.bge-photo-error,
.bge-photo-empty,
.bge-photo-gallery-empty {
	padding: 40px 20px;
	text-align: center;
	color: #999;
	background: #f9f9f9;
	border: 1px dashed #ddd;
	border-radius: 4px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
	.bge-photo-gallery__grid--columns-5 {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 768px) {
	.bge-photo-gallery__grid--columns-4,
	.bge-photo-gallery__grid--columns-5 {
		grid-template-columns: repeat(3, 1fr);
	}
	
	.bge-photo-gallery__grid {
		gap: 15px;
	}
}

@media (max-width: 480px) {
	.bge-photo-gallery__grid--columns-2,
	.bge-photo-gallery__grid--columns-3,
	.bge-photo-gallery__grid--columns-4,
	.bge-photo-gallery__grid--columns-5 {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.bge-photo-gallery__grid {
		gap: 10px;
	}
	
	.bge-photo__title {
		font-size: 18px;
	}
	
	.bge-photo__caption {
		font-size: 13px;
	}
}