:root {
  color-scheme: light;
  --gold: #c58a22;
  --cream: #fff7e7;
  --dark: #241a07;
  --brown: #4c3210;
  --line: #ead9b7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #e9e9e9;
  color: #211a10;
 font-family: "Abhaya Libre", "Noto Sans Sinhala", sans-serif;
}



.hero {
  height: 260px;
  position: relative;
  background: linear-gradient(135deg, #164e3c, #a4c4a0 48%, #f7d995);
  overflow: hidden;
  clip-path: ellipse(100% 100% at 50% 0%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 560 260' preserveAspectRatio='none'%3E%3Cpath d='M0 225.17 A560 260 0 0 0 560 225.17' fill='none' stroke='%23c58a22' stroke-width='2.5'/%3E%3Cpath d='M0 222.5 A560 257.33 0 0 0 560 222.5' fill='none' stroke='%23f2ce55' stroke-width='2.5'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.header-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-fallback {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: white;
  text-shadow: 0 2px 5px #0009;
  background: linear-gradient(0deg, #092d1dcc, transparent);
}

.hero-fallback h2 {
  margin: 8px 0;
  font-size: 25px;
}

.hero-fallback p {
  margin: 0;
}

.lotus {
  font-size: 56px;
  color: #ffe0a0;
}

.profile-card {
  position: relative;
  margin: 0 14px;
  padding: 78px 14px 22px;
  text-align: center;
  background: linear-gradient(135deg, #fffaf0, #f7e8c9);
  border: 2px solid #e5c783;
  border-radius: 22px;
  box-shadow: none;
}

.avatar {
  position: absolute;
  top: -70px;
  left: 50%;
  transform: translateX(-50%);
  width: 142px;
  height: 142px;
  border: 5px solid #fff8e7;
  outline: 2px solid var(--gold);
  border-radius: 50%;
  object-fit: cover;
  background: #3c290c;
}

.avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f7d47d;
  font-size: 66px;
  background: radial-gradient(circle, #7a5617, #1d1609);
}

h1 {
  font-size: 30px;
  margin: 6px 0 0;
  color: #15110a;
}

.english-name {
  font-family: Georgia, serif;
  font-size: 23px;
  letter-spacing: 2px;
  color: #a9680b;
  margin-top: 4px;
}

.subtitle {
  font-size: 14px;
  margin: 5px 0;
  color: #624a27;
}

.description {
  font-size: 16px;
  line-height: 1.8;
  color: #5c5141;
  margin: 14px 2px 18px;
  white-space: pre-line;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.social-link {
  min-height: 86px;
  border: 1px solid #eadfc9;
  border-radius: 13px;
  background: #fffdf8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: #20190e;
  box-shadow: 0 3px 9px #432d0c0c;
  font-size: 13px;
}



.social-link:nth-child(2) .social-icon {
  background: #e62117;
}

.social-link:nth-child(3) .social-icon {
  background: #e87919;
}

.social-link:nth-child(4) .social-icon {
  background: #111;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  padding: 12px 10px;
  min-height: 68px;
  background: #fffdf8;
  border: 0.5px solid #eadfc9;
  border-radius: 13px;
  color: #221a0d;
  text-decoration: none;
  overflow-wrap: anywhere;
}



.contact-copy {
  min-width: 0;
}

.contact-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.contact-copy small {
  display: block;
  margin-top: 3px;
  color: #776b57;
  font-size: 12px;
}

.section {
  padding: 22px 18px 0;
}

.section h2 {
  font-size: 20px;
  color: #fff5d7;
  margin: 0 0 12px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-heading span {
  font-size: 12px;
  color: #e5cb8b;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.gallery-grid a {
  display: block;
  height: 130px;
  border: 2px solid #f4dca4;
  border-radius: 12px;
  overflow: hidden;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.empty-gallery {
  color: #f7e9c8;
  font-size: 14px;
  padding: 8px 0 16px;
}

.map-placeholder {
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid #dfc58e;
  background: linear-gradient(135deg, #f2e9d2, #d8e6d6);
  color: #1e392e;
  text-decoration: none;
  text-align: center;
  padding: 20px;
}

.map-placeholder span {
  font-size: 35px;
}

.map-placeholder strong {
  background: white;
  padding: 12px 18px;
  border-radius: 24px;
  font-size: 13px;
}

.site-footer {
  margin-top: 24px;
  padding: 25px 15px 24px;
  color: #fff2c9;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  text-align: center;
  background: linear-gradient(#2b210b, #171104);
}

.footer-lotus {
  font-size: 34px;
  color: #eac15c;
}

.site-footer strong {
  font-size: 18px;
}

.site-footer span {
  font-size: 12px;
}

.hidden {
  display: none;
}

@media (min-width: 700px) {
  body {
    padding: 22px 0;
  }

  .phone-page {
    border-radius: 24px;
  }

  .hero {
    height: 300px;
  }
}

@media (max-width: 360px) {
  .profile-card {
    margin-left: 8px;
    margin-right: 8px;
    padding-left: 9px;
    padding-right: 9px;
  }

  .english-name {
    font-size: 19px;
  }

  .contact-item {
    padding: 9px 6px;
    gap: 6px;
  }

  .contact-icon {
    width: 30px;
    height: 30px;
  }

  .gallery-grid a {
    height: 105px;
  }
}


/* Share controls — Suganda Kutiya */

.share-fab {
  position: fixed;
  z-index: 20;
  top: 18px;
  right: max(16px, calc((100vw - 560px) / 2 + 16px));
  width: 48px;
  height: 48px;
  padding: 10px;
  border-radius: 50%;
  background: #00aeff;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 14px #0003;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.share-fab svg {
  display: block;
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.share-fab:hover {
  background: #004cff;
}

.share-fab:focus-visible,
.share-menu button:focus-visible {
  outline: 3px solid #287ec0;
  outline-offset: 2px;
}

.share-menu {
  position: fixed;
  z-index: 21;
  top: 72px;
  right: max(16px, calc((100vw - 560px) / 2 + 16px));
  width: min(320px, calc(100vw - 32px));
  padding: 8px;
  background: #fffdf8;
  border: 1px solid #dca72a;
  border-radius: 14px;
  box-shadow: 0 8px 30px #0003;
}

.share-menu button,
.share-menu .share-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #211a10;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.share-menu button:hover {
  background: #eaf5ff;
}

.share-menu .menu-icon {
  display: block;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.share-menu .whatsapp-icon {
  color: #20a464;
}

.share-menu .whatsapp-icon .icon-cutout {
  fill: #20a464;
  stroke: none;
}

.share-menu .menu-icon .icon-cutout {
  fill: #fffdf8;
  stroke: none;
}

.share-menu button span {
  flex: 1;
  min-width: 0;
}




/* Accessible QR preview dialog */
.qr-modal {
  width: min(360px, calc(100% - 32px));
  max-height: 82vh;
  overflow: auto;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #fffdf8;
  color: #211a10;
  box-shadow: 0 12px 50px #0005;
}
.qr-modal::backdrop { background: rgba(0, 0, 0, .6); }
.qr-box { position: relative; padding: 24px; text-align: center; }
.qr-box h2 { margin: 0 24px 16px; font-size: 18px; }
.qr-box img { display: block; width: 220px; height: 220px; max-width: 100%; margin: 0 auto; object-fit: contain; }
.qr-box p { margin: 12px 0; font-size: 11px; overflow-wrap: anywhere; color: #555; }
.qr-close { position: absolute; right: 8px; top: 8px; min-width: 40px; min-height: 40px; padding: 2px 10px; border-radius: 50%; background: #eee; color: #222; font-size: 22px; }

.slogan {
  margin: 9px 0 12px;
  padding: 9px 8px;
  border-radius: 0;
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.slogan strong {
  font-size: 17px;
  color: #4d3510;
}

.slogan span {
  font-size: 15px;
  color: #6a4b1a;
}

.slogan:empty {
  display: none;
}

.owner-bio {
  display: grid;
  grid-template-columns: minmax(88px, 36%) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  margin: 14px 0;
  padding: 9px;
  background: #fffaf0;
  border: 1px solid #ead9b7;
  border-radius: 13px;
  text-align: left;
  min-height: 142px;
  max-height: 190px;
  overflow: hidden;
}

.owner-bio[hidden] {
  display: none;
}

.owner-bio > img,
.owner-image-fallback {
  width: 100%;
  height: 100%;
  min-height: 124px;
  max-height: 170px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  background: #2d281d;
}

.owner-image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  color: #edcf7d;
}

.owner-copy {
  height: 100%;
  min-height: 124px;
  max-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  overflow: hidden;
  line-height: 1.3;
}

.owner-copy strong {
  font-size: 14px;
  color: #30210b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.owner-copy > span,
.owner-copy > b {
  font-size: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.owner-copy > b {
  color: #77510d;
}

.owner-copy p {
  margin: 3px 0 0;
  font-size: 11px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.owner-copy p:empty {
  display: none;
}

@media (max-width: 360px) {
  .owner-bio {
    grid-template-columns: 34% minmax(0, 1fr);
    gap: 7px;
    padding: 7px;
    min-height: 125px;
    max-height: 160px;
  }

  .owner-bio > img,
  .owner-image-fallback {
    min-height: 108px;
    max-height: 144px;
  }

  .owner-copy {
    min-height: 108px;
    max-height: 144px;
  }

  .owner-copy strong {
    font-size: 12px;
  }

  .owner-copy > span,
  .owner-copy > b {
    font-size: 10px;
  }

  .owner-copy p {
    font-size: 10px;
    -webkit-line-clamp: 2;
  }

  .slogan strong {
    font-size: 15px;
  }

  .slogan span {
    font-size: 13px;
  }
}

/* Correct social and contact icon sizes */

.social-icon {
  width: 37px;
  height: 37px;
  border-radius: 10px;
  background: #175eab;
  color: #fff;
  
  place-items: center;
  font-weight: bold;
  font-size: 20px;

  display: none;
}

.social-icon-img {
  display: block;
  width: 37px;
  height: 37px;
  max-width: 37px;
  max-height: 37px;
  object-fit: contain;
  flex: 0 0 37px;
}

.contact-icon {
  flex: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  
  place-items: center;
  background: #1878d1;
  color: white;
  font-size: 17px;

  display: none;
}

.contact-icon-img {
  display: block;
  width: 35px;
  height: 35px;
  max-width: 35px;
  max-height: 35px;
  object-fit: contain;
  flex: 0 0 35px;
}

#avatarFallback[hidden] {
  display: none;
}

#ownerImageFallback[hidden] {
  display: none;
}

/* ==========================================
   Gallery slideshow — appearance only
   JavaScript animation remains unchanged
   ========================================== */

.phone-page .gallery-section {
  width: 100%;
  padding: 22px 0 0;
}

.phone-page .gallery-section > .section-heading {
  padding: 0 18px;
}

.phone-page #gallery.gallery-grid {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  gap: 0;
}









.phone-page #gallery img.gallery-slide-image.gallery-slide-enter {
  animation: galleryEnterFromRight 0.55s ease both;
}

@keyframes galleryEnterFromRight {
  from {
    opacity: 0.45;
    transform: translateX(5%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Elegant circular arrows positioned over the image */

.phone-page #gallery .gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 2px solid #eee5d8;
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.96);
  color: #94600d;
  font-size: 29px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 3px 12px rgba(36, 26, 7, 0.18);
}





/* Round pagination dots beneath the image */

.phone-page #gallery .gallery-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  margin: 18px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.phone-page #gallery .gallery-dot {
  display: block;
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  min-width: 12px;
  min-height: 12px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #e2d7c4;
  box-shadow: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.phone-page #gallery .gallery-dot.active {
  background: #a5680c;
  transform: scale(1.2);
  box-shadow: 0 0 0 3px rgba(197, 138, 34, 0.15);
}

.phone-page #gallery .gallery-dot:hover {
  background: #c58a22;
}

@media (max-width: 600px) {
  .phone-page .gallery-section {
    padding-top: 18px;
  }

  .phone-page #gallery .gallery-slider {
    width: 100%;
    margin: 15px 0 22px;
  }

  .phone-page #gallery .gallery-slider-viewport,
  .phone-page #gallery .gallery-slide-link,
  .phone-page #gallery img.gallery-slide-image {
    border-radius: 13px;
  }

  .phone-page #gallery img.gallery-slide-image {
    aspect-ratio: 1.2 / 1;
  }

  .phone-page #gallery .gallery-arrow {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    font-size: 24px;
  }

  .phone-page #gallery .gallery-previous {
    left: 8px;
  }

  .phone-page #gallery .gallery-next {
    right: 8px;
  }

  .phone-page #gallery .gallery-dots {
    gap: 10px;
    margin-top: 14px;
  }

  .phone-page #gallery .gallery-dot {
    flex-basis: 10px;
    width: 10px;
    height: 10px;
    min-width: 10px;
    min-height: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone-page #gallery img.gallery-slide-image.gallery-slide-enter {
    animation: none;
  }
}

/* Gallery image: preserve the original image proportions */





/* Mobile: preserve each image's original proportions too */

@media (max-width: 600px) {
  .phone-page #gallery img.gallery-slide-image {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    max-height: none;
    object-fit: contain;
  }
}

/* Gallery frame — slightly narrower and more balanced */

.phone-page #gallery .gallery-slider {
  display: block;
  
  
  min-width: 0;
  

  width: calc(100% - 24px);
  max-width: none;
  margin: 18px auto 24px;
}

