/* Custom CSS for Gallery and Contact copied from Tokyo Japanese Cuisine */
.py-custom {
  padding-top: 8rem;
  padding-bottom: 8rem;
}
@media (min-width: 768px) {
  .py-custom {
    padding-top: 12rem;
    padding-bottom: 12rem;
  }
}
.bg-background { background-color: #ffffff; }
.text-on-surface { color: #000000; }
.text-secondary-custom { color: #666666; }
.text-primary-custom { color: #000000; }
.border-outline-10 { border-color: rgba(51, 51, 51, 0.1) !important; }
.border-outline-5 { border-color: rgba(51, 51, 51, 0.05) !important; }
.border-outline-20 { border-color: rgba(51, 51, 51, 0.2) !important; }
.border-danger { border-color: #dc3545 !important; }
.border-opacity-25 { --bs-border-opacity: 0.25; }
.font-headline { font-family: var(--font-main); }
.font-jp { font-family: var(--font-main); }
.tracking-03 { letter-spacing: 0.3em; }
.tracking-05 { letter-spacing: 0.5em; }
.vertical-text { writing-mode: horizontal-tb; }
@media (min-width: 992px) {
  .vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
  }
}
.shoji-grid {
  
  background-size: 100px 100px;
}
.hanko-seal {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  background-color: #000000;
  margin-left: 1rem;
  position: relative;
  top: -0.5rem;
}
.gallery-img-wrapper {
  background-color: #fff;
  border: 1px solid rgba(51, 51, 51, 0.05);
  overflow: hidden;
  border-radius: 4px;
}
.gallery-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-transition: -webkit-transform 1s, filter 1s;
  transition: transform 1s, filter 1s;
  filter: grayscale(10%);
  border-radius: 4px;
}
.gallery-img-wrapper:hover img {
  transform: scale(1.05);
  filter: grayscale(0%);
}
.gallery-grid .gallery-open {
  display: block;
  cursor: zoom-in;
}
.gallery-viewer-close:focus-visible,
.gallery-viewer-nav:focus-visible {
  outline: 3px solid rgba(188, 0, 45, 0.85);
  outline-offset: 3px;
}
.contact-full-section {
  height: 400px;
  overflow: hidden;
}

.contact-overlay-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.contact-overlay-card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  padding: 3rem;
  width: 100%;
  max-width: 450px;
  pointer-events: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

@media (max-width: 991.98px) {
  .contact-full-section {
    height: auto;
    display: flex;
    flex-direction: column-reverse;
  }
  .contact-overlay-wrapper {
    position: relative;
    padding: 3rem 1.5rem;
  }
  .contact-overlay-card {
    max-width: 100%;
  }
  .map-container {
    height: 400px;
  }
}
.gallery-viewer-content {
  position: relative;
  background: rgba(18, 18, 18, 0.96);
  border: 0;
  border-radius: 0;
}
.gallery-viewer-frame {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 4rem;
}
.gallery-viewer-frame img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}
.gallery-viewer-close,
.gallery-viewer-nav {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  line-height: 1;
  z-index: 2;
}
.gallery-viewer-close {
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 2rem;
}
.gallery-viewer-nav {
  top: 50%;
  width: 3rem;
  height: 3rem;
  transform: translateY(-50%);
  font-size: 2rem;
}
.gallery-viewer-prev { left: 1rem; }
.gallery-viewer-next { right: 1rem; }
@media (max-width: 767.98px) {
  .gallery-viewer-frame {
    min-height: 60vh;
    padding: 3.5rem 1.25rem 2rem;
  }
  .gallery-viewer-nav {
    top: auto;
    bottom: 1rem;
    transform: none;
  }
}
