/* Info Gallery Widget Styles */

.info-gallery-container {
	display: grid;
	width: 100%;
}

.info-gallery-item {
	position: relative;
	display: block;
	overflow: hidden;
	cursor: pointer;
	text-decoration: none;
}

.info-gallery-item-wrapper {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.info-gallery-item-wrapper::before {
	content: '';
	display: block;
	padding-bottom: 75%; /* Default aspect ratio */
}

.info-gallery-item-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transition: transform 0.3s ease;
}

.info-gallery-item:hover .info-gallery-item-image {
	transform: scale(1.05);
}

/* Overlay Styles */
.info-gallery-item-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 1;
}

.info-gallery-item:hover .info-gallery-item-overlay {
	opacity: 1;
}

/* Always show overlay */
.info-gallery-item.overlay-always-show .info-gallery-item-overlay {
	opacity: 1;
}

/* Overlay Content Positioning */
.info-gallery-item-content {
	width: 100%;
	padding: 20px;
	text-align: center;
	transition: transform 0.3s ease;
}

/* Position Classes */
.overlay-position-top-left .info-gallery-item-overlay {
	align-items: flex-start;
	justify-content: flex-start;
}

.overlay-position-top-left .info-gallery-item-content {
	text-align: left;
}

.overlay-position-top-center .info-gallery-item-overlay {
	align-items: flex-start;
	justify-content: center;
}

.overlay-position-top-center .info-gallery-item-content {
	text-align: center;
}

.overlay-position-top-right .info-gallery-item-overlay {
	align-items: flex-start;
	justify-content: flex-end;
}

.overlay-position-top-right .info-gallery-item-content {
	text-align: right;
}

.overlay-position-center-left .info-gallery-item-overlay {
	align-items: center;
	justify-content: flex-start;
}

.overlay-position-center-left .info-gallery-item-content {
	text-align: left;
}

.overlay-position-center-center .info-gallery-item-overlay {
	align-items: center;
	justify-content: center;
}

.overlay-position-center-center .info-gallery-item-content {
	text-align: center;
}

.overlay-position-center-right .info-gallery-item-overlay {
	align-items: center;
	justify-content: flex-end;
}

.overlay-position-center-right .info-gallery-item-content {
	text-align: right;
}

.overlay-position-bottom-left .info-gallery-item-overlay {
	align-items: flex-end;
	justify-content: flex-start;
}

.overlay-position-bottom-left .info-gallery-item-content {
	text-align: left;
}

.overlay-position-bottom-center .info-gallery-item-overlay {
	align-items: flex-end;
	justify-content: center;
}

.overlay-position-bottom-center .info-gallery-item-content {
	text-align: center;
}

.overlay-position-bottom-right .info-gallery-item-overlay {
	align-items: flex-end;
	justify-content: flex-end;
}

.overlay-position-bottom-right .info-gallery-item-content {
	text-align: right;
}

/* Animation - Fade */
.overlay-animation-fade .info-gallery-item-overlay {
	opacity: 0;
}

.overlay-animation-fade:hover .info-gallery-item-overlay,
.overlay-animation-fade.overlay-always-show .info-gallery-item-overlay {
	opacity: 1;
}

/* Animation - Slide Up */
.overlay-animation-slide-up .info-gallery-item-content {
	transform: translateY(20px);
}

.overlay-animation-slide-up:hover .info-gallery-item-content,
.overlay-animation-slide-up.overlay-always-show .info-gallery-item-content {
	transform: translateY(0);
}

/* Animation - Slide Down */
.overlay-animation-slide-down .info-gallery-item-content {
	transform: translateY(-20px);
}

.overlay-animation-slide-down:hover .info-gallery-item-content,
.overlay-animation-slide-down.overlay-always-show .info-gallery-item-content {
	transform: translateY(0);
}

/* Animation - Zoom */
.overlay-animation-zoom .info-gallery-item-content {
	transform: scale(0.8);
}

.overlay-animation-zoom:hover .info-gallery-item-content,
.overlay-animation-zoom.overlay-always-show .info-gallery-item-content {
	transform: scale(1);
}

/* Animation - None */
.overlay-animation-none .info-gallery-item-overlay {
	transition: none;
}

.overlay-animation-none .info-gallery-item-content {
	transition: none;
}

/* Title Styles */
.info-gallery-item-title {
	margin: 0 0 10px;
	padding: 0;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	word-wrap: break-word;
}

/* Description Styles */
.info-gallery-item-description {
	margin: 0;
	padding: 0;
	font-size: 14px;
	line-height: 1.6;
	word-wrap: break-word;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.info-gallery-item-title {
		font-size: 18px;
	}
	
	.info-gallery-item-description {
		font-size: 13px;
	}
	
	.info-gallery-item-content {
		padding: 15px;
	}
}

@media (max-width: 480px) {
	.info-gallery-item-title {
		font-size: 16px;
	}
	
	.info-gallery-item-description {
		font-size: 12px;
	}
	
	.info-gallery-item-content {
		padding: 10px;
	}
}