.phone-page #gallery .gallery-slider-viewport {
  position: relative;
  display: block;
  
  
  
  border: 1px solid rgba(197, 138, 34, 0.3);
  
  background: #fffdf8;
  box-shadow: 0 5px 18px rgba(36, 26, 7, 0.1);

  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 16px;
}

.phone-page #gallery .gallery-slide-link {
  
  
  max-width: none;
  line-height: 0;
  
  

  height: auto;
  aspect-ratio: auto;

  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 15px;
}

.phone-page #gallery img.gallery-slide-image {
  
  
  
  
  
  
  
  transition: opacity 0.25s ease;

  
  
  
  
  max-height: none;
  
  object-position: center center;

  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 15px;
}

/* Keep arrows inside the reduced frame */

.phone-page #gallery .gallery-previous {
  

  left: 9px;
}

.phone-page #gallery .gallery-next {
  

  right: 9px;
}

@media (max-width: 600px) {
  .phone-page #gallery .gallery-slider {
    width: calc(100% - 20px);
    margin: 15px auto 22px;
  }

  .phone-page #gallery .gallery-slider-viewport,
  .phone-page #gallery .gallery-slide-link,
  .phone-page #gallery img.gallery-slide-image {
    border-radius: 13px;
  }
}
/* Suganda Kutiya Smart Card — PWA Install Button */

