@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

.beer-festival-participants {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.participants-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.participant-item {
	position: relative;
	aspect-ratio: 1;
	background: #ffffff;
	border-radius: 0;
	overflow: hidden;
	cursor: pointer;
	transition: all 0.3s ease;
}

.participant-item:hover {
	border: solid 9px #098BE6;
	opacity: 1;
}

.participant-logo {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}

.participant-logo img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	transition: transform 0.3s ease;
}

.participant-item:hover .participant-logo img {
	transform: scale(1.05);
}

.no-logo {
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	color: #666;
	padding: 20px;
	line-height: 1.2;
}

.brewery-modal {
	display: none;
	position: fixed;
	z-index: 10000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.85);
	overflow: auto;
}

.brewery-modal .modal-content {
	background-color: #fff;
	margin: 5% auto;
	padding: 5%;
	border-radius: 2rem;
	width: 85%;
	max-width: none;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	box-shadow: none;
	animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
	from {
		opacity: 0;
		transform: scale(0.9);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.close-modal {
	position: absolute;
	top: 0px;
	right: 20px;
	font-size: 3em;
	font-weight: bold;
	cursor: pointer;
	z-index: 10001;
	color: #000;
	background: none;
	border: none;
	width: auto;
	height: auto;
}

.close-modal:hover {
	color: #666;
}

.brewery-modal-content h2 img {
	width: 50%;
	height: auto;
}

.brewery-links {
	margin: 15px 0;
}

.brewery-links a {
	text-decoration: none;
	margin-right: 5px;
}

.sociallinks {
	background: #000000;
	padding: .6rem;
	color: #ffffff;
	font-size: 1.4rem;
	border-radius: 0;
	transition: all 0.3s ease;
}

.sociallinks:hover {
	background: #333;
}

.beers-section {
	border-top: none;
	padding-top: 30px;
	margin-top: 30px;
}

.beers-section h3 {
	display: none;
}

.beer-item {
	margin-bottom: 40px;
	padding: 0;
	background: none;
	border-radius: 0;
	border: none;
}

.beer-header.second-entry h2 img {
	float: right;
	margin-left: 20px;
	margin-right: 0;
}

.beer-header h2 {
	margin-bottom: 1rem;
}

.beer-header h2 img {
	width: 50%;
	height: auto;
}

.beer-info {
	flex: 1;
}

.beer-info .beer-description {
	margin: 15px 0;
}

.beer-info a {
	text-decoration: none;
	margin-right: 5px;
}

.second-entry .beer-header {
	flex-direction: row-reverse;
}

.second-entry .beer-header h2 {
	text-align: right;
	justify-content: flex-end;
}

@media (max-width: 768px) {
	.participants-grid {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	}
	
	.brewery-modal .modal-content {
		width: 95%;
		margin: 5% auto;
		padding: 5%;
	}
	
	.brewery-modal-content h2 img,
	.beer-header h2 img {
		width: 100%;
	}
	
	.beer-header {
		flex-direction: column;
	}
	
	.second-entry .beer-header {
		flex-direction: column;
	}
	
	.second-entry .beer-header h2 {
		text-align: center;
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.participants-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.brewery-modal .modal-content {
		width: 100%;
		height: 100%;
		margin: 0;
		border-radius: 0;
	}
	
	
	.brewery-modal-content h2 img,
	.beer-header h2 img {
		width: 100%;
	}
}