#page_exterior {
  max-width: 1200px;
  width: 100%;
  padding: 30px 0px;
  margin: 0 auto;
}

.exterior-top {
  text-align: center;
  margin: 15px auto;
  padding-bottom: 20px;
}
.exterior-top h2 {
  font-size: 36px;
  color: var(--green);
  margin-bottom: 5px;
  font-weight: bold;
}
.exterior-top p {
  font-size: 16px;
  color: var(--text);
}

.exterior-section-contain {
  padding: 30px 0px;
}
.exterior-section-contain p {
  letter-spacing: 2px;
  line-height: 2rem;
  font-size: 16px;
}

.exterior-h2-line-both {
  font-size: 30px;
  padding: 12px 2px;
  font-weight: bold;
  border-top: 1px solid #e5e7eb9d;
  border-bottom: 1px solid #e5e7eb9d;
  font-family: Arial, Helvetica, sans-serif;
  position: relative;
}
.exterior-h2-line-both::before {
  position: absolute;
  content: "";
  width: 50%;
  height: 1px;
  top: -1px;
  left: 0;
  background-color: var(--green);
}
.exterior-section-contain h3 {
  font-size: 25px;
  padding: 12px 2px;
  font-weight: bold;
  margin: 50px 0 20px;
  border-bottom: 1px solid var(--green);
}

.exterior-figure-01,
.exterior-figure-02,
.exterior-figure-03,
.exterior-figure-04,
.exterior-figure-05 {
  display: grid;
  margin: 30px auto;
  gap: 15px;
  align-items: stretch;
}
.exterior-figure-01 {
  grid-template-columns: 1fr 1fr;
}

.exterior-figure-02 {
  max-width: 800px;
  width: 100%;
  margin: 30px auto;
  grid-template-columns: 1fr 1fr;
}
.exterior-figure-03 {
  grid-template-columns: repeat(2, 1fr); /* Three columns with equal width */
  grid-auto-rows: auto;
  overflow: hidden;
}
.exterior-figure-03 > div {
  display: grid;
  grid-template-rows: repeat(2, 1fr); /* Three columns with equal width */
  gap: 15px;
}
.exterior-figure-03 img {
  width: 100%;
  height: auto;
}
.exterior-figure-04 {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  overflow: hidden;
}
.exterior-figure-05 {
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-rows: auto;
  overflow: hidden;
}
@media screen and (max-width: 768px) {
  .exterior-top h2 {
    font-size: 28px;
  }
  .exterior-h2-line-both {
    font-size: 24px;
  }
  .exterior-section-contain h3 {
    font-size: 20px;
  }
}

@media screen and (max-width: 576px) {
  .exterior-top h2 {
    font-size: 24px;
  }
  .exterior-h2-line-both {
    font-size: 20px;
  }
  .exterior-section-contain h3 {
    font-size: 18px;
  }
  .exterior-figure-01,
  .exterior-figure-02,
  .exterior-figure-03,
  .exterior-figure-04 {
    gap: 10px;
  }
  .exterior-figure-04 {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    overflow: hidden;
  }
}

.san-exterior-gallery {
  padding: 60px 0;
}

.s-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Grid */
.san-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.san-gallery-item {
  width: 100%;
  height: 220px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 0px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.san-gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Lightbox */
.san-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

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

.san-lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 4px;
}

.san-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 36px;
  color: #fff;
  cursor: pointer;
}
.san-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  font-size: 29px;
  padding: 0px 13px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.san-lightbox-nav:hover {
  background: rgba(0, 0, 0, 0.8);
}

.san-prev {
  left: 20px;
}

.san-next {
  right: 20px;
}

/* Mobile */
@media (max-width: 480px) {
  .san-lightbox-nav {
    font-size: 18px;
    padding: 1px 9px;
  }
  .san-gallery-item {
    height: 160px;
  }
}
