.blog-content-page #breadcrumb {
  padding-top: clamp(1.5rem, 3vw, 2rem);
}

.smp-facility-page-section {
  padding-top: 1.5rem;
  padding-bottom: 4rem;
  background-color: #f8f9fb;
}

.smp-facility-title-section .smp-profile-title-panel {
  margin-bottom: 0;
}

.smp-facility-page-section .smp-facility-gallery {
  padding-top: 0;
}

.smp-profile-page-header.smp-facility-title-section {
  background-color: #f8f9fb;
}

.smp-facility-title-section .smp-profile-banner {
  background: #087e82;
  box-shadow: 0 8px 18px rgb(4 42 45 / 18%);
}

.smp-facility-title-section .smp-profile-title-panel h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1.2;
}

.blog-content-page #breadcrumb .smp-facility-page-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.25rem 0 1.4rem;
  border-bottom: 1px solid #dce6e8;
}

.smp-facility-page-heading .smp-page-heading-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgb(15 118 110 / 14%);
  border-radius: 17px;
  color: #0f766e;
  background: #eaf5f3;
  font-size: 1.2rem;
}

.smp-facility-page-heading .smp-page-heading-copy {
  min-width: 0;
}

.smp-facility-page-heading h2 {
  margin: 0;
  color: #0a4a50;
  font-size: clamp(1.25rem, 2.6vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.smp-facility-page-heading p {
  margin: 0.35rem 0 0;
  padding: 0;
  color: #4b6a6c;
  font-size: 0.84rem;
  line-height: 1.5;
}

.blog-content-page .inner-page-wrapper.smp-gallery-page-wrapper,
.blog-content-page .inner-page-wrapper.smp-gallery-page-wrapper .smp-gallery-title-section,
.blog-content-page .inner-page-wrapper.smp-gallery-page-wrapper .smp-profile-title-panel,
.blog-content-page .inner-page-wrapper.smp-gallery-page-wrapper .smp-gallery-list-page,
.blog-content-page .inner-page-wrapper.smp-gallery-page-wrapper .smp-gallery-detail-page,
.blog-content-page .inner-page-wrapper.smp-gallery-page-wrapper .smp-gallery-list-page > .container,
.blog-content-page .inner-page-wrapper.smp-gallery-page-wrapper .smp-gallery-detail-page > .container {
  background: #ffffff !important;
  background-color: #ffffff !important;
}

.blog-content-page .smp-gallery-detail-page {
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 2.5rem;
}

.blog-content-page .smp-gallery-detail-page .smp-facility-gallery {
  width: min(100%, 1140px);
  margin-top: 0;
  padding-top: 0;
}

.blog-content-page .smp-gallery-title-section .smp-profile-title-panel {
  width: min(calc(100% - 3rem), 1140px);
  max-width: 1140px;
  margin-top: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}

.smp-facility-gallery {
  --facility-gallery-ink: #0e2e31;
  --facility-gallery-muted: #4b6a6c;
  --facility-gallery-surface: #fff;
  --facility-gallery-line: #dce6e8;
  --facility-gallery-deep: #0a4a50;
  --facility-gallery-teal: #0f766e;
  --facility-gallery-gold: #e8b84a;
  width: min(100%, 1140px);
  margin: 0 auto;
  padding: 0;
  color: var(--facility-gallery-ink);
  font-family: "Figtree", sans-serif;
}

.smp-facility-gallery .smp-album-photo-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--facility-gallery-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgb(10 46 49 / 6%);
}

.smp-facility-gallery .smp-album-photo-icon {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgb(15 118 110 / 14%);
  border-radius: 17px;
  color: var(--facility-gallery-teal);
  background: #eaf5f3;
  font-size: 1.15rem;
}

.smp-facility-gallery .smp-album-photo-title {
  margin: 0;
  color: var(--facility-gallery-deep);
  font-family: "Figtree", sans-serif;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.smp-facility-gallery .gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  column-count: initial;
  column-gap: 1rem;
}

.smp-facility-gallery .smp-facility-gallery-link {
  display: block;
  min-width: 0;
  margin: 0;
  color: inherit;
  border-radius: 17px;
  box-shadow: 0 8px 18px rgb(10 46 49 / 22%);
  text-decoration: none;
  transition: box-shadow 0.2s ease;
  break-inside: initial;
}

.smp-facility-gallery .gallery .smp-facility-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0;
  border: 1px solid #b8d5cf;
  border-radius: 16px;
  background: var(--facility-gallery-surface);
  padding: 4px;
  transition: box-shadow 0.2s, transform 0.2s;
  animation: smp-photo-reveal 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.smp-facility-gallery .gallery .smp-facility-gallery-link:nth-child(1) .smp-facility-card { animation-delay: 30ms; }
.smp-facility-gallery .gallery .smp-facility-gallery-link:nth-child(2) .smp-facility-card { animation-delay: 75ms; }
.smp-facility-gallery .gallery .smp-facility-gallery-link:nth-child(3) .smp-facility-card { animation-delay: 120ms; }
.smp-facility-gallery .gallery .smp-facility-gallery-link:nth-child(4) .smp-facility-card { animation-delay: 165ms; }
.smp-facility-gallery .gallery .smp-facility-gallery-link:nth-child(5) .smp-facility-card { animation-delay: 210ms; }
.smp-facility-gallery .gallery .smp-facility-gallery-link:nth-child(6) .smp-facility-card { animation-delay: 255ms; }
.smp-facility-gallery .gallery .smp-facility-gallery-link:nth-child(n + 7) .smp-facility-card { animation-delay: 300ms; }

.smp-facility-gallery .gallery .smp-facility-card::before,
.smp-facility-gallery .gallery .smp-facility-card::after {
  display: none;
}

.smp-facility-gallery .gallery .smp-facility-card img {
  display: block;
  flex: 0 0 auto;
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
  max-width: none;
  border-radius: 11px;
  object-fit: cover;
  transition: transform 0.3s;
}

.smp-facility-gallery .gallery .smp-facility-card figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  max-width: none;
  padding: 0.75rem 1rem;
  transform: none;
  color: #fff;
  background: rgb(10 46 49 / 68%);
  backdrop-filter: blur(3px);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  overflow-wrap: anywhere;
}

