/* work-article.css — shared styles for all works detail pages */

.wa-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 100px 32px 80px;
}

/* Breadcrumb */
.wa-breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--font-family-english);
  font-size: 12px; color: var(--color-text-secondary);
  margin-bottom: 32px;
}
.wa-breadcrumb a { color: var(--color-text-secondary); text-decoration: none; }
.wa-breadcrumb a:hover { color: var(--color-primary); }
.wa-breadcrumb span { opacity: 0.5; }

/* Header */
.wa-header { margin-bottom: 32px; }
.wa-header__tags {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}
.wa-tag {
  font-family: var(--font-family-english); font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-primary); background: rgba(0,184,148,0.1);
  border-radius: 999px; padding: 4px 12px;
}
.wa-date {
  font-family: var(--font-family-english); font-size: 12px;
  color: var(--color-text-secondary);
}
.wa-header__title {
  font-size: clamp(20px, 3vw, 30px); font-weight: 700;
  color: var(--color-text); line-height: 1.45; margin: 0 0 10px;
}
.wa-header__client {
  font-size: 13px; color: var(--color-text-secondary);
}

/* Hero image */
.wa-hero-img {
  width: 100%; border-radius: 20px; display: block;
  object-fit: cover; aspect-ratio: 16/9;
  margin-bottom: 48px;
}

/* Body text */
.wa-body {
  font-size: 15px; line-height: 1.9; color: var(--color-text-secondary);
  margin-bottom: 48px;
}
.wa-body p { margin-bottom: 18px; }
.wa-body p:last-child { margin-bottom: 0; }
.wa-body h2 {
  font-size: 20px; font-weight: 700; color: var(--color-text);
  margin: 40px 0 16px; padding-bottom: 10px;
  border-bottom: 2px solid var(--color-border-subtle);
}
.wa-body h3 {
  font-size: 17px; font-weight: 700; color: var(--color-text);
  margin: 32px 0 12px;
}
.wa-body strong { color: var(--color-text); font-weight: 700; }

/* YouTube iframe wrapper */
.wa-video-wrap, .wa-video-label { }
.wa-video-label {
  font-size: 14px; font-weight: 600; color: var(--color-text);
  margin-bottom: 10px;
}
.wa-video-wrap {
  position: relative; padding-bottom: 56.25%; height: 0;
  overflow: hidden; border-radius: 16px; margin-bottom: 32px;
}
.wa-video-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: none; border-radius: 16px;
}

/* YouTube thumbnail player */
.yt-player {  position: relative;
  padding-bottom: 56.25%; height: 0;
  overflow: hidden; border-radius: 16px;
  margin-bottom: 32px; background: #000; cursor: pointer;
}
.yt-player__thumb {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.3s;
}
.yt-player:hover .yt-player__thumb { opacity: 0.75; }
.yt-player__play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,0,0,0.9);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, background 0.2s;
  pointer-events: none;
}
.yt-player:hover .yt-player__play { background: #ff0000; transform: translate(-50%, -50%) scale(1.1); }
.yt-player__play svg { width: 28px; height: 28px; fill: white; margin-left: 4px; }
.yt-player iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: none;
  border-radius: 16px;
}
.yt-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-family-english);
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--color-primary); text-decoration: none;
  margin-bottom: 32px; transition: opacity 0.2s;
}
.yt-link:hover { opacity: 0.75; }

/* Photo gallery */
.wa-photo-gallery {
  margin: 24px 0 40px;
}
.wa-gallery-title {
  font-size: 16px; font-weight: 700; color: var(--color-text);
  margin-bottom: 16px;
  padding: 14px 20px;
  background: #F5F5F5; border-radius: 10px;
  cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  user-select: none;
  transition: background 0.2s;
}
.wa-gallery-title:hover { background: #EBEBEB; }
.wa-gallery-title .arrow { font-size: 14px; opacity: 0.5; }
.wa-gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-top: 12px;
}
.wa-gallery-grid img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 8px; cursor: pointer;
  transition: opacity 0.2s, transform 0.3s;
}
.wa-gallery-grid img:hover { opacity: 0.85; transform: scale(1.03); }

/* General images */
.wa-images-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  margin: 24px 0;
}
.wa-images-grid img { width: 100%; border-radius: 12px; object-fit: cover; aspect-ratio: 16/9; }

/* Client info table */
.wa-client-info {
  background: #F5F5F5; border-radius: 20px; padding: 32px 36px;
  margin-bottom: 48px;
}
.wa-client-info h3 {
  font-size: 14px; font-weight: 700;
  font-family: var(--font-family-english);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-primary); margin-bottom: 20px;
}
.wa-table { width: 100%; border-collapse: collapse; }
.wa-table tr { border-bottom: 1px solid var(--color-border-subtle); }
.wa-table tr:last-child { border-bottom: none; }
.wa-table th {
  width: 130px; padding: 12px 16px 12px 0;
  font-size: 12px; font-weight: 700; color: var(--color-text-secondary);
  text-align: left; vertical-align: top; white-space: nowrap;
}
.wa-table td {
  padding: 12px 0; font-size: 13px; color: var(--color-text);
  line-height: 1.75; vertical-align: top;
}
.wa-table a { color: var(--color-primary); text-decoration: none; }
.wa-table a:hover { text-decoration: underline; }

/* Back link */
.wa-back {
  display: inline-block;
  font-family: var(--font-family-english); font-size: 13px; font-weight: 600;
  color: var(--color-text-secondary); text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.wa-back:hover { color: var(--color-primary); }

/* Lightbox */
.wa-lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-out; padding: 20px;
}
.wa-lightbox img {
  max-width: 90vw; max-height: 90vh;
  object-fit: contain; border-radius: 8px;
}
.wa-lightbox-close {
  position: absolute; top: 20px; right: 24px;
  color: white; font-size: 28px; cursor: pointer;
  background: none; border: none; line-height: 1; opacity: 0.7;
}
.wa-lightbox-close:hover { opacity: 1; }

@media (max-width: 640px) {
  .wa-wrap { padding: 88px 20px 60px; }
  .wa-gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .wa-images-grid { grid-template-columns: 1fr; }
  .wa-client-info { padding: 24px 20px; }
}
