.jgs-page, .jgs-page * { box-sizing: border-box; }
.jgs-page {
  font-family: "DM Sans", Arial, sans-serif;
  background: #fff;
  padding: clamp(34px, 6vw, 64px) clamp(12px, 3vw, 20px) clamp(48px, 7vw, 76px);
  color: #1a3a31;
}
.jgs-container {
  max-width: 1180px;
  margin: 0 auto;
}
.jgs-header {
  max-width: 920px;
  margin: 0 auto clamp(18px, 3vw, 28px);
  text-align: left;
}
.jgs-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #256d5a;
  margin-bottom: 10px;
}
.jgs-header h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(30px, 5vw, 58px);
  font-weight: 500;
  color: #1a3a31;
  margin: 0 0 10px;
  line-height: 1.08;
}
.jgs-header p {
  max-width: 720px;
  margin: 0;
  color: #617a74;
  font-size: clamp(14px, 1.8vw, 16px);
  line-height: 1.7;
}
.jgs-slider {
  position: relative;
  background: #fff;
  overflow: hidden;
  border-radius: clamp(14px, 2vw, 22px);
  box-shadow: 0 22px 55px rgba(17, 24, 39, .14);
}
.jgs-main {
  position: relative;
  display: block;
}
.jgs-window {
  overflow: hidden;
  background: #0f2920;
  border-radius: inherit;
}
.jgs-track {
  display: flex;
  transition: transform .7s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}
