/* STEC exceptionx */
.stec-submit-event-form, .stec-modal {
    font-family: 'sunset-serial' !important;
}

.stec-modal .stec-section {
    border-radius: 15px !important;
}

.stec-button-hidden .stec-button {
    display: none !important;
}

.stec-button {
    background-color: var(--primary-color) !important;
    border-radius: 50px !important;
}

.stec-button:hover {
    background-color: var(--secondary-color) !important;
}

.stec-button.yellow, /* hide reset button */
.stec-input-color-wrapper, /* hide color selector */
.stec-input-slug, /* hide slug chooser */
.stec-input-social-links, /* hide social links chooser */
.stec-modal .stec-select-wrapper.multiple /* hide permissions chooser */
{
    display: none; 
}

.stec-rrule-generator .stec-input-text-wrapper {
    display: none !important;
}

/* .stec-dashboard-top-nav {
    display: none !important;
} */

.stec-dashboard .stec-select-wrapper.multiple {
    display: none !important;
}

.stec-dashboard .stec-dashboard-home-item-events .stec-button.green,
.stec-dashboard .stec-dashboard-home-button,
.stec-dashboard .stec-dashboard-home-item-settings,
.stec-dashboard .stec-dashboard-home-item-calendars,
.stec-dashboard .stec-dashboard-home-item-reminders,
.stec-dashboard .stec-dashboard-home-item-builder,
.stec-dashboard .stec-dashboard-home-item-activator,
.stec-dashboard .stec-dashboard-home-item-categories {
    display: none !important;
}

.stec-dashboard .fa-solid {
    font-weight: 900;
    font-family: "Font Awesome 5 Free";
    font-style: normal;
}

.single-stec_event .stec-event-preview {
	display: none;
}

.single-stec_event .brk-page-title {
	display: none;
}

.stec-media-carousel-main .stec-media-carousel-image {
	height: 400px !important;
}

.stec-media-carousel-image img {
	border-radius: 30px !important;
}

.stec-event-title {
	font-family: "sunset-serial";
	color: var(--secondary-color) !important;
}

.stec-event-product-options-add-to-cart .stec-button {
	border-radius: 30px;
}

@media (min-width: 1024px) {
	.stec-media-carousel {
		display: flex;
		gap: 30px;
		height: 400px !important;
		align-items: center;
	}

	.stec-media-carousel-main {
		max-width: calc(100% - 350px);
	}

	.stec-media-carousel-main .swiper-slide-active {
		max-width: 100vw !important;
	}

	.stec-media-carousel .stec-media-carousel-thumbs .stec-media-carousel-image {
		width: 145px !important;
		height: 145px !important;
	}

	.stec-media-carousel .stec-media-carousel-thumbs {
		flex: 0 0 350px;
		width: 350px;
		height: 100% !important;
	}

	.stec-media-carousel .stec-media-carousel-thumbs .swiper-wrapper {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: 350px;
		align-items: center;
		height: 340px;
	}

	.stec-media-carousel .stec-media-carousel-thumbs .swiper-wrapper .swiper-slide:nth-child(n + 5) {
		display: none;
	}
}

/* Gallery Layout */
.wellyes-gallery {
	display: flex;
	gap: 20px;
	align-items: center;
	margin-top: 20px;
}

.wellyes-main-image {
	flex: 65%;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 500px;
	overflow: hidden;
	border-radius: 20px;
}

.wellyes-main-image img {
	width: 100%;
	height: auto;
	cursor: pointer;
	transition: transform 0.15s ease-in-out;
}

.wellyes-main-image img:hover {
	transform: scale(1.05);
}

.wellyes-thumbnail-container {
	flex: 35%;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: repeat(2, 1fr);
	gap: 20px;
}

.wellyes-thumbnail-holder {
	overflow: hidden;
	border-radius: 20px;
	aspect-ratio: 1 / 1;
}

.wellyes-thumbnail-container img {
	width: 100%;
	height: 100%;
	cursor: pointer;
	transition: transform 0.15s ease-in-out, opacity 0.15s;
	object-fit: cover;
}

