/* Exhibition Events - Frontend Styles
   Uses CSS custom properties (set inline from admin settings) so colors/fonts/buttons stay editable
   without touching this file: --exh-primary, --exh-secondary, --exh-text, --exh-btn-text, --exh-font, --exh-btn-radius
*/

:root {
	--exh-primary: #0073aa;
	--exh-secondary: #1d2327;
	--exh-text: #222222;
	--exh-btn-text: #ffffff;
	--exh-font: inherit;
	--exh-btn-radius: 6px;
}

.exh-events-page,
.exh-carousel,
.exh-grid,
.exh-single {
	font-family: var(--exh-font);
	color: var(--exh-text);
	box-sizing: border-box;
}
.exh-carousel *, .exh-grid *, .exh-single * { box-sizing: border-box; }

/* Buttons */
.exh-btn {
	display: inline-block;
	background: var(--exh-primary);
	color: var(--exh-btn-text);
	padding: 10px 22px;
	border-radius: var(--exh-btn-radius);
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: opacity .2s ease, transform .15s ease;
}
.exh-btn:hover { opacity: .88; color: var(--exh-btn-text); transform: translateY(-1px); }
.exh-btn--secondary { background: var(--exh-secondary); }
.exh-btn--block { display: block; width: 100%; text-align: center; margin-bottom: 10px; }