.smp-facility-gallery .gallery .smp-facility-card figcaption::before,
.smp-facility-gallery .gallery .smp-facility-card figcaption::after {
  display: none;
}

.smp-facility-gallery .gallery .smp-facility-card figcaption p {
  margin: 0.35rem 0 0;
  color: var(--facility-gallery-muted);
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.5;
}

.smp-facility-gallery .smp-facility-gallery-link:hover .smp-facility-card,
.smp-facility-gallery .smp-facility-gallery-link:focus-visible .smp-facility-card {
  transform: translateY(-2px);
}

.smp-facility-gallery .smp-facility-gallery-link:hover,
.smp-facility-gallery .smp-facility-gallery-link:focus-visible {
  box-shadow: 0 12px 24px rgb(10 46 49 / 28%);
}

.smp-facility-gallery .smp-facility-gallery-link:hover img,
.smp-facility-gallery .smp-facility-gallery-link:focus-visible img {
  transform: scale(1.035);
}

.smp-facility-gallery .smp-facility-gallery-link:focus-visible {
  outline: 3px solid var(--facility-gallery-gold);
  outline-offset: 4px;
  border-radius: 18px;
}

.smp-facility-gallery .smp-facility-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 2rem;
  border: 1px dashed var(--facility-gallery-line);
  border-radius: 16px;
  color: var(--facility-gallery-muted);
  background: var(--facility-gallery-surface);
  text-align: center;
}

.smp-facility-gallery .smp-facility-divider {
  margin: 2rem 0 0;
  border-color: var(--facility-gallery-line);
}

.smp-album-actions {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-end;
  clear: both;
}

.smp-album-actions-top {
  margin: 0 0 0.5rem;
}

.smp-album-actions-bottom {
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--facility-gallery-line);
}

.smp-album-actions .smp-album-return {
  float: none;
  margin: 0;
}

.smp-facility-gallery + .smp-facility-pagination {
  margin-top: 1.5rem;
}

.smp-facility-gallery .smp-album-return {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  float: right;
  margin-top: 1rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  color: #fff;
  background: var(--facility-gallery-teal);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s;
}

.smp-facility-gallery .smp-album-return:hover {
  color: #fff;
  background: var(--facility-gallery-deep);
}

.smp-facility-gallery .smp-album-return:focus-visible {
  outline: 3px solid var(--facility-gallery-gold);
  outline-offset: 3px;
}

.smp-facility-slider {
  --facility-gallery-ink: #0e2e31;
  --facility-gallery-line: #dce6e8;
  --facility-gallery-gold: #e8b84a;
}

.smp-facility-slider .mfp-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 4.5rem;
}

.smp-facility-slider .mfp-content {
  width: auto;
  max-width: 100%;
  overflow: visible;
}

.smp-facility-slider .mfp-figure {
  position: relative;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: 0 3px 32px 6px rgb(255 255 255 / 70%), 0 18px 46px rgb(0 0 0 / 45%);
}

.smp-facility-slider .mfp-figure::after {
  display: none;
}

