/* Project-specific styles for EpHEMERA.
   Keep custom changes here instead of editing the original theme CSS. */

/* ---------------------------------------------------------
   Global EpHEMERA helpers
--------------------------------------------------------- */

.ephemera-content {
  font-family: Arial, sans-serif;
  text-align: justify;
}

.ephemera-description {
  line-height: 1.7;
  color: #333333;
}

.ephemera-section {
  margin-top: 2rem;
}

.ephemera-section-title {
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

/* ---------------------------------------------------------
   Homepage
--------------------------------------------------------- */

.ephemera-home-intro {
  max-width: 900px;
  margin: 0 auto;
}

.ephemera-home-map {
  min-height: 600px;
}

.ephemera-powered-section {
  text-align: center;
}

.ephemera-powered-section img {
  object-fit: contain;
  margin: 0.35rem 0;
}

.ephemera-logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.ephemera-footer-logo {
  max-width: 200px;
  max-height: 90px;
  object-fit: contain;
}

/* ---------------------------------------------------------
   Browse / Collection page
--------------------------------------------------------- */

.ephemera-browse-block {
  margin-bottom: 2.4rem;
}

.ephemera-browse-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #111111;
}

.ephemera-browse-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ephemera-browse-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid #d7d7d7;
  border-radius: 14px;
  background: #ffffff;
  color: #000000;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
  transition: 0.2s ease;
}

.ephemera-browse-link:hover {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
  text-decoration: none;
  transform: translateY(-2px);
}

/* ---------------------------------------------------------
   Record cards
--------------------------------------------------------- */

.ephemera-card {
  height: 100%;
  border: 1px solid #dddddd;
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff;
  transition: 0.2s ease;
}

.ephemera-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
}

.ephemera-card-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: #111111;
}

.ephemera-card .card-body {
  padding: 18px 20px 20px;
}

.ephemera-card .card-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.ephemera-card .card-title a {
  color: #111111;
  text-decoration: none;
}

.ephemera-card .card-title a:hover {
  color: #000000;
  text-decoration: none;
}

.ephemera-card-meta {
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 0.25rem;
  color: #555555;
}

.ephemera-card-meta strong {
  color: #111111;
}

.ephemera-card-meta a {
  color: #000000;
  font-weight: 600;
  text-decoration: none;
}

.ephemera-card-meta a:hover {
  text-decoration: underline;
}

/* Optional class kept for future use if we decide to show section badges again */
.ephemera-section-badge {
  display: inline-block;
  margin-top: 12px;
  margin-right: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #000000;
  color: #ffffff !important;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.ephemera-section-badge:hover {
  background: #000000;
  color: #ffffff !important;
  text-decoration: none;
}

/* ---------------------------------------------------------
   Metadata tables
--------------------------------------------------------- */

.ephemera-metadata-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.ephemera-metadata-table th,
.ephemera-metadata-table td {
  border: 1px solid #dddddd;
  padding: 8px;
  text-align: left;
}

.ephemera-metadata-table th {
  background-color: #f2f2f2;
}

/* ---------------------------------------------------------
   3D viewers and maps
--------------------------------------------------------- */

.ephemera-viewer-frame {
  width: 100%;
  height: 600px;
  border: 0;
}

.ephemera-map {
  width: 100%;
  height: 500px;
}

/* ---------------------------------------------------------
   Partners
--------------------------------------------------------- */

.partner-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-bottom: 0;
}

.partner-item {
  display: flex;
  align-items: center;
}

.partner-logo {
  max-width: 180px;
  max-height: 120px;
  height: auto;
  object-fit: contain;
}

.ephemera-back-wrap {
  margin-bottom: 1.8rem;
}

.ephemera-back-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: #f3f3f3;
  color: #333333;
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s ease;
}

.ephemera-back-link:hover {
  background: #000000;
  color: #ffffff;
  text-decoration: none;
}

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */

@media (max-width: 768px) {
  .ephemera-card-image {
    height: 220px;
  }

  .ephemera-browse-link {
    width: 100%;
  }

  .ephemera-viewer-frame {
    height: 420px;
  }

  .ephemera-map {
    height: 420px;
  }
}