/* PWA Install Button — above the circular logo */



/* PWA Install Button — above the circular logo */



#skInstallButton {
  position: absolute;
  top: 200px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  margin: 0;
  width: max-content;
  max-width: calc(100% - 36px);
}
/* Google Maps embedded preview */





.map-open-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px;
  background: #fff7e7;
  color: #174e3c;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.map-open-link:hover {
  background: #f5e6c5;
}

@media (max-width: 360px) {
  .map-preview iframe {
    height: 220px;
  }

  .map-open-link {
    font-size: 12px;
  }
}
/* Gallery and Location headings — Black */

.phone-page .gallery-section > .section-heading h2,
.phone-page .location-section > h2 {
  color: #000000;
}

/* Footer — Deep Sky Blue */

.phone-page .site-footer {
  background: #00bfff;
}

/* Footer text and decorative lotus — dark for readability */

.phone-page .site-footer,
.phone-page .site-footer strong,
.phone-page .site-footer span {
  color: #000000;
}

.phone-page .site-footer .footer-lotus {
  color: #000000;
}
/* Keep the card background a consistent light cream */

.phone-page {
  width: 100%;
  max-width: 560px;
  margin: auto;
  min-height: 100vh;
  
  overflow: hidden;
  box-shadow: 0 0 30px #0002;

  

  position: relative;

  background: #fffdf8;
  background-image: none;
}
/* Stronger gold border around Google Maps */