.wellyes-thumbnail-container img:hover {
	transform: scale(1.05);
	opacity: 0.8;
}

/* Popover (Fullscreen Gallery) */
.wellyes-popover {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.15s ease, visibility 0.15s;
	z-index: 1000; /* Ensure it's on top */
}

.wellyes-popover.active {
	opacity: 1;
	visibility: visible;
}

.wellyes-popover-content {
	background: white;
	border-radius: 10px;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
	max-width: 90%;
	max-height: 90%;
	overflow-y: auto; /* Make it scrollable */
	padding: 10px;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: flex-start;
	max-width: 1500px;
}

.wellyes-popover-content img {
	max-height: 35%;
	width: calc(33.33% - 10px);
	height: 35vh;
	border-radius: 15px;
	cursor: pointer;
	transition: opacity 0.15s ease-in-out;
	object-fit: contain;
	margin: 5px;
}

.wellyes-popover-content img:hover {
	opacity: 0.8;
}

/* Close Button */
.wellyes-close-btn {
	position: absolute;
	top: 20px;
	right: 20px;
	font-size: 24px;
	color: white;
	cursor: pointer;
	z-index: 1001; /* Ensure it's on top of the image */
}

/* Media Queries */
@media (max-width: 1024px) {
	.wellyes-main-image {
		max-height: 350px; /* Adjust for smaller screens */
	}

	.wellyes-popover-content img {
		width: calc(50% - 10px); /* Two images per row on smaller screens */
		height: 25vh;
		border-radius: 15px;
	}
}

@media (max-width: 768px) {
	.wellyes-gallery {
		flex-direction: column; /* Stack on smaller screens */
	}

	.wellyes-main-image {
		max-height: 300px; /* Adjust for smaller screens */
	}

	.wellyes-thumbnail-container {
		grid-template-columns: repeat(4, 1fr); /* Single column on smaller screens */
        grid-template-rows: 1fr;
	}

	.wellyes-popover-content img {
		width: calc(50% - 10px); /* Two images per row on smaller screens */
		height: 25vh;
	}
}

/* Keyframes for Smooth Popover Appearance */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: scale(0.95);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

/* Content layout */

.wellyes-event-content {
	display: flex;
	gap: 20px;
	margin-top: 20px;
	align-items: stretch;
}

.wellyes-event-content-left {
	flex: 65%;
}

.wellyes-event-content-right {
	flex: 35%;
}

/* Wellyes rating */

.wellyes-rating {
	display: flex;
	align-items: center;
	gap: 20px;
	color: var(--secondary-color);
	font-weight: bold;
}

.wellyes-rating-stars {
	display: flex;
	padding-bottom: 5px;
}

@media (max-width: 1024px) {
	.wellyes-rating {
		gap: 10px;
	}
}

/* Wellyes Event Tickets Styling */
.wellyes-event-content-sticky {
	position: sticky;
	top: 100px;
}

.wellyes-event-tickets {
	background-color: var(--light-green);
	border-radius: 15px;
	margin-top: 20px;
}

.wellyes-event-tickets-heading {
	background-color: var(--secondary-color);
	color: var(--white);
	text-align: center;
	padding: 10px;
	border-radius: 15px 15px 0 0;
	font-size: 14px;
}

.wellyes-event-tickets-heading-circle {
	display: inline-block;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background-color: var(--yellow);
	color: var(--secondary-color);
	text-align: center;
	line-height: 24px;
	font-size: 12px;
	margin-left: 5px;
}

.wellyes-event-tickets-content {
	padding: 20px;
}

.wellyes-event-tickets-list {
	border-top: 1px solid var(--secondary-color);
	margin-bottom: 15px;
}

.wellyes-event-tickets-ticket {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 0;
	border-bottom: 1px solid #eee;
}

.wellyes-event-tickets-ticket:last-child {
	border-bottom: none;
}

.wellyes-event-tickets-ticket-left h4 {
	font-size: 16px;
	margin-bottom: 5px;
	color: var(--secondary-color);
}

.wellyes-event-tickets-ticket-left p {
	font-size: 12px;
	color: #777;
	margin-bottom: 0;
}

