/* Portfolio Item Page Styles */

.page-section.portfolio-item {
  background: linear-gradient(180deg, rgba(254, 242, 224, 1) 0%, rgba(254, 242, 224, 1) 100%); /* soft beige similar to mockup */
  position: relative;
  padding-bottom: 60px;
}
.page-section.portfolio-item:hover {
  transform: initial;
}
/* Hero/Gallery */
.gallery-hero {
  border-radius: 16px;
  overflow: hidden;
  background: transparent; /* no background for gallery hero */
  box-shadow: none; /* remove card-like shadow */
}
.gallery-main {
  width: 100%;
  height: 550px; /* fixed hero height on desktop */
}
/* Make slick containers inherit the fixed height */
.gallery-main .slick-list,
.gallery-main .slick-track,
.gallery-main .slick-slide {
  height: 100% !important;
}
.gallery-main .slide,
.gallery-main .slide img {
  height: 100%;
  object-fit: cover; /* cover to keep aspect ratio and fill */
}
/* Ensure image also stretches horizontally and renders as block */
.gallery-main .slide img {
  width: 100%;
  display: block;
  object-position: center;
}
.gallery-thumbs {
  margin-top: 12px;
  position: relative; /* enable absolute-positioned arrows */
}
.gallery-thumbs .thumb {
  padding: 0; /* no gap around thumbnails */
}
.gallery-thumbs .thumb img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 0; /* remove thumbnail border radius */
  opacity: 0.9;
}
.gallery-thumbs .slick-current img,
.gallery-thumbs .thumb.slick-current img {
  outline: 2px solid #ff7f50;
  opacity: 1;
}
.gallery-thumbs {
  margin-top: 16px; /* a bit more spacing below hero */
  position: relative;
}
.gallery-thumbs .thumb {
  padding: 0; /* no gap around thumbnails */
}
.gallery-thumbs .thumb img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 0; /* remove thumbnail border radius */
  opacity: 0.9;
}
.gallery-thumbs .slick-current img,
.gallery-thumbs .thumb.slick-current img {
  outline: 2px solid #ff7f50;
  opacity: 1;
}

/* Content two-columns */
.portfolio-content {
  margin-top: 20px;
}
.portfolio-content .left-col h2.title {
  font-size: 28px;
  font-weight: 800;
}
.portfolio-content .left-col p.desc {
  font-size: 15px;
  line-height: 1.6;
  padding: 0;
}
.portfolio-content .right-col .details-card {
  background: rgba(255,255,255,0.9);
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.details-card h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}
.details-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.details-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.08);
}
.details-list li:last-child { border-bottom: none; }
.details-list .label { font-weight: 600; }

.pleft-0 {
  padding-left: 15px;
}

/* Floating CTA */
.floating-cta {
  position: fixed;
  right: 24px;
  top: 120px;
  z-index: 10;
  transform: translateY(-40px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.floating-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.floating-cta .cta-card {
  background: #ffffff;
  color: #000;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  padding: 12px 16px;
}
.floating-cta .cta-card .badge {
  color: #ff7f50;
  padding: 0px;
  font-weight: 700;
  font-size: 16px;
}
.floating-cta .cta-card .cta-text {
  margin-top: 6px;
  font-size: 14px;
}
.floating-cta .cta-card .cta-btn {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 8px 12px;
  text-decoration: none;
}

/* Prev/Next arrows for main slider */
.gallery-main .slick-prev:before,
.gallery-main .slick-next:before {
  color: #000;
}
.gallery-main .slick-prev,
.gallery-main .slick-next {
  z-index: 2;
}
.gallery-main .slick-arrow { display: none !important; }

/* Responsive */
@media (max-width: 992px) {
  .floating-cta { top: auto; bottom: 24px; right: 16px; }
  .portfolio-content .left-col h2.title { font-size: 24px; }
  .gallery-main { height: 360px; }
}
@media (max-width: 576px) {
  .gallery-main { height: 240px; }
}
/* Ensure no spacing between slick slides */
.gallery-thumbs .slick-slide { margin: 0 5px; cursor: pointer; }
.gallery-thumbs .slick-list { margin: 0; }
.gallery-thumbs .slick-track { gap: 0; }
/* Prev/Next arrows for thumbnail slider */
.gallery-thumbs .slick-prev:before,
.gallery-thumbs .slick-next:before { color: #fff; }
.gallery-thumbs .slick-prev,
.gallery-thumbs .slick-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(0,0,0,0.45);
  color: #fff;
  width: 30px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0; /* remove unintended padding on arrow buttons */
}
.gallery-thumbs .slick-prev { left: 0px; }
.gallery-thumbs .slick-next { right: 0px; }
/* Add left/right gaps for thumbnail strip */
.gallery-thumbs {
  margin: 16px 50px 0; /* top gap stays, add left/right gaps */
  padding: 0 40px;     /* keep space for arrows inside strip */
}
.gallery-thumbs .slick-list {
  padding: 0px;     /* inner gutters so first/last thumbnails don’t touch edges */
}
.gallery-thumbs .slick-prev::before, .gallery-thumbs .slick-next::before {
  content: '';
}
button.slick-arrow {
  background: transparent !important;
  border: none;
  cursor: pointer;
}

button.slick-arrow img {
  width: 22px;
  height: 40px;
}
/* Platinum@Pioneer content layout */
.platinum-pioneer {
  position: relative;
}
.platinum-pioneer::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 360px;
  height: 360px;
  background: url('../images/bg-flame-portfolio-bottom.png') no-repeat left bottom / contain;
  pointer-events: none;
  opacity: 0.65;
}

/* Top-right header flame for Platinum@Pioneer */
.platinum-pioneer::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0px;
  width: 198px;
  height: 182px;
  background: url('../images/bg-flame-portfolio-top.png') no-repeat right top / contain;
  pointer-events: none;
}

/* Two columns with center border */
.portfolio-content { position: relative; }
.portfolio-content::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  transform: translateX(-50%);
  background: #000;
  opacity: 0.8;
}

.portfolio-content .left-col .subtitle {
  font-size: 20px;
  font-weight: 700;
  margin-top: 8px;
  margin-bottom: 16px;
}

/* Details panel/table (no background) */
.details-panel { background: transparent; box-shadow: none; padding: 0 20px 0 30px; }
.details-title { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.details-table { width: 100%; border-collapse: collapse; }
.details-table td { padding: 6px 0; vertical-align: top; text-align: left; }
.details-table td.label { width: 30%; font-weight: 700; }
.details-table td.value { width: 70%; }

/* Center button spacing */
.button-container { margin-top: 24px; text-align: center; }
.button-container .btn-rounded { min-width: 160px; }

@media (max-width: 992px) {
  .portfolio-content::before { display: none; }
  .platinum-pioneer::after { width: 240px; height: 240px; }
}

@media (max-width: 600px) {
  .details-panel {
    padding: 0px;
  }
}