.map-preview {
  width: 100%;
  
  
  
  background: #fffdf8;
  

  border: 3px solid #b8860b;
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(120, 78, 8, 0.2);
  overflow: hidden;
}

.map-preview iframe {
  
  
  height: 260px;
  
  background: #f2e9d2;

  display: block;
  width: 100%;
  border: none;
}
/* Footer name and address typography */

.phone-page .site-footer #footerName {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.phone-page .site-footer .footer-address {
  font-size: 10px;
  line-height: 1.2;
  max-width: 90%;
  overflow-wrap: anywhere;
}

.phone-page .site-footer #footerText {
  font-size: 12px;
  line-height: 1.2;
}
/*------------------------------------------------*/
/* Contact cards: one full-width row per contact.
   Keep social media cards unchanged. */

.phone-page .contact-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.phone-page .contact-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 88px;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #ead9b7;
  border-radius: 18px;
  background: #fffdf8;
  overflow-wrap: anywhere;
}

.phone-page .contact-icon-img {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
}

.phone-page .contact-copy {
  flex: 1 1 0;
  min-width: 0;
}

.phone-page .contact-copy strong {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: normal;
}

.phone-page .contact-copy small {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

@media (max-width: 360px) {
  .phone-page .contact-item {
    gap: 10px;
    padding: 12px 10px;
    min-height: 78px;
  }

  .phone-page .contact-icon-img {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    max-width: 38px;
    max-height: 38px;
  }

  .phone-page .contact-copy strong {
    font-size: 13px;
  }

  .phone-page .contact-copy small {
    font-size: 12px;
  }
}

/* Contact cards: one full-width card per row */


.phone-page #contacts > .contact-item {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}

.phone-page #contacts > .contact-item .contact-copy {
  flex: 1 1 0;
  min-width: 0;
}