.wellyes-event-tickets-ticket-right {
	text-align: right;
}

.wellyes-event-tickets-ticket-price {
	font-size: 11px;
	margin-bottom: 5px;
}

.wellyes-event-tickets-ticket-price span {
	font-weight: bold;
	color: var(--primary-color);
	font-size: 14px;
	padding-left: 4px;
}

.wellyes-event-tickets-ticket-label {
	font-size: 11px;
	background-color: var(--yellow);
	padding: 3px 8px;
	border-radius: 5px;
	display: inline-block;
}

.wellyes-event-tickets-button {
	background-color: var(--secondary-color);
	color: var(--white);
	border: none;
	padding: 12px 20px;
	border-radius: 40px;
	cursor: pointer;
	font-size: 14px;
	transition: background-color 0.3s ease;
	width: 100%;
	text-align: center;
	font-weight: 300;
}

.wellyes-event-tickets-button:hover {
	background-color: #00333d;
}

.wellyes-event-tickets-button-mobile {
    display: none;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
	.wellyes-event-content-left {
		flex: 50%;
	}

	.wellyes-event-content-right {
		flex: 40%;
	}

	.wellyes-event-tickets-ticket-label {
		display: none;
	}

    .wellyes-event-tickets-button-mobile {
        display: inline-block;
        max-width: 200px;
        position: fixed;
        z-index: 200;
        left: 20px;
        bottom: 12px;
    }
}

@media (max-width: 768px) {
	.wellyes-event-content-right {
		display: none;
	}
}

/* Wellyes Event Info Styling */
.wellyes-event-info {
	display: grid;
	grid-template-columns: repeat(2, 1fr); /* Two columns */
	gap: 20px;
	margin-top: 20px;
}

.wellyes-event-info-item {
	display: flex;
	align-items: flex-start; /* Align items to the top */
	gap: 10px;
}

.wellyes-event-info-item-icon {
	flex-shrink: 0; /* Prevent icon from shrinking */
	width: 40px;
	height: 40px;
}

.wellyes-event-info-item-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.wellyes-event-info-item-content {
	flex-grow: 1;
}

.wellyes-event-info-item-content h4 {
	color: var(--primary-color);
	font-size: 1.2em;
	margin-bottom: 5px;
}

.wellyes-event-info-item-content p {
	margin-bottom: 0;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
	.wellyes-event-info {
		grid-template-columns: 1fr; /* Single column on smaller screens */
	}
}

/* Author */
.wellyes-event-author-info {
	background-color: #e0f2f7;
	border-radius: 15px;
	padding: 20px 25px;
	margin-top: 30px;
}

