/* ShowPreview.css — auto-loaded by includes/header.php for ShowPreview.php */

.exh-detail { padding: 50px 0 90px; background: #0b0f19; color: #e8ecf5; }

/* ---- Banner ----------------------------------------------------
   No cropping. A brochure, poster or square graphic was being sliced
   through the middle by object-fit:cover, so the box now takes the
   image's own shape and simply caps how large it can get. */
.exh-detail-banner {
  max-width: 640px;
  margin: 0 auto 2.4rem;
  border-radius: 12px;
  overflow: hidden;
  background: #0f1626;
  display: flex;
  justify-content: center;
}
.exh-detail-banner img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 560px !important;
  object-fit: contain !important;
}
@media (max-width: 767px) {
  .exh-detail-banner img { max-height: 380px !important; }
}

/* ---- Sidebar card ---- */
.exh-detail-card {
  background: #121a2b; border: 1px solid #1e2a42; border-radius: 14px;
  padding: 1.6rem; position: sticky; top: 90px;
}

/* ---- Logo ------------------------------------------------------
   width/height + object-fit rather than max-width/max-height: a
   global `img` rule in the site stylesheet was beating the max-*
   values, so the logo overflowed the white box. */
.exh-detail-logo {
  background: #fff;
  border-radius: 10px;
  height: 150px;
  padding: 16px;
  margin-bottom: 1.4rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.exh-detail-logo img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
}