.phone-page #contacts > .contact-item .contact-copy strong {
  font-size: 12px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.phone-page #contacts > .contact-item .contact-copy small {
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

/* Enlarge Phone and WhatsApp numbers only */
.phone-page #contacts .contact-item[href^="tel:"] .contact-copy strong,
.phone-page #contacts .contact-item[href*="wa.me"] .contact-copy strong,
.phone-page #contacts .contact-item[href*="whatsapp"] .contact-copy strong {
  font-size: 18px;
}

/* Reduce spacing between contact cards */
.phone-page #contacts.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  
  width: 100%;
  margin-top: 16px;

  gap: 6px;
}

/* Premium Owner Profile Card — Suganda Kutiya */



.phone-page .owner-bio > img,
.phone-page .owner-image-fallback {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 1 / 0.9;
  object-fit: cover;
  border-radius: 12px;
}





.phone-page .owner-copy > span,
.phone-page .owner-copy > b {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  -webkit-line-clamp: unset;
  overflow: visible;
  overflow-wrap: anywhere;
}





.phone-page .owner-copy p:empty {
  display: none;
}

@media (max-width: 360px) {
  .phone-page .owner-bio {
    grid-template-columns: 33% minmax(0, 1fr);
    gap: 9px;
    padding: 9px;
  }

  .phone-page .owner-copy strong {
    font-size: 13px;
  }

  .phone-page .owner-copy > span,
  .phone-page .owner-copy > b,
  .phone-page .owner-copy p {
    font-size: 11px;
  }
}

/* Owner profile — bilingual text spacing */



/* Sinhala name */
.phone-page .owner-copy strong {
  display: block;
  font-size: 15px;
  
  -webkit-line-clamp: unset;
  overflow: visible;
  overflow-wrap: anywhere;

  margin: 0;
  line-height: 1.4;
}

/* English name */
.phone-page .owner-copy > span {
  margin: 0;
  line-height: 1.4;
}

/* Add a little space before the Sinhala tagline */


/* English tagline */


/* Move both owner taglines slightly upward */
.phone-page .owner-copy > b {
  color: #8b641c;
  font-weight: 600;

  
  line-height: 1.2;

  margin-top: 4px;
}



