/*
Theme Name: Boccia Kanagawa
Theme URI: https://example.com/
Author: Codex
Description: WordPress theme scaffold based on the Boccia Kanagawa static HTML site.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: boccia-kanagawa
*/

.static-page-inline {
  display: none;
}

.boccia-posts-section {
  padding: 120px 0 80px;
}

.boccia-posts-hero {
  position: relative;
  padding: 180px 0 110px;
  color: #fff;
  background-position: center;
  background-size: cover;
}

.boccia-posts-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.boccia-posts-hero .tt-wrap,
.boccia-posts-section .tt-wrap {
  position: relative;
  z-index: 1;
}

.boccia-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.boccia-post-card {
  height: 100%;
  padding: 32px 28px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

.boccia-post-card-title {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.25;
}

.boccia-post-card-meta {
  display: block;
  margin-bottom: 16px;
  color: #777;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.boccia-post-card p:last-child {
  margin-bottom: 0;
}

.boccia-empty-state {
  padding: 40px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.boccia-pagination {
  margin-top: 40px;
}

.boccia-single-section {
  padding: 140px 0 90px;
}

.boccia-single-content {
  max-width: 860px;
  margin: 0 auto;
}

.boccia-single-content img {
  max-width: 100%;
  height: auto;
}

.boccia-editor-content > :last-child {
  margin-bottom: 0;
}

.boccia-contact-form-placeholder {
  margin-top: 30px;
  padding: 20px 24px;
  border-left: 4px solid #111;
  background: #f5f5f5;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal img {
  display: block;
  max-width: 90%;
  max-height: 90%;
  margin: 5% auto 0;
}

.img-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.img-grid img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

.modal-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  width: 80%;
  max-width: 700px;
  padding: 20px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.modal-content iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

@media (min-width: 768px) {
  .img-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
