/* Post Gallery Info - Main Styles */

* {
	box-sizing: border-box;
}

.pgi-container {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 30px;
}

/* Featured Section */
.pgi-featured {
	width: 100%;
	height: 100vh;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
	border-radius: 0;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pgi-featured::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
	z-index: 1;
}

.pgi-featured-overlay {
	position: relative;
	z-index: 2;
	width: 100%;
	padding: 100px;
	color: white;
}

.pgi-heading {
	margin: 0 0 10px 0;
	font-weight: 600;
	line-height: 1.2;
}

.pgi-year {
	margin: 0 0 15px 0;
	font-size: 14px;
	font-weight: 500;
	opacity: 0.8;
}

.pgi-description {
	margin: 0 0 20px 0;
	line-height: 1.6;
	opacity: 0.9;
}

.pgi-view-more {
	display: inline-block;
	color: #ff6b35;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	transition: color 0.3s ease;
}

.pgi-view-more:hover {
	color: #ff8c5a;
}

/* Gallery Grid */
.pgi-gallery {
	display: grid;
	gap: 20px;
	width: 100%;
    padding:100px;
}

.pgi-columns-1 {
	grid-template-columns: 1fr;
}

.pgi-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.pgi-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.pgi-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

/* Gallery Items */
.pgi-item {
	position: relative;
	width: 100%;
	padding-bottom: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
}

.pgi-item:hover {
}

.pgi-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
	z-index: 1;
	transition: background 0.3s ease;
}

.pgi-item:hover::before {
	background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
}

.pgi-item-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 15px;
	color: white;
	z-index: 2;
	opacity: 0;
	transform: translateY(10px);
	transition: all 0.3s ease;
}

.pgi-item:hover .pgi-item-overlay {
	opacity: 1;
	transform: translateY(0);
}

.pgi-item-title {
	margin: 0 0 8px 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
}

.pgi-item-year {
	margin: 0 0 5px 0;
	font-size: 12px;
	font-weight: 500;
	opacity: 0.8;
}

.pgi-item-rating {
	margin: 0;
	font-size: 12px;
	font-weight: 500;
	opacity: 0.8;
}

/* Modal Styles */
.pgi-modal {
	display: none;
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	animation: fadeIn 0.3s ease;
}

.pgi-modal.active {
	display: block;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.pgi-modal-content {
	position: relative;
	background-color: #1a1a1a;
	margin: 5% auto;
	width: 90%;
	max-width: 1000px;
	border-radius: 8px;
	overflow: auto;
	max-height: 80vh;
	animation: slideDown 0.3s ease;
}

@keyframes slideDown {
	from {
		transform: translateY(-50px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.pgi-modal-close {
	position: absolute;
	right: 20px;
	top: 20px;
	font-size: 32px;
	font-weight: bold;
	color: #ff6b35;
	cursor: pointer;
	z-index: 1000;
	background: none;
	border: none;
	padding: 0;
	line-height: 1;
	transition: color 0.3s ease;
}

.pgi-modal-close:hover {
	color: #ff8c5a;
}

.pgi-modal-body {
	display: flex;
	flex-direction: column;
}

.pgi-modal-image {
	width: 100%;
	height: 400px;
	background-size: cover;
	background-position: center;
	position: relative;
}

.pgi-modal-image::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
}

.pgi-modal-info {
	padding: 40px;
	color: white;
}

.pgi-modal-title {
	font-size: 42px;
	font-weight: 600;
	margin: 0 0 15px 0;
	line-height: 1.2;
}

.pgi-modal-meta {
	display: flex;
	gap: 20px;
	margin-bottom: 20px;
	font-size: 14px;
}

.pgi-modal-year {
	color: #ff6b35;
	font-weight: 600;
}

.pgi-modal-rating {
	color: #cccccc;
}

.pgi-modal-description {
	line-height: 1.8;
	color: #e0e0e0;
	font-size: 16px;
}

.pgi-modal-description p {
	margin: 0 0 15px 0;
}

.pgi-modal-description p:last-child {
	margin-bottom: 0;
}

.pgi-loading {
	text-align: center;
	padding: 40px;
	color: white;
}

.pgi-loading-spinner {
	border: 4px solid rgba(255, 255, 255, 0.2);
	border-top: 4px solid #ff6b35;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	margin: 0 auto 20px;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

/* Tablet Responsive */
@media (max-width: 1024px) {
	.pgi-columns-4 {
		grid-template-columns: repeat(2, 1fr);
	}

	.pgi-columns-3 {
		grid-template-columns: repeat(2, 1fr);
	}

	.pgi-featured {
		height: 300px;
	}

	.pgi-featured-overlay {
		padding: 30px;
	}

	.pgi-heading {
		font-size: 28px;
	}

	.pgi-modal-content {
		width: 95%;
		max-height: 90vh;
	}

	.pgi-modal-title {
		font-size: 32px;
	}

	.pgi-modal-info {
		padding: 30px;
	}
}

/* Mobile Responsive */
@media (max-width: 768px) {
	.pgi-container {
		gap: 20px;
	}

	.pgi-columns-4,
	.pgi-columns-3,
	.pgi-columns-2 {
		grid-template-columns: 1fr;
	}

	.pgi-gallery {
		gap: 15px;
	}

	.pgi-featured {
		height: 250px;
	}

	.pgi-featured-overlay {
		padding: 20px;
	}

	.pgi-heading {
		font-size: 24px;
		margin-bottom: 8px;
	}

	.pgi-description {
		font-size: 14px;
		margin-bottom: 15px;
	}

	.pgi-view-more {
		font-size: 12px;
	}

	.pgi-item-overlay {
		padding: 12px;
	}

	.pgi-item-title {
		font-size: 14px;
	}

	.pgi-modal-content {
		width: 95%;
		margin: 10% auto;
		max-height: 85vh;
	}

	.pgi-modal-image {
		height: 250px;
	}

	.pgi-modal-title {
		font-size: 24px;
		margin-bottom: 12px;
	}

	.pgi-modal-info {
		padding: 20px;
	}

	.pgi-modal-meta {
		flex-direction: column;
		gap: 8px;
	}

	.pgi-modal-description {
		font-size: 14px;
	}

	.pgi-modal-close {
		right: 15px;
		top: 15px;
		font-size: 28px;
	}
}

@media (max-width: 480px) {
	.pgi-heading {
		font-size: 20px;
	}

	.pgi-description {
		font-size: 13px;
	}

	.pgi-featured {
		height: 200px;
	}

	.pgi-featured-overlay {
		padding: 15px;
	}

	.pgi-modal-title {
		font-size: 20px;
	}

	.pgi-modal-image {
		height: 200px;
	}

	.pgi-modal-info {
		padding: 15px;
	}

	.pgi-modal-description {
		font-size: 13px;
	}
}