/* Balanced spacing between English tagline and personal description */
.phone-page .owner-copy p {
  margin: 4px 0 0;
  font-size: 12px;
  
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  overflow-wrap: anywhere;

  
  

  

  margin-top: 7px;
  line-height: 1.5;
}

/* Emphasize the English name without changing layout */
.phone-page .owner-copy > span#ownerNameEn {
  font-weight: 700;
}
/* Balance the Sinhala bio with the profile photo */

/* Align the owner text with the profile photo */



/* Align owner text to the profile image height */
.phone-page .owner-bio {
  grid-template-columns: 35% minmax(0, 1fr);
  
  gap: 14px;
  margin: 18px 0;
  padding: 12px;
  min-height: 0;
  max-height: none;
  overflow: visible;
  background: linear-gradient(135deg, #fffdf8, #fff7e7);
  border: 1px solid #e8d5ad;
  border-radius: 18px;
  box-shadow: 0 3px 12px rgba(76, 50, 16, 0.07);
  text-align: left;

  align-items: stretch;
}

.phone-page .owner-copy {
  
  
  
  
  
  
  

  

  
  
  
  
  box-sizing: border-box;
  
  
  
  
  
  

  align-self: stretch;
  height: auto;
  min-height: 0;
  max-height: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
  overflow: visible;
  line-height: 1.3;
}

.phone-page .owner-copy strong,
.phone-page .owner-copy > span,
.phone-page .owner-copy > b,
.phone-page .owner-copy p {
  
  

  margin-top: 0;
  margin-bottom: 0;
}
/* Fine separator above the Sinhala bio */
.phone-page #ownerBioSi {
  
  

  border-top: 1.0pt solid #cbb887;
  width: fit-content;
  max-width: 100%;
  padding-top: 4px;
  margin-top: 4px;
  line-height: 1.4;
}
/* Keep the Sinhala slogan and English translation together */



/* Suganda Kutiya — Final slogan and divider spacing */

/* Sinhala and English invitation text */




/* Centered gold ornamental divider */
.phone-page img.ornamental-divider {
  display: block;
  width: 65%;
  max-width: 270px;
  height: auto;
  margin: 3px auto 2px;
  padding: 0;
  object-fit: contain;
}

/* Description immediately below the divider */
.phone-page p.description {
  margin: 0 2px 18px;
  padding: 0;
  line-height: 1.4;
  text-align: center;
  white-space: pre-line;
}
/* Bold English temple name */

/* Dark brown description text */
.phone-page .description {
  color: #382715;
}
/* Bring Sinhala and English names closer */



/* Tighter spacing between Sinhala and English names */
.phone-page #nameSi {
  

  margin-bottom: 0px;
  padding-bottom: 0;
  line-height: 1.15;
}

.phone-page #nameEn {
  

  margin-top: 0;
  padding-top: 0;
  line-height: 1.15;
}
/* Bring Sinhala and English slogans closer */
.phone-page #sloganSi {
  
  

  margin-bottom: 0px;
  padding-bottom: 0;
  line-height: 1.15;
}

.phone-page #sloganEn {
  
  

  margin-top: 0;
  padding-top: 0;
  line-height: 1.15;
}

/* Reduce spacing between Sinhala and English slogans */
.phone-page .slogan {
  
  
  
  margin: 8px 0 0;
  padding: 0 8px;

  display: flex;
  flex-direction: column;
  gap: 0;
  row-gap: 0;
}

.phone-page .slogan #sloganSi,
.phone-page .slogan #sloganEn {
  
  margin: 0;
  padding: 0;
  

  display: block;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1.1;
}

/* Reduce letter spacing in English temple name */
.phone-page .english-name {
  font-weight: 700;

  letter-spacing: 0.5px;
}

/* Slightly enlarge Email and Address text */
.phone-page #email,
.phone-page #address {
  font-size: 24px;
}

/* Slightly enlarge Email and Address contact text */
.phone-page #contacts a[href^="mailto:"],
.phone-page #contacts a[href*="maps.google"],
.phone-page #contacts a[href*="google.com/maps"],
.phone-page #contacts a[href^="tel:"] {
  font-size: 22px;
}


/* Keep hidden controls hidden even when component styles set display. */
[hidden] { display: none !important; }