.wellyes-event-author-holder {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.wellyes-event-author-pic {
	flex: 15%;
}

.wellyes-event-author-pic img {
	border-radius: 50%;
	object-fit: cover;
	aspect-ratio: 1;
}

.wellyes-event-author-content {
	flex: 85%;
}

.wellyes-event-author-content .wellyes-rating {
	margin-bottom: 10px;
}

.wellyes-event-author-content h2 {
	font-size: 18px;
	color: var(--secondary-color);
	display: flex;
	gap: 5px;
}

.wellyes-event-author-readmore {
	display: flex;
	gap: 5px;
	text-decoration: none;
	transition: all 0.15s;
	font-weight: bold;
	margin-top: 10px;
}

.wellyes-event-author-readmore:hover {
	color: var(--primary-color);
}

.wellyes-event-author-readmore img {
	transition: all 0.15s;
}

.wellyes-event-author-readmore:hover img {
	transform: translateX(3px);
}

@media (max-width: 768px) {
	.wellyes-event-author-holder {
		display: block;
	}
}

/* Location */
.wellyes-event-location {
	background-color: #e0f2f7;
	border-radius: 15px;
	padding: 20px 25px;
	margin-top: 30px;
}

.wellyes-event-location-split {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.wellyes-event-location p{
    margin-bottom: 0;
}

.wellyes-event-location strong {
    color: var(--primary-color);
    padding-bottom: 10px;
    display: block;
}

.wellyes-collapsible-content-location {
    max-height: 110px;
    overflow: hidden;
    position: relative; /* Required for the fade effect */
    transition: all .2s;
}

.wellyes-collapsible-content-location .wellyes-inner-content-location {
    padding-bottom: 30px;
}

.wellyes-read-more-location {
    display: none;
    background: none !important;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 5px;
}

/* Optional: Add a fade effect at the bottom */
.wellyes-collapsible-content-location::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px; 
    background: linear-gradient(to bottom, #e0f2f700, #e0f2f7); 
    pointer-events: none;
}

/* Hide the fade effect when fully expanded */
.wellyes-collapsible-content-location.expanded::after {
    display: none;
}

.wellyes-event-location-map {
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 20px;
    position: relative;
    z-index: 0;
}

@media (max-width: 768px) {

    .wellyes-event-location-split {
        display: grid;
        grid-template-columns: 1fr;
    }

}


/* Basic grid styling */
.wellyes-event-grid-container {
    background-color: var(--extra-light-blue);
    border-radius: 30px;
    padding: 40px 0;
}
.wellyes-event-grid {
    display: grid;
    gap: 20px;
    overflow-y: hidden;
    grid-auto-rows: 0;
    padding: 1rem;
}

.wellyes-event-grid-header {
}

.wellyes-event-grid-title-holder {
    display: flex;
    align-items: flex-start;
    position: relative;
}

.wellyes-event-grid-title {
    font-family: 'sunset-serial' !important;
    color: var(--secondary-color);
    padding: 1rem;
    font-size: 36px !important;
}

/* Hover Dropdown Styling */
.wellyes-hover-dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.wellyes-hover-dropdown-list {
    position: absolute;
    min-width: 160px;
    z-index: 1;
    border-radius: 15px;
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 56px;
    gap: 10px;
    transition: all .2s;
    padding: 10px;
    top: -10px;
    cursor: pointer;
}

.wellyes-hover-dropdown-list:hover {
    height: auto;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    background-color: var(--extra-light-blue);
}

.wellyes-hover-dropdown-list li {
    color: black;
    text-decoration: none;
    display: block;
    color: var(--primary-color);
    font-family: 'sunset-serial' !important;
    font-size: 36px;
}

.wellyes-hover-dropdown-list li:hover {
    color: var(--secondary-color);
}

.wellyes-hover-dropdown-list li:first-child {
    padding-top: 0;
}

.wellyes-hover-dropdown-list li:last-child {
    border-bottom: none;
}

.wellyes-hover-dropdown-list li.active {
    order: -1;
}

.wellyes-hover-dropdown:hover .wellyes-hover-dropdown-list {
    display: block;
}

.wellyes-event-grid-filter-holder {
    display: flex;
    gap: 2rem;
    align-items: center;
    padding: 0 1rem 1rem;
	overflow-y: scroll;
}

.wellyes-event-grid-filter {
    font-family: 'sunset-serial' !important;
    cursor: pointer;
}

.wellyes-event-grid-filter:hover,
.wellyes-event-grid-filter.active {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.wellyes-event-grid,
.wellyes-event-grid a,
.wellyes-event-grid button,
.wellyes-event-grid h3 {
    font-family: 'sunset-serial' !important;
}

/* Column options */
.wellyes-event-grid-columns-1 {
    grid-template-columns: 1fr;
}

.wellyes-event-grid-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.wellyes-event-grid-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.wellyes-event-grid-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Row options */
.wellyes-event-grid-rows-1 {
    grid-template-rows: 1fr;
}

.wellyes-event-grid-rows-2 {
    grid-template-rows: repeat(2, min-content);
}

.wellyes-event-grid-rows-3 {
    grid-template-rows: repeat(3, min-content);
}

.wellyes-event-grid-rows-4 {
    grid-template-rows: repeat(4, min-content);
}

.wellyes-event-block {
    border-radius: 15px;
    box-sizing: border-box; /* Include padding and border in width */
    overflow: hidden;
    background-color: white;
    display: block;
    transition: all .15s;
}

.wellyes-event-block:hover {
    box-shadow: 10px 0 20px rgba(0, 0, 0, 0.05);
}

.wellyes-event-block-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.wellyes-event-block-content-flex {
    display: flex;
    gap: 10px;
    align-items: center;
}

.wellyes-event-block-content-flex p {
    margin-bottom: 0;
    word-wrap: break-word;
    overflow: hidden;
}

.wellyes-event-rounded-image {
    border-radius: 100% !important;
    overflow: hidden;
    object-fit: cover;
    height: 50px;
    width: 50px;
	aspect-ratio: 1;
}

.wellyes-event-block-content-icon {
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wellyes-event-view-button {
    margin-left: auto;
    border: 1px solid #21362C;
    border-radius: 40px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
}

.wellyes-event-view-button img {
	width: 30px;
	height: 15px;
}

.wellyes-event-block:hover .wellyes-event-view-button {
    background-color: #21362C20;
    color: white;
}

.wellyes-event-grid h3 {
    color: var(--secondary-color);
    font-size: 1.7em;
    font-weight: 300;
    margin-bottom: 10px;
}

.wellyes-event-image {
    width: 100%;
    height: 200px !important;
    object-fit: cover;
    margin-bottom: 10px;
    transition: all .15s;
}

.wellyes-event-block:hover .wellyes-event-image {
    transform: scale(1.05);
}

.wellyes-event-buttons {
    display: flex;
    gap: 10px; /* Space between buttons */
}

.wellyes-button {
    display: inline-block;
    padding: 8px 12px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all .15s;
}

.wellyes-button:hover {
    background-color: var(--secondary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wellyes-event-grid-columns-3,
    .wellyes-event-grid-columns-4 {
        grid-template-columns: repeat(2, 1fr); /* Two columns on medium screens */
    }

	.wellyes-event-grid-title,
	.wellyes-hover-dropdown-list li {
		font-size: 18px !important;
	}

	.wellyes-hover-dropdown-list {
		height: 40px;
	}
}

@media (max-width: 480px) {
    .wellyes-event-grid-columns-2,
    .wellyes-event-grid-columns-3,
    .wellyes-event-grid-columns-4 {
        grid-template-columns: 1fr; /* Single column on small screens */
    }
}

/* Popup Styling */
.wellyes-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.wellyes-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    max-width: 80%;
    max-height: 80%;
    overflow: auto;
    width: 100%;
}

.wellyes-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .wellyes-popup-content {
        max-width: 100%;
        max-height: 100%;
    }
}

/* Form Styling */
.wellyes-edit-form .wellyes-form-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.wellyes-edit-form .wellyes-form-group {
    flex: 1 1 100%;
    /* Full width by default */
    margin-bottom: 10px;
    padding: 0 10px;
    box-sizing: border-box;
}

.wellyes-edit-form .wellyes-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.wellyes-edit-form .wellyes-form-group input[type="text"],
.wellyes-edit-form .wellyes-form-group input[type="datetime-local"],
.wellyes-edit-form .wellyes-form-group textarea,
.wellyes-edit-form .wellyes-form-group input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

.wellyes-edit-form .wellyes-form-group textarea {
    resize: vertical;
    /* Allow vertical resizing */
    min-height: 100px;
    /* Set a minimum height */
}

.wellyes-edit-form .wellyes-form-group input[type="submit"] {
    background-color: #28a745;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.wellyes-edit-form .wellyes-form-group input[type="submit"]:hover {
    background-color: #218838;
}

/* Medium screens */
@media (min-width: 768px) {
    .wellyes-edit-form .wellyes-form-group {
        flex: 1 1 48%;
        /* Two columns on medium screens */
    }
}

/* Large screens */
@media (min-width: 992px) {
    .wellyes-edit-form .wellyes-form-group {
        flex: 1 1 30%;
        /* Three columns on large screens */
    }
}

/* Single column for full-width elements */
.wellyes-edit-form .wellyes-form-row .wellyes-form-group:nth-child(1) {
    flex: 1 1 100%;
}

/* Image List Styling */
.wellyes-image-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wellyes-image-item {
    width: 100px;
    text-align: center;
}

.wellyes-image-item img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 5px;
    border-radius: 5px;
}
