/* ATX Ticketing Connect — minimal, theme-friendly defaults. */

.atx-events {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.atx-events__card {
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
}

.atx-events__card.is-cancelled {
	opacity: 0.6;
}

.atx-events__thumb img {
	display: block;
	width: 100%;
	height: auto;
}

.atx-events__body {
	padding: 1rem 1.25rem 1.25rem;
}

.atx-events__title {
	margin: 0 0 0.25rem;
	font-size: 1.15rem;
}

.atx-events__date,
.atx-events__venue {
	margin: 0.1rem 0;
	font-size: 0.9rem;
	opacity: 0.8;
}

.atx-events__excerpt {
	margin: 0.5rem 0 0.75rem;
	font-size: 0.95rem;
	line-height: 1.5;
}

.atx-badge {
	display: inline-block;
	padding: 0.1rem 0.55rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	vertical-align: middle;
}

.atx-badge--cancelled {
	background: #fee2e2;
	color: #991b1b;
}

.atx-button {
	display: inline-block;
	margin-top: 0.75rem;
	padding: 0.5rem 1.1rem;
	border: 0;
	border-radius: 8px;
	background: #111827;
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	cursor: pointer;
}

.atx-button:hover {
	opacity: 0.85;
	color: #fff;
}

/* Ticket form */

.atx-ticket-form {
	max-width: 40rem;
}

.atx-ticket-form fieldset {
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 10px;
	padding: 1rem 1.25rem;
	margin: 0 0 1.25rem;
}

.atx-ticket-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 0.5rem 0;
	border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.atx-ticket-row:last-child {
	border-bottom: 0;
}

.atx-ticket-row__info small {
	display: block;
	opacity: 0.7;
}

.atx-ticket-row__price {
	margin-left: 0.5rem;
	font-weight: 600;
}

.atx-ticket-row__qty input {
	width: 4.5rem;
}

.atx-field {
	margin: 0 0 0.9rem;
}

.atx-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.2rem;
}

.atx-field input[type='text'],
.atx-field input[type='email'],
.atx-field select,
.atx-field textarea {
	width: 100%;
	max-width: 26rem;
}

.atx-field__radio {
	display: block;
	font-weight: 400;
}

.atx-ticket-form__errors {
	background: #fee2e2;
	color: #991b1b;
	border-radius: 8px;
	padding: 0.75rem 1rem;
	margin-bottom: 1rem;
}

.atx-ticket-form__errors p {
	margin: 0.15rem 0;
}

.atx-ticket-form__busy {
	margin-left: 0.75rem;
	font-style: italic;
	opacity: 0.75;
}

/* Speakers / sponsors */

.atx-speakers,
.atx-sponsors {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
}

.atx-speakers__item {
	display: grid;
	gap: 0.15rem;
	max-width: 14rem;
}

.atx-speakers__photo {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
}

.atx-speakers__role,
.atx-speakers__org {
	font-size: 0.85rem;
	opacity: 0.75;
}

.atx-sponsors__item img {
	max-height: 44px;
	width: auto;
}

/* Full-page wrapper used when "Use plugin templates" is on. */
.atx-wrap {
	max-width: 900px;
	margin: 0 auto;
	padding: 2rem 1rem 3rem;
}

.atx-wrap__title {
	margin: 0 0 1.5rem;
}

.atx-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 0.75rem;
	margin: 1.5rem 0;
}

.atx-gallery__item { display: block; border-radius: 0.5rem; overflow: hidden; }

.atx-gallery__img {
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
	transition: transform 0.2s ease;
}

.atx-gallery__item:hover .atx-gallery__img { transform: scale(1.04); }

.atx-video {
	width: 100%;
	max-height: 480px;
	border-radius: 0.5rem;
	display: block;
	background: #000;
}

video.atx-gallery__img { background: #000; }

.atx-attendee-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
	margin: 0 0 0.75rem;
}

.atx-attendee-row__label {
	grid-column: 1 / -1;
	font-size: 0.85rem;
	font-weight: 600;
	opacity: 0.8;
}

.atx-attendee-row input {
	width: 100%;
	padding: 0.5rem 0.65rem;
	border: 1px solid rgb(120 120 135 / 0.4);
	border-radius: 0.4rem;
}

.atx-field__hint { font-size: 0.85rem; opacity: 0.75; margin: 0.25rem 0 1rem; }

@media (max-width: 560px) {
	.atx-attendee-row { grid-template-columns: 1fr; }
}

.atx-test-banner {
	background: repeating-linear-gradient(-45deg, #fef3c7, #fef3c7 12px, #fde68a 12px, #fde68a 24px);
	color: #92400e;
	border: 2px dashed #d97706;
	border-radius: 0.5rem;
	padding: 0.75rem 1rem;
	margin: 0 0 1.25rem;
	font-size: 0.95rem;
}

.atx-attendee-row__questions {
	grid-column: 1 / -1;
	padding: 0.25rem 0 0.5rem 0.75rem;
	border-left: 3px solid rgb(120 120 135 / 0.25);
	display: grid;
	gap: 0.5rem;
}

.atx-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgb(0 0 0 / 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
}

.atx-lightbox__stage {
	max-width: min(1100px, 88vw);
	max-height: 86vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.atx-lightbox__media {
	max-width: 100%;
	max-height: 86vh;
	border-radius: 0.5rem;
	object-fit: contain;
}

.atx-lightbox__close,
.atx-lightbox__nav {
	position: absolute;
	background: rgb(255 255 255 / 0.12);
	color: #fff;
	border: 0;
	border-radius: 999px;
	width: 44px;
	height: 44px;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
}

.atx-lightbox__close:hover,
.atx-lightbox__nav:hover { background: rgb(255 255 255 / 0.28); }

.atx-lightbox__close { top: 1rem; right: 1rem; }
.atx-lightbox__nav--prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.atx-lightbox__nav--next { right: 1rem; top: 50%; transform: translateY(-50%); }

.atx-lightbox__counter {
	position: absolute;
	bottom: 1rem;
	left: 50%;
	transform: translateX(-50%);
	color: rgb(255 255 255 / 0.75);
	font-size: 0.85rem;
}

.atx-attendee-row__self {
	background: none;
	border: 0;
	padding: 0;
	margin-left: 0.5rem;
	font-size: 0.8rem;
	text-decoration: underline;
	cursor: pointer;
	color: inherit;
	opacity: 0.75;
}

.atx-attendee-row__self:hover { opacity: 1; }
