/* Custom overrides for minimal-mistakes dark skin */

/* Hero slideshow — infinite horizontal scroll marquee */
.hero-slideshow {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 2em;
}

.hero-slideshow__track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: hero-scroll 40s linear infinite;
}

.hero-slideshow__item {
  position: relative;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}

.hero-slideshow__item img {
  height: 320px;
  width: auto;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

.hero-slideshow__label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.1em;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  padding: 1em;
  pointer-events: none;
}

.hero-slideshow__label small {
  display: block;
  font-size: 0.7em;
  font-weight: 400;
  margin-top: 0.3em;
  opacity: 0.8;
}

.hero-slideshow__item:hover .hero-slideshow__label {
  opacity: 1;
}

@keyframes hero-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.hero-slideshow:hover .hero-slideshow__track {
  animation-play-state: paused;
}

/* Slightly adjust link color for better contrast */
.page__content a:not(.btn) {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.page__content a:not(.btn):hover {
  border-bottom-color: #f2a365;
}

/* Project grid cards */
.feature__wrapper {
  display: flex;
  flex-wrap: wrap;
}

.feature__item {
  display: flex;
}

.feature__item .archive__item {
  display: flex;
  flex-direction: column;
  border: 1px solid #333;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature__item .archive__item-teaser {
  flex-shrink: 0;
  height: 200px;
  overflow: hidden;
}

.feature__item .archive__item-teaser img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature__item .archive__item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.feature__item .archive__item-excerpt {
  flex: 1;
}

.feature__item .archive__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Technology tags at bottom of project pages */
.page__content code {
  background-color: #2d2d2d;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.85em;
}

/* Gallery improvements */
.gallery img {
  border-radius: 4px;
}

/* Skills table */
.page__content table {
  border-collapse: collapse;
}

.page__content table th {
  background-color: #1e1e2e;
  font-weight: 600;
}

.page__content table td,
.page__content table th {
  border: 1px solid #333;
  padding: 8px 12px;
}
