/* ==========================================================
   Dechen family & Ubykh (Ubih) History - Main stylesheet
   Font: Berkshire Swash (loaded from Google Fonts in <head>)
   ========================================================== */

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Berkshire Swash", Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #222;
  background: #fff;
}

h1,
h2,
h3 {
  font-family: "Berkshire Swash", Georgia, serif;
  font-weight: normal;
  line-height: 1.3;
}

h2 {
  font-size: 1.6rem;
  margin: 0 0 1rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #222;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.site-header .logo img {
  width: 120px;
}

.site-title {
  flex: 1;
  margin: 0;
  text-align: center;
  font-size: 1.7rem;
}

.main-nav a,
.main-nav a:visited {  
font-family: "Berkshire Swash", Georgia, serif;  
font-size: 1.2rem;  
color: #B97A1F;  
text-decoration: none;
}
.main-nav a:hover,
.main-nav a:focus {  
color: #B97A1F;  
text-decoration: underline;
}

/* ---------- Home intro (index1.html) ---------- */
.intro {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.intro-text {
  flex: 1;
}

.intro-text p {
  margin: 0 0 1rem;
}

.intro-figure {
  flex: 0 0 360px;
  margin: 0;
}

.intro-figure img {
  width: 100%;
  border: 1px solid #ddd;
}

.intro-figure figcaption,
.village-photos figcaption {
  font-size: 0.9rem;
  text-align: center;
  color: #555;
  margin-top: 0.5rem;
}

/* ---------- Family name symbols (index1.html) ---------- */
.symbols {
  text-align: center;
  margin: 2.5rem 0;
}

.symbols img {
   display: block;  
width: 100%;  
max-width: 900px;  
height: auto;  
margin: 0 auto 1rem;
}

.symbols-text,
.reference {
  margin: 0.5rem auto;
  max-width: 800px;
}

.symbols-text {
  font-size: 1.2rem;
}

.reference {
  font-size: 1rem;
  color: #444;
}

/* ---------- Village section (index1.html) ---------- */
.village {
  margin: 2.5rem 0;
  text-align: center;
}

.village-photos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.village-photos figure {
  flex: 1 1 400px;
  max-width: 500px;
  margin: 0;
}

.village-photos img {
  width: 100%;
}

/* ---------- Gallery row: video | image | video (hakkimizda1.html) ---------- */
.gallery-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.gallery-row .side,
.gallery-row .side {  
width: 20%;  
height: auto;}

.gallery-row .center {  
width: 40%;  
height: auto;  
object-fit: cover;

}

.caption {
  text-align: center;
  font-size: 0.95rem;
  color: #444;
  margin-top: 1.5rem;
}

/* ---------- Adiges ---------- */
.source-note {  
text-align: center;  
margin: 1.5rem auto;  
width: 100%;

}

/* ---------- Footer / Designed by ---------- */
.designed-by {
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 2.5rem;
  border-top: 1px solid #eee;
}

.designed-by p {
  margin: 0.5rem 0;
  font-size: 1.15rem;
}

.designed-logo {
  display: inline-block;
  height: 1cm;
  width: auto;
  vertical-align: middle;
}

/* ---------- Tablet and mobile ---------- */
@media (max-width: 800px) {
  .site-header {
    flex-direction: column;
    text-align: center;
  }

  .site-title {
    font-size: 1.4rem;
  }

  .intro {
    flex-direction: column;
  }

  .intro-figure {
    flex: none;
    width: 100%;
  }

  .gallery-row {
    flex-direction: column;
  }

  .gallery-row .side,
  .gallery-row .center {
    width: 100%;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 1rem;
  }

  .site-title {
    font-size: 1.2rem;
  }

  .village-photos figure {
    flex: 1 1 100%;
  }
}
.photo-credit {  
text-align: center;  
font-size: 0.9rem;  
color: #555;  
margin: 1.5rem auto 0;}