@charset "UTF-8";

:root {
  --gallery-bg: #f7f4ef;
  --gallery-surface: rgba(255, 255, 255, 0.92);
  --gallery-border: rgba(74, 59, 42, 0.14);
}

body {
  font-family: var(--font-body);
  background: var(--gallery-bg);
}

.gallery-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 239, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(74, 59, 42, 0.08);
}

.gallery-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}

.gallery-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--dark-brown);
  min-width: 0;
}

.gallery-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: block;
}

.gallery-brand-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gallery-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--dark-brown);
  background: var(--gallery-surface);
  border: 1px solid var(--gallery-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-home:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
}

.gallery-main {
  padding: clamp(28px, 4vw, 44px) 0 clamp(90px, 10vw, 120px);
}

.gallery-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 10px;
  color: var(--dark-brown);
}

.gallery-subtitle {
  color: var(--brown);
  line-height: 1.7;
  max-width: 780px;
  margin-bottom: 26px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 20px);
}

.gallery-item {
  display: block;
  text-decoration: none;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(74, 59, 42, 0.1);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.10);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.gallery-empty {
  padding: 28px 22px;
  border-radius: 18px;
  background: var(--gallery-surface);
  border: 1px solid var(--gallery-border);
  color: var(--dark-brown);
  line-height: 1.7;
}

@media (max-width: 980px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .gallery-brand-text {
    display: none;
  }
}

