
#events-calendar{
	/* background-color: #fee2a5; */
	margin-bottom: 100px;
}

/* Gallery grid for past events */
.event-gallery-container #gallery-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin: 0 auto;
	max-width: 1200px;
}

.event-gallery-container__title{
    margin:30px 0;
    color:black;
}
.event-gallery-container .grid-item {
	flex: 0 0 calc(33.333% - 14px);
	position: relative;
	overflow: hidden;
	aspect-ratio: 1 / 1;
}

.event-gallery-container .grid-item a {
	display: block;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	position: relative;
	cursor: pointer;
}

.event-gallery-container .grid-item .overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s;
}

.event-gallery-container .grid-item a:hover .overlay {
	opacity: 1;
}

.event-gallery-container .grid-item .overlay i {
	font-size: 2rem;
	color: #fff;
}

@media (max-width: 768px) {
	.event-gallery-container .grid-item {
		flex: 0 0 calc(50% - 10px);
	}
}

@media (max-width: 480px) {
	.event-gallery-container .grid-item {
		flex: 0 0 100%;
	}
}


/* .wp-singular.single-tribe_events{
    background-color: red;
} */
.wp-singular.single-tribe_events #events-calendar{
    max-width: 100%;
    padding:0;
}
.wp-singular.single-tribe_events #tribe-events-pg-template{
    max-width: 100%;
    padding:0;
}

#single-event,
#single-event h1,
#single-event h2,
#single-event h3,
#single-event h4,
#single-event h5,
#single-event h6,
#single-event p,
#single-event span,
#single-event a,
#single-event li,
#single-event div,
#single-event time {
    color: white !important;
}

#events-calendar,
#events-calendar h1,
#events-calendar h2,
#events-calendar h3,
#events-calendar h4,
#events-calendar h5,
#events-calendar h6,
#events-calendar p,
#events-calendar span,
#events-calendar a,
#events-calendar li,
#events-calendar div,
#events-calendar time {
    color: white !important;
}

.tribe-events-c-subscribe-dropdown__container{
    display: none !important;
}
#events-calendar a.tribe-common-c-btn-border-small.tribe-events-c-top-bar__today-button.tribe-common-a11y-hidden{
    color:black !important;
}
.tribe-common .tribe-common-c-svgicon__svg-fill{
    fill:white !important;
}
.tribe-events-c-view-selector__list .tribe-common-c-svgicon__svg-fill{
    fill:black !important;
}
#events-calendar span.tribe-events-c-view-selector__list-item-text{
    color:black !important;
}

#single-event .tribe-events-meta-group-details dd{
	height: auto !important;
}
.tribe-events-meta-group{
	width: auto !important;
}

/* Stylowanie checkboxa akceptacji polityki prywatności */
.wpcf7-list-item {
	display: flex;
	align-items: center;
	margin: 20px 0;
}

.wpcf7-list-item label {
	display: flex;
	align-items: center;
	cursor: pointer;
	gap: 10px;
	font-size: 14px;
	line-height: 1.5;
}

.wpcf7-list-item input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 20px;
	height: 20px;
	border: 2px solid #ccc;
	border-radius: 4px;
	background-color: transparent;
	cursor: pointer;
	position: relative;
	transition: all 0.3s ease;
	flex-shrink: 0;
}

.wpcf7-list-item input[type="checkbox"]:hover {
	border-color: #999;
}

.wpcf7-list-item input[type="checkbox"]:checked {
	background-color: #ffe2a6;
	border-color: #ffe2a6;
}

.wpcf7-list-item input[type="checkbox"]:checked::after {
	content: "✓";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: black;
	font-size: 14px;
	font-weight: bold;
}

.wpcf7-list-item-label {
	color: #333;
}

.wpcf7-list-item-label a {
	color: #ffe2a6;
	text-decoration: underline;
	transition: color 0.3s ease;
}

.wpcf7-list-item-label a:hover {
	color: #ffd780;
}
.wpcf7-list-item-label{
	text-align: left !important;
	color: #858585 !important;
}

@media (min-width: 992px) {
	.single-post #inner-wrap {
		margin-top:140px;
	}
}

/* Stylowanie checkboxa zgody na przetwarzanie danych w formularzu rezerwacji */
#reservation input[type="checkbox"]#privacy_consent {
	appearance: none;
	-webkit-appearance: none;
	width: 20px;
	height: 20px;
	border: 2px solid #ccc;
	border-radius: 4px;
	background-color: transparent;
	cursor: pointer;
	position: relative;
	transition: all 0.3s ease;
	flex-shrink: 0;
	margin: 0;
}

#reservation input[type="checkbox"]#privacy_consent:hover {
	border-color: #999;
}

#reservation input[type="checkbox"]#privacy_consent:checked {
	background-color: #ffe2a6;
	border-color: #ffe2a6;
}

#reservation input[type="checkbox"]#privacy_consent:checked::after {
	content: "✓";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: black;
	font-size: 14px;
	font-weight: bold;
}

#reservation label[for="privacy_consent"] {
	color: #858585;
}
#privacy_consent-error {
	position: absolute;
    bottom: -30px;
    font-size: 12px;
    color: red;
}

