/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

/* Base */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Helvetica, Arial, sans-serif;
  background: #ffffff;
  color: #111111;
  line-height: 1.45;

  max-width: 1100px;
  margin: 0 auto;
  padding: 28px;
}

/* Header */
.site-header h1 {
  font-family: "Times New Roman", Times, serif;
  font-size: 48px;      /* adjust if you want it quieter/louder */
  font-weight: normal; /* important for Times */
  text-align: center;
  letter-spacing: 0.3px;
  margin: 0 0 10px 0;
}

.site-header h1 {
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 6px 0;
}

.subtitle {
  margin: 0;
  font-size: 14px;
  text-align: center;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  margin: 0;
}

.card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* Captions */
.card figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: #666;
}

/* Footer */
.site-footer {
  margin-top: 40px;
  font-size: 12px;
  color: #777;
}
.upload-section {
  margin-top: 40px;
}

.upload-details summary {
  cursor: pointer;
  display: inline-block;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  user-select: none;
}

.upload-details[open] summary {
  margin-bottom: 14px;
}

.upload-form {
  display: grid;
  gap: 12px;
  max-width: 720px;
}

.upload-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #444;
}

.upload-form input {
  font: inherit;
  padding: 10px 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.upload-btn {
  font: inherit;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  width: fit-content;
}

.upload-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.upload-status {
  margin: 0;
  font-size: 13px;
  color: #666;
}

.hp {
  position: absolute;
  left: -9999px;
}
.comments { margin-top: 10px; }

.comments-details summary {
  cursor: pointer;
  font-size: 13px;
  color: #666;
  user-select: none;
}

.comments-list { margin-top: 10px; display: grid; gap: 10px; }
.comments-empty { font-size: 13px; color: #888; }

.comment-meta { font-size: 12px; color: #777; margin-bottom: 2px; }
.comment-body { font-size: 13px; color: #222; }

.comment-form {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.comment-form input {
  font: inherit;
  padding: 9px 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.comment-form button {
  font: inherit;
  padding: 9px 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  width: fit-content;
}

.comment-status { font-size: 12px; color: #666; }
.like-bar{
  display:flex;
  gap:8px;
  align-items:center;
  margin-top:8px;
}

.like-btn{
  border:none;
  background:none;
  cursor:pointer;
  font: inherit;
  font-size: 18px;
  line-height: 1;
  opacity: 0.7;
  padding: 0;
}

.like-btn:hover{ opacity: 1; }
.like-btn.liked{ opacity: 1; }

.like-count{
  font-size: 13px;
  opacity: 0.7;
}
.photo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.photo-header figcaption {
  margin: 0;
  font-size: 14px;
}

.like-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}
/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
}

.lightbox.open {
  display: flex;
}

.lightbox__inner {
  position: relative;
  max-width: min(1100px, 96vw);
  max-height: 90vh;
}

.lightbox__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 90vh;
  border-radius: 14px;
  background: #111;
}

.lightbox__close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-size: 22px;
  line-height: 38px;
  background: rgba(255,255,255,0.9);
}

.lightbox__caption {
  margin-top: 10px;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
}


