/* 1. GENEL AYARLAR VE TİPOGRAFİ */
/* Berkshire Swash */
@font-face {
  font-family: 'Berkshire Swash';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('font/berkshire-swash-v22-latin_latin-ext-regular.woff2') format('woff2');
}

/* Great Vibes */
@font-face {
  font-family: 'Great Vibes';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('font/great-vibes-v21-latin_latin-ext-regular.woff2') format('woff2');
}

/* Michroma */
@font-face {
  font-family: 'Michroma';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('font/michroma-v21-latin-regular.woff2') format('woff2');
}

/* Oswald Regular */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('font/oswald-v57-latin_latin-ext-regular.woff2') format('woff2');
}

/* Oswald Bold */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('font/oswald-v57-latin_latin-ext-700.woff2') format('woff2');
}


body {
  font-family: 'Helvetica Neue', Arial, sans-serif; /* Fontlar birleştirildi */
  margin: 0;
  padding: 0;
  background-color: #f7f7f7;
  color: #333;
  line-height: 1.8;
  font-size: 17px;
}

section {
  padding: 50px 25px;
  max-width: 900px;
  margin: 20px auto;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* 2. BAŞLIKLAR VE METİNLER */
h2 { color: #1e3d59; margin-bottom: 15px; font-size: 1.8rem; }
h3 { margin-top: 25px; margin-bottom: 10px; font-size: 1.4rem; }
h4 { margin-top: 20px; margin-bottom: 1px; font-size: 1.2rem; }

p { margin-top: 2px; margin-bottom: 18px; }
ul { margin-bottom: 20px; padding-left: 20px; }
a { color: #1e3d59; text-decoration: underline; }

.great-vibes {
  font-family: 'Great Vibes', cursive;
  font-size: 40px;
  text-align: center;
  margin: 1px 0;
}

.berkshire-heading {
  font-family: 'Berkshire Swash', cursive;
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: flex-start;
  font-size: 36px;
  margin: 20px 0;
  color: #f23721;
}

/* 3. HEADER VE NAVİGASYON */
header {
  background-color: #2b2b2b;
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

header h1 {
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: 'Roboto', sans-serif;
}

nav { display: flex; margin-top: 15px; }

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

.menu li a {
  text-decoration: none;
  color: #f7f7f7;
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.3s ease-in-out;
}

.menu li a:hover {
  color: #ffcc00;
  transform: scale(1.05);
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

/* 4. MODAL VE GALERİ SİSTEMİ */
.modal {
  display: none;
  position: fixed;
  z-index: 999999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  overflow: hidden;
}

.modal-content-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 90%;
  margin: auto;
}

.modal-content {
  display: block;
  max-width: 90%;
  max-height: 70vh;
  margin: auto;
  border-radius: 10px;
  object-fit: contain;
  transition: transform 0.3s ease-in-out;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10002;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 40px;
  transition: 0.6s ease;
  user-select: none;
  text-decoration: none;
  z-index: 10002;
}
  
  
  
.logo-container {
    display: flex;
    flex-direction: column; /* Mobilde alt alta */
    align-items: center;
    justify-content: center;
    gap: 20px; /* Aradaki boşluk */
    margin-top: 20px;
  }

@media (min-width: 768px) {
    .logo-container {
      flex-direction: row; /* Masaüstünde yan yana */
    }
  }
  
  
  
  
  
.next { right: 5%; }
.prev { left: 5%; }

.gallery-caption {
  text-align: center;
  color: #ccc;
  padding: 15px 20px;
  /* Font ailesini güncelledik: Önce Michroma deneyecek, 
     karakter bulamazsa sistemin düzgün fontlarına geçecek */
  font-family: 'Michroma', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 10px;
  z-index: 10001;
}
/* 5. BUTONLAR VE EKSTRALAR */
.gallery-btn-right {
  display: block;
  margin: 20px 0 40px auto;
  background-color: transparent;
  border: 2px solid #c0392b; 
  color: #c0392b;
  padding: 10px 22px;
  font-family: 'Michroma', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.gallery-btn-right:hover {
  background-color: #c0392b;
  color: #fff;
  transform: scale(1.05);
}

.community-logo { height: 50px; width: auto; }
.spacer { height: 20px; }
.spacer2 { height: 10px; }

/* 6. FOOTER */
footer {
  text-align: center;
  padding: 25px;
  background: #1e3d59;
  color: white;
  font-size: 0.9rem;
}

/* 7. RESPONSIVE TASARIM */

/* Tablet ve Masaüstü (Web) */
@media (min-width: 769px) {
  body { padding-bottom: 0 !important; }
  footer { margin-bottom: 0 !important; padding: 30px 0; }
  body > .spacer:last-of-type { display: none; }
}

/* Mobil */
@media (max-width: 768px) {
  body { padding-bottom: 150px !important; font-size: 15px; }
  header { flex-direction: column; text-align: center; }
  .menu { flex-direction: column; gap: 15px; margin-top: 15px; }
  section { padding: 25px 15px; margin-bottom: 40px; }
  .berkshire-heading { font-size: 27px; }
  .community-logo { height: 38px; }
  .prev, .next { font-size: 25px; padding: 10px; }
  .gallery-caption { font-size: 12px; }
  .modal-content { max-width: 95%; }
}


.link-container {
  display: flex;
  gap: 40px;
  align-items: center;
}

/* Link genel stil */
.important-link {
  font-size: 1.2rem;              /* Desktop */
  color: #c0392b;
  font-family: 'Michroma', sans-serif;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: 0.3s ease;
}

.important-link::after {
  content: "↗";
  font-size: 1rem;
}

.important-link:hover {
  color: #e74c3c;
  transform: translateY(-2px);
}

/* 📱 Mobil ayar */
@media (max-width: 768px) {
  .link-container {
    flex-direction: column;   /* Alt alta */
    align-items: flex-start;
    gap: 15px;
  }

  .important-link {
    font-size: 1.0rem;        /* Mobil font */
  }
}


  .oswald-heading {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;  /* Kalın yapmak için */
    font-size: 23px;   /* İsteğe göre boyut ayarlayabilirsin */
    color: #333;       /* Renk değiştirmek istersen burayı değiştir */
    margin: 15px 0;
  }
  
  
  
  .media-row-container {
    display: flex;
    justify-content: center;
    align-items: stretch; 
    gap: 15px;
    margin: 20px auto;
    max-width: 930px;
    width: 100%;
}

.media-row-container .media-item {
    flex: 1;
    display: flex;
}

/* Buradaki height: 300px sadece bu satırdaki resim ve videoları bağlar */
.media-row-container .media-item img, 
.media-row-container .media-item .autoVideo {
    width: 100%;
    height: 300px; 
    object-fit: cover;
    border-radius: 10px;
}

/* --- Ev Ziyaretleri (Senin İlk İstediğin Orijinal Stil) --- */
.image-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.image-container img {
    max-width: 50%; /* İlk attığın orijinal değer */
    height: auto;   /* Boyutu resmin kendi oranına bırakır */
    border-radius: 0; /* Eğer köşeler sivri kalsın dersen */
}

/* --- Mobil Ayarlar --- */
@media screen and (max-width: 768px) {
    .media-row-container {
        flex-direction: column;
    }
    .media-row-container .media-item img, 
    .media-row-container .media-item .autoVideo {
        height: auto; /* Mobilde her şey kendi oranına döner */
    }

    .image-container {
        display: block; /* Mobilde resimler alt alta */
        text-align: center;
    }

    .image-container img {
        max-width: 100%;
        margin-bottom: 10px;
    }
}





.image-caption {
        text-align: center;
        font-size: 16px; /* İsterseniz font boyutunu buradan ayarlayabilirsiniz */
        margin-top: 5px; /* Açıklama ile fotoğraf arasındaki üst boşluğu azaltır */
    }
    
    /* Web versiyonunda yan yana */
    .image-container {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin: 20px 0;
    }

    .image-container img {
        max-width: 50%; /* Webde genişlik %50 olacak */
        height: auto;
    }

    /* Mobilde tam sayfa genişliği olacak şekilde düzenleme */
    @media screen and (max-width: 768px) {
        .image-container {
            display: block; /* Flexbox'u blocka çeviriyoruz */
            text-align: center; /* Görselleri ortalamak için */
        }

        .image-container img {
            max-width: 100%; /* Görsellerin tam sayfa genişliğine sahip olmasını sağlıyoruz */
            margin-bottom: 10px; /* Görseller arasında boşluk ekliyoruz */
        }
    }
    
    /* mobilde satır */

@media (max-width: 768px) {
    .gallery-caption {
        font-size: 13px; /* Mobilde daha okunaklı boyut */
        width: 95%;     /* Ekranın %90'ını kaplasın, yanlardan %5 boşluk kalsın */
        padding: 12px;
        bottom: 15px;
        line-height: 1.4;
    }
    
    .modal-content {
        max-height: 65vh; /* Resim/Video biraz küçülsün ki yazıya yer kalsın */
    }
}


ul li a {
    text-decoration: none;
    color: #302B54;
    font-weight: 700; /* Kalın yazı */
    font-size: 18px;
    transition: color 0.3s ease;
  }

  ul li a:hover {
    color: #0066cc;
  }

  ul li {
    padding-left: 10px;
  }
  
  
    .berkshiree-heading {
    font-family: 'Berkshire Swash', cursive;
    display: flex;
    align-items: center; /* Yazı ve logoyu dikey ortala */
    gap: 15px;           /* Başlık ile logo arası boşluk */
    justify-content: flex-start; /* Sola hizala */
    font-size: 36px;     /* İsteğe göre boyut ayarlayabilirsin */
    margin: 20px 0;
    color: #2a52be; }
    
    
    
.media-row-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap; /* Web'de tek satırda kalmalarını sağlar */
    margin: 20px 0;
}

.media-item {
    flex: 1;
}

.media-item video, .media-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

@media (max-width: 768px) {
    .media-row-container {
        display: grid; 
        grid-template-columns: 1fr 1fr; /* 2 sütun */
        gap: 10px;
        width: 100%;
        padding: 0;
    }

    /* Videolar yan yana */
    .video-item-1, .video-item-2 {
        grid-row: 1;
        width: 100%;
    }

    /* Fotoğrafın olduğu kutu */
    .photo-item {
        grid-column: 1 / span 2; /* 2 sütunu da kapla */
        grid-row: 2;
        display: flex;
        justify-content: center; /* Yatayda ortala */
        width: 100%;
    }

    /* Fotoğrafın kendisi */
    .photo-item img {
        width: 100% !important; /* Genişliği zorla */
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto; /* Dış boşlukla ortala */
    }
}


/* Popup Modal ana çerçevesi */
#popupModal {
    display: none; 
    position: fixed; 
    z-index: 99999 !important; /* Değeri daha da artırdık */
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.9);
    overflow: hidden; /* Sayfa kaymasını engellemek için */
}

/* Modal içindeki görseli hem yatay hem dikeyde merkeze çakma */
#popupModal .modal-content {
    position: absolute;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important; /* Otomatik marginleri sıfırla */
    display: block;
    max-width: 90%;
    max-height: 85vh;
    width: auto;
    height: auto;
    border: none;
}

/* Kapatma butonu - Her şeyin en üstünde */
#popupModal .close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100000 !important;
}



