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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #111;
  color: #eee;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #000;
  border-bottom: 1px solid #333;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand h1 {
  margin: 0 0 0.25rem 0;
  font-size: 1.4rem;
}

.brand p {
  margin: 0;
  font-size: 0.9rem;
  color: #aaa;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: inherit;
  text-decoration: none;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.main-nav a {
  color: #eee;
  text-decoration: none;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.main-nav a:hover {
  color: #fff;
}

.hero img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-image-wrap {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  max-width: 480px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: #aaa;
  margin: 0 0 0.75rem;
}

.hero-copy h2 {
  font-size: 2rem;
  margin: 0 0 0.75rem;
}

.hero-copy p {
  margin: 0 0 1.5rem;
  color: #c4c4c4;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out, transform 120ms ease-out;
}

.btn-primary {
  background: #f5b300;
  color: #000;
  border-color: #f5b300;
}

.btn-primary:hover {
  background: #ffd05e;
  border-color: #ffd05e;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: #f5b300;
  border-color: rgba(245, 179, 0, 0.45);
}

.btn-ghost:hover {
  background: rgba(245, 179, 0, 0.08);
  transform: translateY(-1px);
}

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

.category-card {
  background: radial-gradient(circle at top, #1b1b1b, #101010);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #252525;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
}

.category-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.category-thumb {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.category-thumb-weddings {
  background-image: url('galleries/6/big/web-1.jpg');
}

.category-thumb-children {
  background-image: url('galleries/8/big/DSCF0258.jpg');
}

.category-thumb-portraits {
  background-image: url('galleries/4/big/EH_3289.jpg');
}

.category-thumb-art {
  background-image: url('galleries/7/big/tn-tour-0632.jpg');
}

.category-meta {
  padding: 1.1rem 1.25rem 1.3rem;
}

.category-meta h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.category-meta p {
  margin: 0;
  font-size: 0.9rem;
  color: #bbbbbb;
}

main {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.page-shell {
  padding: 2.5rem 2rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.home-shell {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.gallery-section {
  margin-top: 2rem;
}

.gallery-section h2 {
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.gallery-grid {
  column-count: 3;
  column-gap: 1.25rem;
}

@media (max-width: 960px) {
  .gallery-grid {
    column-count: 2;
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    column-count: 1;
  }
}

.gallery-item {
  position: relative;
  display: inline-block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 0 1.25rem;
  break-inside: avoid;
  transform: translateY(0);
  transition: transform 160ms ease-out, box-shadow 160ms ease-out, filter 160ms ease-out;
}

.gallery-item--featured {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 55px rgba(0,0,0,0.7);
}

@media (max-width: 800px) {
  .gallery-item--featured {
    transform: translateY(-1px) scale(1.01);
  }
}

.gallery-item img {
  width: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(255,255,255,0.18), transparent 55%);
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity 160ms ease-out;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.6);
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
}

.contact-section {
  margin-top: 3rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 480px;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: flex-start;
}

.contact-photo-wrap {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 75px rgba(0,0,0,0.7);
}

.contact-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

@media (max-width: 800px) {
  .contact-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

.contact-form label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  border: 1px solid #444;
  background: #181818;
  color: #eee;
}

.contact-form button {
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  border: none;
  background: #e5a200;
  color: #000;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-form button:hover {
  background: #ffb300;
}

.site-footer {
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #777;
  border-top: 1px solid #333;
  margin-top: 3rem;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease-out;
  z-index: 50;
}

.lightbox-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-image {
  max-width: 92vw;
  max-height: 92vh;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.9);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.5);
  color: #f5f2eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
}

.lightbox-nav-prev {
  left: 2.5rem;
}

.lightbox-nav-next {
  right: 2.5rem;
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    gap: 1rem;
  }
}
