body {
  font-family: 'Poppins', sans-serif;
  color: #4B2E2E;
  margin: 0;
  padding: 0;
  text-align: center;
  line-height: 1.8;
}

body:not(.about-page):not(.projects-page) {
  background: url('images/background2.jpg') no-repeat center center fixed;
  background-size: cover;
}

body.about-page {
  background: url('images/background4.jpg') no-repeat center center fixed;
  background-size: cover;
}

body.projects-page {
  background: #f5f5f5;
}

body.contact-page {
  background: #f9f9f9;
}

.main-content {
  background: rgba(255, 255, 255, 0.85);
  padding: 40px;
  border-radius: 20px;
  margin: 60px 220px 60px 40px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  max-width: 900px;
  text-align: left;
}

.main-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}


.right-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 160px;
  background-color: rgba(255, 255, 255, 0.85);
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  z-index: 1000;
}

.right-nav a {
  margin: 15px 0;
  color: #4B2E2E;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.right-nav a:hover {
  color: #0077cc;
}

.right-nav img.nav-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

main {
  padding: 60px 0;
  margin: 0;
}

.art-signature {
  font-family: 'Great Vibes', cursive;
  font-size: 3rem;
  margin-top: 30px;
  color: #4B2E2E;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-top: 10px;
}

p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 10px auto 30px;
  text-align: left;
}

a.button {
  display: inline-block;
  padding: 12px 25px;
  background: #4B2E2E;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

a.button:hover {
  background: #2e1e1e;
}

.about-gallery-section {
  margin-top: 60px;
  text-align: center;
}

.about-gallery-title {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #5b2e1e;
  font-family: 'Georgia', serif;
}

.about-gallery-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-items: center;
  max-width: 800px;
  margin: 0 auto;
  padding-top: 20px;
}

.about-gallery-container img {
  width: 100%;
  max-width: 120px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.about-gallery-container img:hover {
  transform: scale(1.03);
}

.right-nav.no-avatar .nav-avatar {
  display: none;
}

.image-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-block img {
  display: block;
  margin: 0 auto;
}

.caption {
  margin-top: 8px;
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: 1rem;
  color: #5b2e1e;
  text-decoration: none;
  transition: all 0.3s ease;
}

.caption:hover {
  color: #a85c49;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
}

.warmth-gallery-section {
  margin-top: 40px;
  text-align: center;
}

.warmth-gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  justify-items: center;
  margin-top: 20px;
}

.warmth-gallery-item img {
  width: 100%;
  max-width: 240px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.warmth-gallery-item img:hover {
  transform: scale(1.03);
}

.warmth-caption {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #5b2e1e;
  font-style: italic;
  max-width: 250px;
  text-align: center;
}

.pets-gallery {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.pet-item {
  text-align: center;
}

.pet-photo {
  width: 120px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.pet-photo:hover {
  transform: scale(1.05);
}

.pet-caption {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #5b2e1e;
  font-style: italic;
}
@media (max-width: 768px) {
  .right-nav {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: center;
    padding: 20px 0;
    box-shadow: none;
    background-color: rgba(255, 255, 255, 0.95);
  }

  .right-nav a {
    margin: 0 10px;
    font-size: 1rem;
  }

  .main-content {
    margin: 20px 20px;
    padding: 20px;
  }

  .about-gallery-container {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}