:root {
  --bg: #f5f5f5;
  --bg-alt: #ededed;
  --text: #1f2933;
  --accent: #b89c7d;
  --accent-soft: rgba(184, 156, 125, 0.16);
  --border: #ddd;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.16);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #ffffff, #f4f4f4 55%, #ececec);
  color: var(--text);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
}

.site-header .cont.admin-form-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.logo {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  letter-spacing: 0.25em;
  font-size: 1rem;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-link {
  text-decoration: none;
  color: #777;
  position: relative;
}

.nav-link.active,
.nav-link:hover {
  color: var(--text);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.hero {
  padding: 3.5rem 0 2rem;
  background: linear-gradient(to bottom, #ffffff, #f8f8f8);
}

.hero-title {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  text-align: center;
  font-size: 1.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  text-align: center;
  color: #666;
  max-width: 480px;
  margin: 0 auto;
  font-size: 0.95rem;
}

.gallery-section {
  background: #f1f1f1;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  padding: 2.5rem 0 3rem;
}

.section-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.section-title {
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.section-title.small {
  font-size: 1rem;
}

.section-subtitle {
  font-size: 0.9rem;
  color: #777;
}

.upload-panel {
  background: #fff;
  border-radius: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.75rem;
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid #eee;
  margin-bottom: 1.75rem;
}

.upload-left {
  border-right: 1px dashed #ddd;
  padding-right: 1.5rem;
}

.upload-right {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.upload-label {
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 0.75rem;
  color: #555;
}

#image-input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fafafa;
}

.upload-hint {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.45rem;
}

.field-label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #666;
}

.upload-right input {
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
}

#post-content {
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  resize: vertical;
}

.btn-primary,
.btn-secondary {
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.btn-primary {
  margin-top: 0.5rem;
  align-self: flex-start;
  padding: 0.65rem 1.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  box-shadow: 0 10px 25px rgba(184, 156, 125, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary:hover {
  background: #a48667;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(184, 156, 125, 0.55);
}

.btn-secondary {
  padding: 0.6rem 1.8rem;
  border-radius: 999px;
  background: #ddd;
  color: #555;
}

.info-text {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 1rem;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid #ececec;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, translate 0.2s ease;
}

.gallery-item:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border-color: var(--accent-soft);
}

.gallery-thumb-wrapper {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.gallery-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-delete {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.9rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.thumb-delete:hover {
  background: rgba(185, 28, 28, 0.9);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 55%);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-text {
  padding: 0.6rem 0.75rem 0.7rem;
}

.gallery-name {
  font-size: 0.85rem;
  font-weight: 600;
}

.gallery-note {
  font-size: 0.78rem;
  color: #777;
  margin-top: 0.1rem;
}

.simple-section {
  padding: 2.2rem 0;
  background: var(--bg-alt);
  border-top: 1px solid #e1e1e1;
}

.section-text {
  font-size: 0.9rem;
  color: #666;
  max-width: 520px;
  margin-top: 0.4rem;
}

.email-form {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.email-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.site-footer {
  background: #fff;
  border-top: 1px solid #e5e5e5;
  padding: 0.9rem 0;
  font-size: 0.8rem;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  color: #777;
}

.footer-note {
  font-style: italic;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-dmca {
  font-size: 0.75rem;
  color: #999;
}

.footer-right.copyright-warning {
  max-width: 360px;
  text-align: right;
  font-size: 0.78rem;
  color: #b91c1c;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.admin-link {
  margin-left: auto;
  align-self: center;
  border: none;
  background: transparent;
  color: #999;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
}

.admin-link:hover {
  color: #555;
}

.hidden {
  display: none !important;
}

@media (max-width: 640px) {
  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-right.copyright-warning {
    text-align: left;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.lightbox.open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.lightbox-content {
  position: relative;
  max-width: min(90vw, 720px);
  max-height: 85vh;
  z-index: 51;
  background: #111;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
}

#lightbox-image {
  width: 100%;
  height: auto;
  display: block;
}

#lightbox-caption {
  padding: 0.7rem 1.1rem 0.9rem;
  font-size: 0.85rem;
  color: #eee;
}

.lightbox-close {
  position: absolute;
  top: 0.4rem;
  right: 0.6rem;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    gap: 0.6rem;
  }

  .nav {
    justify-content: center;
  }

  .upload-panel {
    grid-template-columns: 1fr;
  }

  .upload-left {
    border-right: none;
    border-bottom: 1px dashed #ddd;
    padding-right: 0;
    padding-bottom: 1.25rem;
  }

  .hero {
    padding-top: 2.5rem;
  }
}
