/* Gallery Detail Page Styles */

/* ── page layout ── */
.gd-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

/* ── hero block ── */
.gd-hero-block {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 28px;
  position: relative;
  background: #111;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
}

/* carousel images */
.gd-hero-block .carousel-item img,
.gd-hero-block .gd-single-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* carousel controls */
.gd-hero-block .carousel-control-prev,
.gd-hero-block .carousel-control-next {
  width: 44px; height: 44px;
  top: 50%; bottom: auto;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .25s;
}
.gd-hero-block:hover .carousel-control-prev,
.gd-hero-block:hover .carousel-control-next { opacity: 1; }
.gd-hero-block .carousel-control-prev { left: 14px; }
.gd-hero-block .carousel-control-next { right: 14px; }
.gd-hero-block .carousel-control-prev-icon,
.gd-hero-block .carousel-control-next-icon { width: 18px; height: 18px; }

.gd-hero-block .carousel-indicators { margin-bottom: 14px; }
.gd-hero-block .carousel-indicators button {
  width: 8px; height: 8px;
  border-radius: 50%; border: 0;
  background: rgba(255,255,255,.5);
  transition: all .25s; padding: 0;
}
.gd-hero-block .carousel-indicators button.active {
  background: #fff; width: 22px; border-radius: 4px;
}

/* image counter badge */
.gd-img-count {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 5px 12px; border-radius: 20px;
  display: flex; align-items: center; gap: 5px;
  z-index: 10; pointer-events: none;
}
.gd-img-count svg {
  width: 14px; height: 14px;
  stroke: #fff; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* caption strip */
.gd-caption-strip {
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
  color: rgba(255,255,255,.9);
  font-size: 13px;
  padding: 10px 18px;
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 10;
}

/* thumbnail strip */
.gd-thumbs {
  display: flex; gap: 8px; padding: 10px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  overflow-x: auto; scrollbar-width: none;
}
.gd-thumbs::-webkit-scrollbar { display: none; }
.gd-thumb-strip {
  flex-shrink: 0;
  width: 70px; height: 52px;
  border-radius: 7px; overflow: hidden;
  cursor: pointer;
  border: 2.5px solid transparent;
  transition: border-color .2s, transform .2s;
}
.gd-thumb-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gd-thumb-strip.active { border-color: #1e8756; transform: scale(1.05); }
.gd-thumb-strip:hover { border-color: rgba(30,135,86,.5); }

/* ── body grid ── */
.gd-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}

/* ── main column ── */
.gd-label {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: #1e8756; background: #e8f5ee;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 10px;
}
.gd-main-title {
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 800; color: #1b2a1e;
  line-height: 1.2; margin: 0;
}
.gd-main-divider {
  height: 3px; width: 48px;
  background: linear-gradient(90deg, #1e8756, #14532d);
  border-radius: 2px; margin: 16px 0 20px;
}
.gd-main-caption {
  color: #374151; font-size: 16px;
  line-height: 1.8; margin: 0;
}

/* ── sidebar ── */
.gd-info-card {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
}
.gd-info-header {
  background: linear-gradient(135deg, #1e8756, #14532d);
  padding: 16px 20px;
}
.gd-info-header-title {
  font-size: 14px; font-weight: 700;
  color: #fff; text-transform: uppercase;
  letter-spacing: .06em; margin: 0;
}
.gd-info-row {
  display: flex; align-items: flex-start;
  gap: 14px; padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
}
.gd-info-row:last-child { border-bottom: 0; }
.gd-info-icon {
  width: 36px; height: 36px;
  border-radius: 9px; background: #e8f5ee;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.gd-info-icon svg {
  width: 18px; height: 18px;
  stroke: #1e8756; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.gd-info-lbl {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: #6b7280; margin-bottom: 3px;
}
.gd-info-val {
  font-size: 15px; font-weight: 600;
  color: #1f2937; line-height: 1.4;
}
.gd-info-val.brand { color: #1e8756; }

/* share */
.gd-share {
  margin-top: 16px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px 20px;
}
.gd-share-lbl {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: #6b7280; margin-bottom: 12px;
}
.gd-copy-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px; border-radius: 8px;
  font-size: 13px; font-weight: 700;
  background: #e8f5ee; color: #1e8756;
  border: none; cursor: pointer;
  transition: opacity .2s, transform .15s;
}
.gd-copy-btn svg { width: 15px; height: 15px; stroke: #1e8756; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gd-copy-btn:hover { opacity: .88; transform: translateY(-1px); }

/* prev/next nav */
.gd-nav-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 32px; padding-top: 28px;
  border-top: 1.5px solid #e5e7eb;
  grid-column: 1 / -1;
}
.gd-nav-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 30px;
  font-size: 14px; font-weight: 700;
  color: #1e8756; background: #e8f5ee;
  border: 1.5px solid rgba(30,135,86,.15);
  text-decoration: none;
  transition: all .25s;
}
.gd-nav-btn:hover {
  background: #1e8756; color: #fff;
  border-color: #1e8756;
  box-shadow: 0 6px 18px rgba(30,135,86,.25);
  transform: translateY(-2px);
}

/* responsive */
@media (max-width: 860px) {
  .gd-body { grid-template-columns: 1fr; }
  .gd-sidebar-col { order: -1; }
}
@media (max-width: 540px) {
  .gd-hero-block .carousel-item img,
  .gd-hero-block .gd-single-img { max-height: 260px; }
  .gd-main-title { font-size: 20px; }
  .gd-nav-btn { padding: 9px 14px; font-size: 13px; }
}