.smp-facility-slider img.mfp-img {
  display: block;
  width: auto;
  max-width: min(calc(100vw - 9rem), 1200px);
  height: auto;
  max-height: calc(100vh - 150px) !important;
  padding: 0;
  object-fit: contain;
  animation: smp-facility-slide-fade 260ms ease-out both;
}

.smp-facility-slider .mfp-bottom-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.7rem 1rem;
  color: #fff;
  background: rgb(10 46 49 / 72%) !important;
  backdrop-filter: blur(3px);
}

.smp-facility-slider .mfp-figure .mfp-bottom-bar .mfp-title {
  position: static;
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0;
  transform: none;
  color: #fff !important;
  background: transparent !important;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  opacity: 1 !important;
  text-align: left;
}

.smp-facility-slider .mfp-title::before,
.smp-facility-slider .mfp-title::after {
  display: none;
}

.smp-facility-slider .mfp-counter {
  display: none !important;
}

.smp-facility-slider .mfp-bottom-bar {
  border: 0 !important;
}

.smp-facility-slider .mfp-title,
.smp-facility-slider .mfp-title::before,
.smp-facility-slider .mfp-title::after,
.smp-facility-slider .mfp-bottom-bar .mfp-title::before,
.smp-facility-slider .mfp-bottom-bar .mfp-title::after {
  display: none !important;
}

.smp-facility-slider .mfp-arrow {
  position: absolute;
  top: 50%;
  width: 52px;
  height: 72px;
  z-index: 1047;
  margin-top: 0 !important;
  opacity: 0.9;
  transform: translateY(-50%);
}

.smp-facility-slider .mfp-arrow-left {
  left: 2rem;
}

.smp-facility-slider .mfp-arrow-right {
  right: 2rem;
}

.smp-facility-slider .mfp-arrow:hover {
  opacity: 1;
}

@keyframes smp-facility-slide-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes smp-photo-reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.smp-facility-slider .mfp-img,
.smp-facility-slider .mfp-bottom-bar {
  animation: smp-facility-photo-change 280ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes smp-facility-photo-change {
  from {
    opacity: 0;
    transform: translateX(8px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 991.98px) {
  .smp-facility-gallery .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .blog-content-page #breadcrumb .smp-facility-page-heading {
    gap: 0.75rem;
    padding-bottom: 1rem;
  }

  .smp-facility-page-heading .smp-page-heading-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 14px;
    font-size: 1rem;
  }

  .smp-facility-page-heading p {
    font-size: 0.82rem;
  }

  .smp-facility-gallery {
    padding-top: 0;
  }

  .smp-facility-gallery .smp-album-photo-heading {
    gap: 0.8rem;
    padding: 0.85rem;
    border-radius: 15px;
  }

  .smp-facility-gallery .smp-album-photo-icon {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 14px;
    font-size: 1rem;
  }

  .smp-facility-gallery .smp-album-photo-title {
    font-size: clamp(1.1rem, 4.5vw, 1.3rem);
  }

  .smp-facility-gallery .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    column-gap: 0.85rem;
  }

  .smp-facility-gallery .gallery .smp-facility-card {
    border-radius: 12px;
  }

  .smp-facility-gallery .gallery .smp-facility-card figcaption {
    padding: 0.7rem 0.75rem;
    font-size: 0.8rem;
  }

  .smp-facility-slider .mfp-container {
    padding: 1.5rem 3rem;
  }

  .smp-facility-slider img.mfp-img {
    max-width: calc(100vw - 6rem);
    max-height: calc(100vh - 120px) !important;
  }

  .smp-facility-slider .mfp-arrow {
    width: 40px;
  }

  .smp-facility-slider .mfp-arrow-left {
    left: 1rem;
  }

  .smp-facility-slider .mfp-arrow-right {
    right: 1rem;
  }
}

@media (max-width: 420px) {
  .smp-facility-page-heading .smp-page-heading-icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  .smp-facility-page-heading h2 {
    font-size: 1.25rem;
  }

  .smp-facility-gallery .gallery {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .smp-facility-gallery .smp-facility-card,
  .smp-facility-gallery .smp-facility-card img,
  .smp-facility-slider .mfp-img,
  .smp-facility-slider .mfp-bottom-bar {
    transition: none;
    animation: none;
  }

  .smp-facility-gallery .smp-facility-gallery-link:hover .smp-facility-card,
  .smp-facility-gallery .smp-facility-gallery-link:focus-visible .smp-facility-card {
    transform: none;
  }

  .smp-facility-gallery .smp-facility-gallery-link:hover img,
  .smp-facility-gallery .smp-facility-gallery-link:focus-visible img {
    transform: none;
  }

  .smp-facility-gallery .smp-album-return {
    transition: none;
  }

  .smp-facility-slider img.mfp-img {
    animation: none;
  }
}
