/* Devlog-specific overrides: similar to project styles but with smaller images/video previews */

/* Reduce embedded video height for denser layout */
.video-box iframe,
.video-container iframe {
  height: 260px;
}

/* Tighter aspect for preview wrappers */
.video-box .video-wrapper,
.video-container .video-wrapper {
  padding-bottom: 50%; /* slightly squarer */
}

/* Devlog image gallery grid for many thumbnails */
.devlog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  max-width: 1200px;
  margin: 20px auto;
}

.devlog-item {
  background: rgba(0,0,0,0.02);
  padding: 8px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.devlog-item img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.devlog-item h3 {
  margin-top: 8px;
  font-size: 16px;
  color: var(--header-color);
  text-align: center;
}

/* Make hero images smaller on devlog pages */
.Hero-Section .headshot img {
  max-width: 220px;
}

@media(max-width:768px) {
  .video-box iframe,
  .video-container iframe {
    height: 200px;
  }

  .devlog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:480px) {
  .devlog-grid {
    grid-template-columns: 1fr;
  }
}

/* Image -> text row for devlogs */
.devlog-rows {
  max-width: 1360px;
  margin: 24px auto;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.devlog-row {
  display: flex;
  gap: 26px;
  align-items: center;
}

.devlog-row img {
  width: 420px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.devlog-text {
  background: rgba(0,0,0,0.01);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 28px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  color: var(--text-color);
  line-height: 1.7;
  text-align: left;
  flex: 1;
}

.devlog-text h3 {
  margin: 0 0 12px 0;
  color: var(--header-color);
  font-size: 26px;
}

.devlog-text p {
  margin: 0;
  font-size: 18px;
}

.work-section .text {
  text-align: left;
  max-width: 1200px;
  margin: 0 auto 20px;
  font-size: 18px;
  line-height: 1.7;
}

@media(max-width:768px) {
  .devlog-row {
    flex-direction: column;
    align-items: stretch;
  }

  .devlog-row img {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
  }
}
