.prj-reference {
  color: #333;
  line-height: 1.6;
}

.prj-reference .prj-container {
  max-width: 1300px;
  padding-inline: 20px;
}

.prj-reference .prj-ref-banner {
  height: 240px;
  color: #fff;
  background: #0b1836;
}

.prj-reference .prj-ref-banner > .prj-container {
  display: flex;
  height: 100%;
  align-items: center;
}

.prj-reference .prj-ref-banner p {
  width: 38.2%;
  margin: 0;
  color: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

.prj-reference .prj-ref-banner p::after {
  display: block;
  width: 190px;
  max-width: 100%;
  height: 5px;
  margin-block-start: 18px;
  background: #2b8f3f;
  content: '';
}

.prj-reference .prj-ref-summary {
  padding-block: 60px 30px;
  background: #f0f0f0;
}

.prj-reference .prj-ref-panel {
  display: grid;
  grid-template-columns: calc(100% - 540px) 500px;
  gap: 40px;
  align-items: center;
  background: #fff;
}

.prj-reference .prj-ref-gallery {
  min-width: 0;
  padding: 10px;
}

.prj-reference .prj-ref-stage {
  position: relative;
}

.prj-reference .prj-ref-slide {
  margin: 0;
}

.prj-reference [hidden] {
  display: none;
}

.prj-reference .prj-ref-slide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: #f0f0f0;
}

.prj-reference .prj-ref-caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}

.prj-reference .prj-ref-prev,
.prj-reference .prj-ref-next {
  position: absolute;
  inset-block-start: 50%;
  width: 35px;
  height: 70px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #fff;
  font: inherit;
  font-size: 32px;
  line-height: 1;
  text-align: center;
  background: rgba(43, 143, 63, .5);
  transform: translateY(-50%);
  transition: background .16s;
  cursor: pointer;
}

.prj-reference .prj-ref-prev {
  inset-inline-start: 10px;
}

.prj-reference .prj-ref-next {
  inset-inline-end: 10px;
}

.prj-reference:dir(rtl) .prj-ref-prev,
.prj-reference:dir(rtl) .prj-ref-next {
  transform: translateY(-50%) scaleX(-1);
}

.prj-reference .prj-ref-prev:hover,
.prj-reference .prj-ref-next:hover {
  background: #2b8f3f;
}

.prj-reference .prj-ref-counter {
  position: absolute;
  inset-block-end: 18px;
  inset-inline-end: 18px;
  padding: 3px 10px;
  color: #fff;
  font-size: 13px;
  background: rgba(0, 0, 0, .55);
}

.prj-reference .prj-ref-content {
  min-width: 0;
}

.prj-reference .prj-ref-content h1 {
  margin-block: 50px 30px;
  color: #333;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.prj-reference .prj-ref-meta {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.prj-reference .prj-ref-meta > div {
  margin-block-start: 5px;
}

.prj-reference .prj-ref-meta dt,
.prj-reference .prj-ref-meta dd {
  display: inline;
  margin: 0;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.prj-reference .prj-ref-meta dt::after {
  content: ': ';
}

.prj-reference .prj-ref-inquiry {
  margin-block-start: 20px;
  padding-block: 20px;
  padding-inline: 0 24px;
  border-block-start: 2px solid #f0f0f0;
}

.prj-reference .prj-ref-inquiry h2 {
  margin: 0;
  color: #333;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.prj-reference .prj-ref-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-block-start: 12px;
}

.prj-reference .prj-ref-fields input,
.prj-reference .prj-ref-fields button {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 6px;
  border: 0;
  border-radius: 0;
  color: #333;
  font: inherit;
  font-size: 14px;
  background: #f0f0f0;
}

.prj-reference .prj-ref-fields button {
  background: #2b8f3f;
  color: #fff;
  cursor: pointer;
}

.prj-reference .prj-ref-inquiry .form-ok {
  grid-column: 1 / -1;
}

.prj-reference .prj-ref-note {
  margin-block: 10px 0;
  color: #666;
  font-size: 12px;
}

.prj-reference a:focus-visible,
.prj-reference button:focus-visible,
.prj-reference input:focus-visible {
  outline: 2px solid #148a43;
  outline-offset: 3px;
}

.prj-reference .prj-ref-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-block-start: 20px;
}

.prj-reference .prj-ref-actions a {
  font-size: 16px;
  text-decoration: none;
}

.prj-reference .prj-ref-reserve {
  display: inline-flex;
  width: 172px;
  min-height: 44px;
  padding: 8px 12px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  color:#fff;
  text-align: center;
  background: #2b8f3f;
}

.prj-reference .prj-ref-reserve:hover {
  background: #237a36;
}

.prj-reference .prj-ref-back {
  color: #666;
  text-align: end;
}

.prj-reference .prj-ref-back:hover {
  color: #148a43;
}

.prj-reference .prj-ref-overview {
  padding-block-start: 50px;
}

.prj-reference .prj-ref-heading {
  margin: 0;
  color: #333;
  font-size: 28.8px;
  font-weight: 500;
  line-height: 1.2;
}

.prj-reference .prj-ref-heading::after {
  display: block;
  width: 80px;
  height: 5px;
  margin-block-start: 15px;
  background: #2b8f3f;
  content: '';
}

.prj-reference .prj-ref-overview p {
  margin-block: 20px 0;
  font-size: 16px;
  line-height: 1.8;
}

.prj-reference .prj-ref-related {
  padding-block: 50px 60px;
}

.prj-reference .prj-ref-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-block-start: 20px;
}

.prj-reference .prj-ref-card {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #333;
  text-decoration: none;
  background: #fff;
}

.prj-reference .prj-ref-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .2s;
}

.prj-reference .prj-ref-card h3 {
  margin-block: 18px 10px;
  color: inherit;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  transition: color .2s;
}

.prj-reference .prj-ref-card p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.prj-reference .prj-ref-card:hover h3 {
  color: #148a43;
}

.prj-reference .prj-ref-card:hover img {
  transform: scale(1.025);
}

@media (min-width: 1025px) and (max-width: 1272px) {
  .prj-reference .prj-ref-panel {
    grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
    gap: 20px;
  }

  .prj-reference .prj-ref-content {
    padding: 20px;
  }
}

@media (max-width: 1024px) {
  .prj-reference .prj-ref-summary {
    padding-block: 30px 20px;
  }

  .prj-reference .prj-ref-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .prj-reference .prj-ref-content {
    padding-inline: 20px;
    padding-block-end: 30px;
  }

  .prj-reference .prj-ref-content h1 {
    margin-block: 20px;
  }

  .prj-reference .prj-ref-inquiry {
    padding-inline: 0;
  }
}

@media (max-width: 800px) {
  .prj-reference .prj-ref-banner {
    height: 200px;
  }

  .prj-reference .prj-ref-banner p {
    width: 100%;
    text-wrap: balance;
  }

  .prj-reference .prj-ref-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .prj-reference .prj-ref-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .prj-reference .prj-ref-prev,
  .prj-reference .prj-ref-next,
  .prj-reference .prj-ref-card img,
  .prj-reference .prj-ref-card h3,
  .prj-reference .prj-ref-actions a {
    transition: none;
  }

  .prj-reference .prj-ref-card:hover img {
    transform: none;
  }
}
