/* === Reset === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === Fonts === */
@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/josefin-sans-300.woff2') format('woff2');
}

@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/josefin-sans-400.woff2') format('woff2');
}

/* === Variables === */
:root {
  --bg: #d9d0c1;
  --text: #1a1a1a;
  --text-secondary: #6b6156;
  --text-muted: #8a8275;
  --accent-bg: rgba(0, 0, 0, 0.04);
  --btn-bg: #1a1a1a;
  --btn-text: #ede8e0;
  --font-heading: 'Josefin Sans', sans-serif;
  --font-body: 'Josefin Sans', sans-serif;
  --max-content: 720px;
}

/* === Base === */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === Navigation === */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
}

.site-logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 1px;
  padding-bottom: 2px;
}

.nav-links a:hover,
.nav-links a.active {
  border-bottom: 1px solid var(--text);
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
}

/* === Container === */
.container {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 40px 32px;
}

/* === Typography === */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: normal;
}

h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* === Gallery Grid (Homepage) === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 24px 32px 48px;
}

.gallery-card {
  display: block;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.gallery-card-title {
  font-family: var(--font-heading);
  font-size: 16px;
  margin-top: 8px;
  color: var(--text);
}

.gallery-card-date {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-top: 2px;
}

/* === Gallery Detail === */
.gallery-header {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 40px 32px 20px;
}

.gallery-header h2 {
  margin-bottom: 8px;
}

.gallery-header p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.gallery-photos {
  width: 90vw;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

.gallery-photos img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-row-landscape {
  margin-bottom: 16px;
}

.gallery-row-portrait {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.gallery-row-portrait a {
  flex: 1;
  min-width: 0;
}

.gallery-row-portrait--single {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.gallery-row-portrait--single a {
  width: 50%;
}

.gallery-back {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 12px 32px 48px;
}

.gallery-back a {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.gallery-back a:hover {
  color: var(--text);
}

/* === Before/After Slider === */
.slider-container {
  position: relative;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  border-radius: 2px;
}

.slider-container img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.slider-after {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  overflow: hidden;
  width: 50%;
}

.slider-after img {
  width: auto;
  height: 100%;
  min-width: 0;
  position: absolute;
  top: 0;
  left: 0;
}

.slider-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: white;
  z-index: 2;
  pointer-events: none;
}

.slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 36px;
  background: white;
  border-radius: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  font-size: 10px;
  letter-spacing: 2px;
  color: #333;
}

.slider-label {
  position: absolute;
  bottom: 12px;
  font-size: 11px;
  color: white;
  letter-spacing: 2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  z-index: 1;
  pointer-events: none;
}

.slider-label-before {
  left: 16px;
}

.slider-label-after {
  right: 16px;
}

.slider-caption {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 8px;
  text-align: center;
}

/* === Product Card === */
.product-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  background: var(--accent-bg);
  border-radius: 4px;
  margin-top: 32px;
}

.product-card-title {
  font-family: var(--font-heading);
  font-size: 18px;
}

.product-card-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.product-card-price {
  font-family: var(--font-heading);
  font-size: 22px;
  margin-bottom: 8px;
  text-align: right;
}

.btn {
  display: inline-block;
  background: var(--btn-bg);
  color: var(--btn-text);
  padding: 10px 24px;
  font-size: 12px;
  letter-spacing: 1px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
}

.btn:hover {
  opacity: 0.85;
}

/* === About === */
.about-photo {
  max-width: 280px;
  margin-bottom: 24px;
}

.about-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-links {
  list-style: none;
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.about-links a {
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.about-links a:hover {
  color: var(--text);
}

/* === Included List === */
.included-list {
  margin-top: 32px;
}

.included-list ul {
  list-style: none;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.included-list ul li::before {
  content: "· ";
}

/* === Footer === */
.site-footer {
  padding: 32px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* === Mobile === */
@media (max-width: 768px) {
  .site-nav {
    padding: 16px 20px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    right: 20px;
    background: var(--bg);
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
  }

  .nav-links.open {
    display: flex;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 16px 20px 32px;
  }

  .gallery-header,
  .gallery-back,
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .gallery-photos {
    width: 100%;
    padding: 20px;
  }

  .gallery-row-portrait {
    flex-direction: column;
  }

  .gallery-row-portrait--single a {
    width: 100%;
  }

  .product-card {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .product-card-price {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
