/*
Theme Name: Photo Showcase
Theme URI: https://example.com/photo-showcase
Author: OpenAI
Description: A minimal, image-first WordPress theme designed for photography portfolios. Includes a responsive gallery homepage and lightbox using the bundled showcase photographs.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: photo-showcase
Tags: photography, portfolio, one-column, custom-menu, featured-images, responsive-layout
*/

:root {
  --bg: #0a0a0a;
  --text: #f2f2f2;
  --muted: #a7a7a7;
  --line: rgba(255,255,255,.14);
  --panel: #111;
  --max: 1500px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: .72; }
img { display: block; max-width: 100%; height: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(10,10,10,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 72px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-title {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.site-description { display: none; }
.primary-menu,
.primary-menu ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
}
.primary-menu a {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .04em;
}
.menu-toggle { display: none; }

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 11vh 28px 7vh;
}
.hero h1 {
  margin: 0;
  max-width: 980px;
  font-size: clamp(42px, 7vw, 108px);
  line-height: .94;
  letter-spacing: -.045em;
  font-weight: 620;
}
.hero p {
  margin: 28px 0 0;
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 21px);
}

.gallery-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px 80px;
}
.photo-grid {
  columns: 3 360px;
  column-gap: 12px;
}
.photo-card {
  position: relative;
  margin: 0 0 12px;
  break-inside: avoid;
  overflow: hidden;
  background: var(--panel);
  cursor: zoom-in;
}
.photo-card img {
  width: 100%;
  transition: transform .45s ease, filter .45s ease;
}
.photo-card:hover img {
  transform: scale(1.015);
  filter: brightness(.82);
}
.photo-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 44px 16px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: .25s ease;
}
.photo-card:hover .photo-caption { opacity: 1; transform: none; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,.96);
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(94vw, 1800px);
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 14px 70px rgba(0,0,0,.45);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  z-index: 101;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
}
.lightbox-close { top: 22px; right: 26px; font-size: 34px; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); font-size: 42px; padding: 20px; }
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }
.lightbox-meta {
  position: fixed;
  left: 24px;
  bottom: 18px;
  color: #bbb;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.content-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 28px 100px;
}
.entry-title {
  font-size: clamp(38px, 5vw, 70px);
  line-height: 1;
  letter-spacing: -.035em;
}
.entry-content { color: #dedede; }
.entry-content a { text-decoration: underline; }
.entry-content img { margin: 32px 0; }
.post-card { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.post-card h2 { margin: 0 0 8px; font-size: 30px; }
.post-card .meta { color: var(--muted); font-size: 13px; }

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
}

@media (max-width: 700px) {
  .header-inner { min-height: 60px; padding: 0 16px; }
  .menu-toggle {
    display: block;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .primary-menu {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 60px;
    flex-direction: column;
    background: #0a0a0a;
    border-bottom: 1px solid var(--line);
    padding: 18px 16px 22px;
  }
  .primary-menu.is-open { display: flex; }
  .hero { padding: 9vh 16px 5vh; }
  .gallery-wrap { padding-left: 8px; padding-right: 8px; }
  .photo-grid { columns: 1; }
  .photo-caption { opacity: 1; transform: none; }
  .footer-inner { flex-direction: column; padding: 26px 16px; }
}
