/* Base layout */

body.parchment-bg {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  color: #f5f0e6;
  background: #1b1712;
  background-image:
    radial-gradient(circle at 0 0, rgba(255,255,255,0.06), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(255,255,255,0.04), transparent 60%),
    url("../images/parchment-texture.jpg");
  background-size: auto, auto, cover;
  background-blend-mode: soft-light;
}

.page-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
}

/* Header */

.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 8, 6, 0.9);
  backdrop-filter: blur(4px);
}

.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-fleur {
  font-size: 1.1rem;
  color: #d9c27a;
}

.brand-title {
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.85rem;
  color: #cbbfa0;
}

.site-nav a {
  color: #f5f0e6;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: 1rem;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 1px;
  background: #d9c27a;
  transition: width 0.2s ease-out;
}

.site-nav a:hover::after {
  width: 100%;
}

/* Hero */

.hero-section {
  padding: 1.5rem 0 0.5rem;
}

.hero-text h1 {
  font-size: 1.8rem;
  margin: 0 0 0.5rem;
  color: #f8f2e8;
}

.hero-text p {
  max-width: 720px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #d7cdbb;
}

/* Gallery sections */

.gallery-section {
  margin-top: 2.5rem;
}

.gallery-header h2 {
  font-size: 1.4rem;
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f8f2e8;
}

.gallery-header p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: #cbbfa0;
}

/* Grid */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

/* Gallery items */

.gallery-item {
  cursor: zoom-in;
  position: relative;
  padding: 0.75rem;
  background: rgba(18, 14, 10, 0.9);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.7),
    0 8px 18px rgba(0, 0, 0, 0.7);
  transition:
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out,
    background 0.18s ease-out;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(217, 194, 122, 0.4),
    0 14px 26px rgba(0, 0, 0, 0.85);
  background: rgba(22, 18, 13, 0.95);
}

/* Frame styles */

.frame-gold {
  border: 6px solid #b08a3c;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.9),
    0 10px 20px rgba(0, 0, 0, 0.9);
  background-image:
    linear-gradient(135deg, #f3e3b0 0%, #b08a3c 40%, #5b3b16 100%);
  background-size: 200% 200%;
}

.frame-ornate {
  border: 8px double #c9a45a;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 0 1px rgba(0, 0, 0, 0.9),
    0 12px 24px rgba(0, 0, 0, 0.95);
  background-image:
    linear-gradient(145deg, #f6e6bd 0%, #c9a45a 35%, #7b5424 80%, #3a2610 100%);
  background-size: 220% 220%;
}

.frame-stone {
  border: 6px solid #8b7c6a;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.9),
    0 10px 20px rgba(0, 0, 0, 0.9);
  background-image:
    linear-gradient(135deg, #d0c4b3 0%, #8b7c6a 40%, #4a3f34 100%);
  background-size: 200% 200%;
}

/* Image wrapper */

.gallery-image-wrap {
  position: relative;
  overflow: hidden;
  background: #111;
}

.gallery-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
  transition:
    transform 0.25s ease-out,
    filter 0.25s ease-out;
  transform-origin: center center;
}

.gallery-item:hover .gallery-image-wrap img {
  transform: scale(1.04);
  filter: contrast(1.05) saturate(1.05);
}

/* Caption */

figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #e4d9c5;
}

.work-title {
  display: block;
  font-weight: 600;
}

.work-meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: #cbbfa0;
}

/* Modal */

.image-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.image-modal.is-open {
  display: flex;
}

.image-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 3, 2, 0.9);
}

.image-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  padding: 0.75rem;
  background: #1b1712;
  border: 1px solid #d9c27a;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.9),
    0 18px 36px rgba(0, 0, 0, 0.95);
}

.image-modal-content img {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  margin: 0 auto;
}

.image-modal-caption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #e4d9c5;
  text-align: center;
}

.image-modal-close {
  position: absolute;
  top: 0.25rem;
  right: 0.35rem;
  border: none;
  background: transparent;
  color: #f5f0e6;
  font-size: 1.4rem;
  cursor: pointer;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.75rem 1.5rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #cbbfa0;
  background: rgba(10, 8, 6, 0.9);
}

/* Responsive tweaks */

@media (max-width: 720px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav a {
    margin-left: 0;
    margin-right: 1rem;
  }

  .hero-text h1 {
    font-size: 1.4rem;
  }
}