/* Status badges */
.exh-status-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: 4px 10px;
	border-radius: 999px;
	color: #fff;
}
.exh-status-upcoming { background: #2271b1; }
.exh-status-ongoing  { background: #46b450; }
.exh-status-past     { background: #8c8f94; }

/* Meta list (date / location / booth) */
.exh-meta-list { list-style: none; margin: 8px 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 16px; }
.exh-meta-item { font-size: 13px; opacity: .85; padding-left: 20px; position: relative; }
.exh-meta-date::before { content: "\1F4C5"; position: absolute; left: 0; }
.exh-meta-location::before { content: "\1F4CD"; position: absolute; left: 0; }
.exh-meta-booth::before { content: "\1F3E2"; position: absolute; left: 0; }

.exh-placeholder-img {
	width: 100%; height: 100%; min-height: 180px;
	background: linear-gradient(135deg, #eef1f4, #dfe4e8);
}

.exh-empty { padding: 30px; text-align: center; opacity: .7; }

/* ============ CAROUSEL ============ */
.exh-carousel { position: relative; margin: 30px 0; }
.exh-swiper { overflow: hidden; }
.exh-swiper .swiper-slide { height: auto; }

.exh-carousel-card {
	display: flex!important;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 18px rgba(0,0,0,.08);
	text-decoration: none;
	color: var(--exh-text);
	height: 100%;
	min-height: 320px;
}
.exh-carousel-card:hover { color: var(--exh-text); box-shadow: 0 8px 26px rgba(0,0,0,.14); }

.exh-carousel-card__media { display: flex!important; position: relative; flex: 1 1 45%!important; min-width: 0; overflow: hidden; }
.exh-carousel-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 240px; }
.exh-carousel-card__media .exh-status-badge { position: absolute; top: 14px; left: 14px; }

.exh-carousel-card__content { flex: 1 1 55%; padding: 28px 30px; display: flex!important; flex-direction: column; justify-content: center; }
.exh-carousel-card__title { margin: 0 0 10px; font-size: 22px; line-height: 1.3; color: var(--exh-secondary); }
.exh-carousel-card__desc { margin: 0 0 6px; font-size: 14px; line-height: 1.6; opacity: .85; }
.exh-carousel-card__content .exh-btn { align-self: flex-start; margin-top: 14px; }

/* Carousel style: overlay (text over image) */
.exh-carousel--overlay .exh-carousel-card { position: relative; display: block; min-height: 380px; }
.exh-carousel--overlay .exh-carousel-card__media { position: absolute; inset: 0; }
.exh-carousel--overlay .exh-carousel-card__media img { min-height: 100%; }
.exh-carousel--overlay .exh-carousel-card__content {
	position: relative; z-index: 2; justify-content: flex-end; height: 100%;
	background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.1) 60%);
	color: #fff;
}
.exh-carousel--overlay .exh-carousel-card__title,
.exh-carousel--overlay .exh-carousel-card__desc { color: #fff; }

/* Carousel style: minimal (compact) */
.exh-carousel--minimal .exh-carousel-card { min-height: 140px; }
.exh-carousel--minimal .exh-carousel-card__media { flex-basis: 35%; }
.exh-carousel--minimal .exh-carousel-card__content { padding: 16px 20px; }
.exh-carousel--minimal .exh-carousel-card__title { font-size: 17px; margin-bottom: 4px; }
.exh-carousel--minimal .exh-carousel-card__desc { display: none; }

.exh-swiper-prev, .exh-swiper-next {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 44px; height: 44px; border-radius: 50%; border: none;
	background: #fff; color: var(--exh-secondary);
	box-shadow: 0 2px 10px rgba(0,0,0,.18);
	cursor: pointer; z-index: 5; font-size: 16px;
	display: flex; align-items: center; justify-content: center;
}
.exh-swiper-prev { left: -10px; }
.exh-swiper-next { right: -10px; }
.exh-swiper-prev:hover, .exh-swiper-next:hover { background: var(--exh-primary); color: #fff; }

.exh-carousel .swiper-pagination { position: static; margin-top: 16px; text-align: center; }
.exh-carousel .swiper-pagination-bullet { background: var(--exh-secondary); opacity: .3; }
.exh-carousel .swiper-pagination-bullet-active { opacity: 1; background: var(--exh-primary); }

/* ============ GRID / LIST ============ */
.exh-grid {
	display: grid;
	gap: 26px;
	grid-template-columns: repeat(3, 1fr);
	margin: 30px 0;
}
.exh-grid--cols-1 { grid-template-columns: 1fr; }
.exh-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.exh-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.exh-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

.exh-grid-card {
	background: #fff; border-radius: 12px; overflow: hidden;
	box-shadow: 0 3px 14px rgba(0,0,0,.08);
	transition: box-shadow .2s ease, transform .2s ease;
}
.exh-grid-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,.14); transform: translateY(-3px); }
.exh-grid-card__link { text-decoration: none; color: var(--exh-text); display: block; }
.exh-grid-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.exh-grid-card__media img { width: 100%; height:auto!important; object-fit: cover; display: block; }
.exh-grid-card__media .exh-status-badge { position: absolute; top: 12px; left: 12px; }
.exh-grid-card__body { padding: 20px; }
.exh-grid-card__title { margin: 0 0 8px; font-size: 18px; line-height: 1.35; color: var(--exh-secondary); }
.exh-grid-card__desc { font-size: 13px; line-height: 1.6; opacity: .8; margin: 0 0 14px; }

@media (max-width: 992px) {
	.exh-grid--cols-3, .exh-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
	.exh-carousel-card { flex-direction: column; min-height: 0; }
	.exh-carousel-card__media img { min-height: 200px; }
}
@media (max-width: 600px) {
	.exh-grid--cols-2, .exh-grid--cols-3, .exh-grid--cols-4 { grid-template-columns: 1fr; }
	.exh-swiper-prev, .exh-swiper-next { display: none; }
}

/* ============ SINGLE EXHIBITION PAGE ============ */
.exh-hero { position: relative; min-height: ; display: flex; align-items: flex-end; overflow: hidden; background: var(--exh-secondary); }
.exh-hero__image { position: absolute; inset: 0; }
.exh-hero__image img { width: 100%; height: 100%; object-fit: cover; }
.exh-hero__overlay { position: relative; z-index: 2; width: 100%; background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.15) 70%); padding: 60px 0 34px; }
.exh-hero__inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; color: #fff; }
.exh-hero__title { color: #fff; font-size: clamp(26px, 4vw, 42px); margin: 12px 0 10px; }
.exh-meta-list--hero .exh-meta-item { color: #fff; opacity: .95; }

.exh-single__layout { max-width: 1100px; margin: 0 auto; padding: 40px 24px 60px; display: grid; grid-template-columns: 2fr 1fr; gap: 44px; align-items: start; }
.exh-section { margin-bottom: 40px; }
.exh-section h2 { font-size: 22px; margin-bottom: 14px; color: var(--exh-secondary); }
.exh-content { line-height: 1.75; }

.exh-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.exh-gallery-item { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 1; }
.exh-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.exh-gallery-item:hover img { transform: scale(1.06); }

.exh-map__embed { border-radius: 10px; overflow: hidden; }

.exh-share-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.exh-share-btn { padding: 9px 18px; border-radius: var(--exh-btn-radius); color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; }
.exh-share-fb { background: #1877f2; }
.exh-share-tw { background: #000; }
.exh-share-li { background: #0a66c2; }
.exh-share-wa { background: #25d366; }

.exh-info-card, .exh-related-card { background: #f7f8fa; border-radius: 12px; padding: 24px; margin-bottom: 24px; }
.exh-info-card h3, .exh-related-card h3 { margin-top: 0; font-size: 17px; color: var(--exh-secondary); }
.exh-info-list { list-style: none; margin: 0 0 20px; padding: 0; }
.exh-info-list li { font-size: 14px; padding: 6px 0; border-bottom: 1px dashed #dcdfe3; }
.exh-info-list li:last-child { border-bottom: none; }

.exh-related-list { list-style: none; margin: 0; padding: 0; }
.exh-related-item { margin-bottom: 14px; }
.exh-related-item a { display: flex; gap: 12px; text-decoration: none; color: var(--exh-text); align-items: center; }
.exh-related-thumb { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.exh-related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.exh-related-title { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.exh-related-date { display: block; font-size: 12px; opacity: .65; margin-top: 2px; }

@media (max-width: 860px) {
	.exh-single__layout { grid-template-columns: 1fr; }
	.exh-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Lightbox (simple, no external library) */
.exh-lightbox-overlay {
	position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 99999;
	display: flex; align-items: center; justify-content: center; padding: 30px;
}
.exh-lightbox-overlay img { max-width: 100%; max-height: 100%; border-radius: 6px; }
.exh-lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 34px; background: none; border: none; cursor: pointer; line-height: 1; }
