/* CMS-ready media system — placeholders, skeleton, fade-in */

.media-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 160px;
  overflow: hidden;
  background: #121216;
  border-radius: inherit;
}

.media-skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.08) 40%,
    rgba(255, 255, 255, 0.03) 80%
  );
  background-size: 200% 100%;
  animation: media-shimmer 1.4s ease-in-out infinite;
}

@keyframes media-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.media-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.media-img.is-loaded {
  opacity: 1;
}

.media-ph {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 180px;
  height: 100%;
  padding: 24px 16px;
  text-align: center;
  border-radius: inherit;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 70% at 70% 0%, rgba(212, 168, 75, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 100%, rgba(120, 140, 200, 0.08), transparent 50%),
    linear-gradient(165deg, #1a1a20 0%, #0e0e12 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.media-ph__glow {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 168, 75, 0.2), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  top: 20%;
  right: 15%;
}

.media-ph__icon {
  position: relative;
  z-index: 1;
  font-size: 1.35rem;
  color: #e0b24a;
  opacity: 0.85;
}

.media-ph__icon--grid {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(212, 168, 75, 0.35);
  border-radius: 8px;
  display: block;
}

.media-ph__avatar {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(224, 178, 74, 0.35), transparent 50%),
    linear-gradient(145deg, #2a2a32, #141418);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.media-ph__title {
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f0f0ea;
  max-width: 90%;
}

.media-ph__sub {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a9a92;
}

.media-ph--studio { min-height: 280px; }
.media-ph--team {
  min-height: 120px;
  aspect-ratio: 1;
  max-width: 120px;
  border-radius: 50%;
  margin: 0 auto 12px;
}
.media-ph--gallery { min-height: 200px; }

.thumb .media-ph,
.case-image .media-ph,
.about-image .media-ph,
.browser-image .media-ph {
  min-height: inherit;
  height: 100%;
  border: none;
}

.thumb,
.case-image,
.browser-image {
  position: relative;
  overflow: hidden;
  background: #121216;
}

.about-image {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  padding: 0 !important;
  color: transparent;
  letter-spacing: normal;
  text-transform: none;
}

.about-image .media-ph {
  min-height: 100%;
  width: 100%;
}

.gallery-empty { grid-column: 1 / -1; }

.team-member-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 12px;
}