.jgs-slide {
  min-width: 100%;
  position: relative;
  height: min(64vh, 620px);
  min-height: 420px;
  background: #0f2920;
}
.jgs-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.08), rgba(0,0,0,.03) 38%, rgba(0,0,0,.56) 100%),
    radial-gradient(circle at center, transparent 0, rgba(0,0,0,.16) 78%);
  pointer-events: none;
}
.jgs-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.jgs-caption {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: clamp(44px, 6vw, 58px);
  width: min(780px, calc(100% - 80px));
  transform: translateX(-50%);
  z-index: 2;
  padding: 0;
  background: transparent;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0,0,0,.62);
}
.jgs-caption h2 {
  font-family: "DM Sans", Arial, sans-serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
  line-height: 1.15;
}
.jgs-caption p {
  max-width: 680px;
  margin: 0 auto;
  color: rgba(255,255,255,.9);
  font-size: clamp(13px, 1.7vw, 15px);
  line-height: 1.55;
}
.jgs-arrow,
.jgs-play,
.jgs-dots {
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, color .2s ease;
}
.jgs-slider:hover .jgs-arrow,
.jgs-slider:hover .jgs-play,
.jgs-slider:hover .jgs-dots,
.jgs-slider:focus-within .jgs-arrow,
.jgs-slider:focus-within .jgs-play,
.jgs-slider:focus-within .jgs-dots {
  opacity: 1;
  pointer-events: auto;
}
.jgs-arrow {
  position: absolute;
  top: 50%;
  width: clamp(42px, 5vw, 62px);
  height: clamp(62px, 7vw, 96px);
  margin-top: calc(clamp(62px, 7vw, 96px) / -2);
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.78);
  font-size: clamp(48px, 7vw, 74px);
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  text-shadow: 0 2px 10px rgba(0,0,0,.45);
}
.jgs-arrow:hover {
  color: #fff;
  transform: scale(1.05);
}
.jgs-prev { left: clamp(10px, 4vw, 42px); }
.jgs-next { right: clamp(10px, 4vw, 42px); }
.jgs-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(48px, 6vw, 66px);
  height: clamp(48px, 6vw, 66px);
  border: 0;
  background: rgba(0,0,0,.10);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 7;
}
.jgs-play:hover {
  transform: translate(-50%, -50%) scale(1.06);
}
.jgs-play span {
  display: block;
  width: 0;
  height: 0;
  margin-left: 42%;
  border-top: clamp(13px, 2vw, 18px) solid transparent;
  border-bottom: clamp(13px, 2vw, 18px) solid transparent;
  border-left: clamp(20px, 3vw, 28px) solid rgba(255,255,255,.9);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.45));
}
.jgs-play.is-paused span {
  width: 24px;
  height: 34px;
  margin-left: 32%;
  border: 0;
  background: linear-gradient(to right, rgba(255,255,255,.9) 0 35%, transparent 35% 65%, rgba(255,255,255,.9) 65% 100%);
}
.jgs-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(14px, 3vw, 22px);
  z-index: 8;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.jgs-dot {
  width: clamp(9px, 1.3vw, 12px);
  height: clamp(9px, 1.3vw, 12px);
  padding: 0;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  box-shadow: 0 1px 5px rgba(0,0,0,.45);
  transition: background .2s ease, transform .2s ease;
}
.jgs-dot.active,
.jgs-dot:hover {
  background: #fff;
  transform: scale(1.08);
}
.jgs-grid-section { padding-top: clamp(34px, 6vw, 52px); }
.jgs-grid-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.jgs-grid-title h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(26px,4vw,42px);
  font-weight: 500;
  color: #1a3a31;
  margin: 0;
}
.jgs-grid-title p {
  color: #6b8a82;
  max-width: 540px;
  margin: 0;
  line-height: 1.6;
}
.jgs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.jgs-card {
  position: relative;
  overflow: hidden;
  border: 0;
  padding: 0;
  text-align: left;
  border-radius: 20px;
  min-height: 260px;
  background: #1a3a31;
  box-shadow: 0 10px 35px rgba(26,58,49,.08);
  cursor: pointer;
}
.jgs-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.jgs-card:hover img { transform: scale(1.06); }
.jgs-card span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px;
  color: #fff;
  background: linear-gradient(to top, rgba(15,41,32,.9), transparent);
  font-weight: 700;
  font-size: 16px;
}
.jgs-empty {
  background: #fff;
  border: 1px solid #e4eeeb;
  border-radius: 24px;
  padding: 38px;
  text-align: center;
  color: #6b8a82;
  box-shadow: 0 10px 35px rgba(26,58,49,.08);
}
@media (hover: none), (pointer: coarse) {
  .jgs-arrow,
  .jgs-play,
  .jgs-dots {
    opacity: 1;
    pointer-events: auto;
  }
}
@media(max-width: 1024px) {
  .jgs-container { max-width: 94vw; }
  .jgs-slide { height: clamp(360px, 55vw, 500px); min-height: 360px; }
  .jgs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width: 768px) {
  .jgs-page { padding: 42px 14px 58px; }
  .jgs-header { text-align: center; }
  .jgs-header p { margin: 0 auto; }
  .jgs-slider { border-radius: 16px; }
  .jgs-slide { height: clamp(300px, 62vw, 390px); min-height: 300px; }
  .jgs-caption { width: calc(100% - 44px); bottom: 42px; }
  .jgs-caption p { display: none; }
  .jgs-prev { left: 6px; }
  .jgs-next { right: 6px; }
  .jgs-play { width: 48px; height: 48px; }
  .jgs-grid-title { text-align: center; justify-content: center; }
  .jgs-grid-title p { margin: 0 auto; }
  .jgs-grid { gap: 14px; }
  .jgs-card, .jgs-card img { min-height: 220px; }
}
@media(max-width: 520px) {
  .jgs-page { padding: 34px 10px 46px; }
  .jgs-container { max-width: 100%; }
  .jgs-header h1 { font-size: 30px; }
  .jgs-header p { font-size: 14px; }
  .jgs-slide { height: 66vw; min-height: 245px; max-height: 340px; }
  .jgs-caption { bottom: 34px; width: calc(100% - 32px); }
  .jgs-caption h2 { font-size: 21px; }
  .jgs-arrow { font-size: 42px; width: 38px; height: 56px; margin-top: -28px; }
  .jgs-play { width: 42px; height: 42px; }
  .jgs-dots { bottom: 12px; gap: 6px; }
  .jgs-dot { width: 8px; height: 8px; border-width: 1.5px; }
  .jgs-grid { grid-template-columns: 1fr; }
  .jgs-card, .jgs-card img { min-height: 210px; }
  .jgs-card span { padding: 18px; font-size: 14px; }
}
