/* ================= PLAYER HERO ================= */

.project-media-hero {
  width: 100%;
  background: black;

  /* Center child */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Container */
.project-media-container {
  width: 100%;
  max-width: 1150px;
  padding: 0px;
}

.project-media-container--home {
  padding: 40px 20px;
}

.project-detail {
  background: #002a66;
    padding: 40px 80px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.5);
}

/* ===== TITLE ===== */

.project-page-title {
  color: #ffffff;
  font-size: 2.3rem;
  font-weight: 600;

  line-height: 1.2;
  margin: 0;
  padding-bottom: 10px;
}


/* Meta Row (Category + Role) */

.project-meta-row {
  display: flex;
  align-items: center;
  gap: 14px; /* space between category & role */
  margin-top: 6px;
}


/* CATEGORY */

.project-page-category {
  display: inline-block;

  padding: 3px 10px;

  border: 2px solid #ffffff;
  border-radius: 4px;

  color: #ffffff;

  font-size: 1.3rem;
  font-weight: 500;

  white-space: nowrap;
}


/* ROLE */

.project-page-role {
  color: #ffffff;

  font-weight: 400;
  opacity: 0.8;

  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

@media (max-width: 1024px){
    .project-detail{
        padding: 30px 30px;
    }
}


@media (max-width: 800px){
    .project-detail{
        padding: 16px 30px;
    }
}

/* ================= RESPONSIVE TEXT ================= */


@media (max-width: 800px) {

  /* Title */
  .project-page-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);     /* from 2.6rem */
    line-height: 1.25;
  }


  /* Meta Row */
  .project-meta-row {
    gap: 10px;
    flex-wrap: wrap;     /* allow wrap on small screens */
  }


  /* Category */
  .project-page-category {
    font-size: clamp(1rem, 2.5vw, 1.3rem);  /* from 1.3rem */
    padding: 2px 8px;
  }


  /* Role */
  .project-page-role {
    font-size: clamp(1rem, 2.3vw, 1.2rem);  /* from 1.2rem */
    line-height: 1.4;
  }
}
/* ================= PUBLISH PLATFORM STYLE ================= */

/* View on Platform */
.publish-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  padding: 36px 0 0;
  /* margin: 36px 0; */
  color: rgb(255, 255, 255);
}

.publish-wrapper p {
  font-size: clamp(1.1rem, 3vw, 1.6rem); /* responsive */
  font-weight: 500;
  margin-bottom: 16px;
}

.publish-icons {
  display: flex;
  gap: clamp(10px, 2vw, 16px);
}

.publish-icons a img {
  width: clamp(48px, 12vw, 96px);
  height: clamp(48px, 12vw, 96px);
  
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.publish-icons a:hover img {
  transform: scale(1.1);
}

@media (max-width: 800px){
  .publish-wrapper{
    padding: 28px 0 0;
    /* margin: 40px 0; */
  }
}

.project-views-page {
  display: flex;
  align-items: center;
  gap: 6px;

  font-size: 1.45rem;
  color: #ffffff;
  margin-top: 25px;
}

.project-views-page .play-icon {
  font-size: 1.4rem;
}

@media (max-width: 600px){
  /* Title */
  .project-page-title {
    font-size: 1.4rem;    /* from 2.6rem */
    line-height: 1.3;
    padding-bottom: 1px;
  }


  /* Meta Row */
  .project-meta-row {
    gap: 10px;
    flex-wrap: wrap;     /* allow wrap on small screens */
  }


  /* Category */
  .project-page-category {
    font-size: 0.8rem;  /* from 1.3rem */
    padding: 2px 8px;
  }


  /* Role */
  .project-page-role {
    font-size: 0.8rem;  /* from 1.2rem */
    line-height: 1.4;
  }

  .project-views-page {
    font-size: 1rem;
    margin-top: 10px;
  }

  .project-views-page .play-icon {
    font-size: 1rem;
  }
}


/* ================= WORKS GALLERY ================= */

.works-gallery-wrapper {
  width: 96%;
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;

  border-radius: 14px;
  background: #053a73;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

/* Header */
.works-gallery-header {
  display: flex;
  align-items: center;
  gap: 14px;

  padding: 22px 32px;

  cursor: pointer;
  user-select: none;

  color: white;
  font-size: 1.6rem;
  font-weight: 600;
}

.works-gallery-header span {
  font-size: 1.6rem;
  transition: transform 0.25s ease;
}

/* Open state */
.works-gallery-wrapper.open
.works-gallery-header span {
  transform: rotate(90deg);
}

/* Content */
.works-gallery-content {
  max-height: 0;
  overflow: hidden;

  transition: max-height 0.4s ease;
}

.works-gallery-wrapper.open
.works-gallery-content {
  max-height: 4000px;
}

/* Grid */
.works-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  gap: 12px;
  padding: 28px;
}

.works-gallery-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;

  border-radius: 6px;

  cursor: pointer;
  transition: transform 0.2s ease;
}

.works-gallery-grid img:hover {
  transform: scale(1.03);
}
/* 
@media (max-width: 1150px){
  .works-gallery-wrapper{
    border-radius: 0px;
  }
} */

/* Tablet */
@media (max-width: 900px) {

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

  .works-gallery-header {
    font-size: 1.6rem;
  }
}

/* Mobile */
@media (max-width: 500px) {

  .works-gallery-grid {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .works-gallery-header {
    padding: 18px 22px;
    font-size: 1.3rem;
  }
}

/* ================= GALLERY LIGHTBOX ================= */

.gallery-lightbox {
  position: fixed;
  inset: 0;

  background: rgba(0,0,0,0.9);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.25s ease;

  z-index: 9999;
}

.gallery-lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.gallery-lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;

  color: #fff;
  font-size: 32px;
  font-weight: bold;

  cursor: pointer;
}

/* ================= YT SHORTS ================= */

.shorts-container{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  margin: 60px auto;
}

.shorts-container p{
  text-align: center;
  font-weight: 600;
  font-size: 2.4rem;
  padding-bottom: 30px;
}

/* ================= YT SHORTS VIDEO ================= */

.shorts-video {
  width: 100%;
  max-width: 380px;   /* Desktop size (adjust if you want) */
  aspect-ratio: 9 / 16;
  padding: 0 10px 22px;

  margin: 0 auto;
}

.shorts-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}