/* ---- Meta list ---- */
.exh-meta { margin: 0 0 1.2rem; }
.exh-meta dt {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #7d8ca6; margin-top: .95rem;
}
.exh-meta dt:first-child { margin-top: 0; }
.exh-meta dd { margin: .2rem 0 0; font-size: .95rem; color: #dfe7f3; word-break: break-word; }
.exh-meta dd a { color: #FFD700; text-decoration: none; }
.exh-meta dd a:hover { text-decoration: underline; }
.exh-hi { color: #FFD700 !important; font-weight: 700; font-size: 1.15rem !important; }

.exh-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.4rem; }
.exh-tag {
  font-size: .78rem; background: rgba(255, 215, 0, .1); border: 1px solid rgba(255, 215, 0, .35);
  color: #FFD700; border-radius: 999px; padding: .3rem .8rem;
}

.exh-detail-card .exh-btn { width: 100%; text-align: center; margin-bottom: .6rem; }

/* ---- Body ---- */
.exh-detail-title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; color: #fff; margin-bottom: .6rem; }
.exh-detail-lead { font-size: 1.08rem; color: #b6c4d8; line-height: 1.6; margin-bottom: 1.8rem; }

.exh-detail-body { line-height: 1.75; color: #cfd9e8; }
.exh-detail-body p  { margin-bottom: 1.1rem; }
.exh-detail-body h3 { font-size: 1.25rem; font-weight: 700; color: #fff; margin: 2rem 0 .8rem; }
.exh-detail-body h4 { font-size: 1.08rem; font-weight: 700; color: #fff; margin: 1.6rem 0 .7rem; }
.exh-detail-body ul, .exh-detail-body ol { margin: 0 0 1.2rem 1.2rem; }
.exh-detail-body li { margin-bottom: .45rem; }
.exh-detail-body a  { color: #FFD700; }
.exh-detail-body blockquote {
  border-left: 3px solid #FFD700; padding-left: 1.1rem; margin: 1.4rem 0; color: #9fb0c9; font-style: italic;
}
.exh-detail-body img { max-width: 100% !important; height: auto !important; border-radius: 8px; }

/* ---- Product cards ----
   Now <button> elements that open the popup, so the browser's default
   button styling has to be unwound. */
.exh-products-title {
  font-size: 1.35rem; font-weight: 700; color: #fff;
  margin: 3rem 0 1.4rem; padding-top: 2rem; border-top: 1px solid #1e2a42;
}
.exh-product-card {
  display: flex; flex-direction: column; width: 100%; height: 100%;
  text-align: left; font-family: inherit; cursor: pointer;
  background: #121a2b; border: 1px solid #1e2a42; border-radius: 12px;
  overflow: hidden; padding: 0;
  transition: transform .15s, border-color .15s;
}
.exh-product-card:hover { transform: translateY(-3px); border-color: #FFD700; }
.exh-product-card:focus-visible { outline: 2px solid #FFD700; outline-offset: 2px; }
.exh-product-card img {
  display: block !important;
  width: 100% !important;
  height: 165px !important;
  object-fit: cover !important;
  max-width: none !important;
  max-height: none !important;
}
.exh-product-card h3 { font-size: 1rem; font-weight: 700; color: #fff; margin: 1rem 1.1rem .35rem; }
.exh-product-card p  { font-size: .85rem; color: #9fb0c9; margin: 0 1.1rem .8rem; line-height: 1.5; }
.exh-product-more { font-size: .84rem; font-weight: 600; color: #FFD700; margin: auto 1.1rem 1.1rem; }

.exh-back { margin-top: 2.6rem; }
.exh-back a { color: #FFD700; text-decoration: none; font-weight: 600; }

/* ---- Product popup ---- */
.exh-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.exh-modal[hidden] { display: none; }
.exh-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(4, 7, 14, .82);
  backdrop-filter: blur(3px);
}
.exh-modal-panel {
  position: relative;
  width: 100%; max-width: 680px; max-height: 88vh;
  background: #121a2b; border: 1px solid #24334d; border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  display: flex; flex-direction: column;
  animation: exhModalIn .18s ease-out;
}
@keyframes exhModalIn {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
.exh-modal-close {
  position: absolute; top: .75rem; right: .75rem; z-index: 2;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: rgba(11, 15, 25, .75); border: 1px solid #2c3a56; color: #dfe7f3;
  font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0;
  display: grid; place-items: center; transition: background .15s, color .15s;
}
.exh-modal-close:hover { background: #FFD700; color: #0b0f19; border-color: #FFD700; }

.exh-modal-scroll { overflow-y: auto; padding: 0 0 1.6rem; }
.exh-modal-img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: 320px !important;
  object-fit: cover !important;
  border-radius: 14px 14px 0 0;
  margin-bottom: 1.4rem;
}
.exh-modal-title {
  font-size: 1.45rem; font-weight: 800; color: #fff;
  margin: 0 1.6rem .3rem; line-height: 1.3;
}
.exh-modal-by { font-size: .85rem; color: #7d8ca6; margin: 0 1.6rem 1.2rem; }
.exh-modal-body { margin: 0 1.6rem; line-height: 1.75; color: #cfd9e8; font-size: .95rem; }
.exh-modal-body p  { margin-bottom: 1rem; }
.exh-modal-body ul, .exh-modal-body ol { margin: 0 0 1rem 1.2rem; }
.exh-modal-body li { margin-bottom: .4rem; }
.exh-modal-body a  { color: #FFD700; }
.exh-modal-body img { max-width: 100% !important; height: auto !important; border-radius: 8px; }
.exh-modal-cta { margin: 1.4rem 1.6rem 0; }

@media (max-width: 575px) {
  .exh-modal { padding: 0; }
  .exh-modal-panel { max-height: 100vh; border-radius: 0; border: 0; }
  .exh-modal-img { border-radius: 0; }
  .exh-modal-title, .exh-modal-by, .exh-modal-body,
  .exh-modal-cta { margin-left: 1.1rem; margin-right: 1.1rem; }
}

/* ---- Buttons / alerts ---- */
.exh-btn {
  display: inline-block; background: #FFD700; color: #0b0f19; border: 0; border-radius: 999px;
  padding: .85rem 2.3rem; font-weight: 700; text-decoration: none; transition: transform .12s;
}
.exh-btn:hover { transform: translateY(-1px); color: #0b0f19; }
.exh-btn-sm { padding: .62rem 1.4rem; font-size: .88rem; }
.exh-btn-ghost { background: transparent; border: 1px solid #FFD700; color: #FFD700; }
.exh-btn-ghost:hover { background: rgba(255, 215, 0, .1); color: #FFD700; }

.exh-alert { border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 1.8rem; font-size: .93rem; line-height: 1.6; }
.exh-alert-ok { background: rgba(64, 200, 120, .1); border: 1px solid rgba(64, 200, 120, .4); color: #b9f0cf; }

@media (max-width: 991px) { .exh-detail-card { position: static; margin-bottom: 2rem; } }